/* ═══════════════════════════════════════════════
   KEYPHRA LANDING — Design System
   Primary: hsl(248.64, 52.74%, 53.53%)
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: hsl(248.64, 52.74%, 53.53%);
  --primary-dark: hsl(260, 55%, 48%);
  --primary-light: hsl(248, 65%, 58%);
  --primary-ultra-light: hsl(248, 40%, 96%);
  --purple-accent: hsl(280, 60%, 55%);
  --fg: hsl(220, 25%, 10%);
  --fg-muted: hsl(220, 10%, 42%);
  --fg-subtle: hsl(220, 10%, 58%);
  --bg: hsl(240, 20%, 97%);
  --bg-alt: hsl(245, 18%, 96%);
  --bg-warm: hsl(248, 30%, 95.5%);
  --bg-dark: hsl(232, 30%, 12%);
  --card: hsl(0, 0%, 100%);
  --border: hsl(220, 13%, 88%);
  --border-subtle: hsl(248.64, 52.74%, 53.53%, 0.08);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --shadow-sm: 0 1px 2px hsl(248, 30%, 12%, 0.04), 0 2px 6px hsl(248, 30%, 12%, 0.03);
  --shadow-md: 0 2px 8px hsl(248, 30%, 12%, 0.06), 0 8px 24px hsl(248, 30%, 12%, 0.04);
  --shadow-lg: 0 4px 16px hsl(248, 30%, 12%, 0.08), 0 16px 48px hsl(248, 30%, 12%, 0.06);
  --shadow-glow: 0 2px 8px hsl(248.64, 52.74%, 53.53%, 0.2), 0 8px 24px hsl(248.64, 52.74%, 53.53%, 0.15);
  --shadow-glow-lg: 0 4px 12px hsl(248.64, 52.74%, 53.53%, 0.25), 0 12px 40px hsl(248.64, 52.74%, 53.53%, 0.2);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ── Gradients ───────────────────────────────── */
.text-gradient-vivid {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--purple-accent) 50%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section dividers ────────────────────────── */
.section-divider {
  position: relative;
  height: 1px;
  max-width: 240px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, hsl(248.64, 52.74%, 53.53%, 0.15), transparent);
}
.section-divider::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
}

/* ── Orbs ─────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}
.orb-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  opacity: 0.045;
  animation: orbFloat1 20s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--purple-accent);
  opacity: 0.035;
  animation: orbFloat2 25s ease-in-out infinite;
}
.orb-3 {
  width: 300px; height: 300px;
  background: hsl(230, 55%, 60%);
  opacity: 0.03;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 25px) scale(1.08); }
  66% { transform: translate(20px, -15px) scale(0.92); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, 20px) scale(1.04); }
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
}
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-glow), inset 0 1px 0 hsl(0 0% 100% / 0.1);
}
.btn-primary:hover {
  box-shadow: var(--shadow-glow-lg), inset 0 1px 0 hsl(0 0% 100% / 0.15);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: hsl(248.64, 52.74%, 53.53%, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-lg { padding: 16px 32px; font-size: 15px; border-radius: var(--radius-2xl); }

/* ═══════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}
#nav.scrolled {
  background: hsl(0 0% 100% / 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 8px hsl(248, 30%, 12%, 0.04);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsl(248.64, 52.74%, 53.53%, 0.12), hsl(248.64, 52.74%, 53.53%, 0.05));
  border: 1px solid hsl(248.64, 52.74%, 53.53%, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 1px 6px hsl(248.64, 52.74%, 53.53%, 0.12);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--fg);
  color: white !important;
  font-size: 13px !important;
  transition: all 0.2s !important;
}
.nav-cta:hover { background: hsl(220, 25%, 20%); transform: translateY(-1px); }
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  width: 20px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 24px 16px;
  gap: 4px;
}
.nav-mobile a {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.nav-mobile a:hover { background: var(--primary-ultra-light); color: var(--primary); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 60% 10%, hsl(248.64, 52.74%, 53.53%, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 15% 90%, hsl(270, 50%, 55%, 0.04) 0%, transparent 50%),
    linear-gradient(160deg, hsl(240, 20%, 97%) 0%, hsl(250, 25%, 96%) 30%, hsl(240, 18%, 95.5%) 70%, hsl(245, 20%, 94.5%) 100%);
}
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orbs .orb-1 { top: -100px; right: 5%; }
.hero-orbs .orb-2 { bottom: -50px; left: -5%; }
.hero-orbs .orb-3 { top: 40%; right: 25%; }

.hero .container { position: relative; z-index: 1; }
.hero-content { text-align: center; max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: hsl(0 0% 100% / 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(248.64, 52.74%, 53.53%, 0.12);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 auto 40px;
}

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

/* Hero visual – mock vault card */
.hero-visual {
  margin-top: 72px;
  display: flex;
  justify-content: center;
}
.hero-card {
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-2xl);
  background: hsl(0 0% 100% / 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid hsl(220, 13%, 88%, 0.6);
}
.hero-card-dots {
  display: flex;
  gap: 6px;
}
.hero-card-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: hsl(220, 13%, 88%);
}
.hero-card-dots span:first-child { background: hsl(0, 68%, 68%); }
.hero-card-dots span:nth-child(2) { background: hsl(42, 80%, 62%); }
.hero-card-dots span:last-child { background: hsl(140, 50%, 55%); }
.hero-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.hero-card-body { padding: 8px 12px; }

