/* TED Service public website: Violet Orbit */
:root {
  --bg: #05030d;
  --bg-soft: #080512;
  --surface: #0d0918;
  --surface-strong: #120c22;
  --surface-raised: #18102e;
  --text: #f7f4ff;
  --text-soft: #ddd7ec;
  --muted: #9f97b3;
  --muted-strong: #bbb2cd;
  --accent: #9b7cff;
  --accent-soft: #b9a8ff;
  --accent-blue: #5b8cff;
  --cyan: #68d0ff;
  --danger: #ff8fa3;
  --line: rgba(218, 208, 255, 0.12);
  --line-strong: rgba(218, 208, 255, 0.24);
  --max-width: 1320px;
  --topbar-height: 76px;
  --radius: 8px;
  --space-shift: 0px;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 22px);
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "SF Pro Display", "SF Pro Text", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  position: fixed;
  pointer-events: none;
  content: "";
}

body::before {
  inset: -7%;
  z-index: 0;
  background: url("/site/ted-cosmic-bg.jpg") 57% top / cover no-repeat;
  opacity: 0.62;
  transform: translate3d(0, var(--space-shift), 0) scale(1.08);
  transform-origin: 50% 20%;
  will-change: transform;
}

body::after {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5, 3, 13, 0.72) 0%, rgba(5, 3, 13, 0.18) 58%, rgba(5, 3, 13, 0.32) 100%),
    linear-gradient(180deg, rgba(5, 3, 13, 0.08) 0%, rgba(5, 3, 13, 0.54) 54%, #05030d 100%);
}

body.nav-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  color: #100a21;
  background: var(--accent);
}

.site-layout,
.site-main-col {
  width: 100%;
  min-width: 0;
}

.site-layout {
  position: relative;
  z-index: 1;
}

.site-main-col {
  min-height: 100vh;
}

.wrap {
  width: 100%;
  min-width: 0;
}

/* Header */
.site-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 35;
  height: var(--topbar-height);
  border-bottom: 1px solid rgba(218, 208, 255, 0.1);
  background: rgba(5, 3, 13, 0.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(calc(100% - 48px), var(--max-width));
  height: 100%;
  margin: 0 auto;
}

.topbar-brand,
.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 17px;
  font-weight: 740;
  line-height: 1;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(185, 168, 255, 0.7);
  border-radius: 7px;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 0 28px rgba(155, 124, 255, 0.28);
  font-size: 17px;
  font-weight: 850;
}

.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1 1 auto;
}

.topnav-link {
  position: relative;
  padding: 10px 0;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 630;
  transition: color 160ms ease;
}

.topnav-link::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.topnav-link:hover,
.topnav-link.is-active {
  color: var(--text);
}

