:root {
  --bg: #040403;
  --bg2: #0b0a07;
  --gold: #f6c75b;
  --gold2: #9f6d19;
  --white: #f8f5ec;
  --muted: #bdb5a4;
  --glass: rgba(255, 255, 255, 0.075);
  --line: rgba(246, 199, 91, 0.26);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 99;
  background: var(--gold);
  color: #080602;
  padding: .8rem 1rem;
  border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

#world, .ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#world { z-index: -3; background: radial-gradient(circle at 50% 0%, #201706 0, #050503 50%, #000 100%); }
.ambient { z-index: -2; overflow: hidden; }
.cloud {
  position: absolute;
  width: 34rem;
  height: 5rem;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
  filter: blur(10px);
  animation: cloud 28s linear infinite;
}
.cloud--one { top: 12%; left: -35%; }
.cloud--two { top: 46%; animation-duration: 40s; animation-delay: -12s; }
.cloud--three { top: 78%; animation-duration: 34s; animation-delay: -20s; }
@keyframes cloud { to { transform: translateX(150vw); } }

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.2rem;
  background: #020201;
  transition: opacity .8s ease, visibility .8s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__portal {
  width: 8.5rem;
  height: 12rem;
  border: 3px solid var(--gold);
  border-radius: 44% 44% 18% 18%;
  position: relative;
  box-shadow: 0 0 38px rgba(246, 199, 91, .55), inset 0 0 42px rgba(246, 199, 91, .2);
  animation: pulse 1.5s ease-in-out infinite;
}
.loader__portal span {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(246,199,91,.4);
  border-radius: inherit;
  transform: rotate(calc(var(--i, 1) * 9deg));
}
.loader__portal span:nth-child(1) { --i: 1; }
.loader__portal span:nth-child(2) { --i: 2; }
.loader__portal span:nth-child(3) { --i: 3; }
.loader__portal span:nth-child(4) { --i: 4; }
.loader p { margin: 0; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.loader__bar { width: min(18rem, 70vw); height: .35rem; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); animation: load 1.6s ease forwards; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes pulse { 50% { transform: scale(1.04); } }

.nav-shell {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 1rem;
}
.nav {
  max-width: 1180px;
  margin: auto;
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(4, 4, 3, .66);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: .65rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; white-space: nowrap; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  color: #090704;
  background: linear-gradient(135deg, var(--gold), #fff1a3);
  clip-path: polygon(12% 0, 88% 0, 100% 18%, 100% 82%, 88% 100%, 12% 100%, 0 82%, 0 18%);
}
.nav__links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav__links a {
  padding: .7rem .75rem;
  border-radius: .75rem;
  color: var(--muted);
  font-size: .9rem;
}
.nav__links a:hover, .nav__links a.active { color: var(--white); background: rgba(246,199,91,.12); }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; margin-left: auto; }
.nav__toggle span { display: block; width: 1.5rem; height: 2px; margin: 5px; background: var(--white); }

.container { width: min(1160px, calc(100% - 2rem)); margin: auto; }
.section {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 8rem 0;
}
.section::before {
  content: attr(data-world);
  position: absolute;
  top: 7rem;
  right: 6vw;
  color: rgba(246,199,91,.12);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 8vw, 8rem);
  font-weight: 700;
  pointer-events: none;
}
.hero { min-height: 100svh; overflow: hidden; }
.hero__content { position: relative; z-index: 2; padding-top: 3rem; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
}
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: 0; }
h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 7.8rem);
  line-height: .9;
}
h2 { margin: 0; font-size: clamp(2.1rem, 5vw, 4.8rem); line-height: .98; max-width: 900px; }
h3 { margin: 0 0 1rem; font-size: 1.45rem; }
p { color: var(--muted); line-height: 1.75; }
.hero__lead { max-width: 670px; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: .9rem 1.25rem;
  border-radius: .8rem;
  font-weight: 800;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn--small { min-height: 2.75rem; padding: .7rem 1rem; }
.btn--gold { color: #080602; background: linear-gradient(135deg, var(--gold), #fff2a8); box-shadow: 0 0 34px rgba(246,199,91,.25); }
.btn--glass { border: 1px solid var(--line); background: rgba(255,255,255,.07); backdrop-filter: blur(14px); }
.ripple { position: absolute; width: 1rem; height: 1rem; border-radius: 50%; background: rgba(255,255,255,.55); transform: translate(-50%, -50%) scale(0); animation: ripple .55s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(18); opacity: 0; } }

.hero__scene { position: absolute; inset: 0; perspective: 1000px; pointer-events: none; }
.portal {
  position: absolute;
  width: clamp(13rem, 24vw, 24rem);
  aspect-ratio: .68;
  border: .35rem solid var(--gold);
  border-radius: 48% 48% 18% 18%;
  box-shadow: 0 0 60px rgba(246,199,91,.55), inset 0 0 70px rgba(246,199,91,.18);
  background: radial-gradient(circle, rgba(246,199,91,.22), rgba(0,0,0,.08) 60%, rgba(0,0,0,.65));
}
.portal--hero { right: 11vw; top: 24vh; animation: drift 7s ease-in-out infinite; }
.island {
  position: absolute;
  width: clamp(9rem, 16vw, 18rem);
  height: clamp(5rem, 8vw, 8rem);
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0/22px 22px,
    linear-gradient(#2b2110, #090604);
  border: 1px solid rgba(246,199,91,.28);
  transform-style: preserve-3d;
  clip-path: polygon(0 0, 100% 0, 88% 72%, 54% 100%, 12% 72%);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  animation: float 8s ease-in-out infinite;
}
.island i { position: absolute; inset: .5rem; background: linear-gradient(135deg, #2f7b3d, #4e8f33 52%, #d1ac42 53%, #5a3713); clip-path: polygon(0 0, 100% 0, 90% 58%, 50% 84%, 8% 58%); }
.island--one { left: 8vw; top: 18vh; }
.island--two { right: 7vw; bottom: 12vh; animation-delay: -2s; transform: scale(.8); }
.island--three { left: 44vw; bottom: 20vh; animation-delay: -5s; transform: scale(.65); }
@keyframes float { 50% { translate: 0 -1.2rem; rotate: 1deg; } }
@keyframes drift { 50% { transform: translate3d(0, -1rem, 70px) rotateY(-5deg); } }

.stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; }
.stats article, .glass-panel, .market-grid article, .service-grid article, .faq-list details, .contact__box {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.stats article { min-width: 9rem; padding: 1rem; border-radius: .9rem; }
.stats strong { display: block; color: var(--gold); font-size: 2rem; }
.stats span { color: var(--muted); font-size: .85rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.section-head { margin-bottom: 2rem; }
.duo, .service-grid, .market-grid { display: grid; gap: 1rem; }
.duo { grid-template-columns: 1fr 1fr; }
.glass-panel { padding: 1.5rem; border-radius: 1.2rem; }
.glass-panel--gold { background: linear-gradient(145deg, rgba(246,199,91,.18), rgba(255,255,255,.04)); }
ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
li { color: var(--muted); padding-left: 1.2rem; position: relative; }
li::before { content: ""; position: absolute; left: 0; top: .65rem; width: .45rem; height: .45rem; background: var(--gold); transform: rotate(45deg); }

.network {
  position: relative;
  height: min(720px, 75vh);
  min-height: 35rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background:
    linear-gradient(rgba(246,199,91,.08) 1px, transparent 1px) 0 0/42px 42px,
    linear-gradient(90deg, rgba(246,199,91,.08) 1px, transparent 1px) 0 0/42px 42px,
    rgba(255,255,255,.035);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.network::before {
  content: "";
  position: absolute;
  inset: 7%;
  background: conic-gradient(from 0deg, transparent, rgba(246,199,91,.18), transparent, rgba(255,255,255,.1), transparent);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.node {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: rgba(4,4,3,.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(246,199,91,.12);
  cursor: default;
}
.node--center {
  left: 50%;
  top: 50%;
  width: 8.5rem;
  height: 8.5rem;
  display: grid;
  place-items: center;
  border-radius: 1.2rem;
  color: #080602;
  background: linear-gradient(135deg, var(--gold), #fff0a6);
  font-size: 2rem;
  font-weight: 900;
}
.node:hover, .node:focus { box-shadow: 0 0 38px rgba(246,199,91,.45); }
.network__tooltip { position: absolute; left: 1rem; bottom: 1rem; max-width: 32rem; margin: 0; padding: 1rem; border-radius: .85rem; background: rgba(0,0,0,.55); color: var(--white); }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.filter {
  min-height: 2.6rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: .55rem .9rem;
  cursor: pointer;
}
.filter.active, .filter:hover { color: #080602; background: var(--gold); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  perspective: 1100px;
}
.benefit-card {
  min-height: 14rem;
  display: grid;
  align-content: start;
  gap: .8rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  transition: transform .22s ease, box-shadow .22s ease, opacity .25s ease;
  animation: cardFloat 6s ease-in-out infinite;
}
.benefit-card:hover, .benefit-card:focus {
  box-shadow: 0 0 36px rgba(246,199,91,.32);
}
.benefit-card.hidden { display: none; }
.benefit-card__icon { font-size: 1.45rem; color: var(--gold); }
.benefit-card h3 { font-size: 1rem; margin: 0; }
.benefit-card p { margin: 0; font-size: .9rem; }
.benefit-card small { color: var(--gold); font-weight: 800; margin-top: auto; }
@keyframes cardFloat { 50% { translate: 0 -7px; } }

.phones { min-height: 34rem; position: relative; perspective: 1000px; }
.phone {
  width: min(17rem, 46vw);
  height: 33rem;
  position: absolute;
  right: 9rem;
  top: 0;
  border: .7rem solid #080705;
  border-radius: 2.2rem;
  background: #090806;
  box-shadow: var(--shadow), 0 0 40px rgba(246,199,91,.2);
  transform: rotateY(-18deg) rotateZ(2deg);
}
.phone--back { right: 0; top: 3rem; transform: rotateY(-22deg) rotateZ(-5deg) scale(.88); opacity: .78; }
.phone__screen {
  position: absolute;
  inset: .6rem;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(246,199,91,.18), rgba(0,0,0,.95)), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0/28px 28px;
  overflow: hidden;
}
.app-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transform: translateX(40%);
  transition: .65s ease;
}
.app-slide.active { opacity: 1; transform: translateX(0); }
.app-slide b { color: var(--gold); font-size: 1.55rem; }
.app-slide span { color: var(--muted); margin-top: .4rem; }

.service-grid { grid-template-columns: repeat(4, 1fr); }
.service-grid article {
  min-height: 8rem;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 1rem;
  font-weight: 800;
}
.market-grid { grid-template-columns: repeat(3, 1fr); }
.market-grid article { display: grid; gap: .65rem; padding: 1.2rem; border-radius: 1rem; }
.market-grid span { color: var(--gold); font-weight: 900; }
.market-grid b { font-size: 1.6rem; }
.market-grid small { color: var(--muted); }
.market-grid a { justify-self: start; color: #080602; background: var(--gold); padding: .65rem .85rem; border-radius: .65rem; font-weight: 900; }

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
  counter-reset: phase;
}
.timeline li {
  min-height: 10rem;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,.06);
}
.timeline li::before { display: none; }
.timeline span { color: var(--gold); font-size: .85rem; font-weight: 900; }
.timeline b { margin-top: .45rem; }
.faq-list { display: grid; gap: .85rem; }
.faq-list details { padding: 1rem 1.2rem; border-radius: .85rem; }
.faq-list summary { cursor: pointer; font-weight: 800; }
.contact__box { max-width: 760px; padding: clamp(1.5rem, 5vw, 3rem); border-radius: 1.4rem; text-align: center; }
.contact__box h2 { margin: auto; }
.contact__box .hero__actions { justify-content: center; }
.footer { padding: 2rem 0; border-top: 1px solid var(--line); background: rgba(0,0,0,.5); }
.footer .container { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.footer p { max-width: 760px; margin: 0; font-size: .9rem; }
.footer a { color: var(--muted); margin-left: 1rem; }

.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 5rem;
    display: none;
    padding: .8rem;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(4,4,3,.92);
  }
  .nav.open .nav__links { display: flex; }
  .nav > .btn { display: none; }
  .split, .duo, .market-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .timeline { grid-template-columns: repeat(2, 1fr); }
  .phones { min-height: 29rem; }
  .phone { right: 28%; height: 28rem; }
  .phone--back { right: 7%; }
  .portal--hero { opacity: .6; right: 3vw; }
}

@media (max-width: 620px) {
  .section { min-height: auto; padding: 7rem 0; }
  .hero { min-height: 100svh; }
  .benefit-grid, .service-grid, .timeline { grid-template-columns: 1fr; }
  .network { min-height: 42rem; }
  .node { font-size: .75rem; padding: .6rem .7rem; }
  .node--center { width: 6.5rem; height: 6.5rem; font-size: 1.45rem; }
  .stats { display: grid; grid-template-columns: 1fr; }
  .footer .container { align-items: flex-start; flex-direction: column; }
  .footer a { margin: 0 1rem 0 0; }
}

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