.hero-vault-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.hero-vault-item:hover { background: hsl(248.64, 52.74%, 53.53%, 0.03); }
.hero-vault-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: hsl(calc(var(--accent, 248)), 50%, 53%, 0.08);
  border: 1px solid hsl(calc(var(--accent, 248)), 50%, 53%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(calc(var(--accent, 248)), 50%, 50%);
  flex-shrink: 0;
}
.hero-vault-info {
  flex: 1;
  min-width: 0;
}
.hero-vault-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.hero-vault-user {
  display: block;
  font-size: 11px;
  color: var(--fg-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-vault-pw code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  background: hsl(220, 14%, 93%, 0.6);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid hsl(220, 13%, 88%, 0.5);
  letter-spacing: 2px;
}
.hero-vault-item--locked {
  justify-content: center;
  gap: 8px;
  padding: 10px;
  margin-top: 2px;
  border-top: 1px solid hsl(220, 13%, 88%, 0.4);
  color: var(--fg-subtle);
  font-size: 11px;
}

/* ═══════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════ */
.trust-bar {
  padding: 48px 0;
  border-bottom: 1px solid hsl(220, 13%, 88%, 0.5);
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-subtle);
  margin-top: 2px;
}
.trust-divider {
  width: 1px;
  height: 32px;
  background: hsl(220, 13%, 88%, 0.6);
}

@media (max-width: 640px) {
  .trust-items { gap: 24px; }
  .trust-divider { display: none; }
  .trust-item { flex: 1; min-width: 100px; }
}

/* ═══════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: hsl(248.64, 52.74%, 53.53%, 0.06);
  border: 1px solid hsl(248.64, 52.74%, 53.53%, 0.1);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* Dark section variants */
.section-header--dark .section-tag {
  color: hsl(248, 70%, 75%);
  background: hsl(248, 50%, 50%, 0.15);
  border-color: hsl(248, 50%, 50%, 0.2);
}
.section-header--dark h2 {
  color: hsl(0, 0%, 95%);
}
.section-header--dark p {
  color: hsl(230, 15%, 60%);
}

/* ═══════════════════════════════════════════════
   SIMPLICITY
   ═══════════════════════════════════════════════ */