.topnav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.topbar-app {
  padding: 10px 4px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  padding: 12px 10px;
  border: 1px solid rgba(190, 174, 255, 0.52);
  border-radius: 6px;
  background: rgba(109, 78, 214, 0.3);
  box-shadow: 0 0 22px rgba(155, 124, 255, 0.2);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible,
body.nav-open .nav-toggle {
  border-color: rgba(218, 208, 255, 0.78);
  background: rgba(124, 92, 255, 0.48);
  box-shadow: 0 0 28px rgba(155, 124, 255, 0.34);
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer */
.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: visibility 220ms ease, opacity 220ms ease;
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: none;
  width: min(340px, calc(100vw - 28px));
  border-right: 1px solid var(--line-strong);
  background: rgba(8, 5, 18, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform: translateX(-105%);
  transition: transform 220ms ease;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 22px 24px;
}

.sidebar-tagline {
  max-width: 245px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.sidebar-nav {
  display: grid;
  gap: 2px;
  margin-top: 34px;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-left: 2px solid transparent;
  color: var(--muted-strong);
  font-size: 16px;
  font-weight: 640;
}

.nav-link:hover,
.nav-link.is-active {
  border-left-color: var(--accent);
  color: var(--text);
  background: rgba(155, 124, 255, 0.08);
}

.sidebar-spacer {
  flex: 1 1 auto;
  min-height: 28px;
}

.sidebar-cta-stack {
  display: grid;
  gap: 10px;
}

.sidebar-cta-bot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #ffffff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 760;
}

.sidebar-cta-bot--soft {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

/* Buttons and shared typography */
.site-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 12px 34px rgba(124, 92, 255, 0.2);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.site-cta::before {
  position: absolute;
  top: -70%;
  bottom: -70%;
  left: -45%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-18deg) translateX(-220%);
  transition: transform 520ms ease;
}

.site-cta:hover::before {
  transform: skewX(-18deg) translateX(720%);
}

.site-cta:hover {
  color: #ffffff;
  background: #8767f5;
  border-color: #b9a8ff;
  transform: translateY(-2px);
}

.site-cta.secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.site-cta.secondary:hover {
  border-color: rgba(155, 124, 255, 0.58);
  color: var(--accent);
  background: rgba(155, 124, 255, 0.08);
}

.site-cta--large {
  min-height: 54px;
  padding: 0 26px;
  font-size: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 720;
}

.text-link:hover {
  color: #d9d0ff;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-dot,
.signal-card-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(155, 124, 255, 0.9);
}

.section {
  position: relative;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: none;
}

.section-heading--row > .sub {
  max-width: 440px;
  margin-bottom: 5px;
}

.section-heading--compact {
  margin-bottom: 28px;
}

.section h2,
.final-cta h2 {
  margin: 0;
  color: var(--text);
  font-size: 48px;
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: 0;
}

.sub {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.muted-small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 9, 24, 0.82);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 24px 70px rgba(2, 1, 8, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.card h3 {
  margin: 0;
  color: var(--text);
  font-size: 23px;
  line-height: 1.2;
}

.card p {
  color: var(--muted-strong);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 52px;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 54px) 0 50px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 22%;
  left: -18%;
  width: 58%;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 60px 12px rgba(155, 124, 255, 0.13);
  content: "";
  opacity: 0.45;
}

.hero-grid {
  position: absolute;
  inset: var(--topbar-height) 0 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(155, 124, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 72%, transparent);
  opacity: 0.4;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-weight: 720;
  letter-spacing: 0;
}

.hero-brand,
.hero-statement {
  display: block;
}

.hero-brand {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 76px;
  line-height: 0.96;
}

.hero-statement {
  color: var(--text-soft);
  font-size: 47px;
  line-height: 1.08;
}

.hero-statement::after {
  display: inline-block;
  width: 11px;
  height: 0.88em;
  margin-left: 8px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(155, 124, 255, 0.58);
  content: "";
  vertical-align: -0.04em;
}

.lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 660;
  text-transform: uppercase;
}

.hero-trust span {
  position: relative;
  padding: 0 18px;
}

.hero-trust span:first-child {
  padding-left: 0;
}

.hero-trust span + span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.hero-product {
  position: relative;
  z-index: 2;
  min-height: 690px;
}

.product-halo {
  position: absolute;
  inset: 15% 0 8% 8%;
  border: 1px solid rgba(155, 124, 255, 0.24);
  background: rgba(155, 124, 255, 0.035);
  box-shadow: 0 0 100px rgba(124, 92, 255, 0.2), inset 0 0 90px rgba(91, 140, 255, 0.05);
  transform: skewY(-4deg);
}

.phone-shell {
  --phone-x: 0%;
  --phone-rotate: 2deg;
  position: absolute;
  top: 46px;
  right: 72px;
  width: 304px;
  height: 658px;
  overflow: hidden;
  border: 8px solid #211832;
  border-radius: 38px;
  background: #080510;
  box-shadow: 0 38px 96px rgba(2, 1, 8, 0.72), 0 0 0 1px rgba(218, 208, 255, 0.2), 0 0 70px rgba(124, 92, 255, 0.13);
  transform: translateX(var(--phone-x)) rotate(var(--phone-rotate));
}

.phone-shell::after {
  position: absolute;
  inset: 0;
  border-radius: 29px;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.11), transparent 28%, transparent 74%, rgba(255, 255, 255, 0.035));
  content: "";
  pointer-events: none;
}

