/* ============================================================
   PakSecure — Design System v2
   ============================================================ */

:root {
  color-scheme: dark;

  --bg:        #020815;
  --panel:     #060f24;
  --surface:   rgb(255 255 255 / 0.034);
  --sf2:       rgb(255 255 255 / 0.07);
  --sf3:       rgb(255 255 255 / 0.11);

  --line:      rgb(80 130 255 / 0.14);
  --line-h:    rgb(100 170 255 / 0.4);

  --text:      #e8efff;
  --muted:     #7d94bc;
  --dim:       #3f5278;

  --blue:      #3b82f6;
  --sky:       #60a5fa;
  --cyan:      #22d3ee;
  --indigo:    #818cf8;
  --purple:    #a78bfa;
  --emerald:   #10b981;
  --green:     #34d399;
  --amber:     #f59e0b;
  --gold:      #fbbf24;
  --rose:      #fb7185;

  --grad:      linear-gradient(130deg, #60a5fa 0%, #22d3ee 30%, #10b981 60%, #a78bfa 100%);
  --grad-warm: linear-gradient(130deg, #f59e0b 0%, #fb7185 50%, #a78bfa 100%);
  --btn-grad:  linear-gradient(130deg, #1e56d9 0%, #0369a1 100%);

  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system,
          BlinkMacSystemFont, "SF Pro Display", Roboto, "Helvetica Neue", sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, monospace;

  --r-sm:  0.5rem;
  --r-md:  0.9rem;
  --r-lg:  1.25rem;
  --r-xl:  1.6rem;
  --r-2xl: 2rem;
  --r-3xl: 2.8rem;
}

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

html {
  background: var(--bg);
  scroll-padding-block-start: 5.5rem;
}

/* Top rainbow bar — animated */
.topbar {
  position: relative;
  z-index: 20;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #22d3ee, #10b981, #f59e0b, #fb7185, #a78bfa, #3b82f6);
  background-size: 300% 100%;
  animation: topbar-move 6s linear infinite;
}

@keyframes topbar-move {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90rem 55rem at 72% -18%, rgb(29 86 209 / 0.28)  0%, transparent 58%),
    radial-gradient(ellipse 60rem 40rem at -8%  22%, rgb(16 185 129 / 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 70rem 50rem at 50% 115%, rgb(245 158 11 / 0.08) 0%, transparent 58%);
}

/* Grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(90 130 255 / 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgb(90 130 255 / 0.042) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 15%, transparent 80%);
  mask-image:         radial-gradient(ellipse 90% 60% at 50% 0%, black 15%, transparent 80%);
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 2rem + 4vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 1.03;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 800;
}

h3 { font-size: 1.15rem; line-height: 1.3; }

p { margin: 0; }

a { color: var(--sky); }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

code { font-family: var(--mono); font-size: 0.88rem; }

/* Helpers */
.sprite { display: none; }

.icon {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.wrap {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-block-start: -5rem;
  inset-inline-start: 1rem;
  z-index: 10;
  padding: 0.4rem 1rem;
  border-radius: var(--r-md);
  background: var(--panel);
}
.skip:focus { inset-block-start: 0.5rem; }

.grad {
  background: linear-gradient(130deg, #60a5fa 0%, #22d3ee 18%, #10b981 36%, #f59e0b 54%, #a78bfa 72%, #60a5fa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 6s linear infinite;
}

@keyframes grad-shift {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

.todo {
  border-block-end: 1px dashed currentColor;
  color: var(--sky);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  padding-block: 1rem;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.6rem 0.75rem 0.6rem 1.2rem;
  border: 1px solid var(--line-h);
  border-radius: 999rem;
  background: rgb(4 9 22 / 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.07),
    0 24px 48px -24px rgb(0 0 10 / 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  order: 3;
  width: 100%;
  justify-content: center;
}

.links a {
  padding: 0.3rem 0.85rem;
  border-radius: 999rem;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
}

.links a:hover {
  color: var(--text);
  background: var(--sf2);
}

@media (min-width: 52rem) {
  .links { order: 0; width: auto; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999rem;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn .icon { width: 1.1rem; height: 1.1rem; }

.btn-primary {
  background: var(--btn-grad);
  color: #fff;
  box-shadow:
    0 10px 30px -8px rgb(29 86 209 / 0.9),
    inset 0 1px 0 rgb(255 255 255 / 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px -8px rgb(14 165 233 / 0.95),
    inset 0 1px 0 rgb(255 255 255 / 0.22);
}

.btn-ghost {
  border-color: var(--line-h);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--sf2); }

.btn-small {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

.btn-off {
  border: 1px dashed var(--line-h);
  color: var(--muted);
  cursor: default;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 5rem 4rem;
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding-block: 7rem 5.5rem;
    gap: 4rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-block-end: 1.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.35rem;
  border: 1px solid var(--line-h);
  border-radius: 999rem;
  background: rgb(59 130 246 / 0.09);
  color: var(--sky);
  font-size: 0.87rem;
  font-weight: 600;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.65rem;
  border-radius: 999rem;
  background: linear-gradient(130deg, #d97706, #f59e0b);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 36rem;
  margin-block-start: 1.3rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.78;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 2.2rem;
}

/* Hero stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin-block-start: 2.5rem;
  padding-block-start: 2rem;
  border-block-start: 1px solid rgb(80 130 255 / 0.2);
}

a.hero-stat {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

a.hero-stat:hover { opacity: 0.8; }

.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--sky);
}

.hero-stat:nth-child(2) strong { color: var(--emerald); }
.hero-stat:nth-child(3) strong { color: var(--gold); }

.hero-stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* System diagram */
.system {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 27rem);
  margin-inline: auto;
  padding: 3px;
  border-radius: var(--r-3xl);
  background: var(--grad);
  box-shadow:
    0 60px 120px -50px rgb(29 86 209 / 1),
    0 0 0 1px var(--line);
}

.system::before {
  content: "";
  position: absolute;
  inset: 18% 12%;
  z-index: -1;
  background: rgb(29 86 209 / 0.45);
  border-radius: 50%;
  filter: blur(90px);
}

.sys-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: calc(var(--r-3xl) - 3px);
  background: linear-gradient(165deg, #0d1f48 0%, #060d28 100%);
  padding: 1.6rem;
}

.node {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgb(4 9 24 / 0.85);
}

.node strong { display: block; font-size: 0.96rem; line-height: 1.3; }
.node span   { color: var(--muted); font-size: 0.84rem; }
.node .tile  { flex: none; }

.feature-group:nth-child(2n) .tile  { color: var(--emerald); }
.feature-group:nth-child(3n) .tile  { color: var(--amber); }
.feature-group:nth-child(4n) .tile  { color: var(--rose); }

.tile {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(currentColor / 0.3);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgb(currentColor / 0.18), rgb(currentColor / 0.07));
  color: var(--sky);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
}

.wire {
  position: relative;
  width: 2px;
  height: 2.4rem;
  background: linear-gradient(var(--blue), var(--cyan));
}

.core {
  position: relative;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: var(--r-xl);
  background: var(--btn-grad);
  box-shadow:
    0 0 60px 4px rgb(34 211 238 / 0.55),
    inset 0 1px 0 rgb(255 255 255 / 0.3);
  color: #fff;
}

.core .icon { width: 2.4rem; height: 2.4rem; }

.core::before, .core::after {
  content: "";
  position: absolute;
  border: 1px solid rgb(34 211 238 / 0.38);
  pointer-events: none;
}
.core::before { inset: -0.75rem; border-radius: 2rem; }
.core::after  { inset: -1.5rem;  border-radius: 2.8rem; border-color: rgb(34 211 238 / 0.18); }

@media (prefers-reduced-motion: no-preference) {
  .wire::after {
    content: "";
    position: absolute;
    left: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 14px 4px var(--cyan);
    animation: travel 2.5s linear infinite;
  }

  .core::before { animation: pulse 3.2s ease-in-out infinite; }
  .core::after  { animation: pulse 3.2s ease-in-out infinite 0.6s; }

  .hero > * { animation: rise 0.65s ease-out both; }
  .hero > :last-child { animation-delay: 0.12s; }
}

@keyframes travel {
  from { inset-block-start: -5px; opacity: 0; }
  15%, 85% { opacity: 1; }
  to { inset-block-start: calc(100% - 5px); opacity: 0; }
}

@keyframes pulse {
  50% { transform: scale(1.1); opacity: 0.4; }
}

@keyframes rise {
  from { transform: translateY(18px); opacity: 0; }
}

/* ============================================================
   Trust strip
   ============================================================ */
.strip-wrap {
  padding-block: 2rem;
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgb(80 130 255 / 0.2);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0d1e44 0%, #070f28 100%);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.strip li:hover {
  border-color: var(--line-h);
  background: linear-gradient(135deg, #122455 0%, #090f30 100%);
}

.strip .icon { flex-shrink: 0; color: var(--cyan); }
.strip li:nth-child(2) .icon { color: var(--emerald); }
.strip li:nth-child(3) .icon { color: var(--amber); }
.strip li:nth-child(4) .icon { color: var(--rose); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: 5.5rem; }

.heading {
  max-width: 46rem;
  margin-inline: auto;
  margin-block-end: 3.5rem;
  text-align: center;
}

.kicker {
  display: inline-block;
  margin-block-end: 0.85rem;
  padding: 0.22rem 0.8rem;
  border: 1px solid rgb(34 211 238 / 0.28);
  border-radius: 999rem;
  background: rgb(34 211 238 / 0.08);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#apps .kicker {
  border-color: rgb(16 185 129 / 0.35);
  background: rgb(16 185 129 / 0.1);
  color: var(--green);
}

#features .kicker {
  border-color: rgb(245 158 11 / 0.35);
  background: rgb(245 158 11 / 0.08);
  color: var(--gold);
}

#promises .kicker {
  border-color: rgb(251 113 133 / 0.35);
  background: rgb(251 113 133 / 0.08);
  color: var(--rose);
}

#download .kicker {
  border-color: rgb(16 185 129 / 0.35);
  background: rgb(16 185 129 / 0.1);
  color: var(--green);
}

.heading .intro {
  margin-block-start: 1rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ============================================================
   Section alt (slightly richer dark for visual rhythm)
   ============================================================ */
.section-alt {
  background: linear-gradient(180deg, #060f26 0%, #04091e 100%);
  border-block: 1px solid var(--line);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  position: relative;
  overflow: hidden;
  padding: 1.8rem;
  border: 1px solid rgb(80 130 255 / 0.2);
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, #0d1e44 0%, #070f28 100%);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgb(255 255 255 / 0.07) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  pointer-events: none;
  border-radius: inherit;
}

.card:hover::after {
  animation: shimmer-sweep 0.6s ease forwards;
}

@keyframes shimmer-sweep {
  to { transform: translateX(150%); }
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   System diagram float
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .sys-inner {
    animation: float-y 4s ease-in-out infinite;
  }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ============================================================
   Counter stat highlight
   ============================================================ */
.hero-stat strong {
  display: block;
  min-width: 3.5ch;
  transition: color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-h);
  box-shadow: 0 30px 60px -24px rgb(59 130 246 / 0.9),
              0 0 0 1px rgb(100 170 255 / 0.15);
}

.card h3 + p { margin-block-start: 0.5rem; color: var(--muted); }
.card .tile  { margin-block-end: 1.3rem; }

.cols-3, .cols-2 { display: grid; gap: 1.1rem; }
.steps { margin: 0; padding: 0; list-style: none; }

.num {
  display: block;
  margin-block-end: 1rem;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.for { margin-block-start: 0.25rem; color: var(--emerald); font-weight: 600; font-size: 0.95rem; }

.checks {
  display: grid;
  gap: 0.6rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}
.checks li { display: flex; gap: 0.65rem; align-items: flex-start; }
.checks li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
  margin-block-start: 0.1rem;
}

/* Active commitment list (✓ promises in place) */
.no-list {
  display: grid;
  gap: 0.5rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.no-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.9rem 0.65rem 1rem;
  border: 1px solid rgb(80 130 255 / 0.18);
  border-left: 2px solid var(--cyan);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

.no-list li:nth-child(2n) {
  border-left-color: var(--emerald);
  background: linear-gradient(90deg, rgb(16 185 129 / 0.07), transparent);
}

.no-list li:nth-child(3n) {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, rgb(245 158 11 / 0.07), transparent);
}

.no-list li:hover {
  border-color: var(--line-h);
  background: linear-gradient(90deg, rgb(255 255 255 / 0.07), transparent);
}

.no-list li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.no-list strong { display: block; font-size: 0.94rem; color: var(--text); line-height: 1.4; }
.no-list span   { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

/* ============================================================
   Apps section — two-app grid
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.app-card {
  background: linear-gradient(155deg, #0e1f4a, #07122e);
  border: 1px solid rgb(80 130 255 / 0.2);
  border-radius: var(--r-xl);
  padding: 2rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.25s, transform 0.25s;
}

.app-card:hover {
  border-color: rgb(100 170 255 / 0.45);
  transform: translateY(-3px);
}

.app-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  width: fit-content;
}

.badge-child {
  background: rgb(34 211 238 / 0.1);
  color: var(--cyan);
  border: 1px solid rgb(34 211 238 / 0.28);
}

.badge-parent {
  background: rgb(16 185 129 / 0.1);
  color: var(--emerald);
  border: 1px solid rgb(16 185 129 / 0.28);
}

.tile-lg {
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.2rem;
}

.app-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.app-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.app-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-features li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.app-features li .icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--sky);
  margin-top: 0.18rem;
}

.app-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  padding: 0 0.5rem;
}

.app-connector svg {
  width: 1.8rem;
  height: 1.8rem;
}

@media (max-width: 700px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .app-connector {
    transform: rotate(90deg);
    margin: 0.5rem auto;
  }
}

/* Gradient border card */
.glow {
  border: 1px solid transparent;
  background:
    linear-gradient(155deg, #0e2050, #07122e) padding-box,
    var(--grad) border-box;
  box-shadow: 0 40px 80px -30px rgb(37 99 235 / 0.6),
              0 0 60px -20px rgb(16 185 129 / 0.2);
}

@media (min-width: 48rem) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Features
   ============================================================ */
.features-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 40rem) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 62rem) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.7rem 0.9rem 0.7rem 1rem;
  border: 1px solid rgb(80 130 255 / 0.18);
  border-left: 2px solid var(--cyan);
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgb(34 211 238 / 0.06), transparent);
  transition: border-color 0.2s, background 0.2s;
}

.feature-list li:nth-child(2n) {
  border-left-color: var(--emerald);
  background: linear-gradient(90deg, rgb(16 185 129 / 0.07), transparent);
}

.feature-list li:nth-child(3n) {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, rgb(245 158 11 / 0.07), transparent);
}

.feature-list li:hover {
  border-color: var(--line-h);
  background: linear-gradient(90deg, rgb(255 255 255 / 0.07), transparent);
}

.feature-list strong { display: block; font-size: 0.94rem; line-height: 1.4; }
.feature-list span   { color: var(--muted); font-size: 0.87rem; line-height: 1.5; }

/* ============================================================
   Promises
   ============================================================ */
.wide {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.notice-mock {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line-h);
  border-radius: var(--r-lg);
  background: rgb(4 9 24 / 0.8);
  box-shadow: 0 24px 60px -24px rgb(29 86 209 / 0.9);
  backdrop-filter: blur(12px);
}

.notice-mock img    { flex: none; }
.notice-mock strong { display: block; line-height: 1.3; font-size: 0.96rem; }
.notice-mock span   { color: var(--muted); font-size: 0.87rem; line-height: 1.4; }

@media (min-width: 48rem) {
  .wide {
    grid-column: span 2;
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Pricing
   ============================================================ */
.card .btn { margin-block-start: 1.3rem; }

.verify {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-block-start: 1.3rem;
}

.verify h3 + p { margin-block-start: 0.5rem; color: var(--muted); }

.terminal {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #030713;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-block-end: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.terminal-bar i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line-h);
}

.terminal-bar i:nth-child(1) { background: #ef4444; }
.terminal-bar i:nth-child(2) { background: var(--amber); }
.terminal-bar i:nth-child(3) { background: var(--emerald); }

.terminal-bar b { margin-inline-start: 0.5rem; font-weight: 500; }

.terminal pre {
  margin: 0;
  padding: 1.1rem;
  color: var(--sky);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .verify { grid-template-columns: 1fr 1.2fr; }
}

.plan {
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
}

.plan .price {
  margin-block: 0.75rem 1rem;
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.plan .price .per {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.plan .checks { display: inline-grid; margin-inline: auto; text-align: start; }
.plan .btn { margin-block-start: 1.75rem; width: 100%; justify-content: center; }
.plan .fine { margin-block-start: 1.1rem; color: var(--dim); font-size: 0.88rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: grid;
  gap: 0.6rem;
  max-width: 52rem;
  margin-inline: auto;
}

.faq details {
  border: 1px solid rgb(80 130 255 / 0.2);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, #0d1e44 0%, #070f28 100%);
  transition: border-color 0.2s, background 0.2s;
}

.faq details[open] {
  border-color: var(--line-h);
  background: linear-gradient(155deg, #122455 0%, #09132e 100%);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgb(16 185 129 / 0.4);
  border-radius: 50%;
  color: var(--emerald);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.22s;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
  line-height: 1.72;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
  border-radius: var(--r-3xl);
  border: none;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset-block-start: -55%;
  left: 50%;
  transform: translateX(-50%);
  width: 46rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(16 185 129 / 0.18) 0%, rgb(34 211 238 / 0.12) 50%, transparent 80%);
  filter: blur(60px);
  pointer-events: none;
}

.cta > * { position: relative; }
.cta p { max-width: 36rem; margin: 1.1rem auto 2.2rem; color: #9bb3d4; font-size: 1.1rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-block-start: 3rem;
  padding-block: 2.5rem;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }

/* ============================================================
   Legal pages
   ============================================================ */
.doc {
  max-width: 52rem;
  margin-block: 3rem 2rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: rgb(6 10 24 / 0.75);
}

.doc h1 { font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.2rem); }
.doc h2 { margin-block: 2.5rem 0.5rem; font-size: 1.25rem; }
.doc p, .doc li { color: var(--muted); line-height: 1.78; }
.doc ul { margin: 0.5rem 0 0; padding-inline-start: 1.5rem; }
.doc .updated { margin-block-start: 0.5rem; color: var(--dim); font-size: 0.93rem; }

.doc .note {
  margin-block-start: 1.4rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--line-h);
  border-radius: var(--r-md);
  background: rgb(59 130 246 / 0.1);
  color: var(--sky);
  font-size: 0.95rem;
}

/* ============================================================
   Pricing section
   ============================================================ */

/* Item 8 — scroll offset so sticky header doesn't hide heading */
#download { scroll-margin-top: 90px; }

/* ---- Demo card ---- */
.pricing-demo-wrap {
  margin-bottom: 2.5rem;
}
.pricing-demo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-demo-left { flex: 1; min-width: 0; }
.pricing-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgb(245 158 11 / 0.1);
  border: 1px solid rgb(245 158 11 / 0.3);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}
.pricing-demo-left h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}
/* Item 2a — readable subtitle */
.pricing-demo-left p {
  font-size: 0.82rem;
  color: #a9bfe0;
  opacity: 1;
  margin: 0;
}
.pricing-demo-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.pricing-demo-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.pricing-demo-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #a9bfe0;
  margin-left: 0.2rem;
}
/* Item 2b — readable note */
.pricing-demo-note {
  font-size: 0.78rem;
  color: #8fa6c9;
  opacity: 1;
  margin: 0.55rem auto 0;
  max-width: 900px;
  line-height: 1.55;
  padding: 0 0.25rem;
}

/* Item 3 — orange demo button */
.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  background: #ff7a2f;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-demo:hover { background: #e86820; }

/* ---- Billing toggle slot (reserved, hidden until quarterly is active) ---- */
.pricing-toggle-slot { display: none; margin-bottom: 1.75rem; }

/* ---- Monthly plan grid ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: start;  /* needed so scale doesn't clip */
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.1rem 1.4rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.pricing-card:hover {
  border-color: var(--line-h);
  box-shadow: 0 0 0 1px var(--line-h);
}
/* Item 6 — featured card stands out */
.pricing-card-featured {
  border-color: #38bdf8;
  transform: scale(1.05);
  z-index: 1;
  box-shadow:
    0 0 0 1px #38bdf8,
    0 8px 40px rgb(56 189 248 / 0.18),
    0 2px 12px rgb(56 189 248 / 0.1);
}
.pricing-card-featured:hover {
  border-color: #38bdf8;
  box-shadow:
    0 0 0 1px #38bdf8,
    0 8px 48px rgb(56 189 248 / 0.25),
    0 2px 12px rgb(56 189 248 / 0.15);
}
.pricing-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #38bdf8;
  color: #04243a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
}
.pc-devices {
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.pc-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.pc-num.count--infinity {
  font-size: 3rem;
  line-height: 1;
}
.pc-word {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Item 5 — plan names readable */
.pc-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.65rem;
}
.pc-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin: 0 0 1.1rem;
}
.pc-per {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

/* Item 6 — default card buttons: outlined sky-blue */
.pricing-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.88rem;
  background: transparent !important;
  border: 2px solid #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: none !important;
}
.pricing-card .btn:hover {
  background: rgb(56 189 248 / 0.08) !important;
}
/* Item 6 — featured card button: solid fill */
.pricing-card-featured .btn {
  background: #38bdf8 !important;
  color: #04243a !important;
  border-color: #38bdf8 !important;
}
.pricing-card-featured .btn:hover {
  background: #22c5f0 !important;
}

/* ---- Item 1 — shared feature strip ---- */
.plan-features-strip {
  max-width: 1180px;
  margin: 0 auto 1.75rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(120, 200, 255, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}
.plan-features-strip h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.9rem;
  letter-spacing: 0.01em;
}
.plan-features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
.plan-features-list li {
  font-size: 0.85rem;
  color: #a9bfe0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.plan-features-list li::before {
  content: "✓";
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.8rem;
}
.plan-features-note {
  font-size: 0.78rem;
  color: #6b88a8;
  margin: 0;
}

/* ---- Payment methods row ---- */
.pricing-pay-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.85rem;
  color: var(--dim);
}
.pay-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.pay-icon svg { opacity: 0.7; }
/* Item 7 — cancel anytime chip */
.pay-icon-cancel {
  color: #4ade80;
  border-color: rgb(74 222 128 / 0.3);
  background: rgb(74 222 128 / 0.05);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  /* Item 6 — remove scale so stacked cards look clean */
  .pricing-card-featured { transform: none; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pricing-demo-card { flex-direction: column; align-items: flex-start; }
  .pricing-demo-right { align-items: flex-start; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-features-strip { padding: 1.1rem 1rem; }
}
