/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050807;
  --surface: #0b110e;
  --surface-2: #101a15;
  --border: #1a2e22;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --accent-glow: rgba(0, 229, 160, 0.06);
  --text: #e8f5ee;
  --text-dim: rgba(232, 245, 238, 0.72);
  --text-muted: rgba(232, 245, 238, 0.6);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1160px;
  --pad-x: clamp(20px, 5vw, 64px);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* === UTILITIES === */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* === HERO === */
.hero {
  position: relative;
  padding: clamp(80px, 12vh, 140px) var(--pad-x) clamp(80px, 10vh, 120px);
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.eyebrow-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 160, 0.2);
  border-radius: 100px;
  padding: 4px 12px;
}

.eyebrow-sep { color: var(--text-muted); font-size: 0.9rem; }
.eyebrow-text { font-size: 0.85rem; font-weight: 400; color: var(--text-dim); letter-spacing: 0.05em; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, #00e5a0 0%, #00b87a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 52px;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* === PRINCIPLES === */
.principles {
  padding: clamp(60px, 8vh, 100px) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.principles-header {
  margin-bottom: 52px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.principle-card {
  padding: 40px 36px;
  background: var(--surface);
  transition: background 0.2s;
}

.principle-card:hover { background: var(--surface-2); }

.principle-icon {
  margin-bottom: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 160, 0.15);
}

.principle-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 14px;
}

.principle-body {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.65;
}

/* === ARCHITECTURE === */
.architecture {
  padding: clamp(60px, 8vh, 100px) var(--pad-x);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.arch-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.arch-text .section-label { display: block; }

.arch-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 48px;
}

.arch-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.arch-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  min-width: 28px;
  padding-top: 3px;
}

.arch-step div {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.65;
}

.arch-step strong { color: var(--text); }

/* Diagram */
.arch-visual { display: flex; align-items: center; justify-content: center; }

.arch-diagram {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.node-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 229, 160, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.node-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.node-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.node-user { padding: 0 0 16px; }
.node-app  { padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.node-encrypted { padding: 16px 0 0; }

.diagram-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  position: relative;
}

.connector-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent), rgba(0, 229, 160, 0.2));
}

.connector-label {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-weight: 500;
}

.diagram-pq {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.pq-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 160, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
}

/* === PROOF === */
.proof {
  padding: clamp(60px, 8vh, 100px) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.proof .section-label { display: block; margin-bottom: 36px; }

.proof-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 60px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.proof-logo-item {
  flex: 1;
  min-width: 100px;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-logo-item:last-child { border-right: none; }

.logo-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.proof-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.proof-quote {
  max-width: 640px;
  margin: 0 auto;
  border-left: 2px solid var(--accent);
  padding-left: 28px;
  text-align: left;
}

.proof-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 12px;
}

.proof-quote cite {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.03em;
}

/* === CLOSING === */
.closing {
  padding: clamp(80px, 10vh, 120px) var(--pad-x);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  padding: 40px var(--pad-x);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .arch-inner { grid-template-columns: 1fr; gap: 48px; }
  .arch-visual { order: -1; }
  .arch-diagram { max-width: 280px; }
  .proof-stats { gap: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-meta-row { gap: 16px; }
  .meta-divider { display: none; }
  .principles-grid { grid-template-columns: 1fr; }
  .proof-logos { flex-direction: column; }
  .proof-logo-item { border-right: none; border-bottom: 1px solid var(--border); width: 100%; }
  .proof-logo-item:last-child { border-bottom: none; }
}