/* ======================================
   MAGENTA VPN — AuthKit clone (magenta)
   ====================================== */

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

:root {
  --bg: #050505;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --panel-bg: rgba(12, 12, 14, 0.72);
  --panel-border: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --magenta: #d946ef;
  --magenta-light: #f0abfc;
  --magenta-dark: #a21caf;
  --magenta-glow: rgba(217, 70, 239, 0.4);
  --magenta-soft: rgba(217, 70, 239, 0.12);
  --blur: 20px;
  --container: 960px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.site-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: glowPulse 8s ease-in-out infinite alternate;
}

.site-bg__glow--hero {
  width: min(700px, 100vw);
  height: min(700px, 100vw);
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--magenta-glow) 0%, transparent 65%);
}

.site-bg__glow--left {
  width: 420px; height: 420px;
  bottom: 15%; left: -12%;
  background: radial-gradient(circle, rgba(162,28,175,0.2) 0%, transparent 70%);
  animation-delay: -3s;
}

.site-bg__glow--right {
  width: 380px; height: 380px;
  top: 50%; right: -10%;
  background: radial-gradient(circle, rgba(240,171,252,0.12) 0%, transparent 70%);
  animation-delay: -5s;
}

.site-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 15%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 15%, black 10%, transparent 75%);
}

.site-section-path {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.site-section-path__line {
  stroke: rgba(217, 70, 239, 0.32);
  stroke-width: 2.5;
  stroke-dasharray: 5 12;
  stroke-linecap: round;
  stroke-dashoffset: 0;
  opacity: 0;
  transition: none;
}

.site-path-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Welcome toast (CRT glitch) ── */
.welcome-toast {
  position: fixed;
  top: 20px;
  left: 20px;
  right: auto;
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(2, 8, 18, 0.94);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 0 24px rgba(56, 189, 248, 0.04);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.welcome-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: welcomeCrtPulse 4.5s steps(2, end) infinite;
}

.welcome-toast__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.welcome-toast__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.28) 2px,
    rgba(0, 0, 0, 0.28) 3px
  );
  opacity: 0.45;
  animation: welcomeScanDrift 6s linear infinite;
}

.welcome-toast__static {
  position: absolute;
  inset: -40%;
  opacity: 0.07;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px);
  animation: welcomeStaticNoise 0.18s steps(4, end) infinite;
}

.welcome-toast__flicker {
  position: absolute;
  inset: 0;
  background: rgba(56, 189, 248, 0.06);
  opacity: 0;
  mix-blend-mode: screen;
  animation: welcomeScreenFlicker 2.8s steps(3, end) infinite;
}

.welcome-toast__text {
  position: relative;
  z-index: 3;
  margin: 0;
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: #38bdf8;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

.welcome-toast.is-visible .welcome-toast__text {
  animation: welcomeTextGlitch 5.5s infinite;
}

.welcome-toast__close {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #38bdf8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.welcome-toast__close:hover {
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
}

@keyframes welcomeCrtPulse {
  0%, 100% { filter: brightness(1) contrast(1); }
  48% { filter: brightness(1.02) contrast(1.05); }
  49% { filter: brightness(0.92) contrast(1.15); }
  50% { filter: brightness(1.08) contrast(0.95); }
}

@keyframes welcomeScanDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(3px); }
}

@keyframes welcomeStaticNoise {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, 0); }
}

@keyframes welcomeScreenFlicker {
  0%, 100% { opacity: 0; }
  7% { opacity: 0.35; }
  8% { opacity: 0; }
  42% { opacity: 0.2; }
  43% { opacity: 0; }
  76% { opacity: 0.28; }
  77% { opacity: 0; }
}

