:root {
  --bg: #06090d;
  --panel: #0e151e;
  --line: #1e2a36;
  --accent: #00c6ff;
  --text: #eceff4;
  --dim: #8b95a5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
section[id] { scroll-margin-top: 76px; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

#particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 28px;
  padding-top: max(12px, env(safe-area-inset-top));
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 9, 13, 0.88);
  backdrop-filter: blur(16px);
}
.head-end { display: flex; align-items: center; gap: 8px; justify-self: end; }
nav { justify-self: end; margin-right: 4px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 14px; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.brand small { display: block; color: var(--dim); font-size: 10px; font-weight: 500; }
nav { display: flex; gap: 18px; color: var(--dim); font-size: 13px; }
nav a { position: relative; }
nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
nav a:hover { color: var(--text); }
nav a:hover::after { transform: scaleX(1); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 650;
  min-height: 40px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-cyan { background: var(--accent); color: #041018; box-shadow: 0 8px 22px rgba(0, 198, 255, 0.25); }
.hamb { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 999px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 36px; align-items: center;
  padding: 36px 0 24px;
}
.hero h1 {
  font-size: 28px; letter-spacing: -0.03em; line-height: 1.2; font-weight: 750; margin: 8px 0 10px;
}
.hero h1 span { color: var(--accent); }
.kicker { color: var(--accent); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; }
.hero p { color: var(--dim); font-size: 14px; max-width: 52ch; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.value { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.value span {
  font-size: 12px;
  background: rgba(0, 198, 255, 0.08); border: 1px solid rgba(0, 198, 255, 0.2);
  border-radius: 999px; padding: 6px 12px;
}

.stage-wrap {
  width: min(440px, 100%);
  margin-inline: auto;
  padding: 12px 0 20px;
}
.stage {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 198, 255, 0.16), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(0, 198, 255, 0.05), transparent 62%);
}
.sun {
  position: absolute; inset: 0; margin: auto; z-index: 5;
  width: clamp(56px, 19%, 82px); height: clamp(56px, 19%, 82px); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fffef8, #ffe08a 28%, #00c6ff 58%, #023a4d 100%);
  box-shadow: 0 0 0 5px rgba(255, 210, 120, 0.12), 0 0 36px rgba(0, 198, 255, 0.45), 0 0 70px rgba(255, 176, 64, 0.18);
  display: grid; place-items: center;
  animation: corona 4s ease-in-out infinite;
}
.sun img { width: 34px; height: 34px; border-radius: 50%; }
@keyframes corona {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 210, 120, 0.1), 0 0 28px rgba(0, 198, 255, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(255, 210, 120, 0.16), 0 0 48px rgba(0, 198, 255, 0.55); }
}
.path {
  position: absolute; inset: 0; margin: auto;
  width: var(--d); height: var(--d);
  border: 1px solid rgba(180, 210, 230, 0.12);
  border-radius: 50%;
  animation: orbit var(--t) linear infinite;
  animation-delay: var(--delay, 0s);
}
.body {
  position: absolute; top: 0; left: 50%;
  width: 0; height: 0;
  animation: counter var(--t) linear infinite;
  animation-delay: var(--delay, 0s);
}
.planet {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.sphere {
  display: block;
  border-radius: 50%;
  box-shadow: inset -3px -2px 6px rgba(0, 0, 0, 0.45), 0 0 10px rgba(0, 0, 0, 0.25);
}
.p-sw .sphere {
  width: 9px; height: 9px;
  background: radial-gradient(circle at 30% 30%, #d8dee8, #7b8494 55%, #3a414c);
}
.p-eq .sphere {
  width: 13px; height: 13px;
  background: radial-gradient(circle at 32% 28%, #c9e4ff, #3d7ca8 52%, #1c3d55);
}
.p-net .sphere {
  width: 12px; height: 12px;
  background: radial-gradient(circle at 30% 30%, #b8f0e0, #2a8f78 50%, #14463c);
}
.p-pr .sphere {
  width: 15px; height: 15px;
  background: radial-gradient(circle at 30% 28%, #f3d2b0, #c47a3a 48%, #5c3214);
}
.p-sec {
  position: relative;
}
.p-sec .sphere {
  width: 18px; height: 18px;
  background: radial-gradient(circle at 32% 28%, #d7f7ff, #3aa8d4 42%, #00c6ff 68%, #0a4a62);
  box-shadow: inset -3px -2px 6px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 198, 255, 0.35);
}
.p-sec .ring {
  position: absolute;
  top: 4px;
  width: 28px; height: 8px;
  border: 1.5px solid rgba(180, 230, 255, 0.55);
  border-radius: 50%;
  transform: rotate(-18deg);
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0, 198, 255, 0.25);
}
.planet a {
  font-size: 10px; font-weight: 600; color: var(--dim);
  letter-spacing: 0.02em;
  background: rgba(6, 9, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px; padding: 3px 8px; white-space: nowrap;
}
.planet a:hover { border-color: rgba(0, 198, 255, 0.45); color: var(--text); }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes counter { to { transform: rotate(-360deg); } }
@media (hover: hover) {
  .stage:hover .path,
  .stage:hover .body { animation-play-state: paused; }
}

.sec-head { padding: 8px 0 14px; max-width: 62ch; }
.sec-head h2 { font-size: 18px; letter-spacing: -0.02em; font-weight: 700; }
.sec-head p { color: var(--dim); font-size: 13px; margin-top: 6px; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding-bottom: 36px; }
.flow a, .item, .who article, .contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120px 80px at 100% 0%, rgba(0, 198, 255, 0.14), transparent 70%),
    linear-gradient(165deg, #15202c 0%, #0c131b 48%, #0a1017 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px 20px 28px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 40px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.flow a::before, .item::before, .who article::before, .contact::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 0.6px, transparent 0.8px);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.flow a::after, .item::after, .who article::after {
  content: "";
  position: absolute; left: 18px; right: 18px; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.7), transparent);
  opacity: 0.55;
}
.flow a > *, .item > *, .who article > *, .contact > * { position: relative; z-index: 1; }
.flow a { padding: 20px 18px 18px; display: flex; flex-direction: column; min-height: 220px; }
.flow a:nth-child(even), .item:nth-child(even), .who article:nth-child(even) {
  border-radius: 20px 28px 16px 26px;
}
@media (hover: hover) {
  .flow a:hover, .item:hover, .who article:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 198, 255, 0.42);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 22px 48px rgba(0, 0, 0, 0.4),
      0 0 28px rgba(0, 198, 255, 0.12);
  }
}
.flow .n, .who .n {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(0, 198, 255, 0.1);
  border: 1px solid rgba(0, 198, 255, 0.32);
  box-shadow: 0 0 16px rgba(0, 198, 255, 0.12);
}
.flow h3 { font-size: 16px; margin: 14px 0 8px; font-weight: 700; letter-spacing: -0.02em; }
.flow p, .item p, .who p { color: var(--dim); font-size: 13px; line-height: 1.55; margin-top: 6px; }
.flow p { flex: 1; }
.flow .go, .item a {
  margin-top: 16px;
  align-self: flex-start;
  display: inline-flex; align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 650;
  color: var(--accent);
  background: rgba(0, 198, 255, 0.08);
  border: 1px solid rgba(0, 198, 255, 0.28);
}
.flow .lock {
  border-color: rgba(0, 198, 255, 0.38);
  background:
    radial-gradient(140px 90px at 100% 0%, rgba(0, 198, 255, 0.28), transparent 65%),
    linear-gradient(165deg, #163040 0%, #0c131b 55%);
}
.flow .lock h3 { color: var(--accent); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 36px; }
.item {
  padding: 22px 20px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: start;
}
.item h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.item a { margin-top: 0; }
.item p { grid-column: 1 / -1; }

.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 36px; }
.who article { padding: 22px 20px; min-height: 180px; }
.who h3 { font-size: 15px; font-weight: 700; margin-top: 14px; letter-spacing: -0.02em; }

.contact {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px;
  padding: 28px 26px; margin-bottom: 28px; border-radius: 32px 24px 36px 22px;
}
.contact h2 { font-size: 22px; margin: 6px 0 10px; letter-spacing: -0.03em; line-height: 1.25; }
.contact p { color: var(--dim); font-size: 14px; max-width: 48ch; }
.mails { display: grid; gap: 8px; align-content: center; }
.mails a {
  color: var(--dim); font-size: 13px; overflow-wrap: anywhere;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.mails a:hover { color: var(--accent); border-color: rgba(0, 198, 255, 0.35); }

.rise { animation: rise 0.8s ease both; }
.rise:nth-child(2) { animation-delay: 0.08s; }
.rise:nth-child(3) { animation-delay: 0.16s; }
.rise:nth-child(4) { animation-delay: 0.24s; }
.rise:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

footer {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 4px 0 max(28px, env(safe-area-inset-bottom)); color: var(--dim); font-size: 12px;
  flex-wrap: wrap;
}
footer a:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 24px; }
  .flow { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  header {
    grid-template-columns: 1fr auto;
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    margin: 0;
    flex-direction: column;
    gap: 4px;
    background: #0b1118;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
  }
  header.open nav { display: flex; }
  nav a { padding: 10px 12px; border-radius: 10px; }
  nav a:hover { background: rgba(0, 198, 255, 0.08); }
  .hamb { display: grid; place-items: center; min-width: 40px; min-height: 40px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 0 16px;
    gap: 12px;
  }
  .hero h1 { font-size: clamp(22px, 6vw, 28px); }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow a:last-child { grid-column: 1 / -1; }
  .who { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .stage-wrap { width: min(340px, 100%); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid, .who, .flow { grid-template-columns: 1fr; }
  .flow a:last-child { grid-column: auto; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .planet a { font-size: 9px; padding: 2px 7px; }
  .item { padding: 16px; }
  .contact { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .path, .body, .sun, .rise, #particles { animation: none; }
  .rise { opacity: 1; transform: none; }
  #particles { display: none; }
}
