/* ============================================================
   RN Taxi — landing styles
   Direction: dark luxury + gold, editorial depth, June 2026
   ============================================================ */

:root {
  /* Palette */
  /* Palette mirrors the RN Taxi APP design system (constants/colors.ts, dark). */
  --bg:            #0F0F0F;  /* app bg.primary */
  --bg-soft:       #161616;
  --ink:           #FFFFFF;  /* app text.primary */
  --muted:         #B0B0B0;  /* slightly lifted from app secondary #999 for AA on dark */
  --muted-2:       #777777;  /* app text.tertiary-ish */
  --line:          #2A2A2A;  /* app border.default */
  --line-strong:   #444444;  /* app border.strong */
  --surface:       #1A1A1A;  /* app bg.card */
  --surface-2:     #242424;  /* app bg.surface */

  /* Accent = app accent.default #ECC94B (text on accent = #0F0F0F) */
  --gold-1:        #F6E08A;
  --gold-2:        #ECC94B;
  --gold-3:        #D4B43A;  /* app accent.pressed */
  --gold:          #ECC94B;
  --gold-ink:      #0F0F0F;  /* app accent.text */
  --gold-grad:     linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 52%, var(--gold-3) 100%);
  --gold-soft:     rgba(236, 201, 75, 0.08);   /* app accent.softBg */
  --gold-badge:    rgba(236, 201, 75, 0.16);   /* app accent.softBadge */
  --gold-border:   rgba(236, 201, 75, 0.35);   /* app accent.softBorder */

  /* Women's crew accent */
  --fem-1:         #FF74B1;
  --fem-2:         #E0468E;
  --fem-grad:      linear-gradient(135deg, var(--fem-1), var(--fem-2));
  --fem-soft:      rgba(224, 70, 142, 0.14);
  --fem-border:    rgba(224, 70, 142, 0.34);

  /* Type — Montserrat everywhere (closest open-source match to the banner) */
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --t-hero:  clamp(2.9rem, 1.4rem + 6.4vw, 6.5rem);
  --t-h2:    clamp(1.8rem, 1.1rem + 2.6vw, 3rem);
  --t-h3:    clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  --t-lead:  clamp(1.02rem, 0.95rem + 0.5vw, 1.22rem);
  --t-base:  1rem;

  /* Space & shape */
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --container: 1200px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Motion */
  --dur: 320ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Subtle two-part neutral shadows (app is a clean neutral-dark surface). */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 28px -16px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 8px 26px -12px rgba(236, 201, 75, 0.30);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: var(--t-base);
  letter-spacing: 0.1px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }

/* Accessibility: visible keyboard focus (Refactoring UI / WCAG — 3:1 indicator) */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
/* Anchor targets clear the sticky header */
section[id], [id="top"], [id="download"] { scroll-margin-top: 90px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 0.5rem + 2.5vw, 2.5rem); }

/* ---------- Ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(120% 90% at 50% -10%, #1a1a1a 0%, var(--bg) 55%); }
.bg__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.bg__glow--gold  { width: 60vw; height: 60vw; top: -22vw; left: -10vw;
  background: radial-gradient(circle, rgba(236,201,75,0.30), transparent 65%); animation: float1 18s ease-in-out infinite; }
.bg__glow--gold2 { width: 48vw; height: 48vw; bottom: -16vw; right: -8vw;
  background: radial-gradient(circle, rgba(236,201,75,0.16), transparent 65%); animation: float2 22s ease-in-out infinite; }
.bg__grid { position: absolute; inset: 0; opacity: 0.32;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%); }
.bg__grain { position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

@keyframes float1 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(4vw, 3vw, 0); } }
@keyframes float2 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-3vw, -4vw, 0); } }

/* ---------- Brand wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 4px 12px rgba(236,201,75,0.3)); }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; display: block;
  box-shadow: 0 0 0 1px var(--gold-border), 0 6px 18px -8px rgba(0,0,0,0.8); }
.brand__logo--sm { width: 40px; height: 40px; }
.footer__brand-row { display: flex; align-items: center; gap: 0.6rem; }
.brand__text { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__text--sm { font-size: 1.3rem; }
.brand__taxi { color: var(--ink); -webkit-text-fill-color: var(--ink); font-weight: 500; margin-left: 0.18em; opacity: 0.92; }

/* ---------- Header (floating rounded matte bar) ---------- */
.header { position: sticky; top: 14px; z-index: 50; background: transparent; border: 0;
  margin-top: 14px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 60px;
  padding: 0 0.9rem 0 1.1rem; border-radius: 18px;
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: rgba(26, 26, 26, 0.72);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 34px -18px rgba(0,0,0,0.9); }
.nav { display: flex; align-items: center; gap: clamp(0.6rem, 0.2rem + 1.4vw, 2rem); }
.nav__link { font-size: 0.95rem; color: var(--muted); transition: color var(--dur) var(--ease); }
.nav__link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.7rem; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--ink);
  border-radius: var(--r-pill); padding: 0.85rem 1.4rem; position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease); }
