/* ==========================================================================
   GramaType — Design tokens
   ========================================================================== */
:root {
  /* Color: derived from app icon + screenshots (deep forest green brand) */
  --bg:            #06100C;
  --bg-soft:       #081712;
  --bg-elevated:   #0B1D16;
  --surface:       rgba(244, 247, 245, 0.045);
  --surface-strong:rgba(244, 247, 245, 0.08);
  --border:        rgba(244, 247, 245, 0.10);
  --border-soft:   rgba(244, 247, 245, 0.06);

  --green-900: #0C2E20;
  --green-800: #123D2A;
  --green-700: #1A4E37;
  --green-600: #2D6A4F; /* brand */
  --green-500: #3F8563;
  --green-400: #52B788;
  --green-300: #74C69D;
  --green-200: #B7E4C7;

  --text-primary:   #F4F7F5;
  --text-secondary: #A9BAB1;
  --text-muted:     #6C8377;

  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(82, 183, 136, 0.15), 0 20px 60px -10px rgba(45, 106, 79, 0.35);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --font-display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --wrap: 1220px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-500);
  color: #06100C;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--green-300);
  outline-offset: 3px;
}

/* Background texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(82,183,136,0.10) 0%, rgba(82,183,136,0) 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s, border-color 0.3s;
  position: relative;
}
.btn-small { padding: 9px 16px; font-size: 0.85rem; }
.btn-large { padding: 16px 28px; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(180deg, var(--green-400), var(--green-600));
  color: #06140D;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 0 0 1px rgba(82,183,136,0.25), 0 26px 70px -10px rgba(45,106,79,0.5); }
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--surface-strong); border-color: rgba(244,247,245,0.2); transform: translateY(-2px); }

.apple-mark { width: 16px; height: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 16, 12, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border-soft);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-right: auto; }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 0.92rem; color: var(--text-secondary); position: relative; transition: color 0.25s; }
.main-nav a:hover { color: var(--text-primary); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--green-300); transition: width 0.3s var(--ease-out);
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(6,16,12,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border-soft); color: var(--text-secondary); }
.mobile-nav a:last-child { border-bottom: none; margin-top: 8px; text-align: center; color: #06140D; }
.mobile-nav.is-open { display: flex; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 168px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}
.hero-glow-1 {
  width: 700px; height: 700px;
  top: -260px; left: -160px;
  background: radial-gradient(circle, rgba(45,106,79,0.55), transparent 70%);
}
.hero-glow-2 {
  width: 600px; height: 600px;
  top: 40px; right: -220px;
  background: radial-gradient(circle, rgba(116,198,157,0.28), transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0,0); }
  100% { transform: translate(-40px, 50px); }
}

.particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.particle {
  position: absolute;
  width: var(--s, 4px); height: var(--s, 4px);
  background: rgba(183, 228, 199, 0.5);
  border-radius: 50%;
  top: var(--t, 50%); left: var(--l, 50%);
  animation: floaty var(--dur, 10s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.25; }
  50% { transform: translateY(-40px) translateX(12px); opacity: 0.7; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-200);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}
.eyebrow-icon { width: 18px; height: 18px; border-radius: 5px; }
.eyebrow-plain { padding: 7px 14px; }

.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--green-300);
  font-weight: 500;
}

.hero-sub {
  font-size: 1.14rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 30px;
}

/* Live correction demo — signature element */
.live-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  max-width: 520px;
  margin-bottom: 32px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}
