/* ============ TOKENS ============ */
:root {
  --gold: #F2AA24;
  --gold-dark: #d9910f;
  --stone: #B7A99A;
  --espresso: #504538;
  --signal: #D90000;
  --paper: #F2F1EF;
  --white: #FFFFFF;

  --text-primary: #362e26;
  --text-secondary: #6b5f54;
  --text-muted: #8f8378;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-soft: 0 10px 30px rgba(80, 69, 56, 0.08);
  --shadow-card: 0 16px 40px rgba(80, 69, 56, 0.10);
  --shadow-cta: 0 10px 34px rgba(242, 170, 36, 0.38);

  --container-w: 1180px;

  --google-form: #7372fe;
  --google-form-dark: #5746e3;
}

[data-theme="dark"] {
  --paper: #201b16;
  --white: #2b241d;
  --text-primary: #f4efe9;
  --text-secondary: #cfc2b4;
  --text-muted: #a3937f;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-card: 0 16px 40px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

.logo {
  height: 36px; 
  border-radius: 10px; 
  object-fit: cover; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ============ GLASSMORPHISM ============ */
.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-card);
}
[data-theme="dark"] .glass {
  background: rgba(43, 36, 29, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ============ LIGHTBOX  ============ */
.step-card img{
  cursor : zoom-in;
}

.image-lightbox{
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.image-lightbox.active{
  display: flex;
}

.image-lightbox img{
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 18px;
  object-fit: contain;
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 42px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--google-form), var(--google-form-dark));
  color: #ffffff;
  box-shadow: var(--google-form-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(133, 37, 211, 0.45);; }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid 0 8px 36px rgba(133, 37, 211, 0.45);;
}
.btn-ghost:hover { border-color: var(--espresso); background: 0 8px 36px rgba(133, 37, 211, 0.45);; }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }
.btn-large { padding: 18px 38px; font-size: 1.05rem; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo-slot {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, rgba(80,69,56,0.08), rgba(80,69,56,0.08) 4px, transparent 4px, transparent 8px);
  border: 1.5px dashed rgba(80,69,56,0.25);
  flex-shrink: 0;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--espresso); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 4px; background: rgba(80,69,56,0.06); padding: 4px; border-radius: 999px; }
.lang-btn { padding: 6px 12px; font-size: 0.78rem; font-weight: 700; border-radius: 999px; color: var(--text-muted); transition: all 0.2s; }
.lang-btn.active { background: var(--white); color: var(--espresso); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(80,69,56,0.06); color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(242,170,36,0.16); color: var(--gold-dark); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.hamburger span { display: block; height: 2px; background: var(--text-primary); border-radius: 2px; }

.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
  background: var(--white); z-index: 200; padding: 100px 30px 30px;
  display: flex; flex-direction: column; gap: 26px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  transition: right 0.35s ease, background 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a { font-size: 1.05rem; font-weight: 600; }
.mobile-menu-utils {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 20px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(80,69,56,0.12);
}
.mobile-menu-utils .lang-switch { display: flex; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 170px 0 30px;
  overflow: hidden;
}
.hero-grid-lines { position: absolute; inset: 0; display: flex; justify-content: space-between; max-width: var(--container-w); margin: 0 auto; padding: 0 28px; pointer-events: none; opacity: 0.5; }
.hero-grid-lines span { width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(80,69,56,0.08), transparent); }

.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; position: relative; z-index: 1; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 22px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242,170,36,0.2); }

.hero-title { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.08; font-weight: 700; margin-bottom: 22px; }
.hero-title .line { display: block; }
.accent-text { color: var(--gold-dark); position: relative; }

.hero-sub { font-size: 1.08rem; color: var(--text-secondary); line-height: 1.65; max-width: 520px; margin-bottom: 34px; }

.hero-ctas { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }

.hero-trust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.trust-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-chip { background: rgba(80,69,56,0.06); padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; }

/* Hero visual */
.hero-visual { position: relative; height: 480px; }

.chat-card {
  position: absolute; top: 10px; left: 0; width: 100%; max-width: 400px;
  border-radius: var(--radius-lg);
  padding: 22px;
  animation: floatY 6s ease-in-out infinite;
}
.chat-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.25); }
.chat-card-title { font-weight: 700; font-size: 0.95rem; }
.chat-live-badge { margin-left: auto; font-size: 0.7rem; font-weight: 700; background: rgba(217,0,0,0.1); color: var(--signal); padding: 3px 10px; border-radius: 999px; }

.chat-body { display: flex; flex-direction: column; gap: 12px; min-height: 96px; }
.chat-msg { padding: 12px 16px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; max-width: 90%; }
.chat-msg.user { align-self: flex-end; background: var(--espresso); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.bot { align-self: flex-start; background: rgba(80,69,56,0.07); color: var(--text-primary); border-bottom-left-radius: 4px; }
.caret { display: inline-block; width: 2px; height: 14px; background: var(--gold-dark); margin-left: 2px; vertical-align: middle; animation: blink 0.9s steps(2) infinite; }

.chat-suggest-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chat-suggest {
  font-size: 0.75rem; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: rgba(242,170,36,0.14); color: var(--gold-dark);
  border: 1px solid rgba(242,170,36,0.3);
  transition: background 0.2s, transform 0.2s;
}
.chat-suggest:hover { background: rgba(242,170,36,0.28); transform: translateY(-1px); }
.chat-suggest.active { background: var(--gold); color: #2c2113; }

.float-card {
  position: absolute; border-radius: var(--radius-md); padding: 16px 20px;
  display: flex; flex-direction: column; gap: 4px;
  animation: floatY 7s ease-in-out infinite;
}
.float-card-top { top: -6px; right: 0; width: 168px; color: var(--gold-dark); animation-delay: 0.4s; }
.float-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.float-value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--text-primary); }
.float-spark { width: 100%; height: 24px; color: var(--gold); margin-top: 2px; }

