/* ─── TOKENS ─── */
:root {
  --bg: #141218;
  --bg-surface: #1D1B20;
  --bg-raised: #211F26;
  --bg-border: #49454F;

  --text-primary: #E6E0E9;
  --text-secondary: #CAC4D0;
  --text-muted: #938F99;

  --accent: #D0BCFF;
  --accent-dim: #9a82db;
  --accent-glow: rgba(208, 188, 255, 0.1);
  --accent-container: #4F378B;

  --teal: #66BB6A;
  --teal-dim: rgba(102, 187, 106, 0.15);

  --red: #F2B8B5;
  --green: #66BB6A;
  --amber: #fb8c00;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --transition: all 0.2s ease;
}

[data-theme="light"] {
  --bg: #F8F9FB;
  --bg-surface: #FFFFFF;
  --bg-raised: #F3F6FA;
  --bg-border: #E0E3EB;

  --text-primary: #23272F;
  --text-secondary: #5A6270;
  --text-muted: #A0A6B2;

  --accent: #D0BCFF;
  --accent-dim: #9a82db;
  --accent-glow: rgba(208, 188, 255, 0.1);
  --accent-container: #4F378B;

  --teal: #10B981;
  --teal-dim: rgba(16, 185, 129, 0.10);

  --red: #EF4444;
  --green: #22C55E;
  --amber: #F59E42;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  color: var(--accent);
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

/* ─── TYPOGRAPHY ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 56px;
}

.text-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #381E72;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-primary:hover {
  background: #e2d3ff;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 11px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-border);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-large {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--text-primary);
  background: var(--bg-raised);
}

/* ─── FADE-IN ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--bg-border);
}

[data-theme="light"] #navbar.scrolled {
  background: rgba(247, 244, 239, 0.92);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo-mark {
  color: var(--accent);
}

.logo-text {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.hamburger:hover {
  background: var(--bg-raised);
  border-color: var(--bg-border);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── MOBILE MENU ─── */

.mobile-menu {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
  z-index: 120;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.77, 0, .18, 1), opacity 0.25s cubic-bezier(.77, 0, .18, 1);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu.closing {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-inner {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--bg-border);
  margin-bottom: 16px;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(73, 69, 79, 0.4);
}

.mobile-nav-links li:last-child {
  border-bottom: none;
}

.mobile-nav-links a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 14px 0;
  transition: color 0.15s;
}

.mobile-nav-links a:hover {
  color: var(--text-primary);
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }
}

/* ─── HERO ─── */
#hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 30%, transparent 100%);
}

/* ─── HERO LAYOUT: two-column ─── */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* Left column */
.hero-text {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.77rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.hero-disclaimer svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Right column: shield */
.hero-shield-col {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 8px;
}

/* Shield canvas wrapper */
.sw {
  width: 100%;
  min-height: 560px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  position: relative;
  border: none;
  touch-action: manipulation;
}

canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shield-pos {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: all;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#flipScreen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, #0a0614 0%, #050309 100%);
}

#flipScreen.active {
  opacity: 1;
  pointer-events: all;
}

#starCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── 3D flip card ── */
#shieldScene {
  perspective: 420px;
  perspective-origin: 50% 50%;
}

@keyframes shieldFloat {
  0%   { transform: translateY(0px)   rotateY(-4deg) rotateX(1deg);  }
  30%  { transform: translateY(-14px) rotateY(4deg)  rotateX(-2deg); }
  60%  { transform: translateY(-8px)  rotateY(-2deg) rotateX(1deg);  }
  100% { transform: translateY(0px)   rotateY(-4deg) rotateX(1deg);  }
}

@media (pointer: coarse) {
  #shieldPulse {
    animation: shieldFloat 3.6s ease-in-out infinite;
  }
}

#shieldFlip {
  position: relative;
  width: 280px;
  height: 332px;
  transform-style: preserve-3d;
  will-change: transform;
}