@keyframes welcomeTextGlitch {
  0%, 100% {
    transform: translate(0, 0);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
    clip-path: inset(0 0 0 0);
  }
  92% {
    transform: translate(0, 0);
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
  }
  93% {
    transform: translate(-2px, 0);
    text-shadow: 2px 0 rgba(255, 60, 60, 0.5), -2px 0 rgba(56, 189, 248, 0.7);
    clip-path: inset(12% 0 58% 0);
  }
  94% {
    transform: translate(2px, 1px);
    text-shadow: -2px 0 rgba(255, 60, 60, 0.45), 2px 0 rgba(56, 189, 248, 0.65);
    clip-path: inset(48% 0 18% 0);
  }
  95% {
    transform: translate(-1px, -1px);
    clip-path: inset(28% 0 38% 0);
  }
  96% {
    transform: translate(0, 0);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes glowPulse {
  0% { opacity: 0.35; }
  100% { opacity: 0.65; }
}

body.page-enter { opacity: 0; }
body.page-enter.page-enter--done {
  opacity: 1;
  transition: opacity 0.65s ease;
}

body.is-loading { overflow: hidden; }

/* ── Site loader ── */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__frame {
  width: min(280px, calc(100vw - 48px));
  padding: 36px 28px 32px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.site-loader__title {
  display: block;
  margin-bottom: 24px;
  font-family: 'Marenkov', 'Montserrat', sans-serif;
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 100;
  letter-spacing: 0.06em;
  color: var(--text);
  animation: loaderTitlePulse 2.2s ease-in-out infinite;
}

.site-loader__track {
  height: 2px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.site-loader__fill {
  display: block;
  height: 100%;
  width: 36%;
  background: linear-gradient(90deg, var(--magenta-dark), var(--magenta-light));
  box-shadow: 0 0 12px var(--magenta-glow);
  animation: loaderBarSlide 1.1s ease-in-out infinite;
}

.site-loader__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@keyframes loaderTitlePulse {
  0%, 100% { opacity: 0.72; text-shadow: 0 0 0 transparent; }
  50% { opacity: 1; text-shadow: 0 0 28px var(--magenta-glow); }
}

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

/* ── Layout ── */
.ak-container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.ak-container--narrow { max-width: 720px; }

.ak-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.ak-section--custom { padding-top: 60px; }
.ak-section--cta { padding-bottom: 100px; }

.ak-section__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 56px;
  color: var(--text);
}

/* ── Floating burger ── */
.burger-float {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(5, 5, 5, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.burger-btn:hover {
  border-color: rgba(217, 70, 239, 0.4);
  box-shadow: 0 0 20px var(--magenta-soft);
}

.burger-line {
  display: block;
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger-btn.is-open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.is-open .burger-line:nth-child(2) { opacity: 0; }
.burger-btn.is-open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.burger-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 100;
}

.burger-overlay.is-visible { opacity: 1; visibility: visible; }

.burger-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 88vw);
  height: 100svh;
  padding: 72px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 101;
  overflow-y: auto;
}

.burger-menu.is-open { transform: translateX(0); }

.burger-menu__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.25s;
}

.burger-menu__link:hover { color: var(--magenta-light); }

/* ── Net frame (networking poster style) ── */
.net-grid {
  gap: 1px !important;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0;
}

.net-frame {
  position: relative;
  border-radius: 0 !important;
  border: none !important;
  background: rgba(5, 5, 5, 0.92) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: hidden;
}

.net-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.55;
}

.net-frame > *:not(.app-card__select) {
  position: relative;
  z-index: 1;
}

.net-frame > .app-card__select {
  position: absolute;
  z-index: 3;
}

.net-frame:hover:not(.app-card):not(.timer-container):not(.ak-feature) {
  box-shadow: inset 0 0 0 1px rgba(217, 70, 239, 0.25);
}

/* Grids with 1px divider strips between cells */
.apps-grid.net-grid,
.ak-features.net-grid {
  gap: 1px !important;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.apps-grid .app-card.net-frame {
  border: none;
  overflow: visible;
}

.ak-features .ak-feature.net-frame {
  border: none;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.ak-feature.net-frame:hover {
  z-index: 4;
}

/* ── Frame chrome (static + hover) ── */
.frame-chrome,
.app-card__select {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: 3;
  border: 1px solid transparent;
}

.frame-chrome--static {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.35);
}

.frame-chrome__handle,
.app-card__handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.app-card:hover .app-card__handle,
.ak-feature:hover .app-card__handle {
  opacity: 0.85;
}

.app-card__handle { opacity: 0; transition: opacity 0.45s ease 0.08s; }

.frame-chrome__handle--t,
.app-card__handle--t { top: 0; left: 50%; }

.frame-chrome__handle--b,
.app-card__handle--b { bottom: 0; left: 50%; transform: translate(-50%, 50%); }

.frame-chrome__handle--l,
.app-card__handle--l { top: 50%; left: 0; }

.frame-chrome__handle--r,
.app-card__handle--r { top: 50%; right: 0; left: auto; transform: translate(50%, -50%); }

.frame-chrome__corner,
.app-card__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  color: #050505;
}

.app-card:hover .app-card__corner,
.ak-feature:hover .app-card__corner {
  opacity: 0.88;
  transform: scale(1);
}

.app-card__corner {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.45s ease 0.12s, transform 0.45s ease 0.12s;
}

.frame-chrome__corner svg,
.app-card__corner svg { width: 11px; height: 11px; }

.frame-chrome__corner--tl,
.app-card__corner--tl { top: -11px; left: -11px; }

.frame-chrome__corner--tr,
.app-card__corner--tr { top: -11px; right: -11px; }

.frame-chrome__corner--bl,
.app-card__corner--bl { bottom: -11px; left: -11px; }

.app-card__select {
  opacity: 0;
  transition: opacity 0.45s ease, border-color 0.45s ease;
}

.app-card:hover .app-card__select,
.ak-feature:hover .app-card__select {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ── Hero ── */
.ak-hero {
  position: relative;
  z-index: 1;
  padding: 72px 20px 60px;
  text-align: center;
}

.ak-hero__title {
  margin-bottom: 16px;
  line-height: 1;
}

.ak-hero__title-text {
  display: inline-block;
  font-family: 'Marenkov', 'Montserrat', system-ui, sans-serif;
  font-size: clamp(3.25rem, 13vw, 5.75rem);
  font-weight: 100;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 48px var(--magenta-glow);
}

.ak-hero__subtitle {
  font-size: clamp(14px, 2.5vw, 17px);
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.ak-hero__stack {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 0;
  overflow: visible;
}

/* Floating cards */
.ak-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  white-space: nowrap;
  z-index: 0;
}

.ak-float--tl { top: 0; left: -8%; transform: rotate(-4deg); animation: floatDrift 6s ease-in-out infinite; }
.ak-float--tr { top: 8%; right: -10%; transform: rotate(3deg); animation: floatDrift 7s ease-in-out infinite reverse; }
.ak-float--bl { bottom: 12%; left: -6%; flex-direction: column; align-items: flex-start; gap: 2px; animation: floatDrift 8s ease-in-out infinite; }

.ak-float__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #71717a;
  box-shadow: none;
  transition: background 0.35s, box-shadow 0.35s;
}

.ak-float.is-connected .ak-float__dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
}

