/*
  Primary color rationale: deep forest green (oklch ~0.46 0.17 160°).
  Chosen against the default AI-product palette (purple-to-blue gradient,
  cream background). Green at this hue reads as precision and trust in
  a Russian professional context — the colour of secure terminal output,
  not of a startup pitch deck. On a near-black surface it glows without
  shouting. Amber accent (hue 72°) separates the MAX CTA cleanly and adds
  warmth without breaking the restrained palette.
  Strategy: Committed — one saturated color carries 40-60% of the surface.
  Dark theme chosen: late-night conference-floor ambient light,
  phone-in-hand context forces high contrast; dark surface also makes
  the green pop without needing extra decoration.
*/

/* ─── TOKENS ─── */
:root {
  --bg:         oklch(0.09 0.000 0);
  --surface:    oklch(0.13 0.012 160);
  --surface-2:  oklch(0.17 0.012 160);
  --primary:    oklch(0.46 0.17 160);
  --primary-hi: oklch(0.54 0.17 160);
  --accent:     oklch(0.78 0.14 72);
  --ink:        oklch(0.95 0.000 0);
  --ink-2:      oklch(0.70 0.005 160);
  --muted:      oklch(0.62 0.005 160);
  --glow:       oklch(0.46 0.17 160 / 0.30);
  --color-banner-bg: oklch(0.16 0.012 160);

  --font-display: 'Geologica', sans-serif;
  --font-body:    'Onest', sans-serif;

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

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, oklch(0.46 0.17 160 / 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 100% 50%, oklch(0.46 0.17 160 / 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 5rem);
  align-items: center;
}

/* ─── HERO TEXT ─── */
.hero__text {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  max-width: 720px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}

.hero__headline em {
  font-style: normal;
  color: var(--primary-hi);
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 60ch;
  margin: 0 auto;
}

.br-desktop { display: none; }

/* ─── CTA BUTTONS ─── */
.hero__ctas,
.features__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    transform 0.15s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-hi);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--primary);
  color: oklch(0.97 0.000 0);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-hi);
  border-color: var(--primary-hi);
  box-shadow: 0 0 28px var(--glow);
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--secondary:hover {
  background: oklch(0.78 0.14 72 / 0.10);
  box-shadow: 0 0 20px oklch(0.78 0.14 72 / 0.25);
}

.btn__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ─── TRUST BAR ─── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--primary-hi);
}

.trust-sep { color: var(--muted); }

/* ─── HERO VISUAL ─── */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
}

.qr-card {
  position: relative;
  background: var(--surface);
  border: 1px solid oklch(0.46 0.17 160 / 0.30);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow:
    0 0 0 1px oklch(0.46 0.17 160 / 0.15),
    0 24px 60px oklch(0 0 0 / 0.5),
    0 0 80px oklch(0.46 0.17 160 / 0.12);
  width: 100%;
  max-width: 280px;
  animation: none;
}

.qr-card__badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-hi);
  background: oklch(0.46 0.17 160 / 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  border: 1px solid oklch(0.46 0.17 160 / 0.30);
}

.qr-svg {
  width: 100%;
  max-width: 200px;
  height: auto;
  color: var(--primary-hi);
}

.qr-card__label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ambient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.hero__orb--1 {
  width: 200px;
  height: 200px;
  background: oklch(0.46 0.17 160 / 0.20);
  top: -60px;
  right: -60px;
}

.hero__orb--2 {
  width: 120px;
  height: 120px;
  background: oklch(0.78 0.14 72 / 0.15);
  bottom: -30px;
  left: -30px;
}

@keyframes float {
  from { transform: translateY(0px); }
  to   { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: no-preference) {
  .qr-card {
    will-change: transform;
    animation: float 5s var(--ease-out) infinite alternate;
  }
}

/* ─── FEATURES SECTION ─── */
.features {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 5vw, 3rem);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.46 0.17 160 / 0.4), transparent);
}

.features__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 5rem);
}

/* ─── FEATURE CARDS ─── */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature {
  background: var(--surface);
  border: 1px solid oklch(0.46 0.17 160 / 0.18);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.feature:hover {
  border-color: oklch(0.46 0.17 160 / 0.45);
  box-shadow: 0 8px 32px oklch(0.46 0.17 160 / 0.10);
}

.feature__icon {
  width: 52px;
  height: 52px;
  background: oklch(0.46 0.17 160 / 0.12);
  border: 1px solid oklch(0.46 0.17 160 / 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-hi);
  flex-shrink: 0;
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.175rem);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.feature__desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 40ch;
}