#shieldFlip.flying {
  animation: shieldFly 2.1s linear forwards;
}

#shieldFlip.returning {
  animation: shieldReturn 0.5s ease-out forwards;
}

/* linear do 80% = konstantna rotacija. Na 80% kickuje ease-out samo za zadnji segment.
   translateY vrednosti uzorkuju parabolu f(t)=-280·4t(1−t). */
@keyframes shieldFly {
  0%   { transform: translateY(0px)    rotateY(0deg);    }
  10%  { transform: translateY(-101px) rotateY(126deg);  }
  20%  { transform: translateY(-179px) rotateY(252deg);  }
  30%  { transform: translateY(-235px) rotateY(378deg);  }
  40%  { transform: translateY(-269px) rotateY(504deg);  }
  50%  { transform: translateY(-280px) rotateY(630deg);  }
  60%  { transform: translateY(-269px) rotateY(756deg);  }
  70%  { transform: translateY(-235px) rotateY(882deg);  }
  80%  { transform: translateY(-179px) rotateY(1008deg); }
  90%  { transform: translateY(-101px) rotateY(1134deg); }
  100% { transform: translateY(0px)    rotateY(1260deg); }
}

@keyframes shieldReturn {
  from { transform: rotateY(180deg); }
  to   { transform: rotateY(360deg); }
}

@keyframes shieldTapPulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.15) rotateY(-6deg); }
  65%  { transform: scale(1.10) rotateY(4deg); }
  85%  { transform: scale(1.04) rotateY(-2deg); }
  100% { transform: scale(1); }
}

#shieldFlip.shield-tap {
  animation: shieldTapPulse 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.shield-flip-front,
.shield-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.shield-flip-back {
  transform: rotateY(180deg);
}

#shieldSvg {
  display: block;
  will-change: filter;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#shieldPulse {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#shield-bg {
  fill: var(--accent);
}

#shield-border-thin {
  stroke: var(--accent-container);
}

/* ─── HERO RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #hero {
    padding: 100px 0 80px;
    min-height: auto;
    height: auto;
  }

  .hero-shield-col {
    display: flex;
    justify-content: center;
  }

  .sw {
    min-height: 300px;
    max-width: 420px;
    margin: 0 auto;
  }

  .shield-pos {
    transform: translate(-50%, -50%) scale(0.72);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .sw {
    min-height: 220px;
    max-width: 320px;
  }

  .shield-pos {
    transform: translate(-50%, -50%) scale(0.52);
  }
}

@media (max-width: 400px) {
  .sw {
    min-height: 190px;
    max-width: 280px;
  }

  .shield-pos {
    transform: translate(-50%, -50%) scale(0.44);
  }
}

/* ─── SCROLL HINT ─── */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(208, 188, 255, 0.5);
  font-size: 0.62rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  animation: scrollBounce 2.8s ease-in-out infinite;
  transition: color 0.2s;
  z-index: 3;
  white-space: nowrap;
}

.hero-scroll-hint:hover {
  color: var(--accent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

@media (max-width: 900px) {
  .hero-scroll-hint { display: none; }
}

/* ─── SWIPE HINT ─── */
.sshot-swipe-hint {
  display: none;
}

@media (max-width: 860px) {
  .sshot-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.65;
  }
}

/* ─── PROOF STRIP ─── */
.proof-strip {
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  padding: 32px 0;
  background: var(--bg-surface);
}

.proof-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--bg-border);
}

@media (max-width: 480px) {
  .proof-divider {
    display: none;
  }

  .proof-strip-inner {
    justify-content: center;
  }
}

/* ─── SECTIONS ─── */
section {
  padding: 96px 0;
}

#problem {
  background: var(--bg-surface);
}

#how-it-works {
  background: var(--bg);
}

#policy {
  background: var(--bg-surface);
}

#categories {
  background: var(--bg);
}

#middleware {
  background: var(--bg-surface);
}