.ak-float.is-disconnected .ak-float__dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239,68,68,0.45);
}

.ak-float.is-unknown .ak-float__dot {
  background: #71717a;
}

.ak-float__badge {
  margin-left: auto;
  font-weight: 600;
  transition: color 0.35s;
}

.ak-float.is-connected .ak-float__badge {
  color: #22c55e;
}

.ak-float.is-disconnected .ak-float__badge {
  color: #ef4444;
}

.ak-float.is-unknown .ak-float__badge {
  color: var(--text-dim);
}

.ak-float__label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.ak-float__value { font-size: 12px; color: var(--text); font-weight: 500; }

@keyframes floatDrift {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

.ak-float--tr { animation-name: floatDriftR; }
@keyframes floatDriftR {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-6px) rotate(5deg); }
}

/* Timer card — net-frame border like install-client cards */
.timer-container.net-frame {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  overflow: hidden;
  background: rgba(5, 5, 5, 0.92) !important;
  box-sizing: border-box;
}

.timer-container {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 0;
}

.timer-inner {
  position: relative;
  z-index: 2;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timer-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--magenta-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  opacity: 0.85;
}

.timer-label__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 4px;
  margin-bottom: 1px;
  border-radius: 50%;
  background: var(--magenta-light);
  vertical-align: middle;
  animation: timerLabelBlink 1.4s ease-in-out infinite;
}