.phone-speaker {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 78px;
  height: 22px;
  border-radius: 20px;
  background: #080510;
  transform: translateX(-50%);
}

.phone-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.signal-card {
  position: absolute;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 9px;
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(13, 9, 24, 0.84);
  box-shadow: 0 18px 54px rgba(2, 1, 8, 0.5), 0 0 32px rgba(124, 92, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.signal-card strong {
  color: var(--text);
  font-size: 13px;
}

.signal-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}

.signal-card--top {
  top: 110px;
  left: 2px;
}

.signal-card--bottom {
  right: 0;
  bottom: 78px;
}

.signal-card--bottom strong,
.signal-card--bottom small {
  grid-column: 1 / -1;
}

/* Benefits */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.benefit-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(170px, auto);
}

.benefit-card {
  min-height: 190px;
  padding: 32px;
  overflow: hidden;
}

.benefit-card:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 396px;
}

.benefit-card:nth-child(2),
.benefit-card:nth-child(3) {
  grid-column: span 5;
}

.benefit-card:nth-child(4) {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 150px;
}

.benefit-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 55%);
  content: "";
  opacity: 0.35;
}

.benefit-card--primary {
  background:
    linear-gradient(145deg, rgba(155, 124, 255, 0.1), transparent 45%),
    var(--surface);
}

.benefit-card--accent {
  border-color: rgba(91, 140, 255, 0.26);
  background:
    linear-gradient(90deg, rgba(91, 140, 255, 0.08), transparent 50%),
    var(--surface);
}

.card-index {
  display: block;
  margin-bottom: 44px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.benefit-card:nth-child(2) .card-index,
.benefit-card:nth-child(3) .card-index {
  margin-bottom: 24px;
}

.benefit-card:nth-child(4) .card-index {
  margin: 0;
  font-size: 28px;
}

.benefit-card h3 {
  max-width: 480px;
  font-size: 28px;
}

.benefit-card p {
  max-width: 550px;
  margin: 16px 0 0;
  line-height: 1.65;
}

.privacy-visual {
  position: absolute;
  right: 32px;
  bottom: 34px;
  left: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  border-top: 1px solid var(--line);
}

.privacy-visual::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.privacy-visual span {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--surface);
}

.privacy-visual i {
  position: absolute;
  top: 50%;
  left: 56%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 28px rgba(155, 124, 255, 0.28);
  transform: translate(-50%, -50%);
}

.privacy-visual i::before {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 9px;
  border: 2px solid var(--accent);
  border-radius: 2px;
  content: "";
}

.device-row {
  display: flex;
  gap: 8px;
  margin-top: 25px;
}