.simplicity {
  padding: 120px 0;
  background: var(--bg);
}
.simplicity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.simplicity-card {
  position: relative;
  padding: 36px 28px 32px;
  border-radius: var(--radius-xl);
  background: hsl(0 0% 100% / 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid hsl(248.64, 52.74%, 53.53%, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  overflow: hidden;
}
.simplicity-card:hover {
  border-color: hsl(248.64, 52.74%, 53.53%, 0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.simplicity-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, hsl(248.64, 52.74%, 53.53%, 0.07), hsl(248.64, 52.74%, 53.53%, 0.02));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
  user-select: none;
}
.simplicity-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, hsl(248.64, 52.74%, 53.53%, 0.1), hsl(248.64, 52.74%, 53.53%, 0.04));
  border: 1px solid hsl(248.64, 52.74%, 53.53%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: 0 1px 6px hsl(248.64, 52.74%, 53.53%, 0.08);
}
.simplicity-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.simplicity-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
}
.simplicity-card code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: hsl(248.64, 52.74%, 53.53%, 0.06);
  border: 1px solid hsl(248.64, 52.74%, 53.53%, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--primary);
}

@media (max-width: 768px) {
  .simplicity-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   FEATURES — warm-tinted background
   ═══════════════════════════════════════════════ */
.features {
  position: relative;
  padding: 120px 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, hsl(248.64, 52.74%, 53.53%, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  background: hsl(0 0% 100% / 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(248.64, 52.74%, 53.53%, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: hsl(248.64, 52.74%, 53.53%, 0.12);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card--large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 20px;
  padding: 40px 36px;
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, hsl(248.64, 52.74%, 53.53%, 0.04) 0%, transparent 60%),
    hsl(0 0% 100% / 0.9);
}
.feature-card--large .feature-icon { grid-row: 1 / 3; align-self: start; }
.feature-card--large h3 { margin-bottom: 8px; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: hsl(248.64, 52.74%, 53.53%, 0.06);
  border: 1px solid hsl(248.64, 52.74%, 53.53%, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.feature-icon--primary {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, hsl(248.64, 52.74%, 53.53%, 0.12), hsl(248.64, 52.74%, 53.53%, 0.04));
  border: 1px solid hsl(248.64, 52.74%, 53.53%, 0.12);
  box-shadow: 0 1px 6px hsl(248.64, 52.74%, 53.53%, 0.1);
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .feature-card--large .feature-icon { grid-row: auto; }
}

/* ═══════════════════════════════════════════════
   ARCHITECTURE — dark inversion
   ═══════════════════════════════════════════════ */
.architecture {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, hsl(260, 60%, 35%, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, hsl(248, 50%, 30%, 0.2) 0%, transparent 50%),
    var(--bg-dark);
}

.arch-flow {
  max-width: 520px;
  margin: 0 auto 64px;
}
.arch-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.arch-step-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px hsl(248.64, 52.74%, 53.53%, 0.35);
}
.arch-step-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  color: hsl(0, 0%, 93%);
}
.arch-step-content p {
  font-size: 13px;
  color: hsl(230, 15%, 55%);
  line-height: 1.6;
}
.arch-connector {
  display: flex;
  justify-content: center;
  padding: 8px 0 8px 19px;
  color: hsl(248.64, 52.74%, 53.53%, 0.35);
}

.arch-diagram {
  display: flex;
  justify-content: center;
}
.arch-diagram-card {
  background: hsl(232, 25%, 16%);
  backdrop-filter: blur(16px);
  border: 1px solid hsl(248, 40%, 40%, 0.15);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  box-shadow: 0 4px 24px hsl(232, 30%, 8%, 0.4);
  width: 100%;
  max-width: 700px;
}
.arch-diagram-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(230, 15%, 50%);
  margin-bottom: 24px;
  text-align: center;
}
.arch-diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.arch-node {
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius);
  min-width: 130px;
}
.arch-node-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.arch-node-sub {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}
.arch-node--input {
  background: hsl(248, 40%, 40%, 0.15);
  border: 1px solid hsl(248, 40%, 50%, 0.2);
  color: hsl(248, 70%, 75%);
}
.arch-node--input .arch-node-sub { color: hsl(230, 15%, 50%); }
.arch-node--process {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 2px 12px hsl(248.64, 52.74%, 53.53%, 0.3);
}
.arch-node--process .arch-node-sub { color: hsl(0 0% 100% / 0.7); }
.arch-node--output {
  background: hsl(248, 40%, 40%, 0.15);
  border: 1px solid hsl(248, 40%, 50%, 0.2);
  color: hsl(248, 70%, 75%);
}
.arch-node--output .arch-node-sub { color: hsl(230, 15%, 50%); }
.arch-arrow { color: hsl(248.64, 52.74%, 53.53%, 0.4); flex-shrink: 0; }