@keyframes timerLabelBlink {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--magenta-glow); }
}

#user-email {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-align: left;
}

.timer-expiring-soon {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.timer-expiring-soon__inner { overflow: hidden; }

.timer-expiring-soon__text {
  margin: 0;
  padding: 10px 14px;
  font-size: 11px;
  text-align: center;
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s 0.08s, transform 0.55s 0.08s;
}

.timer-expiring-soon.is-visible { grid-template-rows: 1fr; }
.timer-expiring-soon.is-visible .timer-expiring-soon__text { opacity: 1; transform: translateY(0); }

.timer-container--expiring {
  border-color: rgba(251, 191, 36, 0.45) !important;
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.12);
}

.timer-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.timer-unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.flip-cell {
  min-width: 48px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}

.flip-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.timer-separator {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--magenta);
  opacity: 0.5;
  margin-bottom: 18px;
}

.timer-unit-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timer-expired {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--magenta-light);
  text-shadow: 0 0 20px var(--magenta-glow);
}

.timer-location {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.timer-location__flag { font-size: 18px; }
.timer-location__text { font-size: 12px; color: var(--text-muted); }

.timer-traffic {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
}

.timer-traffic__labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.timer-traffic__value { color: #d4d4d8; }

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--magenta-dark), var(--magenta), var(--magenta-light));
  box-shadow: 0 0 12px var(--magenta-glow);
  transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Buttons */
.ak-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.ak-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--magenta-dark), var(--magenta));
  box-shadow: 0 4px 24px var(--magenta-glow);
}

.ak-btn--primary:hover {
  box-shadow: 0 8px 32px rgba(217,70,239,0.55);
  transform: translateY(-1px);
}

.ak-btn--full { width: 100%; margin-top: 4px; }

/* ── Integrations ── */
.ak-integrations {
  position: relative;
  z-index: 1;
  padding: 20px 0 40px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.01);
}

.ak-integrations__track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.ak-int-icon {
  width: 28px; height: 28px;
  color: rgba(255,255,255,0.25);
  transition: color 0.3s, filter 0.3s;
  filter: drop-shadow(0 0 0 transparent);
}

.ak-int-icon svg { width: 100%; height: 100%; }

.ak-int-icon:hover {
  color: var(--magenta-light);
  filter: drop-shadow(0 0 12px var(--magenta-glow));
}

/* ── Hub diagram ── */
.ak-hub {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 0 auto;
}

.ak-hub__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ak-hub__lines line {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: hubLineDraw 2.4s ease forwards;
}

.ak-hub__lines line:nth-child(1) { animation-delay: 0.1s; }
.ak-hub__lines line:nth-child(2) { animation-delay: 0.25s; }
.ak-hub__lines line:nth-child(3) { animation-delay: 0.4s; }
.ak-hub__lines line:nth-child(4) { animation-delay: 0.55s; }
.ak-hub__lines line:nth-child(5) { animation-delay: 0.7s; }
.ak-hub__lines line:nth-child(6) { animation-delay: 0.85s; }

@keyframes hubLineDraw {
  to { stroke-dashoffset: 0; }
}

.ak-hub__core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 20px;
  background: var(--panel-bg);
  border: 1px solid rgba(217,70,239,0.35);
  box-shadow: 0 0 40px var(--magenta-soft);
  backdrop-filter: blur(var(--blur));
  font-size: 11px;
  font-weight: 600;
  color: var(--magenta-light);
  z-index: 2;
  animation: hubCorePulse 3s ease-in-out infinite;
}

@keyframes hubCorePulse {
  0%, 100% { box-shadow: 0 0 40px var(--magenta-soft); }
  50% { box-shadow: 0 0 56px rgba(217, 70, 239, 0.28); }
}

.ak-hub__core svg { width: 28px; height: 28px; color: var(--magenta); }

.ak-hub__node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ak-hub__node:hover {
  border-color: rgba(217,70,239,0.3);
  box-shadow: 0 0 20px var(--magenta-soft);
}