.device-row span {
  display: grid;
  place-items: center;
  min-width: 62px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.platform-line {
  color: var(--cyan) !important;
  font-size: 12px;
  font-weight: 680;
}

.benefit-card--accent p {
  margin: 0;
}

.legal-note {
  max-width: 920px;
  margin: 22px 0 0;
}

/* Connection flow and tabs */
.journey {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 80px minmax(180px, 1fr) 80px minmax(180px, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 0 40px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 9, 24, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.journey-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 11px;
}

.journey-step span {
  grid-row: span 2;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.journey-step strong {
  color: var(--text);
  font-size: 14px;
}

.journey-step small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.journey-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(155, 124, 255, 0.18), rgba(155, 124, 255, 0.78), rgba(91, 140, 255, 0.2));
}

.plat-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.plat-tab {
  flex: 1 0 auto;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.plat-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.plat-tab.active {
  border-color: rgba(155, 124, 255, 0.58);
  color: #ffffff;
  background: var(--accent);
}

.plat-panel {
  display: none;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 9, 24, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.plat-panel.active {
  display: block;
  animation: panel-in 220ms ease both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ted-step;
}

.steps li {
  position: relative;
  min-height: 44px;
  padding: 3px 0 22px 54px;
  color: var(--muted-strong);
  counter-increment: ted-step;
}

.steps li:last-child {
  padding-bottom: 3px;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(155, 124, 255, 0.42);
  border-radius: 5px;
  color: var(--accent);
  background: rgba(155, 124, 255, 0.07);
  content: counter(ted-step, decimal-leading-zero);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
}

.steps li:not(:last-child)::after {
  position: absolute;
  top: 36px;
  bottom: 3px;
  left: 16px;
  width: 1px;
  background: var(--line);
  content: "";
}

.steps strong {
  color: var(--text);
}

.instruction-manual-card {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid rgba(91, 140, 255, 0.26);
  border-left: 2px solid var(--cyan);
  border-radius: 6px;
  background: rgba(91, 140, 255, 0.055);
}

.instruction-manual-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

.instruction-manual-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.instruction-manual-single {
  margin: 0;
}

.instruction-embed-trigger,
.instruction-embed-close {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-weight: 680;
  text-align: left;
  cursor: pointer;
}

.instruction-embed-trigger:hover,
.instruction-embed-close:hover {
  color: var(--text);
}

.instruction-embed-wrap {
  margin: 18px 0 24px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

.instruction-embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

.instruction-embed-open {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
}

.instruction-embed-error {
  margin: 16px;
  color: var(--danger);
}

.instruction-embed-frame {
  display: block;
  width: 100%;
  height: 700px;
  border: 0;
  background: #fff;
}

/* Tariffs */
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tariff {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.tariff:hover {
  border-color: rgba(155, 124, 255, 0.38);
  transform: translateY(-4px);
}

.tariff--featured {
  border-color: rgba(155, 124, 255, 0.66);
  background:
    linear-gradient(155deg, rgba(155, 124, 255, 0.14), transparent 52%),
    var(--surface-strong);
}

.tariff-choice {
  position: absolute;
  top: -13px;
  right: 16px;
  padding: 6px 9px;
  border-radius: 4px;
  color: #ffffff;
  background: var(--accent);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.tariff-period {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.tariff h3 {
  color: var(--text-soft);
  font-size: 16px;
}

.price {
  margin-top: 12px;
  color: var(--text);
  font-size: 39px;
  font-weight: 760;
  line-height: 1;
}

.badge {
  align-self: flex-start;
  margin-top: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(91, 140, 255, 0.4);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 760;
}

.note {
  min-height: 50px;
  margin: 18px 0 26px;
  color: var(--muted) !important;
  font-size: 13px;
}

.tariff-cta {
  width: 100%;
  margin-top: auto;
}

/* Knowledge base */
.instr-tabs {
  margin-top: 10px;
}

.instruction-ping-card,
.happ-routing-card {
  padding: 28px;
}

.instruction-ping-card .steps {
  margin-top: 24px;
}

.connect-figure {
  max-width: 500px;
  margin: 28px auto 0;
}

.connect-illu {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.instr-ping-img {
  background: #fff;
}

.happ-routing-card .sub {
  margin-top: 16px;
}

.happ-routing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 18px;
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  position: relative;
  display: block;
  width: 100%;
  min-height: 78px;
  padding: 20px 62px 20px 0;
  border: 0;
  color: var(--text-soft);
  background: transparent;
  font-size: 18px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.faq-q::before,
.faq-q::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 16px;
  height: 1px;
  background: var(--accent);
  content: "";
  transition: transform 180ms ease;
}

.faq-q::after {
  transform: rotate(90deg);
}

.faq-item.open .faq-q::after {
  transform: rotate(0deg);
}

.faq-q:hover {
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 62px 0 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
  opacity: 0;
  transition: max-height 240ms ease, padding 240ms ease, opacity 180ms ease;
}

.faq-item.open .faq-a {
  max-height: 360px;
  padding-bottom: 24px;
  opacity: 1;
}

/* Final CTA, documents and footer */
.final-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 52px;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 60px auto 0;
  padding: 58px;
  overflow: hidden;
  border: 1px solid rgba(155, 124, 255, 0.44);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(155, 124, 255, 0.13), transparent 52%),
    var(--surface-strong);
}

.final-cta > div:not(.final-cta-signal) {
  position: relative;
  z-index: 2;
}

.final-cta h2 {
  font-size: 44px;
}

.final-cta p:not(.eyebrow) {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted-strong);
}

.final-cta-actions {
  display: grid;
  justify-items: stretch;
  gap: 14px;
  min-width: 230px;
  text-align: center;
}

.final-cta-actions .text-link {
  justify-content: center;
}

.final-cta-signal {
  position: absolute;
  top: 50%;
  right: 30%;
  width: 250px;
  height: 250px;
  transform: translateY(-50%);
  opacity: 0.18;
}

.final-cta-signal span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.final-cta-signal span:nth-child(2) {
  inset: 40px;
}

.final-cta-signal span:nth-child(3) {
  inset: 80px;
  background: rgba(155, 124, 255, 0.18);
}

.doc-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.doc-links a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-soft);
  background: var(--surface);
  font-weight: 650;
  transition: border-color 160ms ease, color 160ms ease;
}

.doc-links a:hover {
  border-color: rgba(155, 124, 255, 0.48);
  color: var(--accent);
}

.doc-links span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.doc-links i {
  font-style: normal;
}

.contacts-footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 78px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.7fr) minmax(240px, 0.9fr);
  gap: 60px;
  padding-bottom: 64px;
}

