/*
 * Secure Code by Design — main.css
 * All styles for securecodebydesign.com
 *
 * Structure:
 *   0. Fonts (self-hosted WOFF2, latin subset)
 *   1. Design tokens (CSS variables)
 *   2. Reset & base
 *   3. Navigation
 *   4. Layout utilities
 *   5. Hero
 *   6. Sections (problem, how, flow, capabilities, privacy, pricing, oss, contact)
 *   7. Footer
 *   8. Animations
 *   9. Responsive
 */

/* ── 0. FONTS ──────────────────────────────────────────────────────────────── */

/* Self-hosted fonts — generated from Google Fonts (latin subset only) */
@font-face {
  font-family: 'DM Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-mono-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-sans-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-sans-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/dm-sans-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-400-normal.woff2') format('woff2');
}

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────────────────── */

:root {
  --bg:        #0d0f12;
  --bg2:       #13161b;
  --bg3:       #1a1e26;
  --border:    #252932;
  --border2:   #2e3440;
  --text:      #e2e6ef;
  --text2:     #8b93a8;
  --text3:     #a0a9bc;
  --accent:    #3b82f6;
  --accent2:   #1d4ed8;
  --green:     #22c55e;
  --amber:     #f59e0b;
  --red:       #ef4444;
  --mono:      'DM Mono', monospace;
  --serif:     'Instrument Serif', serif;
  --sans:      'DM Sans', sans-serif;
  --radius:    8px;
  --radius-lg: 16px;
}

/* ── 2. RESET & BASE ──────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: var(--mono); font-size: 0.875em;
  background: var(--bg3); color: var(--accent);
  padding: 1px 6px; border-radius: 4px;
}

/* ── 3. NAVIGATION ────────────────────────────────────────────────────────── */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, 5vw);
  height: 60px;
  background: rgba(13,15,18,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: #fff; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo-text { font-family: var(--mono); font-size: 13px; color: var(--text); opacity: 0.9; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent); color: #fff;
  padding: 7px 16px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent2); color: #fff; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin: -8px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 4. LAYOUT UTILITIES ──────────────────────────────────────────────────── */

section { padding: 100px max(24px, 8vw); }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}

h2.section-title {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400; margin-bottom: 16px; text-align: center;
}
h2.section-title em { font-style: italic; color: var(--accent); }

.section-intro { text-align: center; color: var(--text2); max-width: 560px; margin: 0 auto 60px; }

/* Buttons */
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-secondary {
  background: transparent; color: var(--text);
  padding: 12px 28px; border-radius: var(--radius);
  border: 1px solid var(--border2);
  font-size: 15px; font-weight: 400; text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--text3); transform: translateY(-1px); }

/* ── 5. HERO ──────────────────────────────────────────────────────────────── */

#hero {
  padding-top: 160px; padding-bottom: 100px;
  position: relative; overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(var(--border2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border2) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-logo-mark {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 18px; font-weight: 500;
  color: #fff; letter-spacing: -1px;
  margin: 0 auto 32px;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.3), 0 0 40px rgba(59,130,246,0.2);
  animation: pulse-logo 4s ease-in-out infinite;
}

@keyframes pulse-logo {
  0%, 100% { box-shadow: 0 0 0 1px rgba(59,130,246,0.3), 0 0 40px rgba(59,130,246,0.2); }
  50%       { box-shadow: 0 0 0 1px rgba(59,130,246,0.5), 0 0 60px rgba(59,130,246,0.35); }
}

h1 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 60px);
  font-weight: 400; line-height: 1.15; color: var(--text);
  margin-bottom: 24px;
}
h1 em { font-style: italic; color: var(--accent); }

.hero-principle {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
  margin: 20px auto 28px; text-align: center;
}
.hero-principle-sub {
  text-transform: none; letter-spacing: 0.5px; color: var(--text3); font-weight: 400;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--text2);
  max-width: 680px; margin: 0 auto 40px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-install {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 18px;
  font-family: var(--mono); font-size: 13px;
  margin-top: 20px;
}
.hero-install .hi-dollar { color: var(--text3); }
.hero-install .hi-cmd    { color: var(--text); }
.hero-install .hi-link   { color: var(--accent); text-decoration: none; font-size: 12px; margin-left: 4px; }
.hero-install .hi-link:hover { text-decoration: underline; }