.live-demo-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px; }
.live-demo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  min-height: 1.6em;
  color: var(--text-primary);
}
.live-demo-text .del { color: #E08A8A; text-decoration: line-through; opacity: 0.65; }
.live-demo-text .ins { color: var(--green-300); border-bottom: 1.5px solid var(--green-500); padding-bottom: 1px; }
.live-demo-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.8rem; color: var(--text-muted); }
.live-demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 0 rgba(82,183,136,0.6); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(82,183,136,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(82,183,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(82,183,136,0); }
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-meta { font-size: 0.85rem; color: var(--text-muted); }

/* Hero phone visual */
.hero-visual { display: flex; justify-content: center; position: relative; }
.phone-stage {
  position: relative;
  width: 300px;
  perspective: 1400px;
}
.phone-frame {
  border-radius: 44px;
  overflow: hidden;
  border: 1px solid rgba(244,247,245,0.14);
  box-shadow: var(--shadow-lg);
  background: var(--bg-elevated);
  aspect-ratio: 6 / 14.5;
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone-front {
  position: relative;
  z-index: 2;
  animation: floatPhone 6s ease-in-out infinite;
}
.phone-back {
  position: absolute;
  top: 46px; left: -108px;
  width: 260px;
  z-index: 1;
  opacity: 0.55;
  filter: saturate(0.85) brightness(0.8);
  transform: rotate(-9deg);
  animation: floatPhone 6s ease-in-out infinite 0.4s;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(0.6deg); }
}
.phone-back { animation-name: floatPhoneBack; }
@keyframes floatPhoneBack {
  0%, 100% { transform: translateY(0) rotate(-9deg); }
  50% { transform: translateY(-10px) rotate(-8deg); }
}

.float-chip {
  position: absolute;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
  animation: chipFloat 5s ease-in-out infinite;
  z-index: 3;
}
.chip-1 { top: 14%; right: -6%; color: var(--green-200); animation-delay: 0.2s; }
.chip-1 svg { fill: var(--green-400); }
.chip-2 { bottom: 18%; left: -14%; color: var(--text-secondary); animation-delay: 1s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
}
.scroll-cue span {
  display: block;
  width: 4px; height: 8px;
  background: var(--green-300);
  border-radius: 3px;
  margin: 6px auto 0;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-section { padding: 40px 0 100px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(116,198,157,0.35); }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; color: var(--green-300); margin-bottom: 6px; }
.stat-label { font-size: 0.88rem; color: var(--text-secondary); }

/* ==========================================================================
   Section head
   ========================================================================== */
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 14px 0 14px; }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; }

/* ==========================================================================
   Features
   ========================================================================== */
.features { padding: 40px 0 120px; }
.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 130px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { grid-template-columns: 1fr 0.85fr; }
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-text { order: 1; }

.feature-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  max-width: 250px;
  margin: 0 auto;
  aspect-ratio: 9 / 17.5;
}
.feature-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.feature-frame:hover { transform: perspective(1000px) rotateY(-4deg) rotateX(2deg) scale(1.02); box-shadow: 0 40px 90px -20px rgba(45,106,79,0.4); }

.feature-index {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--green-300);
  margin-bottom: 14px;
}
.feature-text h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.feature-text p { color: var(--text-secondary); font-size: 1.02rem; margin-bottom: 20px; }
.feature-points { display: flex; flex-direction: column; gap: 10px; }
.feature-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.94rem; color: var(--text-secondary);
}
.feature-points li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-400);
  flex-shrink: 0;
}

/* ==========================================================================
   Product tour
   ========================================================================== */
.tour { padding: 40px 0 120px; background: linear-gradient(180deg, transparent, var(--bg-soft) 20%, var(--bg-soft) 80%, transparent); }
.tour-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.tour-tabs { display: flex; flex-direction: column; gap: 10px; }
.tour-tab {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 5px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.tour-tab:hover { transform: translateX(4px); }
.tour-tab-title { font-weight: 600; color: var(--text-primary); font-size: 1rem; }
.tour-tab-desc { font-size: 0.86rem; color: var(--text-muted); }
.tour-tab.is-active {
  background: linear-gradient(120deg, rgba(45,106,79,0.35), rgba(82,183,136,0.08));
  border-color: rgba(116,198,157,0.4);
}
.tour-tab.is-active .tour-tab-title { color: var(--green-200); }

.tour-stage {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tour-panel {
  position: absolute;
  width: 260px;
  aspect-ratio: 9 / 17.5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.94) translateY(10px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  pointer-events: none;
}
.tour-panel img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tour-panel.is-active { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }

/* ==========================================================================
   How it works
   ========================================================================== */
.how { padding: 40px 0 120px; }
.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}
.how-step { text-align: center; }
.how-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-width: 220px;
  aspect-ratio: 9 / 17.5;
  margin: 0 auto 22px;
  transition: transform 0.4s var(--ease-out);
}
.how-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.how-step:hover .how-media { transform: translateY(-6px); }
.how-label { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-primary); margin-bottom: 8px; }
.how-step p { color: var(--text-secondary); font-size: 0.92rem; max-width: 240px; margin: 0 auto; }
.how-connector {
  align-self: center;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--green-500), var(--border));
  margin-top: 90px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { padding: 40px 0 130px; }