.footer-brand p {
  max-width: 330px;
  margin: 20px 0 0;
  color: var(--muted);
}

.contacts-block-label {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.contact-tg-chips,
.contacts-links {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.contact-chip,
.contacts-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 640;
}

.contact-chip:hover,
.contacts-links a:hover {
  color: var(--accent);
}

.contacts-links p {
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

/* Ambient motion */
.motion-ready .hero-copy > * {
  opacity: 0;
  translate: 0 22px;
}

.motion-ready.motion-loaded .hero-copy > * {
  opacity: 1;
  translate: 0 0;
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1), translate 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready.motion-loaded .hero-copy > :nth-child(2) {
  transition-delay: 90ms;
}

.motion-ready.motion-loaded .hero-copy > :nth-child(3) {
  transition-delay: 170ms;
}

.motion-ready.motion-loaded .hero-copy > :nth-child(4) {
  transition-delay: 250ms;
}

.motion-ready.motion-loaded .hero-copy > :nth-child(5) {
  transition-delay: 320ms;
}

.motion-ready .hero-product {
  opacity: 0;
  translate: 0 28px;
}

.motion-ready.motion-loaded .hero-product {
  opacity: 1;
  translate: 0 0;
  transition: opacity 900ms 180ms cubic-bezier(0.22, 1, 0.36, 1), translate 900ms 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-loaded .phone-shell {
  animation: phone-orbit 8.5s 1.1s ease-in-out infinite;
}

.motion-loaded .signal-card--top {
  animation: signal-drift 6.8s 1.4s ease-in-out infinite;
}

.motion-loaded .signal-card--bottom {
  animation: signal-drift 7.6s 2.1s ease-in-out infinite reverse;
}

.motion-loaded .status-dot,
.motion-loaded .signal-card-dot {
  animation: signal-pulse 2.8s ease-in-out infinite;
}

.motion-loaded .hero-grid {
  animation: grid-drift 22s linear infinite;
}

.motion-loaded .final-cta-signal span {
  animation: orbit-pulse 5.6s ease-in-out infinite;
}

.motion-loaded .final-cta-signal span:nth-child(2) {
  animation-delay: 500ms;
}

.motion-loaded .final-cta-signal span:nth-child(3) {
  animation-delay: 1s;
}

.motion-ready .reveal-item {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), translate 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (hover: hover) and (pointer: fine) {
  .benefit-card,
  .journey,
  .doc-links a {
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
  }

  .benefit-card:hover,
  .journey:hover,
  .doc-links a:hover {
    border-color: rgba(155, 124, 255, 0.42);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 28px 78px rgba(2, 1, 8, 0.32), 0 0 36px rgba(124, 92, 255, 0.08);
    transform: translateY(-3px);
  }
}

@keyframes phone-orbit {
  0%,
  100% {
    transform: translateX(var(--phone-x)) translateY(0) rotate(var(--phone-rotate));
  }
  50% {
    transform: translateX(var(--phone-x)) translateY(-10px) rotate(var(--phone-rotate));
  }
}

@keyframes signal-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes signal-pulse {
  0%,
  100% {
    opacity: 0.72;
    box-shadow: 0 0 10px rgba(155, 124, 255, 0.58);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(155, 124, 255, 0.96);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 72px 72px, 72px 72px;
  }
}

@keyframes orbit-pulse {
  0%,
  100% {
    opacity: 0.58;
    scale: 0.98;
  }
  50% {
    opacity: 1;
    scale: 1.04;
  }
}

/* Responsive */
@media (max-width: 1160px) {
  .site-topbar-inner {
    gap: 22px;
  }

  .topbar-nav {
    gap: 20px;
  }

  .topbar-app {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
    gap: 24px;
  }

  .hero-brand {
    font-size: 66px;
  }

  .hero-statement {
    font-size: 41px;
  }

  .phone-shell {
    right: 38px;
  }

  .signal-card--top {
    left: -14px;
  }

  .tariff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .tariff {
    min-height: 330px;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar-height: 68px;
  }

  .site-sidebar {
    display: block;
  }

  body.nav-open .site-sidebar {
    transform: translateX(0);
  }

  body.nav-open .site-backdrop {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .topbar-nav {
    display: none;
  }

  .site-topbar-inner {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .topbar-brand {
    flex: 1 1 auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: calc(var(--topbar-height) + 80px);
  }

  .hero-copy {
    max-width: 730px;
  }

  .hero-product {
    width: min(100%, 620px);
    min-height: 620px;
    margin: 0 auto;
  }

  .phone-shell {
    --phone-x: 50%;
    --phone-rotate: 1.5deg;
    top: 30px;
    right: 50%;
    width: 280px;
    height: 605px;
    transform: translateX(var(--phone-x)) rotate(var(--phone-rotate));
  }

  .signal-card--top {
    top: 92px;
    left: 12px;
  }

  .signal-card--bottom {
    right: 10px;
    bottom: 82px;
  }

  .section-heading--row {
    display: block;
  }

  .section-heading--row > .sub {
    max-width: 620px;
  }

  .benefit-card:nth-child(1),
  .benefit-card:nth-child(2),
  .benefit-card:nth-child(3),
  .benefit-card:nth-child(4) {
    grid-column: span 6;
    grid-row: auto;
    min-height: 260px;
  }

  .benefit-card:nth-child(4) {
    display: block;
  }

  .benefit-card:nth-child(4) .card-index {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .benefit-card--accent p {
    margin-top: 16px;
  }

  .journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-line {
    display: none;
  }

  .final-cta {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .final-cta-actions {
    justify-self: start;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body::before {
    inset: -4%;
    background-position: 63% top;
    opacity: 0.5;
  }

  body::after {
    background:
      linear-gradient(90deg, rgba(5, 3, 13, 0.58), rgba(5, 3, 13, 0.28)),
      linear-gradient(180deg, rgba(5, 3, 13, 0.18) 0%, rgba(5, 3, 13, 0.66) 48%, #05030d 100%);
  }

  .site-topbar-inner,
  .hero,
  .section,
  .final-cta,
  .contacts-footer {
    width: calc(100% - 32px);
  }

  .topbar-actions {
    display: none;
  }

  .topbar-brand {
    justify-content: flex-end;
    font-size: 15px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .hero {
    gap: 26px;
    padding-top: calc(var(--topbar-height) + 58px);
    padding-bottom: 32px;
  }

  .hero::before {
    top: 19%;
    width: 86%;
  }

  .hero-brand {
    margin-bottom: 20px;
    font-size: 48px;
  }

  .hero-statement {
    font-size: 32px;
    line-height: 1.12;
  }

  .hero-statement::after {
    width: 7px;
  }

  .lead {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 28px;
  }

  .hero-actions .site-cta {
    width: 100%;
  }

  .hero-trust {
    display: grid;
    gap: 8px;
    margin-top: 28px;
  }

  .hero-trust span,
  .hero-trust span:first-child {
    padding: 0 0 0 13px;
  }

  .hero-trust span::before,
  .hero-trust span + span::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
    transform: translateY(-50%);
  }

  .hero-product {
    min-height: 540px;
  }

  .product-halo {
    inset: 16% -20px 5%;
  }

  .phone-shell {
    width: 246px;
    height: 532px;
    border-width: 7px;
  }

  .signal-card {
    min-width: 160px;
    padding: 11px 12px;
  }

  .signal-card--top {
    top: 74px;
    left: -3px;
  }

  .signal-card--bottom {
    right: -3px;
    bottom: 54px;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section h2,
  .final-cta h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  .sub {
    margin-top: 16px;
    font-size: 15px;
  }

  .benefit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefit-card:nth-child(1),
  .benefit-card:nth-child(2),
  .benefit-card:nth-child(3),
  .benefit-card:nth-child(4) {
    grid-column: auto;
    min-height: 230px;
  }

  .benefit-card:nth-child(1) {
    min-height: 350px;
  }

  .benefit-card {
    padding: 24px;
  }

  .benefit-card h3 {
    font-size: 23px;
  }

  .card-index {
    margin-bottom: 28px;
  }

  .privacy-visual {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }

  .journey {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
  }

  .plat-tabs {
    margin-right: -16px;
    margin-left: -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding-right: 16px;
    padding-left: 16px;
  }

  .plat-tab {
    min-width: 112px;
  }

  .plat-panel {
    padding: 22px 18px;
  }

  .steps li {
    padding-left: 46px;
  }

  .instruction-embed-frame {
    height: 600px;
  }

  .tariff-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tariff {
    min-height: 310px;
    padding: 24px;
  }

  .happ-routing-actions {
    display: grid;
  }

  .happ-routing-actions .site-cta {
    width: 100%;
  }

  .faq-q {
    min-height: 72px;
    padding-right: 48px;
    font-size: 16px;
  }

  .faq-q::before,
  .faq-q::after {
    right: 8px;
  }

  .faq-a {
    padding-right: 28px;
  }

  .final-cta {
    margin-top: 28px;
    padding: 34px 24px;
  }

  .final-cta-actions {
    width: 100%;
  }

  .final-cta-signal {
    right: -70px;
  }

  .doc-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-links a {
    min-height: 72px;
    padding: 0 16px;
  }

  .contacts-footer {
    padding-top: 58px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding-bottom: 44px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .hero-brand {
    font-size: 43px;
  }

  .hero-statement {
    font-size: 29px;
  }

  .hero-product {
    min-height: 500px;
  }

  .phone-shell {
    width: 226px;
    height: 489px;
  }

  .signal-card--top {
    top: 54px;
  }

  .signal-card--bottom {
    bottom: 40px;
  }

  .price {
    font-size: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before {
    transform: none !important;
  }

  .motion-ready .hero-copy > *,
  .motion-ready .hero-product,
  .motion-ready .reveal-item {
    opacity: 1 !important;
    translate: 0 0 !important;
  }
}