.float-card-bottom { bottom: 30px; right: 10px; flex-direction: row; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); animation-delay: 1.2s; }
.float-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ============ SECTIONS ============ */
.section { padding: 30px 0; }
.section-tinted { background: rgba(183,169,154,0.12); }

.section-eyebrow { font-size: 0.82rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; text-align: center; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; text-align: center; margin-bottom: 20px; }
.section-lead { text-align: center; color: var(--text-secondary); max-width: 560px; margin: 0 auto 50px; font-size: 1.02rem; }

/* Benefits */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.benefit-card {
  background: var(--white); border-radius: var(--radius-md); padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.benefit-card-large { grid-column: span 1; background: linear-gradient(150deg, var(--espresso), #3d342a); color: #fff; }
.benefit-card-large p { color: rgba(255,255,255,0.75); }
.benefit-card-large .benefit-icon { background: rgba(255,255,255,0.12); color: var(--gold); }

.benefit-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(242,170,36,0.14); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.benefit-icon svg { width: 22px; height: 22px; }
.benefit-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.benefit-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* Demo visual */
.demo-visual {
  border-radius: var(--radius-lg);
  padding: 14px;
  margin: 0 auto 40px;
  max-width: 920px;
  overflow: hidden;
}
.demo-image {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
  display: block;
}

/* Question grid */
.question-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
.question-chip {
  background: var(--white); border: 1px solid rgba(80,69,56,0.12);
  padding: 12px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  color: var(--text-secondary); box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}
.question-chip:hover { color: var(--gold-dark); border-color: rgba(242,170,36,0.4); transform: translateY(-3px); }

/* How it works */
.step-row { display: flex; align-items: flex-start; gap: 20px; margin-top: 50px; }
.step-card { flex: 1; background: var(--white); border-radius: var(--radius-md); padding: 34px 26px; box-shadow: var(--shadow-soft); }
.step-num { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--gold-dark); display: block; margin-bottom: 14px; }
.step-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.step-connector { width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--stone), var(--stone) 6px, transparent 6px, transparent 12px); margin-top: 60px; flex-shrink: 0; }

/* 6-step grid variant */
.step-row-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.step-row-6 .step-connector { display: none; }

.step-image {
  width: 100%;
  height: 260px;
  overflow: hidden; 
  border-radius: 16px;
  background:#f5f5f5;
  display:flex;
  justify-content:center;
  align-items:center;
}

.step-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain;
  cursor: zoom-in;
}

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

/* Showcase */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.showcase-card { border-radius: var(--radius-md); padding: 26px; }
.showcase-card-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.95rem; margin-bottom: 20px; }
.showcase-tag { font-size: 0.68rem; font-weight: 700; background: rgba(74,222,128,0.16); color: #16a34a; padding: 4px 10px; border-radius: 999px; }
.showcase-tag-alert { background: rgba(217,0,0,0.12); color: var(--signal); }

.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-bottom: 16px; }
.mini-bars span { flex: 1; background: linear-gradient(180deg, var(--gold), var(--gold-dark)); border-radius: 6px 6px 2px 2px; }

.mini-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.mini-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding-bottom: 8px; border-bottom: 1px dashed rgba(80,69,56,0.14); }
.mini-mono { font-family: var(--font-mono); color: var(--signal); font-weight: 500; }

.mini-gauge { width: 100%; height: 10px; background: rgba(80,69,56,0.1); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.mini-gauge-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border-radius: 999px; }
.mini-gauge-label { font-size: 0.85rem; margin-bottom: 16px; color: var(--text-secondary); }

.showcase-caption { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.55; }

/* CTA */
.cta-section { padding: 40px 0 px; }
.cta-inner {
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  background: linear-gradient(150deg, rgba(242,170,36,0.16), rgba(183,169,154,0.14));
}
.cta-inner h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; max-width: 620px; }
.cta-inner p { color: var(--text-secondary); max-width: 480px; font-size: 1rem; }

/* Footer */
.footer { padding: 44px 0; border-top: 1px solid rgba(80,69,56,0.1); }
.footer-inner { 
  display: grid;
  grid-template-columns: 1fr auto 1fr; 
  align-items: center; 
}

.footer-brand { 
  justify-self: start; 
}

.footer-links { 
  display: flex;
  justify-self: center;
  gap: 28px;
  flex-wrap: wrap; 
}

.footer-links a {
  padding: 8px 6px;
}
.footer-copy { 
  justify-self: end; 
}

/* ============ FADE UP ============ */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; margin-top: 40px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .step-row-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-right .btn { display: none; }
  .nav-right .lang-switch { display: none; }
  .nav-right .theme-toggle { display: none; }
  .benefit-grid { grid-template-columns: 1fr; }
  .step-row { flex-direction: column; }
  .step-connector { display: none; }
  .cta-inner { padding: 50px 24px; }
  .step-row-6 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-brand,
  .footer-links,
  .footer-copy { justify-self: center; text-align: center; }
  .footer-copy { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 140px 0 70px; }
  .hero-visual { height: 380px; }
  .chat-card { max-width: 100%; padding: 18px; }
  .float-card-top { width: 130px; padding: 12px 14px; }
  .section { padding: 70px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
