/* ============================================
   MarginIQ Design System - Warm Beige Theme
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Design Tokens --- */
:root {
  /* Warm palette */
  --warm-bg: #FAF7F2;
  --warm-surface: #FFFFFF;
  --warm-text: #2C2520;
  --warm-text-sec: #7A6E62;
  --warm-text-muted: #A99E92;
  --warm-border: #E8E0D4;
  --warm-border-light: #F0EAE0;

  /* Brand */
  --teal: #0D9488;
  --teal-dark: #0A7A6F;
  --teal-soft: rgba(13, 148, 136, 0.06);
  --teal-mid: rgba(13, 148, 136, 0.09);

  /* Traffic light */
  --fc-green: #3A8A5C;
  --fc-green-soft: #F0FAF3;
  --fc-amber: #B8860B;
  --fc-amber-soft: #FFF8E7;
  --fc-red: #C4453A;
  --fc-red-soft: #FEF5F3;

  /* System */
  --secondary: #F3EDE4;
  --destructive: #C4453A;

  /* Radius */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-inner: 10px;
  --radius-nav: 20px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(44, 37, 32, 0.03), 0 6px 24px rgba(44, 37, 32, 0.04);
  --shadow-logo: 0 2px 10px rgba(13, 148, 136, 0.16);
  --shadow-nav: 0 4px 20px rgba(44, 37, 32, 0.06), 0 12px 40px rgba(44, 37, 32, 0.04);

  /* Fonts */
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Newsreader', serif;

  /* Layout */
  --max-w: 1120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--warm-bg);
  color: var(--warm-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--sm {
  padding: 60px 0;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--warm-text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
}

p {
  color: var(--warm-text-sec);
  line-height: 1.7;
}

.text-accent {
  color: var(--teal);
}

.text-muted {
  color: var(--warm-text-muted);
  font-size: 0.9rem;
}

.text-center {
  text-align: center;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  max-width: 600px;
  color: var(--warm-text-muted);
  font-size: 1.05rem;
}

.section-subtitle.centered {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.2);
}

.btn--ghost {
  border: 1px solid var(--warm-border);
  color: var(--warm-text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--warm-border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--warm-text);
}

.logo span {
  font-weight: 700;
  color: var(--teal);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-logo);
  vertical-align: middle;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--warm-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--warm-text);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

.header-cta {
  display: flex;
  align-items: center;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--warm-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Cards --- */
.card {
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(13, 148, 136, 0.2);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-inner);
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  color: var(--warm-text-muted);
}

