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

:root {
  --bg: #ffffff;
  --bg-card: #faf8f5;
  --bg-card-hover: #f3efe9;
  --border: #e5ddd2;
  --border-hover: #d4c8b8;
  --text: #2d1f14;
  --text-muted: #6b5a4a;
  --accent: #c8862a;
  --accent-bright: #a86d1e;
  --accent-dim: #fdf3e4;
  --gradient-1: #d4943a;
  --gradient-2: #b87325;
  --gradient-3: #e5a838;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-bright); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo {
  overflow: hidden;
}

.logo img {
  height: 160px;
  width: auto;
  margin: -56px 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

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

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 134, 42, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 134, 42, 0.4);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text);
}

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(200, 134, 42, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(200, 134, 42, 0.08);
  border: 1px solid rgba(200, 134, 42, 0.2);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.badge svg { width: 14px; height: 14px; }

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

h1 .gradient {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.hero-note svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ── App Preview ── */
.preview {
  margin: 60px auto 0;
  max-width: 960px;
  position: relative;
}

/* ── Problem Banner ── */
.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-item {
  text-align: center;
  padding: 32px 24px;
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(200, 134, 42, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.problem-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.problem-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .problems {
    grid-template-columns: 1fr;
  }
}

/* ── Crop Section ── */
.crop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eo-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.eo-page {
  width: 140px;
  aspect-ratio: 3/4;
  background: #f5f0e8;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.eo-label {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.eo-lines {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eo-line {
  height: 2.5px;
  border-radius: 1px;
  background: rgba(0,0,0,0.07);
}

.eo-line:nth-child(odd) { width: 90%; }
.eo-line:nth-child(even) { width: 70%; }

.eo-crop {
  position: absolute;
  border: 2px dashed;
  border-radius: 2px;
  pointer-events: none;
}

.eo-crop--even {
  inset: 10px 20px 10px 10px;
  border-color: var(--accent);
}

.eo-crop--odd {
  inset: 10px 10px 10px 20px;
  border-color: #6b5a30;
}

.eo-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: center;
}

.eo-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.eo-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.eo-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.crop-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.crop-feature-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.crop-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 768px) {
  .crop-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── App Screenshots ── */
.app-screenshot {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  display: block;
  cursor: zoom-in;
}

/* ── Approach Cards ── */
.approach-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.approach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}

.approach-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
}

.approach-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.approach-dot--ml { background: var(--accent); }
.approach-dot--phys { background: #6b5a30; }
.approach-dot--blend { background: linear-gradient(135deg, var(--accent), #6b5a30); }

.approach-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.approach-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(200, 134, 42, 0.1);
  color: var(--accent);
}

.approach-badge--warm {
  background: rgba(107, 90, 48, 0.1);
  color: #6b5a30;
}

.approach-badge--accent {
  background: rgba(200, 134, 42, 0.15);
  color: var(--accent-bright);
}

/* ── Sections ── */
section { padding: 100px 0; }

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

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.section-center { text-align: center; }
.section-center .section-desc { margin-left: auto; margin-right: auto; }

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.fi-blue { background: rgba(200, 134, 42, 0.1); color: #b87325; }
.fi-purple { background: rgba(139, 90, 43, 0.1); color: #8b5a2b; }
.fi-cyan { background: rgba(180, 120, 50, 0.1); color: #a06828; }
.fi-green { background: rgba(120, 100, 60, 0.1); color: #6b5a30; }
.fi-amber { background: rgba(212, 148, 58, 0.1); color: #c8862a; }
.fi-rose { background: rgba(160, 90, 50, 0.1); color: #a05a32; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── How It Works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

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

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(200, 134, 42, 0.12), rgba(184, 115, 37, 0.12));
  border: 1px solid rgba(200, 134, 42, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  display: none;
}

@media (min-width: 769px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 28px;
    left: calc(50% + 44px);
    width: calc(100% - 56px);
    height: 1px;
    background: linear-gradient(90deg, rgba(200,134,42,0.3), rgba(184,115,37,0.1));
  }

  .step:last-child .step-connector { display: none; }
}

/* ── Audience ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.audience-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.audience-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(200, 134, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.audience-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.audience-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Search Queries ── */
.queries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.query-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.query-q {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1.5;
}

.query-q::before {
  content: '🔍 ';
}

.query-a {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .queries-grid {
    grid-template-columns: 1fr;
  }
}

/* ── CTA ── */
.cta-section {
  padding: 80px 0 120px;
}

.cta-box {
  text-align: center;
  padding: 64px 40px;
  background:
    linear-gradient(135deg, rgba(200, 134, 42, 0.06), rgba(184, 115, 37, 0.06));
  border: 1px solid rgba(200, 134, 42, 0.15);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(200, 134, 42, 0.08), transparent 60%);
}

.cta-box > * { position: relative; }

.cta-box h2 { margin-bottom: 12px; }
.cta-box p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

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

  h1 { font-size: 2.4rem; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.animate-d1 { animation-delay: 0.1s; }
.animate-d2 { animation-delay: 0.2s; }
.animate-d3 { animation-delay: 0.3s; }
.animate-d4 { animation-delay: 0.4s; }
.animate-d5 { animation-delay: 0.5s; }

/* ── Scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Misc ── */
::selection {
  background: rgba(200, 134, 42, 0.2);
}

/* ── Lightbox ── */
body.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 16px;
  transform: scale(0.97);
  transition: transform 0.22s ease;
  cursor: default;
}

.lightbox.open img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(0, 0, 0, 0.12); }
h3.query-q { margin-top: 0; }
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-bright, var(--accent));
  text-decoration: none;
}
.card-link:hover { color: var(--accent); text-decoration: underline; }

/* ── One-off rules (were style="" attributes; the CSP allows no inline styles) ── */
.nav-cta { padding: 8px 18px; }
.hero-screenshot {
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 20px 60px rgba(0,0,0,0.08), 0 0 100px rgba(200,134,42,0.06);
}
.problems-section { padding: 60px 0 0; }
.section-tint { background: linear-gradient(180deg, var(--bg) 0%, rgba(200, 134, 42, 0.03) 50%, var(--bg) 100%); }
.eo-swatch--even { background: var(--accent); }
.eo-swatch--odd { background: #6b5a30; }
.crop-screenshot { margin-top: 32px; }
.screenshot-block { max-width: 960px; margin: 0 auto 56px; }
.screenshot-block--after { margin: 48px auto 0; }
.screenshot-centered { display: block; margin: 0 auto; }
.audience-logo { height: 120px; margin: 0 auto 32px; display: block; opacity: 0.85; }
.cta-avatar { width: 96px; height: 96px; margin: 0 auto 24px; display: block; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-soon { padding: 14px 28px; font-size: 1rem; pointer-events: none; opacity: 0.85; }