/* Terminal */
.hero-terminal {
  margin: 60px auto 0; max-width: 680px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  text-align: left;
}
.terminal-bar {
  background: var(--bg3); padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.r { background: #ef4444; }
.term-dot.y { background: #f59e0b; }
.term-dot.g { background: #22c55e; }
.terminal-title {
  font-family: var(--mono); font-size: 11px; color: var(--text3);
  margin-left: auto; margin-right: auto;
}
.terminal-body { padding: 20px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.9; }
.t-prompt { color: var(--text3); }
.t-cmd    { color: var(--text); }
.t-flag   { color: var(--accent); }
.t-comment { color: var(--text3); font-style: italic; }
.t-crit   { color: var(--red); }
.t-high   { color: var(--amber); }
.t-ok     { color: var(--green); }
.t-info   { color: var(--text2); }
.t-label  { color: var(--text3); }
.t-blank  { display: block; height: 6px; }

/* ── 6. SECTIONS ──────────────────────────────────────────────────────────── */

/* Problem / The challenge */
#problem { background: var(--bg2); }

.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.problem-text h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400; line-height: 1.2; margin-bottom: 20px;
}
.problem-text h2 em { font-style: italic; color: var(--accent); }
.problem-text p { color: var(--text2); margin-bottom: 16px; line-height: 1.8; }

.problem-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.stat-num {
  font-family: var(--mono); font-size: 32px; font-weight: 300;
  color: var(--text); margin-bottom: 6px; letter-spacing: -1px;
}
.stat-num span { color: var(--accent); }
.stat-desc { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* How it works */
#how { position: relative; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.pillar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); opacity: 0;
  transition: opacity 0.2s;
}
.pillar:hover { border-color: var(--border2); transform: translateY(-3px); }
.pillar:hover::before { opacity: 1; }
.pillar-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 20px;
}
.pillar h3 { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.pillar p  { color: var(--text2); font-size: 14px; line-height: 1.7; }
.pillar-tag {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15);
  padding: 3px 8px; border-radius: 4px; letter-spacing: 1px; text-transform: uppercase;
}

/* Data flow */
#flow { background: var(--bg2); }

.flow-diagram {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.flow-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 200px; padding: 0 8px;
}
.flow-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.flow-step h3 { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.flow-step p  { font-size: 12px; color: var(--text2); line-height: 1.6; }
.flow-arrow {
  font-family: var(--mono); color: var(--text3); font-size: 20px;
  padding: 0 4px; margin-top: 20px; align-self: flex-start;
}
.flow-note {
  margin-top: 40px; text-align: center;
  background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.15);
  border-radius: var(--radius); padding: 16px 24px;
  display: inline-block; font-size: 13px; color: var(--green);
  font-family: var(--mono);
}
.flow-note-wrap { text-align: center; }

/* Capabilities */
#capabilities {}

.caps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.cap-list { list-style: none; }
.cap-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.cap-list li:first-child { border-top: 1px solid var(--border); }
.cap-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.cap-text strong { display: block; font-weight: 500; margin-bottom: 2px; }
.cap-text span   { color: var(--text2); font-size: 13px; }
.cap-right h3 {
  font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 16px;
}
.cap-right h3 em { font-style: italic; color: var(--accent); }
.cap-right p  { color: var(--text2); margin-bottom: 24px; line-height: 1.8; }
.owasp-tags  { display: flex; flex-wrap: wrap; gap: 8px; }
.owasp-tag {
  font-family: var(--mono); font-size: 10px;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text2); padding: 5px 10px; border-radius: 4px; letter-spacing: 0.5px;
}

.file-types-note { margin-top: 28px; }
.file-types-note strong { font-size: 13px; font-weight: 500; color: var(--text2); display: block; margin-bottom: 6px; }
.file-types-note p { font-size: 13px; color: var(--text3); margin-bottom: 12px; }
.file-type-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.file-type-tag {
  font-family: var(--mono); font-size: 10px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text3); padding: 4px 8px; border-radius: 4px;
}

