/* ==========================================================================
   Nookaly — Autumn Editorial Design System
   ========================================================================== */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary — Forest Green */
  --green: #3A6B4A;
  --green-dark: #2D5A3D;
  --green-light: #4D8A60;
  --green-pale: #E4EFE6;

  /* Accent — Rich Amber */
  --amber: #D08A1A;
  --amber-dark: #B07515;
  --amber-light: #FDF5E0;
  --amber-glow: rgba(208, 138, 26, 0.15);

  /* Backgrounds — Warm Cream */
  --cream: #F5F0E2;
  --cream-light: #FAF8F2;
  --cream-dark: #EBE4D2;

  /* Text — Bark Brown */
  --bark: #2A1F14;
  --bark-light: #5C4A38;
  --bark-muted: #8A7A64;

  /* Borders */
  --border: #D4C8A8;
  --border-light: #E8E0CC;

  /* Semantic */
  --danger: #A65040;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(42, 31, 20, 0.05);
  --shadow-sm: 0 2px 6px rgba(42, 31, 20, 0.08);
  --shadow-md: 0 4px 16px rgba(42, 31, 20, 0.10);
  --shadow-lg: 0 12px 32px rgba(42, 31, 20, 0.12);
  --shadow-xl: 0 24px 48px rgba(42, 31, 20, 0.16);

  /* Typography */
  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ---------- 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);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bark);
  background-color: var(--cream);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--bark);
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem); }
h2 { font-size: clamp(2rem, 3vw + 0.5rem, 3rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--bark-light);
  line-height: 1.7;
}

.text-muted {
  color: var(--bark-muted);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
}

.section-heading {
  margin-bottom: var(--space-lg);
}

.section-subtext {
  font-size: 1.125rem;
  max-width: 600px;
  color: var(--bark-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(58, 107, 74, 0.3);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 107, 74, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--bark);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn-amber {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 2px 8px rgba(208, 138, 26, 0.3);
}

.btn-amber:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 138, 26, 0.35);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar.scrolled {
  background: rgba(245, 240, 226, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bark);
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bark-light);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a:hover {
  color: var(--bark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-cta {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Mobile menu button */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--cream);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border-light);
}

.nav-mobile.active {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--bark-light);
  border-bottom: 1px solid var(--border-light);
}

.nav-mobile .btn {
  width: 100%;
  margin-top: var(--space-lg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(228, 239, 230, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(253, 245, 224, 0.6) 0%, transparent 70%),
    var(--cream);
}

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

.hero-content {
  padding: var(--space-3xl) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 0.875rem;
  background: var(--green-pale);
  border: 1px solid rgba(58, 107, 74, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: var(--space-xl);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

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

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--amber-glow);
  border-radius: 4px;
  z-index: -1;
  background: linear-gradient(90deg, var(--amber-glow), rgba(208, 138, 26, 0.25));
}

.hero-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--bark-light);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 0.8125rem;
  color: var(--bark-muted);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.hero-image-frame img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-xl) + 8px);
  border: 2px solid var(--border-light);
  pointer-events: none;
}

/* Floating insight cards */
.hero-float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  animation: float 4s ease-in-out infinite;
  z-index: 3;
}

.hero-float-card.card-score {
  top: 8%;
  right: -16px;
  animation-delay: 0s;
}

.hero-float-card.card-commute {
  bottom: 16%;
  left: -24px;
  animation-delay: 1.5s;
}

.float-card-label {
  color: var(--bark-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.float-card-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green);
}

.float-card-value.amber {
  color: var(--amber);
}

.float-card-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.float-card-sub {
  font-size: 0.75rem;
  color: var(--bark-muted);
}

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

/* Decorative leaves */
.hero-leaves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.leaf {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.15;
  animation: leaf-fall linear infinite;
}

.leaf::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--amber);
  border-radius: 0 70% 70% 70%;
  transform: rotate(-45deg);
}

.leaf:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; width: 16px; height: 16px; }
.leaf:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 3s; width: 12px; height: 12px; opacity: 0.1; }
.leaf:nth-child(3) { left: 45%; animation-duration: 11s; animation-delay: 6s; width: 18px; height: 18px; }
.leaf:nth-child(4) { left: 65%; animation-duration: 14s; animation-delay: 2s; width: 14px; height: 14px; opacity: 0.12; }
.leaf:nth-child(5) { left: 80%; animation-duration: 13s; animation-delay: 5s; width: 16px; height: 16px; }
.leaf:nth-child(6) { left: 92%; animation-duration: 16s; animation-delay: 1s; width: 10px; height: 10px; opacity: 0.1; }

@keyframes leaf-fall {
  0% {
    top: -5%;
    transform: rotate(0deg) translateX(0);
  }
  25% {
    transform: rotate(90deg) translateX(30px);
  }
  50% {
    transform: rotate(180deg) translateX(-20px);
  }
  75% {
    transform: rotate(270deg) translateX(25px);
  }
  100% {
    top: 105%;
    transform: rotate(360deg) translateX(0);
  }
}

/* ---------- Platforms Strip ---------- */
.platforms {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--cream-light);
}

.platforms .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.platforms-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bark-muted);
}

.platform-badges {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s;
}

.platform-badge:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.platform-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.platform-badge .dot.zoopla {
  background: #c285ff;
}