.ak-hub__node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--magenta-soft);
  border: 1px solid rgba(217, 70, 239, 0.25);
  color: var(--magenta-light);
  flex-shrink: 0;
  animation: hubIconPulse 2.8s ease-in-out infinite;
}

.ak-hub__node--tl .ak-hub__node-icon { animation-delay: 0s; }
.ak-hub__node--tr .ak-hub__node-icon { animation-delay: 0.45s; }
.ak-hub__node--ml .ak-hub__node-icon { animation-delay: 0.9s; }
.ak-hub__node--mr .ak-hub__node-icon { animation-delay: 1.35s; }
.ak-hub__node--bl .ak-hub__node-icon { animation-delay: 1.8s; }
.ak-hub__node--br .ak-hub__node-icon { animation-delay: 2.25s; }

@keyframes hubIconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(217, 70, 239, 0);
    border-color: rgba(217, 70, 239, 0.25);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(217, 70, 239, 0.35);
    border-color: rgba(217, 70, 239, 0.55);
  }
}

.ak-hub__node-icon svg { width: 14px; height: 14px; }

.ak-hub__node--tl { top: 8%; left: 5%; }
.ak-hub__node--tr { top: 8%; right: 5%; }
.ak-hub__node--ml { top: 42%; left: 0; }
.ak-hub__node--mr { top: 42%; right: 0; }
.ak-hub__node--bl { bottom: 8%; left: 12%; }
.ak-hub__node--br { bottom: 8%; right: 12%; }

/* ── Customization ── */
.ak-custom {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 20px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
}

.ak-custom__panel {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ak-custom__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ak-custom__label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ak-custom__swatches { display: flex; gap: 8px; }

.ak-custom__swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: default;
}

.ak-custom__swatch--active {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 12px var(--magenta-glow);
}

.ak-custom__slider {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.ak-custom__slider-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--magenta-dark), var(--magenta));
  border-radius: 999px;
}

.ak-custom__toggle {
  width: 36px; height: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  position: relative;
  align-self: flex-start;
}

.ak-custom__toggle--on { background: rgba(217,70,239,0.35); }

.ak-custom__toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.ak-custom__toggle--on .ak-custom__toggle-knob { transform: translateX(16px); }

.ak-custom__chip {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  text-align: center;
}

.ak-custom__chip--active {
  color: var(--magenta-light);
  border-color: rgba(217,70,239,0.35);
  background: var(--magenta-soft);
}

.ak-custom__mini-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.ak-custom__preview { display: flex; justify-content: center; }

.ak-custom__preview-card {
  width: 100%;
  max-width: 260px;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(217,70,239,0.25);
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 0 60px var(--magenta-soft);
}

.ak-custom__preview-logo {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.ak-custom__preview-field {
  height: 36px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
}

.ak-custom__preview-btn {
  margin-top: 8px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--magenta-dark), var(--magenta));
  border-radius: 8px;
}

/* ── Built on ── */
.ak-built {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.ak-built__shapes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ak-shape--sphere {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(240,171,252,0.5), var(--magenta-dark) 60%, #1a1a1a);
  box-shadow: 0 0 40px var(--magenta-soft), inset -8px -8px 20px rgba(0,0,0,0.5);
}

.ak-shape--cylinder {
  width: 48px; height: 90px;
  border-radius: 24px;
  background: linear-gradient(90deg, #1a1a1a, rgba(217,70,239,0.3) 50%, #1a1a1a);
  box-shadow: 0 0 30px var(--magenta-soft);
}

.ak-built__code {
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: rgba(0,0,0,0.5);
  overflow: hidden;
  backdrop-filter: blur(var(--blur));
}

.ak-code__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--glass-border);
}