#pii {
  background: var(--bg);
}

#inventory {
  background: var(--bg-surface);
}

#review {
  background: var(--bg);
}

#compliance {
  background: var(--bg-surface);
}

#stack {
  background: var(--bg);
}

#screenshots {
  background: var(--bg-surface);
}

#pricing {
  background: var(--bg);
}

#waitlist {
  background: var(--bg-surface);
}

#faq {
  background: var(--bg);
}

/* ─── PROBLEM ─── */
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .problem-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.problem-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

.violations-label,
.scenarios-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.violations-list,
.scenarios-list {
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.violations-list li,
.scenarios-list .scenario-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg-border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: background 0.15s;
}

.violations-list li:last-child,
.scenarios-list .scenario-item:last-child {
  border-bottom: none;
}

.violations-list li:hover,
.scenarios-list .scenario-item:hover {
  background: var(--bg-raised);
}

.scenario-item {
  flex-direction: column;
  gap: 6px;
}

.violation-code,
.scenario-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  flex-shrink: 0;
  background: rgba(192, 83, 78, 0.1);
  padding: 2px 6px;
  border-radius: 2px;
  margin-top: 1px;
  letter-spacing: 0.03em;
  display: inline-block;
}

.scenario-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.violations-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ─── ARCHITECTURE ─── */
#how-it-works {
  background: var(--bg);
}

.arch-diagram {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  margin-bottom: 64px;
}

.arch-box {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.arch-box.arch-gateway {
  border-color: rgba(208, 188, 255, 0.2);
}

.arch-box-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.arch-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
}

.arch-pipeline-arrow {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0;
  opacity: 0.5;
}

.arch-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.arch-connector {
  display: flex;
  justify-content: center;
  padding: 2px 0;
  font-size: 0;
  line-height: 0;
}

.arch-connector::before {
  content: '';
  display: block;
  width: 1px;
  height: 20px;
  background: var(--bg-border);
  border-radius: 1px;
}

.arch-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.arch-item-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.arch-between-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  flex-shrink: 0;
  color: var(--text-muted);
  min-width: 64px;
}

.arch-between-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--text-muted);
}

.arch-between-tag.green {
  color: var(--green);
}

.arch-between-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .arch-diagram {
    flex-direction: column;
    gap: 0;
  }

  .arch-box {
    border-radius: var(--radius-md);
  }

  .arch-between-label {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    min-width: 0;
    gap: 8px;
    border-left: none;
    margin-left: 0;
  }

  .arch-between-arrow {
    transform: rotate(90deg);
    width: 16px;
    height: 16px;
    align-self: center;
  }
}

/* Deployment */
.deployment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .deployment-options {
    grid-template-columns: 1fr;
  }
}

.deploy-option {
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.deploy-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.deploy-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.deploy-option h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.deploy-option > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.code-label-after {
  margin-top: 12px;
}

.code-dim {
  color: var(--text-muted);
}

.code-str {
  color: var(--green);
}

.code-block code {
  background: none;
  border: none;
  padding: 0;
  display: block;
}

.deploy-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deploy-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.deploy-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

/* ─── PII ─── */
.pii-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .pii-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.pii-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

.pii-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.lang-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 2px;
}

.pii-step-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pii-text-block {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--text-secondary);
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  word-break: break-word;
}

mark.pii-mark {
  background: rgba(192, 83, 78, 0.2);
  color: #e07570;
  border-radius: 2px;
  padding: 0 2px;
}

.pii-token {
  color: var(--teal);
  background: rgba(78, 138, 140, 0.12);
  border-radius: 2px;
  padding: 0 2px;
}

.pii-types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--bg-border);
}

.pii-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 2px;
}


/* ─── COMPLIANCE TABLE ─── */
.compliance-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.compliance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compliance-table thead {
  background: var(--bg-raised);
}

.compliance-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg-border);
}

.compliance-table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-border);
  vertical-align: top;
  line-height: 1.5;
}

