/* Fastly CDN — shared stylesheet */

:root {
  --navy-900: #071026;
  --navy-800: #0a1730;
  --navy-700: #0f2144;
  --navy-600: #16305f;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --ink: #0b1220;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --paper: #ffffff;
  --bg: #f6f9fc;
  --ok: #10b981;
  --warn: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 33, 68, .06), 0 2px 8px rgba(15, 33, 68, .05);
  --shadow-md: 0 10px 30px rgba(9, 22, 51, .10);
  --shadow-lg: 0 30px 60px rgba(9, 22, 51, .18);
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--blue-400); }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 14px;
}

.muted { color: var(--slate-500); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--slate-500); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .96rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--blue-500), var(--cyan-500));
  box-shadow: 0 8px 22px rgba(37, 99, 235, .28);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(6, 182, 212, .34); }
.btn--ghost {
  color: var(--slate-100);
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .22);
}
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.btn--outline {
  color: var(--blue-500);
  background: #fff;
  border-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover { color: var(--blue-500); border-color: var(--blue-400); }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.16rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .logo-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand b { color: var(--cyan-500); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate-700); font-weight: 500; font-size: .97rem; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-500); }

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

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--slate-200);
  background: #fff; border-radius: 10px;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--slate-700); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #eaf2ff;
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(900px 420px at 6% 8%, rgba(37, 99, 235, .30), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(720px 380px at 70% 20%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 96px 0 88px;
}
.hero h1 { color: #fff; }
.hero h1 .grad { background: linear-gradient(100deg, var(--cyan-300), var(--blue-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #b9c8e6; font-size: 1.16rem; max-width: 52ch; }
.hero .eyebrow { color: var(--cyan-300); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 20px; font-size: .9rem; color: #8ea3c9; display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }

/* Hero card / mock terminal */
.hero-panel {
  background: rgba(9, 20, 44, .7);
  border: 1px solid rgba(120, 160, 220, .22);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.hero-panel-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(120, 160, 220, .16); }
.hero-panel-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.hero-panel-bar i:nth-child(1) { background: #ff5f57; }
.hero-panel-bar i:nth-child(2) { background: #febc2e; }
.hero-panel-bar i:nth-child(3) { background: #28c840; }
.hero-panel-bar em { margin-left: auto; font-style: normal; color: #7f96bd; font-size: .8rem; }
.hero-panel pre {
  margin: 0; padding: 18px 18px 22px; font-size: .82rem; line-height: 1.7;
  color: #cfe0ff; overflow-x: auto;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}
.hero-panel pre .c1 { color: #6ee7ff; }
.hero-panel pre .c2 { color: #86efac; }
.hero-panel pre .c3 { color: #93a7cc; }

/* logo strip */
.trust { border-top: 1px solid rgba(255,255,255,.06); background: var(--navy-800); }
.trust .container { padding-top: 26px; padding-bottom: 26px; }
.trust p { text-align: center; color: #7f93b8; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 34px 52px; justify-content: center; align-items: center; opacity: .8; }
.trust-logos span { color: #aebfdd; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(120deg, var(--blue-500), var(--cyan-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--slate-500); font-size: .94rem; margin-top: 4px; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe0f6; }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.14));
  color: var(--blue-500);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate-500); margin: 0; font-size: .97rem; }

/* section header */
.sec-head { max-width: 62ch; margin: 0 auto 46px; text-align: center; }
.sec-head p { color: var(--slate-500); font-size: 1.08rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split + .split { margin-top: 72px; }
.split ul { list-style: none; padding: 0; margin: 18px 0 0; }
.split ul li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--slate-700); }
.split ul li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.mock {
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  background: linear-gradient(160deg, #0d1c3d, #12274f);
  color: #cfe0ff;
  padding: 26px;
  box-shadow: var(--shadow-md);
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.mock .metric-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.mock .metric-row:last-child { border-bottom: 0; }
.mock .metric-row b { color: #fff; font-weight: 700; }
.mock .tag { font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: rgba(16,185,129,.18); color: #6ee7b7; font-weight: 600; }
.mock .spark { height: 76px; margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 85% 0%, rgba(34,211,238,.22), transparent 60%),
    linear-gradient(120deg, var(--navy-700), var(--navy-800));
  color: #fff;
  border-radius: 20px;
  padding: 54px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #b9c8e6; margin: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 32px 28px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative;
}
.plan.is-featured { border-color: var(--blue-400); box-shadow: 0 20px 44px rgba(37,99,235,.16); }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--blue-500), var(--cyan-500)); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.15rem; }
.plan .price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--slate-500); }
.plan .price-sub { color: var(--slate-500); font-size: .9rem; margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan ul li { padding: 9px 0 9px 28px; position: relative; color: var(--slate-700); border-bottom: 1px solid var(--slate-100); font-size: .95rem; }
.plan ul li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(37,99,235,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plan ul li.off { color: var(--slate-400); }
.plan ul li.off::before { background: var(--slate-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E") center/11px no-repeat; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-500); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--slate-500); padding-bottom: 16px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .info-item .ico { width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center; background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(6,182,212,.14)); color: var(--blue-500); }
.contact-info .info-item .ico svg { width: 20px; height: 20px; }
.contact-info h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-info p { margin: 0; color: var(--slate-500); font-size: .95rem; }

.form-card { background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--slate-700); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--slate-200); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Login ---------- */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: grid; place-items: center; padding: 40px 20px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(37,99,235,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.auth-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 18px;
  padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.auth-card .brand { justify-content: center; margin-bottom: 8px; }
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--slate-500); font-size: .95rem; margin-bottom: 26px; }
.auth-meta { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 20px; font-size: .88rem; }
.auth-meta label { display: inline-flex; align-items: center; gap: 7px; color: var(--slate-500); }
.auth-foot { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--slate-500); }
.auth-back { display: block; text-align: center; margin-top: 26px; color: #9fb2d6; font-size: .88rem; }
.auth-back:hover { color: #cfe0ff; }
.alert {
  display: none;
  align-items: center; gap: 11px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 11px; padding: 13px 15px; margin-bottom: 20px; font-size: .93rem;
}
.alert.show { display: flex; }
.alert svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--warn); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb2d6; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid .brand { color: #fff; margin-bottom: 14px; }
.footer-grid .brand:hover { color: #fff; }
.footer-about p { color: #8ba0c6; font-size: .92rem; max-width: 34ch; }
.footer-col h5 { color: #dbe6fb; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #9fb2d6; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #7f93b8; font-size: .86rem;
}
.footer-bottom .badges { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom .badges span { border: 1px solid rgba(255,255,255,.12); border-radius: 7px; padding: 3px 9px; font-size: .76rem; }

/* status dot */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ok); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(760px 300px at 82% -20%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff; padding: 66px 0 60px; text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #b9c8e6; max-width: 60ch; margin: 0 auto; font-size: 1.12rem; }
.page-hero .eyebrow { color: var(--cyan-300); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .plans, .footer-grid { grid-template-columns: 1fr 1fr; }
  .split + .split { margin-top: 48px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--slate-200);
    padding: 12px 22px 18px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-actions .btn--nav-hide { display: none; }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .plans, .field-row, .footer-grid, .stats { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 26px; text-align: center; justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}