.ak-code__bar span:not(.ak-code__title) {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.ak-code__title {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}

.ak-code__body {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-x: auto;
}

.c-key { color: var(--magenta-light); }
.c-str { color: #86efac; }
.c-num { color: #fcd34d; }

.ak-built__ui {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ak-ui-btn {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  cursor: default;
}

.ak-ui-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--magenta-dark), var(--magenta));
  border-color: transparent;
}

.ak-ui-btn--ghost {
  color: var(--text-muted);
  background: transparent;
}

.ak-ui-input {
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
}

.ak-ui-toggle {
  width: 40px; height: 22px;
  background: rgba(217,70,239,0.35);
  border-radius: 999px;
  position: relative;
  align-self: flex-start;
}

.ak-ui-toggle__knob {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
}

/* ── Features grid ── */
.ak-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ak-feature {
  padding: 24px;
  transition: box-shadow 0.3s;
}

.ak-feature:hover {
  box-shadow: none;
  transform: none;
}

.ak-feature__icon {
  width: 32px; height: 32px;
  margin-bottom: 14px;
  color: var(--magenta);
  opacity: 0.8;
}

.ak-feature__icon svg { width: 100%; height: 100%; }

.ak-feature h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.ak-feature p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Architecture / Platform panel ── */
.ak-platform {
  max-width: 720px;
  margin: 0 auto;
}

.ak-platform__window {
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.ak-platform__body.net-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px !important;
  background: rgba(255, 255, 255, 0.14);
  border: none !important;
  padding: 0;
}

.ak-platform__node {
  padding: 24px 20px;
  text-align: center;
  background: rgba(5, 5, 5, 0.92);
}

.ak-platform__node--core {
  box-shadow: inset 0 0 48px rgba(217, 70, 239, 0.08);
}

.ak-platform__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 0;
  background: var(--magenta-soft);
  border: 1px solid rgba(217, 70, 239, 0.25);
  color: var(--magenta-light);
  box-shadow: none;
}

.ak-platform__icon--telegram {
  color: #29b6f6;
  background: rgba(41, 182, 246, 0.1);
  border-color: rgba(41, 182, 246, 0.28);
}

.ak-platform__icon--servers {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.32);
}

.ak-platform__node--core .ak-platform__icon {
  border-color: rgba(217, 70, 239, 0.45);
  box-shadow: 0 0 24px rgba(217, 70, 239, 0.18);
}

.ak-platform__icon svg { width: 20px; height: 20px; }

.ak-platform__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ak-platform__desc {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

/* ── App cards ── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 24px 20px;
  color: inherit;
  text-align: center;
  overflow: visible;
  cursor: default;
  transition: background 0.45s ease, border-color 0.45s ease;
  z-index: 1;
}

.app-card:hover {
  box-shadow: none;
  transform: none;
  background: rgba(5, 5, 5, 0.98) !important;
  z-index: 4;
}

/* Large semi-transparent logo on background */
.app-card__bg {
  position: relative;
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  pointer-events: none;
  z-index: 0;
}

.app-card__bg img {
  width: auto;
  height: auto;
  max-width: min(72%, 120px);
  max-height: 72px;
  object-fit: contain;
  opacity: 0.22;
  filter: brightness(1.1);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.app-card:hover .app-card__bg img {
  opacity: 0.07;
  transform: scale(1.02);
}

.app-card--incy .app-card__bg {
  height: 120px;
}

.app-card--incy .app-card__bg img {
  max-width: min(92%, 240px);
  max-height: 112px;
  opacity: 0.26;
}

.app-card--incy:hover .app-card__bg img {
  opacity: 0.09;
}

.app-card__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.app-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.app-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.app-card__btn {
  position: relative;
  z-index: 2;
  align-self: center;
  margin-top: 14px;
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.app-card:hover .app-card__btn {
  color: var(--magenta-light);
  border-color: rgba(217, 70, 239, 0.4);
}

.apps-footer { margin-top: 28px; text-align: center; }

.apps-instructions-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  transition: all 0.25s;
}

.apps-instructions-btn:hover {
  color: var(--magenta-light);
  border-color: rgba(217,70,239,0.35);
  box-shadow: 0 0 24px var(--magenta-soft);
}

/* ── Testimonials ── */
.ak-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ak-testimonial {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur));
}

.ak-testimonial p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
}

.ak-testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ak-testimonial__avatar {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: var(--magenta-light);
  background: var(--magenta-soft);
  border: 1px solid rgba(217,70,239,0.25);
}

.ak-testimonial strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.ak-testimonial span {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur));
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item.active {
  border-color: rgba(217,70,239,0.25);
  box-shadow: 0 0 24px var(--magenta-soft);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  min-height: 44px;
}