.compliance-table tr:last-child td {
  border-bottom: none;
}

.compliance-table tr:hover td {
  background: var(--bg-raised);
}

.status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.status-covered {
  background: rgba(90, 158, 110, 0.15);
  color: var(--green);
}

.status-partial {
  background: rgba(200, 160, 64, 0.15);
  color: var(--amber);
}

.compliance-caveat {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-left: 2px solid var(--bg-border);
  padding-left: 16px;
}

/* ─── SCREENSHOTS ─── */
.sshot-wrap {
  display: grid;
  grid-template-columns: 210px 1fr;
  grid-template-rows: 1fr auto;
  gap: 0;
  margin-top: 52px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(208, 188, 255, 0.1),
    0 40px 100px rgba(0, 0, 0, 0.72),
    0 0 80px rgba(208, 188, 255, 0.03);
}

/* ── left nav ── */
.sshot-nav {
  grid-row: 1 / 3;
  background: var(--bg-surface);
  border-right: 1px solid rgba(208, 188, 255, 0.07);
  overflow-y: auto;
  padding: 12px 0;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(208, 188, 255, 0.1) transparent;
}

.sshot-nav::-webkit-scrollbar { width: 2px; }
.sshot-nav::-webkit-scrollbar-track { background: transparent; }
.sshot-nav::-webkit-scrollbar-thumb { background: rgba(208, 188, 255, 0.12); border-radius: 1px; }

/* vertical timeline rail */
.sshot-nav::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(208, 188, 255, 0.14) 8%,
    rgba(208, 188, 255, 0.14) 92%,
    transparent
  );
  pointer-events: none;
}

.sshot-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 18px 6px 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  position: relative;
  transition: background 0.14s;
}

/* timeline dot */
.sshot-tab::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(208, 188, 255, 0.2);
  background: var(--bg-surface);
  z-index: 1;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.sshot-tab:hover { background: rgba(208, 188, 255, 0.04); }
.sshot-tab:hover::before { border-color: rgba(208, 188, 255, 0.5); }

.sshot-tab.is-active {
  background: linear-gradient(90deg, rgba(208, 188, 255, 0.07) 0%, transparent 100%);
}

.sshot-tab.is-active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(208, 188, 255, 0.15), 0 0 10px rgba(208, 188, 255, 0.45);
}

.sshot-num {
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
  color: rgba(208, 188, 255, 0.28);
  flex-shrink: 0;
  min-width: 22px;
  margin-right: 8px;
  transition: color 0.14s;
}

.sshot-tab.is-active .sshot-num { color: var(--accent-dim); }

.sshot-name {
  font-size: 0.79rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.14s;
}

.sshot-tab:hover .sshot-name { color: rgba(255, 255, 255, 0.75); }
.sshot-tab.is-active .sshot-name { color: var(--text-primary); font-weight: 500; }

/* group category labels */
.sshot-group-label {
  display: block;
  padding: 10px 14px 4px 44px;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(208, 188, 255, 0.32);
  user-select: none;
  pointer-events: none;
  position: relative;
}

.sshot-group-label::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 18px;
  width: 7px;
  height: 1px;
  background: rgba(208, 188, 255, 0.22);
}

@media (max-width: 860px) {
  .sshot-group-label { display: none; }
}

/* ── light mode overrides ── */
[data-theme="light"] .sshot-wrap {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .sshot-nav {
  border-right-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sshot-nav::before {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, 0.12) 8%,
    rgba(0, 0, 0, 0.12) 92%,
    transparent
  );
}

[data-theme="light"] .sshot-group-label {
  color: rgba(79, 55, 139, 0.5);
}

