/* /assets/css/ipaware.css */

/* =========================
   Shared Design System
   ========================= */
:root {
  /* ====== Premium Dark Palette ====== */
  --bg: #07080b;
  --bg2: #0b0e14;

  --surface: rgba(255, 255, 255, .04);
  --surface2: rgba(255, 255, 255, .06);

  --border: rgba(255, 255, 255, .10);
  --border2: rgba(255, 255, 255, .14);

  /* Accent */
  --accent: #4da3ff;
  --accent2: #7bd3ff;
  --accentGlow: rgba(77, 163, 255, .25);

  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .62);
  --muted2: rgba(255, 255, 255, .48);

  --success: #37d67a;
  --danger: #ff4d6d;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --max: 1240px;
  /* Increased slightly to fit 4 cards comfortably */
  --pad: 24px;

  --r-lg: 18px;
  --r-md: 12px;

  --shadow: 0 18px 60px rgba(0, 0, 0, .55);
  --shadowSoft: 0 12px 40px rgba(0, 0, 0, .40);
  --shadowAccent: 0 0 0 1px rgba(77, 163, 255, .25), 0 18px 80px rgba(77, 163, 255, .14);

  --header: 74px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t: 220ms var(--ease);
}

/* ====== Reset ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(1000px 600px at 20% -10%, rgba(77, 163, 255, .22), transparent 55%),
    radial-gradient(800px 500px at 90% 10%, rgba(123, 211, 255, .12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t), opacity var(--t), transform var(--t);
}

ul {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(77, 163, 255, .25);
  border-radius: 10px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ====== Subtle “premium noise” overlay ====== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .18;
}

.text-accent {
  color: var(--accent2);
  text-shadow: 0 0 16px var(--accentGlow);
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t), opacity var(--t);
  user-select: none;
  will-change: transform;
}

.btn--small {
  padding: 10px 14px;
  font-size: .95rem;
}

.btn--primary {
  color: #06101d;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 16px 50px rgba(77, 163, 255, .18);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 70px rgba(77, 163, 255, .24);
}

.btn--outline {
  color: var(--text);
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, .02);
}

.btn--outline:hover {
  border-color: rgba(123, 211, 255, .55);
  background: rgba(255, 255, 255, .04);
  transform: translateY(-1px);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* =========================
   Header / Nav
   ========================= */
.site-header {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 8, 11, .62);
  backdrop-filter: blur(14px);
}

.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Image logo support (shared) */
.logo--image {
  gap: 0;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(77, 163, 255, .25));
}

@media (max-width: 820px) {
  .logo-img {
    height: 30px;
  }
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}

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

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-toggle {
  display: none;
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, .04);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger {
  color: var(--text);
}

.dropdown-caret {
  transition: transform var(--t);
  margin-top: 1px;
  stroke: currentColor;
  opacity: .8;
}

.nav-dropdown:hover .dropdown-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 14px;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  box-shadow: var(--shadowSoft);
  padding: 6px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 1000;
  pointer-events: none;
}

.nav-dropdown-menu::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.95rem;
  transition: background var(--t), color var(--t);
  text-align: left;
}

.nav-dropdown-menu a:hover {
  background: var(--surface2);
  color: var(--text);
}

/* Arrow */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  border-left: 1px solid var(--border2);
}

@media (max-width: 820px) {
  .nav-dropdown {
    display: block;
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    padding: 12px 0;
    justify-content: space-between;
    text-align: left;
    font-size: inherit;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-dropdown-trigger:active {
    opacity: 0.7;
  }

  .nav-dropdown-trigger .dropdown-caret {
    pointer-events: none;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    padding-left: 16px;
    margin: 0;
    min-width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms var(--ease);
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    transform: none;
  }

  .nav-dropdown:hover .dropdown-caret {
    transform: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 300px;
    margin-top: 8px;
  }

  .nav-dropdown.open .dropdown-caret {
    transform: rotate(180deg);
    opacity: 1;
  }

  .nav-dropdown-menu::before,
  .nav-dropdown-menu::after {
    display: none;
  }

  .nav-dropdown-menu a {
    font-size: 0.95rem;
    padding: 10px 12px;
    display: block;
    white-space: normal;
  }
}

/* =========================
   Sections
   ========================= */
.section-pad {
  padding: 78px 0;
}

.section-surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.section-title {
  font-size: clamp(1.8rem, 2.8vw, 2.35rem);
  letter-spacing: -0.04em;
  text-align: center;
  margin-bottom: 14px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 72ch;
  margin: 0 auto 44px;
  font-size: 1.05rem;
}

/* =========================
   Landing Page
   ========================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 18px;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(77, 163, 255, .12);
}

.hero-section {
  padding: 92px 0 56px;
  min-height: calc(86vh - var(--header));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 52px;
  align-items: center;
}

.hero-headline {
  font-size: clamp(2.55rem, 4.4vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.hero-subhead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 54ch;
  margin-bottom: 26px;
}

.hero-meta {
  margin-top: 18px;
  color: var(--muted2);
  font-size: .98rem;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
}

.pill svg {
  opacity: .9;
}

/* Code window */
.code-window {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  box-shadow: var(--shadowSoft);
  overflow: hidden;
  position: relative;
}

.code-window::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(420px 240px at 30% 10%, rgba(77, 163, 255, .18), transparent 60%);
  pointer-events: none;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .18);
}

.dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
}

.dot:nth-child(2) {
  background: #ffbd2e;
}

.dot:nth-child(3) {
  background: #27c93f;
}

.code-title {
  font-weight: 700;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: -0.01em;
}

.code-content {
  position: relative;
  padding: 14px 18px 16px;
  font-family: var(--mono);
  font-size: .82rem;
  color: rgba(255, 255, 255, .88);
  overflow-x: auto;
}

.code-key {
  color: var(--accent2);
}

.code-string {
  color: #ffd6a6;
}

.code-number {
  color: #b9f6d2;
}

/* Mobile overflow fix for code window */
.hero-grid>* {
  min-width: 0;
}

.code-window {
  width: 100%;
  max-width: 100%;
}

.code-content {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
  word-break: normal;
  tab-size: 2;
  scrollbar-gutter: stable both-edges;
}

.code-window,
.code-content,
.code-content code {
  text-align: left;
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding: 68px 0 40px;
  }

  .code-content {
    padding: 14px;
    font-size: .82rem;
    line-height: 1.45;
  }

  .code-header {
    padding: 10px 12px;
  }

  .dot {
    width: 9px;
    height: 9px;
  }

  .code-title {
    font-size: .85rem;
  }

  .code-content code {
    display: block;
    min-width: 100%;
  }
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
  min-height: 170px;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(420px 240px at 20% 0%, rgba(77, 163, 255, .12), transparent 60%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 211, 255, .35);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(77, 163, 255, .07);
  border: 1px solid rgba(77, 163, 255, .18);
  margin-bottom: 18px;
  color: #4da3ff;
}

.feature-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

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

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* CHANGED to 4 */
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
  position: relative;
  overflow: hidden;
}