.faq-question:hover { color: var(--magenta-light); }

.faq-arrow {
  font-size: 13px;
  color: var(--magenta);
  opacity: 0.5;
  transition: transform 0.35s, opacity 0.3s;
  margin-left: 12px;
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(90deg);
  opacity: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s, opacity 0.35s;
}

.faq-item.active .faq-answer { opacity: 1; }

.faq-answer p {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

#faq.ak-section {
  padding-bottom: 100px;
}

/* ── CTA ── */
.ak-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ak-cta-card {
  position: relative;
  display: block;
  min-height: 220px;
  padding: 40px 32px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  overflow: hidden;
  transition: box-shadow 0.35s;
}

.ak-cta-card:hover {
  box-shadow: inset 0 0 0 1px rgba(217, 70, 239, 0.4);
  transform: none;
}

.ak-cta-card__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.ak-cta-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* VPN card — animated brand */
.ak-cta-bg-logo--vpn {
  display: flex;
  gap: 2px;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.06);
  transition: color 0.4s;
}

.ak-cta-bg-logo--vpn span {
  display: inline-block;
  animation: ctaLetterIdle 4s ease-in-out infinite;
}

.ak-cta-bg-logo--vpn span:nth-child(2) { animation-delay: 0.15s; }
.ak-cta-bg-logo--vpn span:nth-child(3) { animation-delay: 0.3s; }
.ak-cta-bg-logo--vpn span:nth-child(4) { animation-delay: 0.45s; }
.ak-cta-bg-logo--vpn span:nth-child(5) { animation-delay: 0.6s; }
.ak-cta-bg-logo--vpn span:nth-child(6) { animation-delay: 0.75s; }
.ak-cta-bg-logo--vpn span:nth-child(7) { animation-delay: 0.9s; }

.ak-cta-card--vpn:hover .ak-cta-bg-logo--vpn {
  color: rgba(217, 70, 239, 0.14);
}

.ak-cta-card--vpn:hover .ak-cta-bg-logo--vpn span {
  animation: ctaLetterHover 1.2s ease-in-out infinite;
}

@keyframes ctaLetterIdle {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 0.8; }
}

@keyframes ctaLetterHover {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-10px) scale(1.05); opacity: 1; color: rgba(240, 171, 252, 0.35); }
}

/* Docs card — animated book */
.ak-cta-book {
  position: relative;
  width: 100px;
  height: 72px;
  perspective: 600px;
  opacity: 0.12;
  transition: opacity 0.4s;
}

.ak-cta-card--docs:hover .ak-cta-book {
  opacity: 0.35;
}

.ak-cta-book__cover,
.ak-cta-book__page {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transform-origin: left center;
}

.ak-cta-book__cover {
  background: rgba(217, 70, 239, 0.08);
  z-index: 0;
}

.ak-cta-book__page--1 { z-index: 3; animation: bookPageIdle 5s ease-in-out infinite; }
.ak-cta-book__page--2 { z-index: 2; animation: bookPageIdle 5s ease-in-out infinite 0.4s; }
.ak-cta-book__page--3 { z-index: 1; }

.ak-cta-card--docs:hover .ak-cta-book__page--1 {
  animation: bookPageFlip 1.4s ease-in-out infinite;
}

.ak-cta-card--docs:hover .ak-cta-book__page--2 {
  animation: bookPageFlip 1.4s ease-in-out infinite 0.25s;
}

.ak-cta-card--docs:hover .ak-cta-book__page--3 {
  animation: bookPageFlip 1.4s ease-in-out infinite 0.5s;
}

@keyframes bookPageIdle {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(-8deg); }
}

@keyframes bookPageFlip {
  0%, 100% { transform: rotateY(0deg); }
  40% { transform: rotateY(-140deg); }
  60% { transform: rotateY(-140deg); }
}

.ak-cta-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.ak-cta-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.ak-cta-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--magenta-light);
}

/* ── Footer ── */
.ak-footer {
  position: relative;
  z-index: 1;
  padding: 40px 0 48px;
  border-top: 1px solid var(--glass-border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--magenta-light); }