.platform-badge .dot.rightmove {
  background: #4ADE80;
}

/* ---------- Features ---------- */
.features {
  background: var(--cream);
  position: relative;
}

.features-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-4xl);
}

.features-header .section-label {
  justify-content: center;
}

.features-header .section-subtext {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  position: relative;
  background: var(--cream-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--amber));
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  background: var(--green-pale);
  color: var(--green);
}

.feature-icon.amber {
  background: var(--amber-light);
  color: var(--amber);
}

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

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--bark-muted);
  line-height: 1.65;
}

/* ---------- How It Works ---------- */
.how-it-works {
  background: var(--bark);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(58, 107, 74, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(208, 138, 26, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.how-it-works .container {
  position: relative;
  z-index: 1;
}

.how-it-works .section-label {
  color: var(--amber);
}

.how-it-works .section-heading {
  color: var(--cream);
}

.how-it-works .section-subtext {
  color: var(--bark-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-4xl);
  position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(212, 200, 168, 0.3) 0,
    rgba(212, 200, 168, 0.3) 8px,
    transparent 8px,
    transparent 16px
  );
}

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

.step-number {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(58, 107, 74, 0.15);
  border: 2px solid var(--green);
  margin: 0 auto var(--space-xl);
  position: relative;
  z-index: 1;
}

.step-number span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-light);
}

.step-image {
  width: 100%;
  max-width: 280px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.step-image img {
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.step:hover .step-image img {
  transform: scale(1.04);
}

.step h3 {
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 0.9375rem;
  color: var(--bark-muted);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---------- Showcase ---------- */
.showcase {
  background: var(--cream);
  overflow: hidden;
}

.showcase-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-4xl);
}

.showcase-header .section-label {
  justify-content: center;
}

.showcase-scroll {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-xl);
}

.showcase-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-card:hover img {
  transform: scale(1.06);
}

.showcase-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(0deg, rgba(42, 31, 20, 0.75) 0%, transparent 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- AI Insights Preview ---------- */
.insights {
  background: var(--green);
  position: relative;
  overflow: hidden;
}

.insights::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 20%, rgba(208, 138, 26, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.insights .container {
  position: relative;
  z-index: 1;
}

.insights .section-label {
  color: var(--amber-light);
}

.insights .section-heading {
  color: #fff;
}

.insights .section-subtext {
  color: rgba(255, 255, 255, 0.65);
}

.insights-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  margin-top: var(--space-3xl);
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.insight-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.insight-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--amber-light);
}

.insight-item-icon svg {
  width: 20px;
  height: 20px;
}

.insight-item h4 {
  color: #fff;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 600;
}

.insight-item p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* Screenshot showcase tabs */
.screenshot-showcase {
  max-width: 500px;
  margin-left: auto;
}

.screenshot-tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.screenshot-tab {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
}

.screenshot-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

.screenshot-tab.active {
  color: var(--bark);
  background: var(--amber-light);
  border-color: var(--amber);
}

.screenshot-panels {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.screenshot-panel {
  display: none;
}

.screenshot-panel.active {
  display: block;
}

.screenshot-panel img {
  width: 100%;
  display: block;
}

.screenshot-caption {
  padding: var(--space-md) var(--space-lg);
  background: var(--cream-light);
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--bark-light);
  line-height: 1.5;
}

.screenshot-caption strong {
  color: var(--bark);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 .highlight {
  color: var(--amber);
}

.cta-section .section-subtext {
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.cta-note {
  font-size: 0.8125rem;
  color: var(--bark-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bark);
  padding: var(--space-4xl) 0 var(--space-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 200, 168, 0.2), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-4xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--bark-muted);
  line-height: 1.65;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--bark-muted);
  padding: var(--space-xs) 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(212, 200, 168, 0.1);
  font-size: 0.8125rem;
  color: var(--bark-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-bottom-links a:hover {
  color: var(--cream);
}

/* ---------- Legal Pages ---------- */
.legal-page {
  padding-top: calc(var(--nav-height) + var(--space-4xl));
  padding-bottom: var(--space-5xl);
  min-height: 100vh;
}

.legal-header {
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-light);
}

.legal-header h1 {
  font-size: clamp(2rem, 3vw + 0.5rem, 2.75rem);
  margin-bottom: var(--space-md);
}

.legal-header .last-updated {
  font-size: 0.875rem;
  color: var(--bark-muted);
}

.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  color: var(--bark);
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--bark);
}

.legal-content p {
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--bark-light);
  margin-bottom: var(--space-xs);
}

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--green-dark);
}

.legal-content strong {
  color: var(--bark);
  font-weight: 600;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-content {
    text-align: center;
    padding-bottom: 0;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-float-card.card-score {
    right: -8px;
  }

  .hero-float-card.card-commute {
    left: -8px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .steps-grid::before {
    display: none;
  }

  .showcase-scroll {
    grid-template-columns: repeat(3, 1fr);
  }

  .insights-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .screenshot-showcase {
    margin: 0 auto;
    max-width: 500px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-4xl) 0;
  }

  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
  }

  .hero-float-card {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .step-image {
    max-width: 240px;
  }

  .showcase-scroll {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .platform-badges {
    flex-direction: column;
    gap: var(--space-md);
  }

  .showcase-scroll {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