/* ─── MESSENGER CALLOUT ─── */
.messenger-callout {
  background: var(--surface-2);
  border: 1px solid oklch(0.78 0.14 72 / 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  text-align: center;
}

.callout__icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-2);
}

.callout__icons svg:first-child { color: oklch(0.65 0.15 220); }
.callout__icons svg:last-child  { color: var(--accent); }

.callout__plus {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--muted);
}

.callout__text {
  font-size: clamp(0.9375rem, 2vw, 1.05rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ─── FEATURES CTAs ─── */
.features__ctas {
  flex-direction: column;
}

/* ─── FOOTER ─── */
.footer {
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
  border-top: 1px solid oklch(0.46 0.17 160 / 0.15);
  text-align: center;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ─── ENTRANCE ANIMATIONS ─── */
.js-reveal,
.js-reveal-delay,
.js-reveal-delay2 {
  opacity: 1;
  transform: none;
}

.js-scroll-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js-reveal {
    animation: reveal-up 0.7s var(--ease-out) both;
  }

  .js-reveal-delay {
    animation: reveal-up 0.7s 0.15s var(--ease-out) both;
  }

  .js-reveal-delay2 {
    animation: reveal-up 0.6s 0.3s var(--ease-out) both;
  }

  .js-scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.6s var(--ease-out),
      transform 0.6s var(--ease-out);
  }

  .js-scroll-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .features__grid .js-scroll-reveal:nth-child(2) {
    transition-delay: 0.1s;
  }

  .features__grid .js-scroll-reveal:nth-child(3) {
    transition-delay: 0.2s;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── RESPONSIVE: 768px+ ─── */
@media (min-width: 768px) {
  .hero__ctas,
  .features__ctas {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }

  .btn {
    flex: 0 1 auto;
  }

  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature__desc {
    max-width: none;
  }

  .br-desktop { display: inline; }

  .hero__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
  }

  .hero__text {
    text-align: left;
    max-width: 560px;
    flex-shrink: 0;
  }

  .hero__ctas {
    justify-content: flex-start;
    margin: 0;
  }

  .trust-bar {
    justify-content: flex-start;
  }

  .hero__visual {
    max-width: 300px;
    flex-shrink: 0;
  }

  .hero__sub {
    margin: 0;
  }
}

/* ─── RESPONSIVE: 1280px+ ─── */
@media (min-width: 1280px) {
  .hero__visual {
    max-width: 340px;
  }

  .qr-card {
    max-width: 300px;
  }
}

/* ─── FOOTER LINK ─── */
.footer__link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.footer__link:hover {
  color: var(--primary-hi);
}

/* ─── POLICY PAGE ─── */
.policy-page {
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
}

.policy-nav {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.policy-back:hover,
.policy-back:focus-visible {
  color: var(--primary-hi);
}

.policy-back:focus-visible {
  outline: 2px solid var(--primary-hi);
  outline-offset: 3px;
  border-radius: 3px;
}

.policy-body {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.policy-body h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.policy-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--primary-hi);
  margin-bottom: 0.75rem;
}

.policy-body p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 68ch;
  text-wrap: pretty;
}

.policy-body ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.policy-body li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.policy-body a {
  color: var(--primary-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-body a:hover {
  color: var(--ink);
}

.policy-updated {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: -1rem;
}

.policy-section {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 0.5rem;
  border-top: 1px solid oklch(0.46 0.17 160 / 0.18);
}

.policy-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.policy-body th,
.policy-body td {
  padding: 0.6875rem 1rem;
  border: 1px solid oklch(0.46 0.17 160 / 0.25);
  text-align: left;
  vertical-align: top;
}

.policy-body th {
  background: oklch(0.46 0.17 160 / 0.10);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.policy-body td {
  color: var(--ink-2);
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-banner-bg);
  border-top: 1px solid oklch(0.46 0.17 160 / 0.28);
  padding: 1rem clamp(1.25rem, 5vw, 3rem);

  transform: translateY(calc(100% + 2px));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: flex-start;
}

.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.cookie-banner__text a {
  color: var(--primary-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.625rem;
  width: 100%;
}

.cookie-banner__actions .btn {
  flex: 1;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transform: none;
    transition: opacity 0.2s;
  }

  .cookie-banner.is-visible {
    transform: none;
  }
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__text {
    max-width: 60ch;
  }

  .cookie-banner__actions {
    width: auto;
    flex-shrink: 0;
  }

  .cookie-banner__actions .btn {
    flex: 0 1 auto;
  }
}
