/* ==============================================================
   Lucea — landing styles
   Концепт: «свет из тьмы» — золотой свет, проступающий из глубины.
   Палитра: тёмно-коричневый премиум фон + тёплое золото.
   ============================================================== */

:root {
  --bg-base: #1A0F08;
  --bg-deep: #0F0805;
  --bg-card: #2A1D10;
  --border: #3D2A18;
  --gold: #D4A640;
  --gold-bright: #F4C757;
  --gold-dark: #8B6F2D;
  --gold-mid: #B58A3C;
  --text: #E8E0D0;
  --text-muted: #A89878;

  --gold-linear: linear-gradient(135deg, #8B6F2D 0%, #F4C757 50%, #B58A3C 100%);

  --font-display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Allura', 'Cormorant Garamond', cursive;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1080px;
}

/* ----- Reset ----- */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 60% 38% at 50% -2%, rgba(244, 199, 87, 0.14) 0%, rgba(244, 199, 87, 0) 62%),
    radial-gradient(ellipse 90% 55% at 50% 28%, rgba(212, 166, 64, 0.05) 0%, rgba(212, 166, 64, 0) 66%),
    linear-gradient(180deg, #20140A 0%, #1A0F08 42%, #0F0805 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* film-grain overlay for premium depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.83 0 0 0 0 0.65 0 0 0 0 0.25 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

main {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
}

/* ----- Gold linear text helper ----- */

.gold-text {
  background: var(--gold-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ----- Ambient drifting light field ----- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.ambient__glow--1 {
  width: 520px;
  height: 520px;
  top: -160px;
  left: 50%;
  margin-left: -260px;
  background: radial-gradient(circle, rgba(244, 199, 87, 0.18) 0%, rgba(244, 199, 87, 0) 70%);
  animation: drift1 22s ease-in-out infinite alternate;
}

.ambient__glow--2 {
  width: 420px;
  height: 420px;
  bottom: 6%;
  right: -120px;
  background: radial-gradient(circle, rgba(181, 138, 60, 0.14) 0%, rgba(181, 138, 60, 0) 70%);
  animation: drift2 28s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(-30px, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}

@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, -40px) scale(1.1); }
}

/* ----- Scroll reveal ----- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   1. Hero
   ============================================================ */

.hero {
  min-height: min(100vh, 920px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 0 72px;
}

.hero__mark-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: -28px; /* glow PNG has transparent padding; pull title closer */
}

.hero__mark {
  width: clamp(220px, 30vw, 300px);
  height: auto;
  position: relative;
  filter: drop-shadow(0 0 30px rgba(244, 199, 87, 0.28));
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(244, 199, 87, 0.22)); opacity: 0.94; }
  50%      { filter: drop-shadow(0 0 40px rgba(244, 199, 87, 0.4));  opacity: 1; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 12vw, 124px);
  letter-spacing: 0.16em;
  line-height: 1;
  text-indent: 0.16em; /* visually centre tracked caps */
  margin-bottom: 2px;
}

.hero__script {
  font-family: var(--font-script);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  color: var(--gold);
  opacity: 0.92;
  margin-bottom: 30px;
  transform: rotate(-2deg);
}

.hero__pitch {
  max-width: 680px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.32;
  color: var(--text);
  letter-spacing: 0.005em;
  margin: 0 auto 20px;
}

.hero__sub {
  max-width: 540px;
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 auto 38px;
}

/* store badges (placeholders) */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(42, 29, 16, 0.8) 0%, rgba(26, 15, 8, 0.6) 100%);
  color: var(--gold);
  text-align: left;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.badge:hover {
  border-color: rgba(212, 166, 64, 0.4);
  box-shadow: 0 0 22px rgba(212, 166, 64, 0.1);
  transform: translateY(-2px);
  color: var(--gold-bright);
}

.badge__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  /* SVG paths use fill="currentColor" so the icon inherits .badge color (gold). */
}

/* RuStore icon comes from a PNG (user-supplied) — used as a mask so the
   color matches the rest of the gold icons exactly (currentColor). */
.badge__icon--rustore {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url('assets/stores/rustore.png') center/contain no-repeat;
          mask: url('assets/stores/rustore.png') center/contain no-repeat;
}

.badge__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: inherit;
}

.hero__beta {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* store badge rendered as a real link — inherits .badge look */
a.badge { text-decoration: none; }

/* Google Play — закрытый тест: бейдж виден, но приглушён и не ведёт никуда */
.badge--soon {
  cursor: default;
  opacity: 0.5;
  filter: grayscale(0.3);
}
.badge--soon:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
  color: var(--gold);
}