.tag-soon {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  background: var(--bg3); border: 1px solid var(--amber);
  color: var(--amber); padding: 2px 6px; border-radius: 3px;
  letter-spacing: 0.5px; vertical-align: middle; margin-left: 6px;
  text-transform: uppercase; white-space: nowrap;
}

.coming-soon-line {
  margin-top: 10px; font-size: 13px; color: var(--text3); line-height: 1.6;
}
.soon-label {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--green); margin-right: 4px;
}

/* Privacy */
#privacy { background: var(--bg2); }

.privacy-hero { text-align: center; margin-bottom: 60px; }
.privacy-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 3vw, 30px);
  color: var(--text); max-width: 700px; margin: 0 auto 16px; line-height: 1.4;
}
.privacy-quote-attr {
  font-family: var(--mono); font-size: 11px; color: var(--text3); letter-spacing: 1.5px;
}
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.privacy-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.privacy-card-icon { font-size: 28px; margin-bottom: 16px; }
.privacy-card h4 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.privacy-card p  { color: var(--text2); font-size: 13px; line-height: 1.7; }

.integrity-bar {
  margin-top: 40px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.integrity-dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.integrity-text { font-size: 13px; color: var(--text2); flex: 1; min-width: 200px; }
.integrity-link {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  text-decoration: none; letter-spacing: 0.5px; white-space: nowrap;
}
.integrity-link:hover { text-decoration: underline; }

/* Pricing */
#pricing {}

.pricing-intro { text-align: center; margin-bottom: 48px; }
.pricing-intro p { color: var(--text2); max-width: 520px; margin: 12px auto 0; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px; position: relative;
}
.plan.featured {
  border-color: var(--accent); background: rgba(59,130,246,0.04);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 20px; text-transform: uppercase; white-space: nowrap;
}
.plan-name {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px;
}
.plan-price { font-size: 32px; font-weight: 300; color: var(--text); letter-spacing: -1px; margin-bottom: 4px; }
.plan-price sup { font-size: 16px; vertical-align: top; margin-top: 8px; font-weight: 400; }
.plan-price-note { font-size: 12px; color: var(--text3); margin-bottom: 20px; font-family: var(--mono); }
.plan-divider { height: 1px; background: var(--border); margin: 20px 0; }
.plan-features { list-style: none; }
.plan-features li { display: flex; gap: 10px; font-size: 13px; color: var(--text2); padding: 6px 0; }
.plan-features li .check { color: var(--green); flex-shrink: 0; }
.plan-features li .dash  { color: var(--text3); flex-shrink: 0; font-size: 11px; }
.plan-features li:has(.dash) { color: var(--text3); }
.plan-cta {
  display: block; text-align: center; margin-top: 24px;
  padding: 11px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.2s;
}
.plan-cta.outline { border: 1px solid var(--border2); color: var(--text2); }
.plan-cta.outline:hover { border-color: var(--text3); color: var(--text); }
.plan-cta.solid   { background: var(--accent); color: #fff; }
.plan-cta.solid:hover { background: var(--accent2); }

.addons       { margin-top: 48px; }
.addons h3    { font-size: 16px; font-weight: 500; margin-bottom: 10px; color: var(--text2); }
.addons-intro { font-size: 14px; color: var(--text3); margin-bottom: 20px; max-width: 640px; }
.addon-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.addon-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; gap: 16px; align-items: flex-start;
}
.addon-emoji { font-size: 20px; flex-shrink: 0; }
.addon-info strong { font-size: 14px; font-weight: 500; display: block; margin-bottom: 3px; }
.addon-info span   { font-size: 12px; color: var(--text2); }

/* Open source */
#opensource { background: var(--bg2); }

.oss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.oss-text h2 {
  font-family: var(--serif); font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400; margin-bottom: 16px;
}
.oss-text h2 em { font-style: italic; color: var(--accent); }
.oss-text p { color: var(--text2); margin-bottom: 20px; line-height: 1.8; }

.oss-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; overflow: hidden;
}
.oss-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.oss-logo-sm {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; color: #fff; letter-spacing: -0.5px;
}
.oss-card-header div strong { display: block; font-size: 14px; }
.oss-card-header div span   { font-size: 12px; color: var(--text2); }
.oss-stat-row { display: flex; gap: 20px; margin-bottom: 20px; }
.oss-stat      { font-family: var(--mono); font-size: 12px; color: var(--text2); }
.oss-stat strong { color: var(--text); }
.oss-install {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  font-family: var(--mono); font-size: 13px;
  display: flex; align-items: center; justify-content: space-between;
}
.oss-install span.prefix { color: var(--text3); margin-right: 8px; }
.oss-install span.cmd    { color: var(--text); }
.oss-badge { color: var(--green); font-size: 11px; }

