@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos-text-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0f1a;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --green: #3be07c;
  --blue: #2e7cf0;
  --cyan: #38bdf8;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(59, 224, 124, 0.13), transparent 26rem),
    radial-gradient(circle at 78% 20%, rgba(46, 124, 240, 0.18), transparent 26rem),
    radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Golos Text", Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
}

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

.app-shell,
.site-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-badge,
.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--green), var(--blue));
  color: #08111f;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 16px 42px rgba(46, 124, 240, 0.32);
}

.brand-name,
.brand-text {
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.top-action,
.top-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.top-action,
.top-cta {
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.64);
  color: #e2e8f0;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 22px;
  align-items: stretch;
  min-height: calc(100vh - 118px);
}

.hero-copy,
.phone-card,
.bento-card,
.handoff,
.handoff-panel,
.legal-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(10, 15, 26, 0.78)),
    radial-gradient(circle at 80% 0%, rgba(59, 224, 124, 0.1), transparent 18rem);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-copy {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 70px);
  border-radius: 36px;
}

.overline,
.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.3rem, 8.2vw, 7.6rem);
  font-weight: 900;
  line-height: 0.9;
}

h1::first-line {
  color: #fff;
}

.lead,
.legal-page .lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.06rem, 1.8vw, 1.24rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.primary-action {
  min-width: min(100%, 300px);
  padding: 15px 22px;
  background: linear-gradient(180deg, var(--green), var(--blue));
  color: #07101d;
  box-shadow: 0 18px 44px rgba(46, 124, 240, 0.34);
}

.actions span {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
}

.phone-card {
  position: relative;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  border-radius: 42px;
}

.phone-card::before {
  position: absolute;
  inset: 9% -26% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  content: "";
  background: radial-gradient(circle, rgba(59, 224, 124, 0.26), transparent 62%);
}

.phone-card::after {
  position: absolute;
  inset: auto auto 8% -18%;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  content: "";
  background: radial-gradient(circle, rgba(46, 124, 240, 0.24), transparent 64%);
}

.phone-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 13px;
  border: 1px solid rgba(59, 224, 124, 0.22);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.62);
  color: #d8ffe8;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(59, 224, 124, 0.9);
}

.connect-ring {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 290px);
  aspect-ratio: 1;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle, #0a0f1a 0 45%, transparent 46%),
    conic-gradient(from 220deg, var(--green), var(--cyan), var(--blue), rgba(148, 163, 184, 0.22), var(--green));
  box-shadow: 0 0 48px rgba(46, 124, 240, 0.24);
  will-change: transform;
}

.connect-ring span {
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 900;
}

.connection-info,
.metric-grid {
  position: relative;
  z-index: 1;
}

.connection-info p {
  margin: 0;
  color: var(--muted);
}

.connection-info strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.metric-grid div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(8, 17, 31, 0.58);
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.metric-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  padding: 24px 0;
}

.bento-card {
  min-height: 260px;
  padding: 28px;
  border-radius: 34px;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.32s ease;
  will-change: transform;
}

.bento-card:hover {
  border-color: rgba(59, 224, 124, 0.32);
  transform: translateY(-4px);
}

.speed {
  grid-column: span 2;
}

.locations {
  grid-column: span 2;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(10, 15, 26, 0.8)),
    radial-gradient(circle at 80% 0%, rgba(46, 124, 240, 0.18), transparent 18rem);
}

.stable {
  grid-column: span 2;
}

.emoji {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  font-size: 1.9rem;
}

.bento-card h2 {
  max-width: 360px;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  font-weight: 900;
  line-height: 1.04;
}

.bento-card p {
  max-width: 390px;
  margin: 16px 0 0;
  color: var(--muted);
}

.handoff {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 30px;
  padding: clamp(26px, 5vw, 46px);
  border-radius: 38px;
}

.handoff h2,
.legal-page h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 5.2vw, 5.2rem);
  font-weight: 900;
  line-height: 0.94;
}

.handoff-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 30px;
}

.handoff-panel p {
  margin: 0;
  color: var(--muted-strong);
}

.secondary-action {
  width: fit-content;
  padding: 15px 20px;
  border: 1px solid rgba(59, 224, 124, 0.26);
  background: rgba(8, 17, 31, 0.62);
  color: #eef6ff;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: center;
  padding: 30px 0 48px;
  color: var(--muted);
}

.footer span {
  color: #fff;
  font-weight: 900;
}

.footer a:hover {
  color: var(--green);
}

.legal-shell {
  width: min(960px, calc(100% - 32px));
}

.legal-page {
  padding: 44px 0 70px;
}

.legal-card {
  margin-top: 34px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 34px;
}

.legal-card h2 {
  margin-top: 30px;
  font-size: clamp(1.3rem, 2.4vw, 1.95rem);
  font-weight: 900;
}

.legal-card p,
.legal-card li {
  color: #cbd5e1;
}

.legal-card a {
  color: #bbf7d0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 940px) {
  .hero,
  .handoff {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .phone-card {
    min-height: auto;
  }

  .phone-card {
    gap: 34px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .speed,
  .locations,
  .stable {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .app-shell,
  .site-shell,
  .legal-shell {
    width: min(100% - 24px, 1160px);
  }

  .topbar {
    min-height: 76px;
    padding: 14px 0;
  }

  .brand-badge,
  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 17px;
    font-size: 1.72rem;
  }

  .brand-name,
  .brand-text {
    font-size: 0.86rem;
  }

  .top-action,
  .top-cta {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 0.88rem;
  }

  .hero {
    gap: 14px;
    min-height: auto;
  }

  .hero-copy,
  .phone-card {
    border-radius: 28px;
    padding: 22px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .lead {
    margin-top: 18px;
  }

  .actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .actions span {
    width: 100%;
    text-align: center;
  }

  .connect-ring {
    width: min(100%, 230px);
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .bento {
    gap: 14px;
    padding: 14px 0;
  }

  .bento-card,
  .handoff,
  .handoff-panel,
  .legal-card {
    border-radius: 28px;
    padding: 22px;
  }
}

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