.badges__note {
  max-width: 380px;
  margin: 0 auto 24px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  opacity: 0.85;
}

/* QR-коды для установки — только веб/десктоп (на мобиле скрыты ниже) */
.qr-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 4px 0 28px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-card__img {
  width: 124px;
  height: 124px;
  padding: 9px;
  border-radius: 14px;
  background: #FBF7EF;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38), 0 0 0 1px var(--border);
}

.qr-card__cap {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ============================================================
   Shared section heading
   ============================================================ */

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.section-kicker::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, rgba(212, 166, 64, 0), var(--gold), rgba(212, 166, 64, 0));
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* ============================================================
   2. How it works — steps
   ============================================================ */

.how {
  padding: 64px 0;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: linear-gradient(180deg, rgba(42, 29, 16, 0.55) 0%, rgba(26, 15, 8, 0.35) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 28px 32px;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

/* top-edge light bloom on each card */
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 70%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(244, 199, 87, 0), rgba(244, 199, 87, 0.55), rgba(244, 199, 87, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.step:hover {
  border-color: rgba(212, 166, 64, 0.32);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 166, 64, 0.08);
  transform: translateY(-4px);
}

.step:hover::before {
  opacity: 1;
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--gold-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  margin-bottom: 16px;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: var(--gold);
  margin-bottom: 12px;
}

.step__text {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.62;
  color: var(--text-muted);
}

/* ============================================================
   3. Moat
   ============================================================ */

.moat {
  padding: 80px 0;
}

.moat__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(244, 199, 87, 0.08) 0%, rgba(244, 199, 87, 0) 70%),
    linear-gradient(180deg, rgba(42, 29, 16, 0.5) 0%, rgba(15, 8, 5, 0.3) 100%);
}

.moat__script {
  font-family: var(--font-script);
  font-size: clamp(28px, 5vw, 44px);
  color: var(--gold);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 14px;
}

.moat__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.22;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.moat__text {
  max-width: 580px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
}

/* ============================================================
   4. Privacy
   ============================================================ */

.privacy {
  padding: 64px 0;
}

.privacy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.privacy-card {
  background: linear-gradient(180deg, rgba(42, 29, 16, 0.5) 0%, rgba(26, 15, 8, 0.3) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.privacy-card:hover {
  border-color: rgba(212, 166, 64, 0.28);
  transform: translateY(-3px);
}

.privacy-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(212, 166, 64, 0.3);
  background: radial-gradient(circle at 50% 30%, rgba(244, 199, 87, 0.12), rgba(244, 199, 87, 0) 70%);
  color: var(--gold);
  margin-bottom: 20px;
}

.privacy-card__icon svg {
  width: 26px;
  height: 26px;
}

.privacy-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1.3;
}

.privacy-card__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.62;
  color: var(--text-muted);
}

/* ============================================================
   5. Not-therapy note
   ============================================================ */

.note {
  padding: 28px 0 8px;
}

.note__text {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  padding: 22px 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(26, 15, 8, 0.4);
}

/* ============================================================
   6. Footer
   ============================================================ */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 72px 0 64px;
  text-align: center;
}

.footer__divider {
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, rgba(61, 42, 24, 0), var(--border), rgba(61, 42, 24, 0));
}

.footer__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.footer__legal a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(212, 166, 64, 0.5);
  outline: none;
}

.footer__legal a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer__legal span {
  color: var(--text-muted);
  opacity: 0.4;
}

.footer__mails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer__mail {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__mail:hover,
.footer__mail:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: rgba(244, 199, 87, 0.5);
  outline: none;
}

.footer__mail:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer__age {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer__age a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__age a:hover,
.footer__age a:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(212, 166, 64, 0.5);
  outline: none;
}

.footer__studio {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer__copy {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  opacity: 0.8;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 880px) {
  .steps,
  .privacy__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  main { padding: 0 20px; }

  .hero {
    min-height: auto;
    padding: 72px 0 56px;
  }

  .hero__sub { margin-bottom: 30px; }

  .badges { gap: 10px; }

  .badge { padding: 9px 16px; }

  /* QR — только в вебе/десктопе, на телефоне не нужен */
  .qr-row { display: none; }

  .section-head { margin-bottom: 40px; }

  .how,
  .privacy { padding: 48px 0; }

  .moat { padding: 56px 0; }

  .moat__inner { padding: 44px 26px; }

  .step { padding: 30px 24px 28px; }

  .footer { padding: 56px 0 56px; }
}

/* Respect reduced-motion preference */
@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; }
}