.btn__icon { flex: none; }
.btn__body { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.12; }
.btn__label { font-size: 1rem; }
.btn__sub { font-size: 0.72rem; font-weight: 600; opacity: 0.7; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 1.6rem; }

.btn--gold { color: var(--gold-ink); background: var(--gold-grad); overflow: hidden;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(120, 80, 10, 0.35); }
.btn--gold .btn__sub { opacity: 0.65; }
.btn--gold::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 24px 70px -18px rgba(236,201,75,0.55); }
.btn--gold:hover::after { transform: translateX(120%); }

.btn--ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* "Скоро" buttons — app "soon/owned" state (accent softBg + softBorder). */
.btn--soon { background: var(--gold-soft); border: 1px solid var(--gold-border); color: var(--ink); cursor: default; }
.btn--soon .btn__icon { color: var(--gold); }
.badge-soon { position: absolute; top: -9px; right: 8px; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--gold-ink); background: var(--gold); border: 0;
  padding: 0.18rem 0.5rem; border-radius: var(--r-pill); box-shadow: 0 4px 12px -4px rgba(0,0,0,0.7); }

/* Three equal download buttons in one row */
.dl-btn { width: 100%; height: 54px; padding: 0 0.7rem; gap: 0.5rem; justify-content: center; }
.dl-btn__label { font-size: clamp(0.74rem, 0.5rem + 0.9vw, 0.95rem); font-weight: 700; white-space: nowrap; }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.eyebrow--center { justify-content: center; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-grad);
  box-shadow: 0 0 12px 2px rgba(236,201,75,0.55); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2rem, 1rem + 3vw, 3.5rem); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero__title { margin-bottom: 1.5rem; }
.hero__brand { display: block; font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.04em; line-height: 0.92;
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--ink); -webkit-text-fill-color: var(--ink); }
.hero__brand-taxi { color: var(--ink); -webkit-text-fill-color: var(--ink); font-weight: 400; margin-left: 0.12em; }
.hero__tagline { display: block; font-size: clamp(1.3rem, 0.9rem + 1.6vw, 2.1rem); font-weight: 600;
  color: var(--ink); margin-top: 0.5rem; letter-spacing: -0.01em; }
.hero__lead { font-size: var(--t-lead); color: var(--muted); max-width: 44ch; margin-bottom: 2rem; }

.hero__cta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1.8rem; max-width: 560px; }

.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; }
.trust__item { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; color: var(--muted); }
.trust__ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); font-size: 0.7rem; font-weight: 800; }

/* Hero visual */
.hero__visual { position: relative; justify-self: center; max-width: 540px; width: 100%; }
.visual__frame { position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--gold-border); box-shadow: var(--shadow-gold), var(--shadow-card);
  background: var(--bg-soft); }
.visual__frame::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.visual__img { width: 100%; height: auto; }
.visual__chip { position: absolute; z-index: 3; font-size: 0.8rem; font-weight: 700; padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); animation: bob 6s ease-in-out infinite; }
.visual__chip--std { top: 12%; left: -6%; background: rgba(236,201,75,0.14); color: var(--gold-1);
  border-color: var(--gold-border); box-shadow: var(--shadow-card); }
.visual__chip--fem { bottom: 14%; right: -5%; background: rgba(224,70,142,0.18); color: var(--fem-1);
  border-color: var(--fem-border); box-shadow: var(--shadow-card); animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section__title { font-size: var(--t-h2); font-weight: 800; line-height: 1.04; margin-bottom: 0.9rem; }
.section__sub { font-size: var(--t-lead); color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.6rem); }
.grid--features { grid-template-columns: repeat(4, 1fr); }
.grid--tariffs  { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-inline: auto; }
.grid--contacts { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-inline: auto; }