/* --- Grid Layouts --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
}

/* --- Hero Section --- */
.hero {
  padding: 140px 0 80px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-content>p {
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-phone {
  display: flex;
  justify-content: center;
}

/* --- Phone Frame --- */
.phone-frame {
  width: 320px;
  height: 620px;
  border-radius: 36px;
  border: 8px solid var(--warm-border);
  background: var(--warm-bg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(44, 37, 32, 0.12);
  flex-shrink: 0;
}

.phone-header {
  padding: 14px 20px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-header .logo {
  font-size: 22px;
}

.phone-header .phone-page-label {
  font-size: 11px;
  color: var(--warm-text-muted);
}

.phone-list {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-recipe {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.traffic-dot--green {
  background: var(--fc-green);
  box-shadow: 0 0 0 3px rgba(58, 138, 92, 0.09);
}

.traffic-dot--amber {
  background: var(--fc-amber);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.09);
}

.traffic-dot--red {
  background: var(--fc-red);
  box-shadow: 0 0 0 3px rgba(196, 69, 58, 0.09);
}

.phone-recipe-info {
  flex: 1;
  min-width: 0;
}

.phone-recipe-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  color: var(--warm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-recipe-meta {
  font-size: 12px;
  color: var(--warm-text-muted);
  margin-top: 2px;
}

.phone-recipe-meta strong {
  color: var(--warm-text-sec);
  font-weight: 600;
}

.phone-recipe-cost {
  text-align: right;
  flex-shrink: 0;
}

.phone-recipe-pct {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
}

.phone-recipe-pct--green {
  color: var(--fc-green);
}

.phone-recipe-pct--amber {
  color: var(--fc-amber);
}

.phone-recipe-pct--red {
  color: var(--fc-red);
}

.phone-recipe-label {
  font-size: 10px;
  color: var(--warm-text-muted);
}

.phone-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(250, 247, 242, 0.87) 30%, #FAF7F2 55%);
}

.phone-nav-inner {
  display: flex;
  border-radius: var(--radius-nav);
  border: 1px solid var(--warm-border);
  background: var(--warm-surface);
  padding: 6px;
  box-shadow: var(--shadow-nav);
}

.phone-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  border-radius: 16px;
  font-size: 10px;
  font-weight: 500;
  color: var(--warm-text-muted);
}

.phone-nav-tab--active {
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 700;
}

/* --- Steps --- */
.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--teal);
}

/* --- Feature Showcase --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.feature-row:nth-child(even) .feature-visual {
  order: -1;
}

.feature-text .section-label {
  margin-bottom: 12px;
}

.feature-text h2 {
  margin-bottom: 16px;
}

.feature-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.feature-text .feature-detail {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

/* --- Standalone Card Mockups --- */
.mockup-card {
  max-width: 420px;
  width: 100%;
}

/* Recipe card mockup */
.mockup-recipe {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.mockup-recipe h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-recipe .meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--warm-text-muted);
}

.mockup-recipe .meta strong {
  font-weight: 600;
  color: var(--warm-text-sec);
}

.mockup-recipe .cost-pct {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.mockup-recipe .cost-label {
  font-size: 11px;
  color: var(--warm-text-muted);
  margin-top: 2px;
}

/* Ingredient card mockup */
.mockup-ingredient {
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.mockup-ingredient-body {
  padding: 18px;
}

.mockup-ingredient h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.mockup-ingredient .supplier {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--warm-text-muted);
}

.mockup-ingredient .cost-panel {
  margin-top: 14px;
  border-radius: var(--radius-inner);
  border: 1px solid var(--warm-border-light);
  background: var(--warm-bg);
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.mockup-ingredient .cost-panel-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warm-text-muted);
  margin-bottom: 4px;
}

.mockup-ingredient .cost-panel-value {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 400;
  color: var(--warm-text);
  letter-spacing: -0.5px;
}

.mockup-ingredient .cost-panel-detail {
  font-size: 12px;
  color: var(--warm-text-muted);
}

.mockup-ingredient .update-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-top: 1px solid var(--warm-border-light);
  background: var(--teal-soft);
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  transition: background var(--transition);
}

.mockup-ingredient .update-btn:hover {
  background: var(--teal-mid);
}

/* Impact card mockup */
.mockup-impact {
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.mockup-impact-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
}

.mockup-impact .direction-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-inner);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.mockup-impact .direction-icon--up {
  background: var(--fc-red-soft);
  color: var(--fc-red);
}

.mockup-impact .direction-icon--down {
  background: var(--fc-green-soft);
  color: var(--fc-green);
}

.mockup-impact h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
}

.mockup-impact .price-change {
  margin-top: 2px;
  font-size: 14px;
  color: var(--warm-text-sec);
}

.mockup-impact .impact-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--warm-text-muted);
}

/* --- Traffic Light Explainer --- */
.traffic-explainer {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.traffic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: var(--shadow-card);
  min-width: 260px;
}

.traffic-item .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.traffic-item .dot--green {
  background: var(--fc-green);
  box-shadow: 0 0 0 4px rgba(58, 138, 92, 0.09);
}

.traffic-item .dot--amber {
  background: var(--fc-amber);
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.09);
}

.traffic-item .dot--red {
  background: var(--fc-red);
  box-shadow: 0 0 0 4px rgba(196, 69, 58, 0.09);
}

