/* SetHttps marketing site — tech theme
   Shared by main.html (EN) and main.zh.html (ZH) */

:root {
  --bg: #050914;
  --bg-soft: #08101f;
  --panel: #0b1526;
  --panel-2: #0e1b31;
  --line: rgba(120, 160, 255, 0.14);
  --line-strong: rgba(103, 232, 249, 0.34);
  --text: #e8eef9;
  --muted: #9aa9c0;
  --muted-2: #74849e;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(120deg, #22d3ee 0%, #3b82f6 48%, #8b5cf6 100%);
  --radius: 16px;
  --shadow: 0 24px 80px rgba(2, 8, 23, 0.55);
  --max: 1180px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(760px 460px at 8% 2%, rgba(59, 130, 246, 0.14), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a:hover {
  color: #a5f3fc;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: #06101f;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--grad);
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 660px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--mono);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 9, 20, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  min-height: 44px;
}

.brand:hover {
  color: #fff;
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand span b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.08);
}

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

.nav-guest,
.nav-member {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-member {
  display: none;
}

.nav-member.is-visible {
  display: flex;
}

.nav-guest.is-hidden {
  display: none;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-user:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.1);
}

.nav-user:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.nav-user-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.lang-link:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  color: #03101f;
  background: var(--grad);
  box-shadow: 0 10px 34px rgba(34, 211, 238, 0.22);
}

.btn-primary:hover {
  color: #03101f;
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.32);
}

.btn-ghost {
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(148, 163, 184, 0.1);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.mobile-links {
  display: none;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 68% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 68% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}

.hero .container > *,
.steps-layout > *,
.security-layout > * {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 13px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 22, 40, 0.7);
  color: var(--muted);
  font-size: 12.5px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  margin: 0 0 22px;
  overflow-wrap: anywhere;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 850;
}

.hero-lede {
  margin: 0 0 30px;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

/* Console / terminal mock */

.console {
  position: relative;
  padding: 1px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.55), rgba(139, 92, 246, 0.25) 45%, rgba(148, 163, 184, 0.08));
  box-shadow: var(--shadow);
}

.console::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.22), transparent 70%);
  filter: blur(8px);
}

.console-inner {
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(11, 21, 38, 0.97), rgba(7, 13, 26, 0.99));
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.03);
}

.console-dots {
  display: flex;
  gap: 7px;
}

.console-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #253248;
}

.console-dots i:nth-child(1) {
  background: #f87171;
}
.console-dots i:nth-child(2) {
  background: #fbbf24;
}
.console-dots i:nth-child(3) {
  background: #34d399;
}

.console-title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.console-body {
  padding: 20px;
}

.pipeline {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.pipeline li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(148, 163, 184, 0.035);
  font-size: 13px;
}

.pipeline .p-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  color: #cfd9ea;
}

.pipeline .p-name svg {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.pipeline .p-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green);
}

.pipeline .p-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pipeline li.is-pending .p-state {
  color: var(--amber);
}

.terminal {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #040912;
  padding: 15px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #94a3b8;
  overflow-x: auto;
}

.terminal .ln {
  white-space: nowrap;
}

.terminal .prompt {
  color: var(--cyan);
}

.terminal .ok {
  color: var(--green);
}

.terminal .key {
  color: #c4b5fd;
}

.terminal .str {
  color: #fbbf24;
}

/* ---------------- Trust strip ---------------- */

.trust {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 16, 31, 0.45);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 34px;
}

.trust-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--mono);
}


/* ---------------- Live platform stats ---------------- */

.live-stats {
  padding: 72px 0 8px;
}

.live-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.live-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.live-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 620px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--line);
}

.live-stat {
  padding: 30px 28px;
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(34, 211, 238, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(13, 25, 45, 0.9), rgba(8, 15, 29, 0.96));
}

.live-stat strong {
  display: block;
  font-size: clamp(38px, 4.6vw, 54px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.live-stat span {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.live-stat small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 12px;
}

.live-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 11.5px;
  font-family: var(--mono);
}

@media (max-width: 900px) {
  .live-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .live-stats {
    padding: 56px 0 4px;
  }

  .live-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-stat {
    padding: 24px 22px;
  }
}

/* ---------------- Metrics ---------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.metric {
  padding: 26px 24px;
  background: linear-gradient(180deg, rgba(13, 25, 45, 0.9), rgba(8, 15, 29, 0.95));
}

.metric strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.metric span {
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------------- Features ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 25, 45, 0.72), rgba(8, 15, 29, 0.82));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 50px rgba(2, 8, 23, 0.45);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin: 0 0 9px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------------- How it works ---------------- */

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 12px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.5), rgba(139, 92, 246, 0.18));
}

.step {
  position: relative;
  padding: 0 0 26px 58px;
}

.step:last-child {
  padding-bottom: 0;
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #071120;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.step h3 {
  margin: 7px 0 6px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.step code {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--line);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 12px;
}

.code-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 21, 38, 0.96), rgba(6, 12, 24, 0.98));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

pre.code {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: #94a3b8;
}

pre.code .c {
  color: #64748b;
}
pre.code .k {
  color: #c4b5fd;
}
pre.code .s {
  color: #fbbf24;
}
pre.code .v {
  color: var(--cyan);
}

/* ---------------- Console preview ---------------- */

.preview {
  padding: 1px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.35), rgba(139, 92, 246, 0.18) 40%, rgba(148, 163, 184, 0.06));
  box-shadow: var(--shadow);
}

