/* ──────────── THEME VARIABLES ──────────── */
/* Mapped directly from Flutter LightSanchoyThemeData & DarkSanchoyThemeData */

:root {
  /* Light theme — LightSanchoyThemeData */
  --bg: #E4F0F5;              /* slate900  */
  --card: #F7F9FB;             /* neutral1000 — cardBg */
  --text: #16181B;             /* neutral100 — onBg */
  --text-secondary: #545C66;   /* neutral500 */
  --muted: #7A828C;            /* neutral600 */
  --accent: #4F9B83;           /* sage500 */
  --accent-soft: #E8F6F1;      /* sage900 */
  --primary: #2C5164;          /* slate400 */
  --line: #CDD2D8;             /* neutral800 */
  --btn-bg: #162833;           /* slate200 — button primaryBg */
  --btn-fg: #F2F8FB;           /* slate1000 — button primaryFg */
  --btn-secondary: #3E6B82;    /* slate500 — button secondaryFg */
  --shadow-sm: rgba(22,24,27,0.06);
  --shadow: rgba(22,24,27,0.10);
  --shadow-lg: rgba(22,24,27,0.14);
  --clay: #B38B3C;             /* clay500 */
  --indigo: #6F69B8;           /* indigo500 */
  --nav-bg: rgba(228,240,245,0.82);
}

/* Dark theme — DarkSanchoyThemeData */
body.dark {
  --bg: #050A0F;               /* slate000 */
  --card: #1E2125;             /* neutral200 — cardBg */
  --text: #A3AAB4;             /* neutral700 — onBg */
  --text-secondary: #7A828C;   /* neutral600 */
  --muted: #545C66;            /* neutral500 */
  --accent: #6CB59D;           /* sage600 */
  --accent-soft: #1C3A30;      /* sage200 */
  --primary: #7FA6B8;          /* slate700 */
  --line: #3A4048;             /* neutral400 */
  --btn-bg: #3E6B82;           /* slate500 — button primaryBg */
  --btn-fg: #F2F8FB;           /* slate1000 — button primaryFg */
  --btn-secondary: #5B879C;    /* slate600 — button secondaryFg */
  --shadow-sm: rgba(0,0,0,0.12);
  --shadow: rgba(0,0,0,0.22);
  --shadow-lg: rgba(0,0,0,0.32);
  --clay: #C9A45A;             /* clay600 */
  --indigo: #8A84CE;           /* indigo600 */
  --nav-bg: rgba(5,10,15,0.88);
}

/* ──────────── BASE ──────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Notebook ledger-line pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 44px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

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

/* ──────────── NAVBAR ──────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6%;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left img { height: 30px; }

.nav-brand {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-right a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-right a:hover { color: var(--text); }

.theme-toggle {
  cursor: pointer;
  font-size: 18px;
  background: none;
  border: none;
  padding: 4px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.theme-toggle:hover { transform: rotate(25deg); }

/* ──────────── HERO ──────────── */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 6% 120px;
  gap: 56px;
  min-height: 88vh;
}

.hero-left {
  max-width: 520px;
  z-index: 1;
}

/* Status badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 30px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 430px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ──────────── BUTTONS ──────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 2px 8px var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-lg);
}

.btn-secondary {
  color: var(--btn-secondary);
  background: transparent;
  padding: 14px 14px;
}
.btn-secondary:hover { color: var(--text); }

.btn-secondary .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-secondary:hover .arrow { transform: translateX(4px); }

/* ──────────── PHONE FRAME ──────────── */

.hero-right { z-index: 1; }

.phone-frame {
  position: relative;
}

.phone-frame img {
  width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow-lg);
  border: 1px solid var(--line);
}

.phone-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.07;
  border-radius: 50%;
  z-index: -1;
}

/* ──────────── SECTION DIVIDER ──────────── */

.section-divider {
  width: 100%;
  max-width: 200px;
  height: 1px;
  background: var(--line);
  margin: 0 auto;
  opacity: 0.6;
}

/* ──────────── SECTION BASICS ──────────── */

.section {
  padding: 100px 6%;
  position: relative;
}

.section-label {
  display: flex;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 72px;
  line-height: 1.72;
}

