/* Vyber landing page. Colours mirror lib/core/theme/app_colors.dart (dark theme). */
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #07100b;
  --surface: #0f1a14;
  --surface-2: #141f18;
  --line: #25352b;
  --text: #f1f5f0;
  --text-2: #aebbb2;
  --lime: #b6f23c;
  --lime-soft: #d3fa8c;
  --on-lime: #0f1a14;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --maxw: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 16, 11, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem var(--font-head); }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 600 .95rem var(--font-head); text-decoration: none; transition: transform .15s, background-color .15s; }
.btn:hover { background: var(--lime-soft); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9rem; }

/* Google Play button */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 16px; border-radius: 12px; background: #000; border: 1px solid #a6a6a6; color: #fff; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.play:hover { transform: translateY(-2px); border-color: var(--lime); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.play:active { transform: translateY(0); }
.play-mark { width: 30px; height: 30px; flex: none; }
.play-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-text small { font-size: .72rem; font-weight: 500; letter-spacing: .01em; }
.play-text strong { font: 600 1.35rem var(--font-head); letter-spacing: -.01em; }

/* Hero */
.hero { position: relative; overflow: clip; background: radial-gradient(ellipse at 80% 20%, #1e3226 0%, transparent 60%), var(--bg); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; padding-block: clamp(48px, 9vw, 112px); min-height: min(720px, calc(100svh - 64px)); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); letter-spacing: -.02em; }
.hero h1::first-line { color: var(--lime); }
.lead { margin-top: 20px; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-2); max-width: 36ch; }
.cta-row { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.note { font-size: .9rem; color: var(--text-2); }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-logo { position: relative; width: min(100%, 440px); aspect-ratio: 1; border-radius: 22%; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); animation: float 6s ease-in-out infinite; }
.glow { position: absolute; inset: 8%; border-radius: 50%; background: var(--lime); filter: blur(90px); opacity: .22; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.015em; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(182, 242, 60, .5); }
.card svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--lime); fill: var(--on-lime); }
.card h3 { margin-top: 20px; font-size: 1.2rem; }
.card p { margin-top: 8px; color: var(--text-2); }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--lime); color: var(--lime); font: 700 1.3rem var(--font-head); }
.steps h3 { margin-top: 18px; font-size: 1.3rem; }
.steps p { margin-top: 6px; color: var(--text-2); }

.safety { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.safety > div { min-width: 0; }
.safety .lead { max-width: 46ch; }
.safety-logo { flex: none; border-radius: 26%; opacity: .95; }

.final { background: linear-gradient(135deg, #1e3226, #0c1510); border-top: 1px solid var(--line); text-align: center; }
.final-in { display: flex; flex-direction: column; align-items: center; gap: 32px; }

/* Footer */
.footer { padding-block: 32px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .brand { color: var(--text); font-size: 1.05rem; }

/* Reveal (content stays visible without scripting) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; min-height: 0; }
  .hero-art { order: -1; }
  .hero-logo { width: min(60%, 220px); }
  .safety { flex-direction: column; align-items: flex-start; }
  .safety-logo { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Earn as a driver */
.drive { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.drive-copy { min-width: 0; }
.drive-panel { min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 36px); }
#driver-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 500; font-size: .95rem; }
.opt { color: var(--text-2); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.field textarea { resize: vertical; }
.field input::placeholder { color: var(--text-2); opacity: .7; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; border-color: transparent; }
[aria-invalid="true"] { border-color: #ff6b6d !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--lime); }
#driver-form .btn { width: 100%; min-height: 52px; font-size: 1.05rem; border: 0; cursor: pointer; }
#driver-form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { min-height: 1.4em; font-size: .95rem; color: var(--text-2); }
.form-status.error { color: #ff6b6d; }
.thanks h3 { font-size: 1.6rem; color: var(--lime); }
.thanks p { margin-top: 10px; color: var(--text-2); }

@media (max-width: 820px) { .drive { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