/* ---------- Feature cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.9rem 1.4rem; box-shadow: var(--shadow-card); position: relative; overflow: hidden;
  text-align: center;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(120% 100% at 50% 0%, var(--gold-soft), transparent 60%); transition: opacity var(--dur) var(--ease); }
.card:hover { transform: translateY(-6px); border-color: var(--gold-border); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card:hover .card__ic { transform: translateY(-2px) scale(1.04); }
/* Centered, filled-gold icon chip (dark glyph) — matches the app accent */
.card__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: var(--gold-grad); color: var(--gold-ink); margin: 0 auto 1.2rem; border: 0;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform var(--dur) var(--ease); }
.card__ic svg { width: 28px; height: 28px; }
.card__title { font-size: var(--t-h3); margin-bottom: 0.5rem; }
.card__text { color: var(--muted); font-size: 0.96rem; max-width: 26ch; margin-inline: auto; }

/* ---------- Tariffs ---------- */
.tariff { border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 1.5vw, 2.4rem); position: relative; overflow: hidden;
  border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-card); transition: transform var(--dur) var(--ease); }
.tariff:hover { transform: translateY(-6px); }
.tariff::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.tariff--std { border-color: var(--gold-border); }
.tariff--std::after { background: var(--gold-grad); }
.tariff--fem { border-color: var(--fem-border); }
.tariff--fem::after { background: var(--fem-grad); }
.tariff__top { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.tariff__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; }
.tariff--std .tariff__ic { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-border); }
.tariff--fem .tariff__ic { background: var(--fem-soft); color: var(--fem-1); border: 1px solid var(--fem-border); }
.tariff__name { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); }
.tariff__desc { color: var(--muted); margin-bottom: 1.3rem; }
.tariff__list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.tariff__list li { position: relative; padding-left: 1.7rem; color: var(--ink); font-size: 0.98rem; }
.tariff__list li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.tariff--std .tariff__list li::before { color: var(--gold); }
.tariff--fem .tariff__list li::before { color: var(--fem-1); }

/* ---------- Contacts ---------- */
.section--contacts { position: relative; }
.contact { display: flex; align-items: center; gap: 0.9rem; padding: 1.2rem 1.3rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); min-width: 0;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.contact:hover { transform: translateY(-4px); border-color: var(--gold-border); background: var(--surface-2); }
.contact__ic { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold-grad); color: var(--gold-ink); box-shadow: var(--shadow-gold); }
.contact__ic svg { width: 24px; height: 24px; }
.contact__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact__label { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.contact__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.02rem, 0.7rem + 1vw, 1.4rem);
  letter-spacing: -0.01em; white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(236,201,75,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem); box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.cta-band__inner::before { content: ""; position: absolute; right: -10%; top: -50%; width: 50%; height: 200%;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%); pointer-events: none; }
.cta-band__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); margin-bottom: 0.4rem; }
.cta-band__sub { color: var(--muted); max-width: 48ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 2.6rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__tag { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
.footer__nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__nav a { font-size: 0.92rem; color: var(--muted); transition: color var(--dur) var(--ease); }
.footer__nav a:hover { color: var(--gold); }
.footer__copy { font-size: 0.88rem; color: var(--muted-2); width: 100%; text-align: center; padding-top: 0.8rem; border-top: 1px solid var(--line); margin-top: 0.6rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { margin-inline: auto; }
  .trust { justify-content: center; }
  .hero__visual { order: -1; max-width: 440px; }
  .grid--features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { gap: 1rem; }
  .nav__link { font-size: 0.88rem; }
  .hero__cta { width: 100%; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-band__inner .btn { width: 100%; justify-content: center; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand-row { justify-content: center; }
}
@media (max-width: 560px) {
  /* keep both dispatcher numbers in ONE row — just tighten the cards */
  .contact { flex-direction: column; text-align: center; gap: 0.6rem; padding: 1.1rem 0.7rem; }
  .contact__num { font-size: clamp(0.86rem, 3.2vw, 1.1rem); }
}
@media (max-width: 380px) {
  .grid--features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