/* Contact */
#contact { text-align: center; }
#contact h2 {
  font-family: var(--serif); font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 400; margin-bottom: 16px;
}
#contact h2 em { font-style: italic; color: var(--accent); }
#contact p { color: var(--text2); max-width: 480px; margin: 0 auto 40px; line-height: 1.8; }

.contact-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 560px; margin: 0 auto;
}
.contact-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-card .cc-icon { font-size: 28px; margin-bottom: 12px; }
.contact-card strong   { display: block; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.contact-card span     { font-size: 13px; color: var(--text2); }

/* ── 7. FOOTER ────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 48px max(24px, 5vw) 32px;
}
.footer-top {
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: start; margin-bottom: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 0; }
.footer-logo {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 8px; color: #fff; letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.footer-brand-name { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.footer-brand-sub  { font-size: 13px; color: var(--text3); margin-bottom: 10px; }
.footer-brand-sub a { color: var(--text3); text-decoration: none; }
.footer-brand-sub a:hover { color: var(--text2); }
.footer-brand-mail { font-size: 13px; color: var(--text2); text-decoration: none; }
.footer-brand-mail:hover { color: var(--text); }

.footer-cols { display: flex; gap: 48px; }
.footer-col  { display: flex; flex-direction: column; gap: 10px; min-width: 100px; }
.footer-col-title {
  font-family: var(--mono); font-size: 10px; color: var(--text3);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px;
}
.footer-col a { font-size: 13px; color: var(--text2); text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-col-row { display: flex; align-items: baseline; gap: 5px; }
.footer-col-paren { font-size: 11px; color: var(--text3); white-space: nowrap; }
.footer-col .footer-col-paren a { font-size: 11px; color: var(--text3); }
.footer-col .footer-col-paren a:hover { color: var(--text2); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  font-family: var(--mono); font-size: 12px; color: var(--text3);
}

/* Pillar learn-more link */
.pillar-link {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.5px;
  color: var(--accent); text-decoration: none;
}
.pillar-link:hover { text-decoration: underline; }

/* Quick-start steps (scd.html) */
.steps { display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; }
.step {
  display: flex; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--accent);
}
.step-body h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.step-body p  { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.step-code {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 16px;
  font-family: var(--mono); font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
}

/* Section backgrounds — product pages */
#quickstart  { background: var(--bg2); }
#exceptions  { background: var(--bg2); }
#architecture { background: var(--bg2); }

/* ── 8. ANIMATIONS ────────────────────────────────────────────────────────── */

.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── 8b. PROSE (privacy.html) ────────────────────────────────────────────── */

.prose { max-width: 720px; }
.prose h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 2.5vw, 26px); color: var(--text);
  margin: 48px 0 16px; padding-top: 48px;
  border-top: 1px solid var(--border);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose p  { color: var(--text2); line-height: 1.9; margin-bottom: 16px; font-size: 15px; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose ul li { color: var(--text2); line-height: 1.9; font-size: 15px; margin-bottom: 6px; }
.prose a  { color: var(--accent); }
.prose code { font-family: var(--mono); font-size: 0.875em; background: var(--bg3); color: var(--accent); padding: 1px 6px; border-radius: 4px; }

/* ── 8c. ABOUT PAGE ──────────────────────────────────────────────────────── */

.about-grid {
  display: grid; grid-template-columns: 1fr 260px; gap: 60px; align-items: start;
}
.about-grid p { color: var(--text2); line-height: 1.9; margin-bottom: 16px; font-size: 15px; }

.about-sidebar { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.about-fact { padding: 14px 18px; background: var(--bg3); border-bottom: 1px solid var(--border); }
.about-fact:last-child { border-bottom: none; }
.about-fact-label { font-family: var(--mono); font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.about-fact-value { font-size: 14px; color: var(--text); line-height: 1.5; }
.about-fact-link  { font-size: 14px; color: var(--accent); text-decoration: none; }
.about-fact-link:hover { text-decoration: underline; }

.about-services {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.about-service {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color 0.2s;
}
.about-service:hover { border-color: var(--border2); }
.about-service-icon { font-size: 28px; margin-bottom: 16px; }
.about-service h3 { font-size: 17px; font-weight: 500; margin-bottom: 12px; color: var(--text); }
.about-service p  { font-size: 14px; color: var(--text2); line-height: 1.8; margin-bottom: 0; }

.contact-cta-wrap { max-width: 640px; }

/* ── 8d. SECURITY POLICY PAGE ────────────────────────────────────────────── */

.policy-grid {
  display: grid; grid-template-columns: 1fr 280px; gap: 60px; align-items: start;
}
.policy-main p { color: var(--text2); line-height: 1.8; margin-bottom: 16px; }
.policy-main a { color: var(--accent); }
.policy-main strong { color: var(--text); font-weight: 500; }

.policy-sidebar { display: flex; flex-direction: column; gap: 12px; }
.policy-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
}
.policy-card-label { font-family: var(--mono); font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.policy-contact { font-family: var(--mono); font-size: 14px; color: var(--accent); text-decoration: none; display: block; }
.policy-contact:hover { text-decoration: underline; }
.policy-card-value { font-size: 14px; color: var(--text); }
.policy-card-link { font-family: var(--mono); font-size: 12px; color: var(--text2); text-decoration: none; }
.policy-card-link:hover { color: var(--accent); }

.scan-explain {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 40px;
}
.scan-explain-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.scan-explain-icon { font-size: 28px; margin-bottom: 16px; }
.scan-explain-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 16px; color: var(--text); }
.scan-explain-card p { font-size: 14px; color: var(--text2); line-height: 1.8; margin-bottom: 12px; }
.scan-explain-card p:last-child { margin-bottom: 0; }

.scope-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.scope-list li { font-size: 14px; color: var(--text2); line-height: 1.6; display: flex; flex-direction: column; gap: 3px; }
.scope-yes { font-family: var(--mono); font-size: 10px; color: var(--green); letter-spacing: 0.5px; text-transform: uppercase; }
.scope-no  { font-family: var(--mono); font-size: 10px; color: var(--text3); letter-spacing: 0.5px; text-transform: uppercase; }

.limitations-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 40px;
}
.limitation-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.limitation-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 12px; color: var(--text); }
.limitation-card p  { font-size: 14px; color: var(--text2); line-height: 1.8; }

/* ── 9. RESPONSIVE ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .problem-grid,
  .caps-grid,
  .oss-grid    { grid-template-columns: 1fr; }
  .pillars     { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .addon-grid  { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .problem-stats { grid-template-columns: 1fr 1fr; }
  .flow-diagram { gap: 0; }
  .flow-arrow  { display: none; }
  .footer-top  { grid-template-columns: 1fr; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
  .policy-grid     { grid-template-columns: 1fr; }
  .scan-explain    { grid-template-columns: 1fr; }
  .limitations-grid { grid-template-columns: 1fr; }
  .about-grid      { grid-template-columns: 1fr; }
  .about-services  { grid-template-columns: 1fr; }

  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(13,15,18,0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px max(24px, 5vw); border-radius: 0; }
  .nav-cta {
    margin: 6px max(24px, 5vw) 0;
    display: inline-block; align-self: flex-start;
  }
}