.gallery-track-wrap { position: relative; }
.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 24px 30px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 auto;
  width: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  box-shadow: var(--shadow-md);
}
.gallery-item:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-lg); }

.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  color: var(--text-primary);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background 0.3s, transform 0.3s;
}
.gallery-nav:hover { background: var(--green-600); transform: translateY(-50%) scale(1.06); }
.gallery-prev { left: 4px; }
.gallery-next { right: 4px; }

/* ==========================================================================
   Compare
   ========================================================================== */
.compare { padding: 40px 0 130px; }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-card {
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  border: 1px solid var(--border);
  position: relative;
}
.compare-old { background: var(--surface); }
.compare-old ul li { color: var(--text-muted); }
.compare-new {
  background: linear-gradient(160deg, rgba(45,106,79,0.4), rgba(11,29,22,0.6));
  border-color: rgba(116,198,157,0.35);
  box-shadow: var(--shadow-glow);
}
.compare-badge {
  position: absolute; top: -14px; right: 32px;
  background: var(--green-400);
  color: #06140D;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.compare-title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 24px; }
.compare-card ul { display: flex; flex-direction: column; gap: 16px; }
.compare-card li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; }
.ico { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; margin-top: 1px; }
.ico-x { background: rgba(224,138,138,0.14); color: #E08A8A; }
.ico-check { background: rgba(82,183,136,0.18); color: var(--green-300); }
.compare-new li { color: var(--text-primary); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding: 40px 0 130px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-out);
}
.testi-card:hover { transform: translateY(-6px); }
.testi-stars { color: var(--green-400); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-card p { color: var(--text-secondary); font-size: 0.98rem; margin-bottom: 22px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-400), var(--green-700));
  color: #06140D;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
}
.testi-who strong { display: block; font-size: 0.92rem; }
.testi-who span { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.final-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(45,106,79,0.5), transparent 65%);
  z-index: -1;
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.final-cta-inner { display: flex; flex-direction: column; align-items: center; }
.final-icon { width: 74px; height: 74px; border-radius: 20px; margin-bottom: 26px; box-shadow: var(--shadow-lg); }
.final-cta h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 14px; }
.final-cta p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 34px; }
.final-meta { margin-top: 18px; font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border-soft); padding: 70px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; }
.footer-brand { max-width: 280px; }
.footer-brand > span { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-left: 8px; }
.footer-brand .brand-icon { display: inline-block; vertical-align: middle; }
.footer-brand p { margin-top: 14px; color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 16px; font-family: var(--font-body); }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 10, 8, 0.94);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 82vh; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-strong); border: 1px solid var(--border); color: var(--text-primary);
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--surface-strong); border: 1px solid var(--border); color: var(--text-primary);
  font-size: 1.6rem;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ==========================================================================
   Demo modal
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,10,8,0.85); backdrop-filter: blur(8px); }
.modal-panel {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 620px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-panel h3 { font-size: 1.5rem; margin-bottom: 20px; }
.modal-demo-shots { display: flex; gap: 14px; margin-bottom: 20px; }
.modal-demo-shots img { border-radius: var(--radius-md); border: 1px solid var(--border); aspect-ratio: 9 / 17.5; object-fit: cover; object-position: top center; width: 100%; }
.modal-panel p { color: var(--text-secondary); font-size: 0.95rem; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-stage { height: 460px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero-visual { margin-top: 40px; }
  .phone-stage { width: 260px; }
  .phone-back { left: -70px; width: 220px; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-text { order: initial; }
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .how-connector { display: none; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero-title { font-size: 2.5rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-head { margin-bottom: 44px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; flex-wrap: wrap; }
  .modal-demo-shots { flex-direction: column; }
  .modal-panel { padding: 26px; }
}