/* ──────────── FEATURE ROWS ──────────── */

.features-wrap {
  max-width: 1060px;
  margin: 0 auto;
}

.feature {
  display: flex;
  align-items: center;
  gap: 72px;
  margin-bottom: 96px;
}
.feature:last-child { margin-bottom: 0; }

.feature.reverse { flex-direction: row-reverse; }

.feature-image {
  flex-shrink: 0;
}

.feature-image img {
  width: 270px;
  border-radius: 12px;
  box-shadow: 0 20px 60px var(--shadow-lg);
  border: 1px solid var(--line);
  transition: transform 0.4s ease;
}
.feature-image img:hover {
  transform: translateY(-6px);
}

.feature-text { max-width: 400px; }

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--card);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.feature-text h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.72;
}

/* ──────────── CAROUSEL ──────────── */

.carousel-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}

.carousel-card {
  background: var(--card);
  border-radius: 24px;
  padding: 32px 16px 28px;
  position: relative;
  overflow: visible;
}

.carousel-items {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.carousel-item {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.carousel-item img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  -webkit-user-drag: none;
}

.carousel-item p {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  background: var(--bg);
  padding: 14px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* ──────────── PHILOSOPHY ──────────── */

.philosophy {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.philosophy h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.philosophy-rule {
  width: 44px; height: 2px;
  background: var(--accent);
  margin: 28px auto;
  border-radius: 1px;
}

.philosophy p {
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.8;
  margin-bottom: 6px;
}

.philosophy .emphasis {
  color: var(--accent);
  font-weight: 600;
}

/* ──────────── EARLY ACCESS CTA ──────────── */

.early {
  text-align: center;
  background: var(--card);
  padding: 72px 48px;
  border-radius: 20px;
  border: 1px solid var(--line);
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.early::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--indigo), var(--clay));
  border-radius: 20px 20px 0 0;
}

.early h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.early p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.65;
}

/* ──────────── FOOTER ──────────── */

.footer {
  text-align: center;
  padding: 56px 6% 48px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer img {
  width: 32px;
  margin: 0 auto 10px;
  opacity: 0.6;
}

.footer p { margin-bottom: 6px; }

.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: var(--text); }

/* ──────────── ANIMATIONS ──────────── */

.reveal {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible,
.reveal-up.visible {
  opacity: 1;
  transform: none;
}

.stagger > *:nth-child(1) { transition-delay: 0ms;   }
.stagger > *:nth-child(2) { transition-delay: 80ms;  }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }

/* ──────────── THEME-AWARE SCREENSHOTS ──────────── */

.screenshot-light { display: block !important; }
.screenshot-dark  { display: none !important; }

body.dark .screenshot-light { display: none !important; }
body.dark .screenshot-dark  { display: block !important; }

/* ──────────── RESPONSIVE — Tablet ──────────── */

@media (max-width: 1024px) {
  .hero {
    padding: 80px 6% 96px;
    gap: 40px;
  }
  .hero h1 { font-size: 46px; }
  .phone-frame img { width: 260px; }
  .feature { gap: 48px; }
  .feature-image img { width: 240px; }
  .section-title { font-size: 34px; }
}

/* ──────────── RESPONSIVE — Mobile ──────────── */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 56px 6% 72px;
    min-height: auto;
  }
  .hero-left { max-width: 100%; }
  .hero p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero h1 { font-size: 38px; }
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  .phone-frame img { width: 230px; }
  .phone-glow { width: 280px; height: 280px; }
  .feature,
  .feature.reverse {
    flex-direction: column;
    text-align: center;
    gap: 28px;
    margin-bottom: 72px;
  }
  .feature-text { max-width: 100%; }
  .carousel-card { padding: 24px 8px 20px; }
  .section { padding: 72px 6%; }
  .section-title { font-size: 30px; }
  .section-subtitle { margin-bottom: 48px; }
  .early { padding: 48px 24px; }
  .nav-right a { display: none; }
  .nav-right   { gap: 14px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 26px; }
  .feature-text h3 { font-size: 22px; }
  .philosophy h2 { font-size: 28px; }
  .early h2 { font-size: 24px; }
  .btn { padding: 12px 22px; font-size: 14px; }
}
