:root {
  --bg: #070B14;
  --surface: #101725;
  --surface-2: #161F31;
  --reader: #0B0F17;
  --text: #F7F4EF;
  --text-2: #D0CBC2;
  --muted: #9AA1AD;
  --gold: #D6B98A;
  --gold-soft: rgba(214, 185, 138, 0.18);
  --stroke: rgba(245, 241, 234, 0.12);
  --glass: rgba(16, 23, 37, 0.7);
  --radius: 18px;
  --font: "Onest", system-ui, sans-serif;
  --display: "Lora", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 15% -10%, rgba(214, 185, 138, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 10%, rgba(86, 66, 110, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(22, 31, 49, 0.9), transparent 60%),
    linear-gradient(180deg, #070B14 0%, #0a101c 50%, #070B14 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}

.brand img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

.nav a {
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--text);
  color: var(--reader);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 0 0 var(--gold-soft);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--gold-soft);
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--stroke);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--gold);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.badge {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  background: rgba(214, 185, 138, 0.08);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: var(--text-2);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 290px);
  aspect-ratio: 9 / 17;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(160deg, #1a2438, #0b1019 60%);
  border: 1px solid var(--stroke);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(214, 185, 138, 0.08);
}

.phone-screen {
  height: 100%;
  border-radius: 28px;
  padding: 1.25rem 1rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 185, 138, 0.14), transparent 45%),
    linear-gradient(180deg, #0d1422, #070b14);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.phone-top img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.phone-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(16, 23, 37, 0.85);
  border: 1px solid var(--stroke);
}

.phone-card strong {
  display: block;
  font-size: 0.88rem;
}

.phone-card span {
  color: var(--muted);
  font-size: 0.75rem;
}

.phone-cover {
  width: 42px;
  height: 62px;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--gold), #8a6d45 55%, #56426e);
  flex-shrink: 0;
}

.phone-lines {
  display: grid;
  gap: 0.55rem;
  padding: 0.4rem 0.2rem;
}

.phone-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(247, 244, 239, 0.08);
}

.phone-lines span:nth-child(1) { width: 92%; }
.phone-lines span:nth-child(2) { width: 78%; }
.phone-lines span:nth-child(3) { width: 86%; }
.phone-lines span:nth-child(4) { width: 64%; }

.phone-flag {
  margin-top: auto;
  width: 28px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(#0057b7 50%, #ffd700 50%);
  align-self: center;
  opacity: 0.9;
}

.section {
  padding: 4.5rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2,
.audience h2,
.cta-inner h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head p,
.audience p,
.cta-inner p {
  margin: 0;
  color: var(--text-2);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.35rem 1.3rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 23, 37, 0.9), rgba(11, 15, 23, 0.65));
  border: 1px solid var(--stroke);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature:hover {
  border-color: rgba(214, 185, 138, 0.35);
  transform: translateY(-2px);
}

.feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.96rem;
}

.stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stage-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke);
}

.stage-card-soon {
  background: linear-gradient(180deg, rgba(22, 31, 49, 0.75), rgba(11, 15, 23, 0.5));
}

.stage-card h3 {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stage-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.stage-card li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-2);
}

.stage-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.stage-card-soon li::before {
  background: var(--muted);
}

.stage-note {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--gold);
  color: var(--text-2);
  background: rgba(214, 185, 138, 0.05);
}

.audience {
  max-width: 44rem;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(16, 23, 37, 0.65);
  padding: 0.2rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--text-2);
}

.cta-block {
  max-width: none;
  padding-bottom: 5rem;
}

.cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: 28px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(circle at 10% 0%, rgba(214, 185, 138, 0.16), transparent 40%),
    linear-gradient(145deg, #121a2b, #0b1019);
  text-align: center;
}

.cta-inner p {
  max-width: 34rem;
  margin: 0 auto;
}

.store-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.ua-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(#0057b7 50%, #ffd700 50%);
  vertical-align: -1px;
  flex-shrink: 0;
}

.ua-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(16, 23, 37, 0.7);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.ua-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(11, 15, 23, 0.55);
}

.lang-switch a {
  min-width: 34px;
  text-align: center;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.lang-switch a.is-active {
  background: var(--text);
  color: var(--reader);
}

.badge-hot {
  border-color: rgba(214, 185, 138, 0.45);
  background: rgba(214, 185, 138, 0.14);
  box-shadow: 0 0 24px rgba(214, 185, 138, 0.12);
}

.phone-shot {
  padding: 10px;
  overflow: hidden;
}

.phone-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
}

.closed-block {
  padding-top: 0;
}

.closed-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 24px;
  border: 1px solid rgba(214, 185, 138, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 87, 183, 0.14), transparent 42%),
    linear-gradient(145deg, #121a2b, #0b1019);
}

.closed-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.closed-card p {
  margin: 0;
  color: var(--text-2);
  max-width: 48rem;
}

.roadmap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.roadmap-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(16, 23, 37, 0.75);
}

.roadmap-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(214, 185, 138, 0.14);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
}

.roadmap-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.roadmap-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

.shots-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  align-items: end;
}

.shot {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.shot img {
  width: 100%;
  display: block;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.news-card {
  display: block;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(16, 23, 37, 0.8);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-card:hover {
  border-color: rgba(214, 185, 138, 0.4);
  transform: translateY(-2px);
}

.news-card time {
  display: block;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.news-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.news-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
}

.section-more {
  margin: 1.25rem 0 0;
}

.section-more a {
  color: var(--gold);
  font-weight: 600;
}

.apply-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.apply-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(16, 23, 37, 0.85);
}

.apply-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--text-2);
  font-size: 0.92rem;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #0b1019;
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.9rem;
}

.apply-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.flash {
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
}

.flash-ok {
  background: rgba(125, 206, 160, 0.12);
  color: #7dcea0;
  border: 1px solid rgba(125, 206, 160, 0.25);
}

.flash-error {
  background: rgba(224, 138, 138, 0.12);
  color: #e08a8a;
  border: 1px solid rgba(224, 138, 138, 0.25);
}

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

.news-article time {
  color: var(--gold);
  font-weight: 600;
}

.news-article h1 {
  margin: 0.5rem 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.article-body {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 42rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.75rem;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand p {
  margin: 0.65rem 0;
}

.social-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-content: flex-start;
}

.social-row a:hover,
.footer-links a:hover {
  color: var(--gold);
}

/* Visible by default; JS only animates when ready */
.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0ms);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .shots-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .shots-row .shot:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .phone {
    width: min(100%, 240px);
  }

  .feature-grid,
  .stage-grid,
  .news-grid,
  .apply-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav,
  .site-header > .btn,
  .ua-pill {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--stroke);
  }

  .site-header.is-open > .btn {
    display: none;
  }

  .shots-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .lang-switch {
    margin-left: auto;
  }
}
