:root {
  --bg: #0b0d0c;
  --text: #f2f0ea;
  --muted: #a4a89f;
  --gold: #d4b072;
  --gold-2: #b8893f;
  --line: rgba(242, 240, 234, 0.14);
  --sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --pad: max(20px, env(safe-area-inset-left));
  --pad-r: max(20px, env(safe-area-inset-right));
  --pad-t: max(16px, env(safe-area-inset-top));
  --pad-b: max(12px, env(safe-area-inset-bottom));
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader.is-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(242, 240, 234, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.preloader p {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: float 14s ease-in-out infinite;
}

.o1 { width: 280px; height: 280px; left: -70px; top: -40px; background: #1e3a2c; }
.o2 { width: 240px; height: 240px; right: -50px; bottom: 60px; background: #3d3018; animation-duration: 18s; animation-direction: reverse; }
.o3 { width: 180px; height: 180px; left: 40%; top: 38%; background: #173024; animation-duration: 16s; }

.scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(212, 176, 114, 0.07), transparent);
  animation: scan 7s ease-in-out infinite;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.spot {
  display: none;
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 176, 114, 0.13), transparent 70%);
  transform: translate(-50%, -50%);
}

@media (pointer: fine) {
  .spot { display: block; }
}

/* Page shell */
.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100dvh;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(var(--pad-t) + 8px) var(--pad-r) 0 var(--pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mark {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.head-phone {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px var(--pad) 24px;
  padding-right: var(--pad-r);
  width: 100%;
  max-width: 920px;
}

.badge {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--gold);
}

.badge-ring {
  position: absolute;
  inset: 0;
  animation: spin 12s linear infinite;
}

.badge span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.line {
  display: block;
}

.line.accent {
  color: var(--gold);
}

.letters .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
}

body.is-in .letters .ch {
  animation: up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.space {
  display: inline-block;
  width: 0.28em;
}

h1 .line:first-child {
  font-size: clamp(34px, 9.2vw, 78px);
}

h1 .line.accent {
  font-size: clamp(26px, 7.1vw, 62px);
}

.line-draw {
  display: block;
  width: 0;
  height: 1px;
  margin: 22px 0 18px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

body.is-in .line-draw {
  animation: grow 1s 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lead {
  margin: 0;
  max-width: 32em;
  font-size: clamp(15px, 3.8vw, 18px);
  line-height: 1.6;
  color: #c9ccc5;
}

.progress {
  margin-top: 28px;
  max-width: 320px;
}

.progress span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.bar {
  height: 2px;
  background: rgba(242, 240, 234, 0.1);
  overflow: hidden;
}

.bar i {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--gold);
  animation: load 2.2s ease-in-out infinite;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
  max-width: 420px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  opacity: 0;
  transform: translateY(16px);
}

body.is-in .btn {
  animation: up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-in .btn:nth-child(1) { animation-delay: 1s; }
body.is-in .btn:nth-child(2) { animation-delay: 1.1s; }
body.is-in .btn:nth-child(3) { animation-delay: 1.2s; }

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-gold {
  background: var(--gold);
  color: #1a140b;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
}

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

.foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-bottom: var(--pad-b);
}

.marquee {
  overflow: hidden;
  height: 44px;
}

.marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: slide 32s linear infinite;
}

.marquee-track span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 18px;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "•";
  margin-left: 18px;
  color: var(--gold);
}

body.is-in .kicker,
body.is-in .badge,
body.is-in .lead,
body.is-in .progress {
  animation: fade 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.is-in .kicker { animation-delay: 0.15s; }
body.is-in .badge { animation-delay: 0.05s; }
body.is-in .lead { animation-delay: 0.7s; }
body.is-in .progress { animation-delay: 0.85s; }

.kicker,
.badge,
.lead,
.progress {
  opacity: 0;
}

html:not(.js) .kicker,
html:not(.js) .badge,
html:not(.js) .lead,
html:not(.js) .progress,
html:not(.js) .btn,
html:not(.js) .letters {
  opacity: 1;
  transform: none;
}

html:not(.js) .line-draw {
  width: 88px;
}

html:not(.js) .preloader {
  display: none;
}

@keyframes up {
  to { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes grow {
  to { width: min(88px, 28vw); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -16px); }
}

@keyframes scan {
  0% { top: -20%; }
  100% { top: 110%; }
}

@keyframes load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 700px) {
  .hero {
    padding-left: 48px;
    padding-right: 48px;
  }

  .head {
    padding-left: 48px;
    padding-right: 48px;
  }

  .actions {
    grid-template-columns: repeat(3, auto);
    max-width: none;
  }

  .btn {
    min-width: 150px;
  }

  .btn-gold:hover {
    background: var(--gold-2);
  }

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

  .head-phone:hover {
    color: var(--text);
  }
}

@media (max-width: 380px) {
  .brand span:last-child {
    max-width: 42vw;
  }

  h1 .line:first-child {
    font-size: clamp(30px, 11vw, 42px);
  }

  h1 .line.accent {
    font-size: clamp(24px, 8.4vw, 34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .preloader { display: none; }

  .letters .ch,
  .kicker,
  .badge,
  .lead,
  .progress,
  .btn {
    opacity: 1;
    transform: none;
  }

  .line-draw { width: 88px; }
}