.pricing-card.popular {
  border-color: rgba(123, 211, 255, .55);
  box-shadow: var(--shadowAccent);
  background: linear-gradient(180deg, rgba(123, 211, 255, .10), rgba(255, 255, 255, .03));
  transform: translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(77, 163, 255, .18);
  border: 1px solid rgba(123, 211, 255, .45);
  color: rgba(255, 255, 255, .88);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 2.2rem;
  /* Adjusted down slightly for 4 cols */
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

.plan-period {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.plan-savings {
  color: rgba(55, 214, 122, .95);
  font-weight: 800;
  font-size: .92rem;
  margin-top: 4px;
}

.plan-features {
  margin: 18px 0 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.feature-check {
  margin-top: 2px;
  color: var(--accent2);
  text-shadow: 0 0 14px var(--accentGlow);
  font-weight: 900;
}

.feature-highlight {
  color: rgba(255, 255, 255, .92);
  font-weight: 800;
}

.muted-off {
  opacity: .5;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.step-card {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(420px 240px at 20% 0%, rgba(77, 163, 255, .10), transparent 60%);
  opacity: .8;
  pointer-events: none;
}

.step-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(77, 163, 255, .3), transparent);
}

.step-card>* {
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(77, 163, 255, .15);
  background: rgba(77, 163, 255, .06);
  color: rgba(77, 163, 255, .9);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.step-card h3 {
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

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

@media (max-width: 980px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Security grid */
.security-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: stretch;
}

.security-card {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .26);
  padding: 26px;
}

.security-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.security-item {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.security-item strong {
  color: rgba(255, 255, 255, .90);
  font-weight: 800;
}

.badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.mini-badge {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  padding: 14px;
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 980px) {
  .security-grid {
    grid-template-columns: 1fr;
  }

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

/* FAQ */
.faq-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .20);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px;
  color: rgba(255, 255, 255, .90);
  font-weight: 800;
  letter-spacing: -0.02em;
  user-select: none;
}

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

.faq-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(77, 163, 255, .08);
  color: rgba(255, 255, 255, .90);
  font-weight: 900;
  flex: 0 0 auto;
  transition: transform var(--t), background var(--t), border-color var(--t);
}

.faq-content {
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item[open] {
  border-color: rgba(123, 211, 255, .35);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
  background: linear-gradient(180deg, rgba(123, 211, 255, .08), rgba(255, 255, 255, .03));
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  border-color: rgba(123, 211, 255, .45);
  background: rgba(77, 163, 255, .14);
}

@media (max-width: 520px) {
  .faq-item summary {
    padding: 16px;
  }

  .faq-content {
    padding: 0 16px 16px;
  }

  .faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }
}

/* =========================
   Footer (shared)
   ========================= */
.site-footer {
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted);
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

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

/* =========================
   Terms Page (card/toc layout)
   ========================= */
.page {
  padding: 54px 0 64px;
  flex: 1;
}

.page-hero {
  margin-bottom: 22px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(10, 12, 18, .62);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadowSoft);
  padding: 26px;
  overflow: hidden;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(520px 320px at 20% 0%, rgba(77, 163, 255, .16), transparent 60%);
  opacity: .9;
  pointer-events: none;
}

.page-hero>* {
  position: relative;
}

h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 10px;
}

.sub {
  color: var(--muted);
  max-width: 75ch;
}

.content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.card {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .20);
  padding: 22px;
}

.toc {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.toc a {
  color: var(--muted);
  font-weight: 700;
}

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

h2 {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
  color: rgba(255, 255, 255, .92);
}

p {
  color: rgba(255, 255, 255, .84);
  margin: 10px 0;
}

.muted {
  color: var(--muted);
}

.muted2 {
  color: var(--muted2);
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, .84);
}

.list li {
  margin: 6px 0;
}

.notice {
  border-radius: 14px;
  border: 1px solid rgba(123, 211, 255, .30);
  background: rgba(77, 163, 255, .08);
  padding: 14px 14px;
  color: rgba(255, 255, 255, .88);
  margin-top: 14px;
}

.notice strong {
  color: rgba(255, 255, 255, .92);
}

.hr {
  height: 1px;
  background: rgba(255, 255, 255, .10);
  margin: 14px 0;
}

/* Print-friendly */
@media print {
  body::before {
    display: none !important;
  }

  .site-header,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  a {
    color: #000 !important;
    text-decoration: underline !important;
  }

  .card,
  .page-hero {
    box-shadow: none !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
  }
}

/* =========================
   Privacy Page (legal layout)
   ========================= */
.legal-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.legal-head {
  text-align: center;
  margin-bottom: 18px;
}

.legal-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  letter-spacing: -0.05em;
  font-weight: 900;
}

.legal-sub {
  margin-top: 10px;
  color: var(--muted);
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

.legal-card {
  margin-top: 20px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
  padding: 26px;
}

.legal-card h2 {
  margin-top: 18px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.legal-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-card ul {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  padding-left: 18px;
  list-style: disc;
}

.callout {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(77, 163, 255, .06);
  padding: 14px;
  color: var(--muted);
}

@media (max-width: 520px) {
  .section-pad {
    padding: 58px 0;
  }

  .legal-card {
    padding: 20px;
  }
}

/* =========================
   Responsive Nav + Layout
   ========================= */
@media (max-width: 1050px) {

  /* Trigger slightly earlier for 4 cards */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero-subhead {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-row {
    justify-content: center;
  }

  .code-window {
    max-width: 720px;
    margin: 0 auto;
  }

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

  /* 2x2 */
  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* 1x4 */
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links > a {
    padding: 12px 0;
  }

  .nav-links {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    padding: 18px;
    flex-direction: column;
    gap: 14px;
    background: rgba(10, 12, 18, .88);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(16px);
    transform: translateY(-140%);
    transition: transform 260ms var(--ease);
    color: var(--text);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-actions {
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
  }

  .nav-actions .btn {
    width: 100%;
  }
}

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}