[data-theme="light"] .sshot-group-label::before {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .sshot-tab::before {
  border-color: rgba(0, 0, 0, 0.18);
  background: var(--bg-surface);
}

[data-theme="light"] .sshot-tab:hover::before {
  border-color: rgba(79, 55, 139, 0.6);
}

[data-theme="light"] .sshot-tab.is-active {
  background: linear-gradient(90deg, rgba(79, 55, 139, 0.08) 0%, transparent 100%);
}

[data-theme="light"] .sshot-tab.is-active::before {
  background: var(--accent-container);
  border-color: var(--accent-container);
  box-shadow: 0 0 0 3px rgba(79, 55, 139, 0.12), 0 0 10px rgba(79, 55, 139, 0.25);
}

[data-theme="light"] .sshot-tab.is-active .sshot-num {
  color: var(--accent-container);
}

[data-theme="light"] .sshot-tab.is-active .sshot-name {
  color: var(--text-primary);
}

[data-theme="light"] .sshot-num {
  color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .sshot-addr {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .sshot-chrome {
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .sshot-caption {
  border-top-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .sshot-tab:hover {
  background: rgba(79, 55, 139, 0.06);
}

[data-theme="light"] .sshot-tab:hover .sshot-name {
  color: var(--text-primary);
}

[data-theme="light"] .sshot-tab:hover::before {
  border-color: rgba(79, 55, 139, 0.55);
}

/* ── right panel ── */
.sshot-panel {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sshot-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid rgba(208, 188, 255, 0.07);
  flex-shrink: 0;
}

.sshot-addr {
  font-size: 0.67rem;
  font-family: var(--font-mono);
  color: rgba(208, 188, 255, 0.38);
  margin-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.sshot-img-wrap {
  background: var(--bg);
  overflow: hidden;
}

.sshot-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sshot-img-wrap img.is-fading {
  opacity: 0;
  transform: translateY(8px) scale(0.994);
}

.sshot-caption {
  grid-column: 2 / -1;
  padding: 12px 20px 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid rgba(208, 188, 255, 0.07);
  margin: 0;
  background: var(--bg-raised);
  z-index: 2;
  transition: opacity 0.2s ease;
}

.sshot-caption.is-fading { opacity: 0; }

.ss-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ss-dot:nth-child(1) { background: #ff5f57; }
.ss-dot:nth-child(2) { background: #febc2e; }
.ss-dot:nth-child(3) { background: #28c840; }

@media (max-width: 860px) {
  .sshot-wrap {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .sshot-nav {
    grid-row: auto;
    border-right: none;
    border-bottom: 1px solid rgba(208, 188, 255, 0.07);
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    padding: 8px 10px;
    gap: 4px;
  }

  .sshot-nav::before { display: none; }
  .sshot-nav::-webkit-scrollbar { display: none; }

  .sshot-tab {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 20px;
    gap: 5px;
  }

  .sshot-tab::before { display: none; }
  .sshot-tab.is-active { background: rgba(208, 188, 255, 0.1); }
  .sshot-num { display: none; }

  .sshot-caption {
    grid-column: 1 / -1;
  }
}

/* ─── STACK ─── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bg-border);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width: 640px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }
}

.stack-item {
  background: var(--bg-surface);
  padding: 20px 24px;
  transition: background 0.15s;
}

.stack-item:hover {
  background: var(--bg-raised);
}

.stack-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 6px;
}

.stack-value {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── PDF EXPORTS ─── */
.pdf-exports {
  margin-top: 48px;
}

.pdf-exports-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.pdf-exports-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

.pdf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.pdf-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.pdf-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-raised);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 8px 24px rgba(0,0,0,0.25);
}

.pdf-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(208, 188, 255, 0.08);
  border-radius: 10px;
  color: var(--accent);
}

.pdf-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdf-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pdf-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pdf-dl {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

[data-theme="light"] .pdf-card {
  background: #fff;
  border-color: rgba(0,0,0,0.10);
}

[data-theme="light"] .pdf-card:hover {
  border-color: var(--accent-container);
  box-shadow: 0 0 0 1px var(--accent-container), 0 8px 24px rgba(0,0,0,0.10);
}

[data-theme="light"] .pdf-icon {
  background: rgba(79, 55, 139, 0.08);
  color: var(--accent-container);
}

[data-theme="light"] .pdf-dl {
  color: var(--accent-container);
}

/* ─── PRICING ─── */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-card-featured {
  border-color: rgba(208, 188, 255, 0.3);
  background: var(--accent-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #381E72;
  padding: 3px 12px;
  border-radius: 2px;
  white-space: nowrap;
}

.pricing-plan {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.price-currency {
  font-size: 1.1rem;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 6px;
}

.pricing-price > span:nth-child(2) {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  margin-bottom: 8px;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.pricing-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.pricing-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── WAITLIST ─── */
.waitlist-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 56px;
}

@media (max-width: 768px) {
  .waitlist-box {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 24px;
  }
}

.waitlist-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.waitlist-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wl-urgency {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 4px;
}

.wl-urgency-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(102,187,106,0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 4px rgba(102,187,106,0); }
}

.waitlist-form-wrap.center-success {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  padding-top: 4px;
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  transition: border-color 0.2s;
  resize: vertical;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.form-success {
  display: block;
  margin: 28px auto 0 auto;
  color: var(--green);
  font-weight: 600;
  text-align: center;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

/* ─── FAQ ─── */
.faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  align-items: start;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .faq-columns {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  margin-bottom: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item[open] {
  border-color: rgba(208, 188, 255, 0.22);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(208, 188, 255, 0.06);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-primary);
  list-style: none;
  gap: 16px;
  transition: background 0.15s;
}

.faq-item summary:hover {
  background: rgba(208, 188, 255, 0.03);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D0BCFF' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.22s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px solid rgba(208, 188, 255, 0.07);
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
  padding-top: 14px;
}

.faq-answer p + p {
  padding-top: 8px;
}

[data-theme="light"] .faq-item[open] {
  border-color: rgba(79, 55, 139, 0.2);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(79, 55, 139, 0.06);
}

[data-theme="light"] .faq-item summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F378B' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

[data-theme="light"] .faq-item summary:hover {
  background: rgba(79, 55, 139, 0.04);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--bg-border);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1/-1;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-legal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 12px;
}

.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--bg-border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-soon {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: default;
}

.footer-soon::after {
  content: 'soon';
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  padding: 1px 5px;
  border-radius: 2px;
}

/* ─── NAV CTA ─── */
.nav-cta { padding: 8px 18px; font-size: 0.88rem; }
@media (max-width: 900px) { .nav-cta { display: none; } }

/* ─── NAV PRODUCT LINK ─── */
.nav-link-product {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px !important;
  background: var(--accent);
  color: #381E72 !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 0.85rem;
  transition: background 0.18s, transform 0.18s;
  text-decoration: none;
}
.nav-link-product:hover {
  background: #e2d3ff;
  transform: translateY(-1px);
}

/* ─── EASTER EGG ─── */
#easterEgg {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#easterEgg.active {
  opacity: 1;
  pointer-events: all;
}
.egg-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.coin-wrap {
  perspective: 500px;
  width: 110px;
  height: 110px;
}
.coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}
.coin.flipping {
  animation: coinFlip 2s cubic-bezier(0.4, 0, 0.15, 1) forwards;
}
.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--accent);
  box-shadow: 0 0 32px rgba(208, 188, 255, 0.35), inset 0 0 0 2px rgba(255,255,255,0.15);
}
.coin-back {
  transform: rotateY(180deg);
}
.egg-sig {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  color: #381E72;
  text-align: center;
  line-height: 1.3;
}
.egg-byline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(208, 188, 255, 0.5);
  opacity: 0;
  transition: opacity 0.6s 0.2s;
}
#easterEgg.revealed .egg-byline {
  opacity: 1;
}
@keyframes coinFlip {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(1980deg); }
}

/* ─── ARCH ALIASES ─── */
.arch-between { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; flex-shrink: 0; color: var(--text-muted); min-width: 64px; }
.arch-box.arch-provider { background: var(--bg-raised); }

/* ─── POLICY ENGINE ─── */
.policy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.policy-steps { display: flex; flex-direction: column; gap: 12px; }
.policy-step { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--bg-border); background: var(--bg-raised); }
.policy-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-glow); border: 1px solid rgba(208,188,255,0.2); color: var(--accent); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.policy-step h4 { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.policy-step p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }
.policy-demo-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.policy-card { border: 1px solid var(--bg-border); border-radius: var(--radius-md); background: var(--bg-surface); overflow: hidden; }
.policy-card-header { padding: 12px 16px; border-bottom: 1px solid var(--bg-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-raised); }
.policy-card-name { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }
.policy-card-type { font-family: var(--font-mono); font-size: 0.62rem; padding: 2px 8px; border-radius: 4px; background: var(--bg); color: var(--text-secondary); border: 1px solid var(--bg-border); }
.policy-rules { padding: 8px; }
.policy-rule { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); transition: background 0.15s; }
.policy-rule:hover { background: var(--bg-raised); }
.policy-rule-use { flex: 1; font-size: 0.82rem; color: var(--text-secondary); }
.sev { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; flex-shrink: 0; }
.sev-blocked { background: rgba(242,72,72,0.12); color: var(--red); border: 1px solid rgba(242,72,72,0.22); }
.sev-review { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(208,188,255,0.2); }
.sev-warn { background: rgba(251,140,0,0.12); color: var(--amber); border: 1px solid rgba(251,140,0,0.25); }
.sev-allow { background: rgba(102,187,106,0.12); color: var(--green); border: 1px solid rgba(102,187,106,0.25); }
.policy-inherits { padding: 10px 16px; border-top: 1px solid var(--bg-border); font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.policy-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.outcome-chip { padding: 10px 8px; text-align: center; border-radius: var(--radius-sm); border: 1px solid var(--bg-border); background: var(--bg-surface); }
.outcome-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.outcome-desc { font-size: 0.68rem; color: var(--text-secondary); }
.oc-allow .outcome-label { color: var(--green); }
.oc-warn .outcome-label { color: var(--amber); }
.oc-review .outcome-label { color: var(--accent); }
.oc-block .outcome-label { color: var(--red); }

/* ─── PIPELINE FLOW ─── */
.pipeline-flow {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 640px;
  margin: 48px auto 0;
}
.pipeline-flow::before {
  display: none;
}
.pipeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;    /* 12px step padding-left + 8px dot half-width - 1px line half-width */
  top: 26px;     /* dot centre of current step */
  bottom: -26px; /* dot centre of next step (26px from its top) — no gap between steps */
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(73,69,79,0.25));
  border-radius: 2px;
  z-index: 0;
}
.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  transition: background 0.15s;
  position: relative;
}
.pipeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--bg-border);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.pipeline-dot.hl {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 0 4px rgba(208,188,255,0.1);
}
.pipeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 20px;
  padding-top: 3px;
}
.pipeline-step-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 4px; }
.pipeline-step-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.pip-tag { display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; }
.tag-ml { background: rgba(80,120,220,0.12); color: #8899ee; border: 1px solid rgba(80,120,220,0.22); }
.tag-privacy { background: rgba(102,187,106,0.12); color: var(--green); border: 1px solid rgba(102,187,106,0.22); }
.tag-policy { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(208,188,255,0.2); }
.tag-audit { background: rgba(140,90,200,0.12); color: #b898e8; border: 1px solid rgba(140,90,200,0.22); }

/* ─── PII DEMO ─── */
.pii-demo-wrap { border: 1px solid var(--bg-border); border-radius: var(--radius-md); background: var(--bg-surface); overflow: hidden; }
.pii-demo-header { padding: 11px 16px; border-bottom: 1px solid var(--bg-border); background: var(--bg-raised); font-family: var(--font-mono); font-size: 0.63rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.pii-step { padding: 20px 20px 16px; }
.pii-transform-row { display: flex; align-items: center; gap: 9px; padding: 13px 20px; border-top: 1px solid var(--bg-border); border-bottom: 1px solid var(--bg-border); background: var(--bg-raised); font-size: 0.73rem; color: var(--text-muted); }
.pii-transform-row svg { color: var(--accent); flex-shrink: 0; }

/* ─── AI INVENTORY ─── */
.inventory-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.inventory-layout p { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
.inventory-list { display: flex; flex-direction: column; gap: 10px; }
.inventory-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--bg-border); background: var(--bg-surface); transition: border-color 0.15s; }
.inventory-item:hover { border-color: var(--accent); }
.inventory-icon { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--bg-raised); border: 1px solid var(--bg-border); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.inventory-info { flex: 1; min-width: 0; }
.inventory-name { font-size: 0.86rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.inventory-meta { font-size: 0.73rem; color: var(--text-secondary); line-height: 1.4; }
.inv-status { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; flex-shrink: 0; white-space: nowrap; }
.inv-active { background: rgba(102,187,106,0.12); color: var(--green); border: 1px solid rgba(102,187,106,0.22); }
.inv-shadow { background: rgba(242,72,72,0.12); color: var(--red); border: 1px solid rgba(242,72,72,0.22); }
.inv-disabled { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(208,188,255,0.2); }
.inventory-note { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid rgba(208,188,255,0.2); background: var(--accent-glow); font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; }
.inventory-note strong { color: var(--accent); }

/* ─── REVIEW QUEUE ─── */
.review-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.review-layout p { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
.review-steps { display: flex; flex-direction: column; }
.review-step { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--bg-border); }
.review-step:last-child { border-bottom: none; }
.review-step-icon { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--bg-raised); border: 1px solid var(--bg-border); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.review-step h4 { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.review-step p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* ─── PRICING ALIASES ─── */
.price-cur { font-size: 1.1rem; color: var(--text-secondary); align-self: flex-start; margin-top: 6px; }
.price-per { font-size: 0.85rem; color: var(--text-muted); margin-left: 4px; }

/* ─── DEPLOY ALIASES ─── */
.deploy-card { background: var(--bg-surface); border: 1px solid var(--bg-border); border-radius: var(--radius-md); padding: 28px; }
.deploy-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.deploy-card > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.65; }
.deploy-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .deploy-options { grid-template-columns: 1fr; } }

/* ─── CODE LABEL AFTER ALIAS ─── */
.code-label.after { margin-top: 12px; }

/* ─── RESPONSIVE NEW SECTIONS ─── */
@media (max-width: 768px) {
  .policy-layout, .inventory-layout, .review-layout { grid-template-columns: 1fr; gap: 40px; }
  .arch-diagram { flex-direction: column; }
  .arch-between { flex-direction: row; justify-content: center; padding: 10px 0; min-width: 0; gap: 8px; }
  .arch-between-arrow { transform: rotate(90deg); width: 16px; height: 16px; }
}

/* ─── MOBILE SECTION OVERRIDES ─── */
@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  #hero {
    padding: 88px 0 48px;
    min-height: auto;
    height: auto;
  }

  .proof-strip {
    padding: 20px 0;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions a {
    text-align: center;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 40px 0;
  }

  .section-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .section-label {
    font-size: 0.65rem;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .policy-outcomes {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-flow {
    max-width: 100%;
    margin-top: 32px;
  }

  .pipeline-flow::before {
    left: 16px; /* 8px step padding-left + 8px dot half-width - 1px line half-width */
  }

  .pipeline-step {
    padding: 12px 8px;
    gap: 12px;
  }

  .pii-text-block {
    font-size: 0.73rem;
  }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ─── SELECTION ─── */
::selection {
  background: var(--accent-glow);
  color: var(--accent);
}