@media (max-width: 640px) {
  .arch-diagram-card { padding: 24px 20px; }
  .arch-diagram-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
}

/* ═══════════════════════════════════════════════
   TECH STACK — back to light, slight warm shift
   ═══════════════════════════════════════════════ */
.tech {
  position: relative;
  padding: 120px 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, hsl(270, 50%, 55%, 0.035) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tech-card {
  border-radius: var(--radius-xl);
  background: hsl(0 0% 100% / 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(248.64, 52.74%, 53.53%, 0.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.25s ease;
}
.tech-card:hover {
  border-color: hsl(248.64, 52.74%, 53.53%, 0.12);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tech-card-header {
  padding: 20px 24px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  border-bottom: 1px solid hsl(220, 13%, 88%, 0.5);
}
.tech-list {
  list-style: none;
  padding: 8px 12px;
}
.tech-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.tech-list li:hover { background: hsl(248.64, 52.74%, 53.53%, 0.03); }
.tech-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.tech-desc {
  font-size: 12px;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .tech-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════ */
.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, hsl(248.64, 52.74%, 53.53%, 0.06) 0%, transparent 60%),
    var(--bg);
}
.cta-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cta-orbs .orb-1 { top: -80px; left: 20%; }
.cta-orbs .orb-2 { bottom: -100px; right: 10%; }

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.cta-content > p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 40px;
}

.cta-terminal {
  max-width: 520px;
  margin: 0 auto 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid hsl(220, 13%, 88%, 0.3);
  text-align: left;
}
.cta-terminal-header {
  background: hsl(220, 20%, 18%);
  padding: 12px 16px;
  display: flex;
  gap: 6px;
}
.cta-terminal-header span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: hsl(220, 15%, 30%);
}
.cta-terminal-header span:first-child { background: hsl(0, 68%, 68%); }
.cta-terminal-header span:nth-child(2) { background: hsl(42, 80%, 62%); }
.cta-terminal-header span:last-child { background: hsl(140, 50%, 55%); }
.cta-terminal pre {
  background: hsl(220, 22%, 13%);
  padding: 20px 24px;
  margin: 0;
  overflow-x: auto;
}
.cta-terminal code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: hsl(220, 14%, 75%);
}
.t-comment { color: hsl(220, 10%, 45%); }
.t-cmd { color: hsl(248, 60%, 72%); }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid hsl(220, 13%, 88%, 0.5);
  padding: 64px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand { max-width: 260px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 12px;
}
.footer-logo-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, hsl(248.64, 52.74%, 53.53%, 0.12), hsl(248.64, 52.74%, 53.53%, 0.05));
  border: 1px solid hsl(248.64, 52.74%, 53.53%, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.footer-brand > p {
  font-size: 13px;
  color: var(--fg-subtle);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 64px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--fg-subtle);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid hsl(220, 13%, 88%, 0.5);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--fg-subtle);
}
.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.footer-bottom a:hover { opacity: 0.8; }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; }
}
@media (max-width: 480px) {
  .footer-links { flex-direction: column; gap: 32px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE HERO
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero { padding: 120px 0 60px; }
  .hero-subtitle { font-size: 15px; }
  .hero-visual { margin-top: 48px; }
  .hero-vault-pw { display: none; }
}
