/* Twogle Landing Page Styles */
/* Based on the design system in /design_system/styles/globals.css */

/* CSS Variables - Matching Design System */
:root {
  --font-size: 14px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --border: rgba(0, 0, 0, 0.1);
  --radius: 0.625rem;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  
  /* Custom colors for Twogle brand */
  --twogle-green: #4a9b7e;
  --twogle-green-light: #6bb5a0;
  --twogle-green-dark: #3a7b6b;
  --twogle-orange: #f4a460;
  --twogle-orange-light: #f6b87a;
  --twogle-orange-dark: #e89449;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-weight: var(--font-weight-normal);
  margin: 0;
  padding: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1 {
  font-size: 3.5rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

h4 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

p {
  font-size: 1rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
}

/* Button Styles - Based on design system */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.pulse {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(74, 155, 126, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74, 155, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 155, 126, 0); }
}

.btn:focus-visible {
  ring: 3px;
  ring-color: rgba(0, 0, 0, 0.2);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Button Variants */
.btn-primary {
  background-color: var(--twogle-green);
  color: white;
  height: 2.25rem;
  padding: 0.5rem 1rem;
}

.btn-primary:hover {
  background-color: var(--twogle-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(74, 155, 126, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
  height: 2.25rem;
  padding: 0.5rem 1rem;
}

.btn-secondary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Button Sizes */
.btn-lg {
  height: 2.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  color: var(--twogle-green);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--twogle-green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #f8fffe 0%, #f0f9f7 100%);
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(74, 155, 126, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(244, 164, 96, 0.1) 0%, transparent 50%);
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  margin-bottom: 1rem;
  animation: bounceIn 1s ease-out;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--twogle-green) 0%, var(--twogle-green-light) 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  box-shadow: 0 4px 20px rgba(74, 155, 126, 0.3);
  animation: pulse 2s infinite;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--foreground);
  animation: slideInUp 1s ease-out 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--twogle-green) 0%, var(--twogle-orange) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientText 3s ease-in-out infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% { transform: scale(0.9); }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.highlight {
  color: var(--twogle-green);
  position: relative;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: slideInUp 1s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: slideInUp 1s ease-out 0.6s both;
}



.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1s ease-out 0.5s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.phone-mockup {
  position: relative;
  z-index: 2;
}

.app-screen {
  width: 300px;
  height: auto;
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: phoneFloat 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.app-screen:hover {
  transform: scale(1.05) rotateY(5deg);
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px) rotateZ(0deg); }
  50% { transform: translateY(-10px) rotateZ(1deg); }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.floating-heart,
.floating-message,
.floating-insight {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--twogle-green);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.8;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.floating-heart:hover,
.floating-message:hover,
.floating-insight:hover {
  transform: scale(1.2);
  opacity: 1;
}

.floating-heart {
  top: 10%;
  right: 10%;
  background: var(--twogle-orange);
  animation-delay: -2s;
}

.floating-message {
  bottom: 20%;
  left: 5%;
  background: var(--twogle-green-light);
  animation-delay: -4s;
}

.floating-insight {
  top: 60%;
  right: 5%;
  background: var(--twogle-orange-light);
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(5deg); }
  66% { transform: translateY(-5px) rotate(-3deg); }
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 6rem 0;
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(74, 155, 126, 0.15);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 155, 126, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--twogle-green) 0%, var(--twogle-green-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
  animation: iconPulse 2s ease-in-out infinite;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotateY(360deg);
  box-shadow: 0 10px 30px rgba(74, 155, 126, 0.3);
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.feature-icon img {
  width: 40px;
  height: 40px;
}

.feature-title {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.feature-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fffe 0%, #f0f9f7 100%);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-visual {
  margin-bottom: 2rem;
}

.step-image {
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  animation: stepFloat 4s ease-in-out infinite;
}

.step:hover .step-image {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 20px 50px rgba(74, 155, 126, 0.2);
}

@keyframes stepFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.step:nth-child(1) .step-image { animation-delay: 0s; }
.step:nth-child(2) .step-image { animation-delay: 1s; }
.step:nth-child(3) .step-image { animation-delay: 2s; }
.step:nth-child(4) .step-image { animation-delay: 3s; }

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--twogle-green);
  color: white;
  border-radius: 50%;
  font-weight: var(--font-weight-medium);
  margin-bottom: 1rem;
  line-height: 40px;
}

.step-title {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.step-description {
  color: var(--muted-foreground);
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background-color: var(--background);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: var(--font-weight-medium);
  color: var(--foreground);
  display: block;
}

.author-location {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.testimonial-rating .stars {
  color: var(--twogle-orange);
  font-size: 1.2rem;
}

/* Pricing Section */
.pricing {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fffe 0%, #f0f9f7 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
  border-color: var(--twogle-green);
  box-shadow: 0 10px 30px rgba(74, 155, 126, 0.2);
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--twogle-green);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

.plan-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.plan-name {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.price {
  font-size: 3rem;
  font-weight: var(--font-weight-medium);
  color: var(--twogle-green);
}

.period {
  font-size: 1rem;
  color: var(--muted-foreground);
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
}

.plan-features .feature {
  padding: 0.75rem 0;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.plan-features .feature:last-child {
  border-bottom: none;
}

.plan-features .feature::before {
  content: "✓";
  color: var(--twogle-green);
  font-weight: bold;
  margin-right: 0.5rem;
}


/* CTA Section */
.cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--twogle-green) 0%, var(--twogle-green-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  color: white;
  margin-bottom: 1rem;
  animation: slideInUp 0.8s ease-out;
}

.cta-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.coming-soon-text {
  display: flex;
  justify-content: center;
}

.launch-text {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
  to { box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}


.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.social-link:hover {
  background-color: var(--twogle-green);
}

.social-link svg {
  stroke: white;
}

.footer-title {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--twogle-green-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}

.legal-links {
  display: flex;
  gap: 2rem;
}

.legal-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: var(--twogle-green-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .nav-cta {
    margin-top: 1rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero {
    padding: 6rem 0 3rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
  }
  
  
  .launch-text {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
  
  .hero {
    min-height: auto;
    padding: 6rem 0 3rem;
  }
  
  /* Ensure no gap after footer on mobile */
  html, body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
  }
  
  body {
    position: relative;
  }
  
  .footer {
    margin-bottom: 0;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom)); /* Add small gap + iOS safe areas */
  }
  
  .footer-brand {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .hero-badge {
    margin-bottom: 1.5rem;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon img {
    width: 30px;
    height: 30px;
  }
  
  .step-image {
    width: 150px;
    height: 150px;
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 0.875rem;
  }
}