.traffic-item-text h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.traffic-item-text p {
  font-size: 13px;
  color: var(--warm-text-muted);
  margin: 0;
}

/* --- Proof Stats --- */
.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.proof-stat {
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.proof-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--teal);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.proof-stat p {
  font-size: 0.95rem;
  color: var(--warm-text-sec);
  margin: 0;
  line-height: 1.5;
}

/* --- Testimonial --- */
.testimonial-card {
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 640px;
  margin: 32px auto 0;
  box-shadow: var(--shadow-card);
}

.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--warm-text-sec);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.85rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--warm-text);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--warm-text-muted);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  color: var(--warm-text);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.email-form input[type="email"]::placeholder {
  color: var(--warm-text-muted);
}

.email-form input[type="email"]:focus {
  border-color: var(--teal);
}

.form-helper {
  font-size: 0.8rem;
  color: var(--warm-text-muted);
}

.form-success {
  color: var(--fc-green);
  font-size: 0.9rem;
  margin-top: 12px;
  display: none;
}

.form-success.show {
  display: block;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--warm-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  color: var(--warm-text);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* --- Founder Photo --- */
.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--warm-border);
  object-fit: cover;
  display: block;
  margin-bottom: 24px;
}

/* --- Screenshot Placeholder --- */
.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-text-muted);
  font-size: 0.85rem;
  box-shadow: var(--shadow-card);
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--warm-border);
  margin: 0 auto;
}

/* --- Footer --- */
.site-footer {
  background: var(--warm-text);
  padding: 60px 0;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-left .logo {
  font-size: 1.3rem;
  color: var(--warm-bg);
}

.footer-left .logo span {
  color: var(--teal);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--warm-text-muted);
}

.footer-left a {
  font-size: 0.85rem;
  color: var(--warm-text-muted);
  transition: color var(--transition);
}

.footer-left a:hover {
  color: var(--teal);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--warm-text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--warm-bg);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--warm-text-muted);
}

/* --- Fade-in Animation --- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(2) {
  transition-delay: 80ms;
}

.fade-in:nth-child(3) {
  transition-delay: 160ms;
}

.fade-in:nth-child(4) {
  transition-delay: 240ms;
}

.fade-in:nth-child(5) {
  transition-delay: 320ms;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- Ripple Effect Visual --- */
.ripple-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
}

.ripple-node {
  padding: 16px 28px;
  background: var(--warm-surface);
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  color: var(--warm-text-sec);
  box-shadow: var(--shadow-card);
}

.ripple-node--accent {
  border-color: var(--teal);
  color: var(--teal);
}

.ripple-arrow {
  color: var(--warm-text-muted);
  font-size: 1.2rem;
}

/* --- About Layout --- */
.about-content {
  max-width: 640px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-section {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.about-sidebar {
  flex-shrink: 0;
}

/* --- Contact Layout --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.contact-info h3 {
  margin-bottom: 12px;
}

.contact-info p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.contact-email:hover {
  color: var(--teal-dark);
}

/* --- How It Works Steps --- */
.how-steps {
  counter-reset: step;
}

.how-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.how-step:nth-child(even) .how-step-visual {
  order: -1;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }

  .feature-row:nth-child(even) .feature-visual {
    order: 0;
  }

  .feature-text {
    text-align: center;
  }

  .feature-text .feature-detail {
    justify-content: center;
  }

  .proof-stats {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .traffic-explainer {
    flex-direction: column;
    align-items: center;
  }

  .about-section {
    flex-direction: column-reverse;
    gap: 40px;
    align-items: center;
    text-align: center;
  }

  .about-content {
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .how-step {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .how-step:nth-child(even) .how-step-visual {
    order: 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--warm-surface);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right var(--transition);
    border-left: 1px solid var(--warm-border);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    color: var(--warm-text);
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .phone-frame {
    width: 280px;
    height: 540px;
    border-radius: 30px;
    border-width: 6px;
  }

  .section {
    padding: 60px 0;
  }

  .email-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-left {
    align-items: center;
  }
}