/* ClearDesk Labs — Customer Context Card for Jira
   Enterprise SaaS Design System (Static, Zero-Dependency) */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --primary: #0052cc;
  --primary-hover: #0747a6;
  --primary-soft: #eff6ff;
  --primary-border: #bfdbfe;
  --navy: #091e42;
  --navy-deep: #06142e;

  --accent: #00b8d9;
  --accent-bright: #22d3ee;
  --success: #00875a;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --vip: #6554c0;
  --vip-bg: #f3e8ff;
  --danger: #de350b;
  --danger-bg: #fef2f2;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-ink: #92400e;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -6px rgba(15, 23, 42, 0.1), 0 4px 10px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 60px -12px rgba(6, 20, 46, 0.35), 0 8px 24px -8px rgba(6, 20, 46, 0.22);

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Header & Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-xs);
}

.brand-sub {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
  display: block;
  line-height: 1.1;
  font-family: var(--font-sans);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-secondary);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 24px 24px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--surface-subtle);
}

.mobile-drawer .btn {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.87rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.98rem;
  border-radius: 11px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 82, 204, 0.28);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 82, 204, 0.34);
}

.btn-white {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.btn-white:hover {
  background: #f1f5f9;
  color: var(--primary-hover);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--surface-subtle);
  color: var(--ink);
  border-color: #94a3b8;
}

/* =========================================================
   Hero Section & Interactive Jira Mockup
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(0, 184, 217, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 70% at 10% 90%, rgba(38, 132, 255, 0.24), transparent 55%),
    linear-gradient(155deg, #06142e 0%, #0a2558 52%, #07388a 100%);
  color: #ffffff;
  padding: 76px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 90%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 199, 230, 0.14);
  border: 1px solid rgba(103, 232, 249, 0.34);
  color: #a5f3fc;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.24);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.032em;
  margin: 0 0 20px;
  color: #ffffff;
}

.hero h1 .text-gradient {
  background: linear-gradient(95deg, #7dd3fc 0%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 0 30px;
  max-width: 540px;
}

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

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #cbd5e1;
  font-size: 0.87rem;
}

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

.hero-checks svg {
  color: #34d399;
  flex-shrink: 0;
}

/* Interactive Jira Window Mockup */
.demo-shell {
  background: #ffffff;
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.demo-topbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.demo-window-dots i:nth-child(1) { background: #fca5a5; }
.demo-window-dots i:nth-child(2) { background: #fcd34d; }
.demo-window-dots i:nth-child(3) { background: #86efac; }

.demo-breadcrumb {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font-mono);
}

.demo-mode-switch {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.demo-mode-btn {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.demo-mode-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.demo-persona-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.demo-persona-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-right: 2px;
  flex-shrink: 0;
}

.persona-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.persona-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.persona-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.demo-body {
  padding: 18px 20px 20px;
}

.demo-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--surface-subtle);
  margin-bottom: 14px;
}

.demo-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.demo-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  flex-shrink: 0;
}

.demo-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
}

.demo-email {
  font-size: 0.8rem;
  color: var(--muted);
}

.lozenge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
  flex-shrink: 0;
}