.footer-copy {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}

/* ── Reveal ── */
.reveal-element { opacity: 1; transform: none; }

.js-ready .reveal-element {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready .reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hidden { display: none !important; }

/* ── Guide / legal pages ── */
.guide-page {
  min-height: 100svh;
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
}

.guide-layout {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.legal-content { max-width: 680px; }

.legal-back {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.25s;
}

.legal-back:hover { color: var(--magenta-light); }

.guide-head { text-align: center; margin-bottom: 40px; }

.guide-head__label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--magenta);
  opacity: 0.75;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.guide-head__title {
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.guide-head__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.guide-head__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--magenta-dark), var(--magenta));
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--magenta-glow);
  transition: box-shadow 0.3s, transform 0.3s;
}

.guide-head__cta:hover {
  box-shadow: 0 8px 32px rgba(217,70,239,0.55);
  transform: translateY(-1px);
}

.guide-head--legal { text-align: left; margin-bottom: 36px; }
.guide-head--legal .guide-head__title { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }

.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.legal-lead {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.legal-content h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: rgba(255,255,255,0.92);
}

.legal-content p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 8px 0 16px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-link {
  color: var(--magenta-light);
  text-decoration: none;
  transition: text-shadow 0.25s;
}

.legal-link:hover { text-shadow: 0 0 12px var(--magenta-glow); }

.legal-footer-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 14px;
  color: var(--text-muted);
}

.guide-timeline { list-style: none; padding: 0; margin: 0; }

.guide-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
  scroll-margin-top: 80px;
}

.guide-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px; top: 56px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(217,70,239,0.3), rgba(217,70,239,0.05));
}

.guide-step__aside { display: flex; justify-content: center; padding-top: 4px; }

.guide-step__num {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--magenta-light);
  background: var(--magenta-soft);
  border: 1px solid rgba(217,70,239,0.28);
}

.guide-step__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.guide-step__icon img { width: 100%; height: 100%; object-fit: cover; }

.guide-step__card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur));
  transition: border-color 0.3s, box-shadow 0.3s;
}

.guide-step:hover .guide-step__card {
  border-color: rgba(217,70,239,0.25);
  box-shadow: 0 0 30px var(--magenta-soft);
}

.guide-step__card h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
}

.guide-step__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-step__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.guide-step__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta-glow);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ak-built { grid-template-columns: 1fr; justify-items: center; }
  .ak-built__shapes { flex-direction: row; justify-content: center; }
  .ak-platform__body { grid-template-columns: 1fr; }
  .ak-features { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .ak-cta-grid { grid-template-columns: 1fr; }
  .ak-hub { height: 340px; max-width: 100%; }
  .ak-hub__node { font-size: 10px; padding: 8px 10px; }
  .ak-float--tl { left: 0; top: -8px; }
}

@media (max-width: 640px) {
  .flip-cell { min-width: 42px; height: 46px; }
  .flip-value { font-size: 18px; }
  .timer-separator { font-size: 16px; margin-bottom: 16px; }
  .timer-inner { padding: 22px 20px 20px; }
  .ak-section { padding: 56px 0; }
  .ak-section__title { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .guide-step { grid-template-columns: 44px 1fr; gap: 12px; }
  .guide-step__num, .guide-step__icon { width: 40px; height: 40px; }
  .guide-step:not(:last-child)::before { left: 19px; top: 48px; }
  .guide-step__card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ak-cta-bg-logo--vpn span,
  .ak-cta-book__page--1,
  .ak-cta-book__page--2,
  .ak-cta-book__page--3,
  .site-loader__title,
  .site-loader__fill,
  .ak-hub__lines line,
  .ak-hub__core,
  .ak-hub__node-icon,
  .welcome-toast.is-visible,
  .welcome-toast.is-visible .welcome-toast__text,
  .welcome-toast__scanlines,
  .welcome-toast__static,
  .welcome-toast__flicker {
    animation: none !important;
  }

  .ak-hub__lines line { stroke-dashoffset: 0; }
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(217,70,239,0.25); border-radius: 3px; }