.preview-inner {
  border-radius: 19px;
  background: #09111f;
  overflow: hidden;
}

.preview-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.preview-top strong {
  font-size: 15px;
}

.preview-top span {
  color: var(--muted-2);
  font-size: 12px;
  font-family: var(--mono);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.preview-table th {
  padding: 12px 20px;
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
}

.preview-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
  color: #cbd5e1;
  vertical-align: middle;
}

.preview-table tr:last-child td {
  border-bottom: 0;
}

.preview-table .domain {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #e2e8f0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  border: 1px solid transparent;
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.chip-ok {
  color: var(--green);
  background: rgba(52, 211, 153, 0.09);
  border-color: rgba(52, 211, 153, 0.25);
}

.chip-info {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.24);
}

.chip-warn {
  color: var(--amber);
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.24);
}

.preview-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
  font-family: var(--mono);
}

/* ---------------- Security ---------------- */

.security-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.security-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.security-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14.5px;
}

.security-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--green);
}

.security-list strong {
  color: var(--text);
  font-weight: 600;
}

.security-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(34, 211, 238, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(13, 25, 45, 0.9), rgba(8, 15, 29, 0.96));
}

.security-card h3 {
  margin: 0 0 18px;
  font-size: 16px;
}

.spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 13px;
}

.spec:last-child {
  border-bottom: 0;
}

.spec span {
  color: var(--muted-2);
}

.spec b {
  font-family: var(--mono);
  font-weight: 600;
  color: #cbd5e1;
  text-align: right;
}

/* ---------------- Use cases ---------------- */

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.usecase {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 19, 35, 0.55);
}

.usecase .tag {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.usecase h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.usecase p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------------- FAQ ---------------- */

.faq {
  max-width: 860px;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s ease;
}

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

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 760px;
}

/* ---------------- CTA ---------------- */

.cta {
  position: relative;
  padding: 64px 40px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(34, 211, 238, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(13, 25, 45, 0.9), rgba(7, 13, 26, 0.96));
  text-align: center;
  overflow: hidden;
}

.cta h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.03em;
}

.cta p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
}

.cta .hero-cta {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 40px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  background: rgba(6, 11, 22, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 300px;
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 13.5px;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12.5px;
}

.footer-bottom .mono {
  color: var(--muted-2);
}

/* ---------------- Motion ---------------- */

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1040px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1 {
    max-width: 760px;
  }

  .console {
    max-width: 620px;
  }

  .feature-grid,
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-layout,
  .security-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .mobile-links {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 0 0 10px;
    margin: 0;
    list-style: none;
    scrollbar-width: none;
  }

  .mobile-links::-webkit-scrollbar {
    display: none;
  }

  .mobile-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 64px 0 56px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

  .nav {
    height: 64px;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .nav-user-name {
    display: inline;
    max-width: 72px;
  }

  .nav-user {
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
  }

  @media (max-width: 360px) {
    .nav-user-name {
      display: none;
    }
  }

  .nav-actions .btn-ghost {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .feature-grid,
  .usecase-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

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

  .cta {
    padding: 48px 24px;
  }

  .hero-note {
    font-size: 12.5px;
  }

  .preview-table th:nth-child(3),
  .preview-table td:nth-child(3) {
    display: none;
  }

  .pipeline li {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 32px;
  }

  .badge {
    font-size: 11px;
  }

  .preview-table th,
  .preview-table td {
    padding: 11px 14px;
  }
}

/* ---------------- Document pages (terms / privacy / contact) ---------------- */

.doc-page .site-header {
  position: sticky;
}

.doc-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 40px;
  border-bottom: 1px solid var(--line);
}

.doc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 260px at 82% -20%, rgba(34, 211, 238, 0.14), transparent 65%),
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 85% at 50% 0%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 85% at 50% 0%, #000 25%, transparent 80%);
  pointer-events: none;
}

.doc-hero .container {
  position: relative;
}

.doc-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 850;
}

.doc-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-lede {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 84px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 96px;
  padding: 4px 0;
}

.doc-toc-title {
  margin: 0 0 12px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-toc a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.doc-toc a:hover {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.doc-content {
  min-width: 0;
  max-width: 820px;
}

.doc-content h2 {
  margin: 42px 0 12px;
  padding-top: 6px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content h3 {
  margin: 26px 0 8px;
  font-size: 16px;
  color: var(--text);
}

.doc-content p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.doc-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
}

.doc-content li {
  margin: 6px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.doc-content strong {
  color: var(--text);
  font-weight: 600;
}

.doc-content a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 211, 238, 0.25);
}

.doc-content a:hover {
  border-bottom-color: var(--cyan);
}

.doc-callout {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(300px 140px at 100% 0%, rgba(34, 211, 238, 0.1), transparent 70%),
    rgba(12, 22, 40, 0.6);
}

.doc-callout p:last-child {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}

.contact-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 25, 45, 0.75), rgba(8, 15, 29, 0.85));
}

.contact-card .label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 0;
}

.contact-card a:hover {
  color: var(--cyan);
}

.contact-card p {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 32px;
  }

  .doc-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .doc-toc-title {
    width: 100%;
    margin-bottom: 4px;
  }

  .doc-toc a {
    padding: 4px 0;
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .doc-hero {
    padding: 56px 0 30px;
  }

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

  .doc-content h2 {
    margin-top: 34px;
  }
}