.lozenge-vip { background: #eae6ff; color: #403294; }
.lozenge-enterprise { background: #deebff; color: #0747a6; }
.lozenge-atrisk { background: #ffebe6; color: #bf2600; }
.lozenge-done { background: #e3fcef; color: #006644; }
.lozenge-progress { background: #deebff; color: #0747a6; }
.lozenge-open { background: #f1f5f9; color: #475569; }

.demo-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 14px;
}

.demo-field {
  background: #f8fafc;
  border: 1px solid var(--surface-subtle);
  border-radius: 9px;
  padding: 8px 10px;
  min-width: 0;
}

.demo-field.full {
  grid-column: 1 / -1;
}

.demo-field-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}

.demo-field-value {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.demo-field-value.note {
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.demo-field-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.demo-field-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-field-link svg {
  flex-shrink: 0;
}

.demo-org-box {
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 14px;
}

.demo-org-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.demo-org-meta {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.demo-tickets-title {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}

.demo-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid var(--surface-subtle);
  font-size: 0.8rem;
}

.demo-ticket-key {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
  margin-right: 6px;
}

.demo-ticket-summary {
  color: var(--ink-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Admin Preview Mode */
.demo-admin-view {
  display: none;
}

.demo-admin-view.visible {
  display: block;
}

.demo-agent-view.hidden {
  display: none;
}

.admin-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 7px;
  font-size: 0.82rem;
}

.admin-field-row code {
  font-size: 0.74rem;
  background: var(--surface-subtle);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink-secondary);
}

.admin-csv-preview {
  margin-top: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.55;
  overflow-x: auto;
}

.admin-csv-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   Metrics Trust Bar
   ========================================================= */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.trust-item:first-child {
  border-left-color: var(--primary);
}

.trust-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1.2;
}

.trust-label {
  font-size: 0.86rem;
  color: var(--muted);
}

/* =========================================================
   Sections & Headings
   ========================================================= */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--navy);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

/* =========================================================
   Feature Cards Grid
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.feature-icon.icon-purple {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.feature-icon.icon-green {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.feature-icon.icon-cyan {
  background: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

.tier-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.field-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.mini-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
}

/* =========================================================
   How It Works (3 Steps)
   ========================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--navy);
}

.step-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* =========================================================
   Security & Architecture Section
   ========================================================= */
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: start;
}

.arch-card {
  background: linear-gradient(160deg, #071b3f 0%, #0b2d69 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.arch-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.arch-boundary {
  border: 1.5px dashed rgba(125, 211, 252, 0.45);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.arch-boundary-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7dd3fc;
  margin-bottom: 12px;
}

.arch-node {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.arch-node strong {
  font-size: 0.9rem;
  display: block;
}

.arch-node span {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.arch-connector {
  text-align: center;
  color: #7dd3fc;
  font-size: 0.85rem;
  padding: 5px 0;
  font-weight: 600;
}

.arch-egress-blocked {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(252, 165, 165, 0.3);
  color: #fecaca;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 9px;
}

.scopes-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.scopes-panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.scopes-panel-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 3px;
  color: var(--navy);
}

.scopes-panel-head p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.scope-row {
  padding: 16px 22px;
  border-bottom: 1px solid var(--surface-subtle);
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 14px;
  align-items: start;
}

.scope-row:last-child {
  border-bottom: 0;
}

.scope-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 4px 9px;
  border-radius: 6px;
  display: inline-block;
}

.scope-desc {
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.compliance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.compliance-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}

.compliance-pill svg {
  color: var(--success);
  flex-shrink: 0;
}

/* =========================================================
   Pricing & Interactive Estimator
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 18px 40px -12px rgba(0, 82, 204, 0.2);
}

.pricing-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 999px;
}

.pricing-tier-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}

.pricing-tier-sub {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0 0 20px;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}

.pricing-amount span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.pricing-list svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Interactive Estimator */
.estimator-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-xs);
}

.estimator-box h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 6px;
  color: var(--navy);
}

.estimator-box p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
  height: 6px;
  cursor: pointer;
}

.slider-users-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 5px 12px;
  border-radius: 8px;
  min-width: 112px;
  text-align: center;
}

.estimator-result {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: right;
}

.estimator-result-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.estimator-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin: 2px 0;
}

.estimator-detail {
  font-size: 0.82rem;
  color: var(--muted);
}

/* =========================================================
   FAQ Accordion
   ========================================================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}

/* =========================================================
   Final CTA Banner
   ========================================================= */
.cta-banner {
  background:
    radial-gradient(ellipse 65% 80% at 90% 20%, rgba(0, 199, 230, 0.26), transparent 60%),
    linear-gradient(135deg, #071d45 0%, #0052cc 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: #ffffff;
}

.cta-banner p {
  margin: 0;
  color: #dbeafe;
  font-size: 1.02rem;
  max-width: 560px;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* =========================================================
   Subpages (Docs, Privacy, Terms)
   ========================================================= */
.page-hero {
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(0, 184, 217, 0.16), transparent 60%),
    linear-gradient(155deg, #07193a 0%, #0a2a66 100%);
  color: #ffffff;
  padding: 52px 0 48px;
}

.page-hero .eyebrow-pill {
  margin-bottom: 14px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.15;
}

.page-hero p {
  margin: 0;
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 680px;
}

.page-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.page-meta-row strong {
  color: #e2e8f0;
}

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

.doc-sidebar {
  position: sticky;
  top: 96px;
}

.doc-toc-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
  padding-left: 12px;
}

.doc-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border);
}

.doc-toc a {
  display: block;
  padding: 7px 12px;
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.doc-toc a:hover,
.doc-toc a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

.doc-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-xs);
}

.doc-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 38px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--surface-subtle);
  scroll-margin-top: 96px;
}

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

.doc-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 8px;
}

.doc-content p,
.doc-content li {
  color: var(--ink-secondary);
  font-size: 0.96rem;
}

.doc-content ul,
.doc-content ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-content code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--navy);
}

.code-block-wrap {
  position: relative;
  margin: 16px 0 20px;
}

.code-block-wrap pre {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 44px 20px 18px;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.6;
  overflow-x: auto;
  scrollbar-color: #475569 #0f172a;
  scrollbar-width: thin;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.callout-info {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: #1e3a8a;
}

.callout-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #065f46;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 0.9rem;
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.doc-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-deep);
  color: #94a3b8;
  padding: 64px 0 36px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 0 16px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 5px 11px;
  border-radius: 999px;
}

.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

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

.footer-col a {
  color: #94a3b8;
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .security-grid,
  .estimator-box {
    grid-template-columns: 1fr;
  }

  .estimator-result {
    text-align: left;
  }

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

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
  }

  .doc-content {
    padding: 28px 22px;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 52px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .feature-grid,
  .steps-grid,
  .pricing-grid,
  .trust-grid,
  .compliance-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .demo-fields {
    grid-template-columns: 1fr;
  }

  .scope-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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