/* ==========================================================================
   FIKRAH — Accessible Tech SaaS Design System
   Palette:
     Carbon:   #101114
     Mist:     #EEF0F2
     Electric: #2547E8
     Violet:   #5F31C4
     Lime:     #C6F04A
     Steel:    #55606D
   ========================================================================== */

:root {
  --carbon: #101114;
  --mist: #EEF0F2;
  --electric: #2547E8;
  --violet: #5F31C4;
  --lime: #C6F04A;
  --steel: #55606D;

  /* Light theme defaults (Mist-first, calm & airy) */
  --bg: var(--mist);
  --bg-elevated: #FFFFFF;
  --bg-subtle: #E4E7EB;
  --bg-glass: rgba(238, 240, 242, 0.82);

  --text-primary: var(--carbon);
  --text-secondary: var(--steel);
  --text-on-dark: var(--mist);
  --text-on-lime: var(--carbon);

  --border-subtle: rgba(16, 17, 20, 0.08);
  --border-strong: rgba(16, 17, 20, 0.16);

  --shadow-sm: 0 1px 2px rgba(16, 17, 20, 0.04), 0 4px 12px rgba(16, 17, 20, 0.03);
  --shadow-md: 0 8px 30px rgba(16, 17, 20, 0.06), 0 1px 3px rgba(16, 17, 20, 0.04);
  --shadow-lg: 0 20px 50px rgba(16, 17, 20, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

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

  --transition-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 420ms cubic-bezier(0.22, 1, 0.36, 1);

  --container-max: 1140px;
  --nav-height: 72px;
}

[data-theme="dark"] {
  --bg: var(--carbon);
  --bg-elevated: #17191E;
  --bg-subtle: #1E2128;
  --bg-glass: rgba(16, 17, 20, 0.82);

  --text-primary: var(--mist);
  --text-secondary: #9BA5B1;

  --border-subtle: rgba(238, 240, 242, 0.09);
  --border-strong: rgba(238, 240, 242, 0.18);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.45);
}

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

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

body {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
}

/* Subtle notebook/blueprint grid & squares (Light & Dark) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(16, 17, 20, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 17, 20, 0.045) 1px, transparent 1px),
    linear-gradient(to right, rgba(37, 71, 232, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 71, 232, 0.05) 1px, transparent 1px);
  background-size:
    32px 32px,
    32px 32px,
    128px 128px,
    128px 128px;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 35%, #000 35%, transparent 100%);
  opacity: 1;
  transition: opacity var(--transition-smooth);
}

[data-theme="dark"] body::before {
  background-image:
    linear-gradient(to right, rgba(238, 240, 242, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(238, 240, 242, 0.032) 1px, transparent 1px),
    linear-gradient(to right, rgba(198, 240, 74, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(198, 240, 74, 0.045) 1px, transparent 1px);
  opacity: 1;
}

main,
footer {
  position: relative;
  z-index: 1;
}

body.intro-locked {
  overflow: hidden;
}

html.intro-seen body.intro-locked {
  overflow: auto;
}

html.intro-seen .intro-overlay {
  display: none !important;
}

/* ==========================================================================
   Intro Animation Overlay (from Fikrah intro.html)
   ========================================================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #0A0B0D;
  color: #ECEFE6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  opacity: 1;
  visibility: visible;
  transition: opacity 450ms cubic-bezier(0.7, 0, 0.2, 1), visibility 450ms cubic-bezier(0.7, 0, 0.2, 1);
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-paper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#22261F 1px, transparent 1px),
    linear-gradient(90deg, #22261F 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 70%);
}

.intro-logo-wrap {
  position: relative;
  z-index: 1;
  width: min(340px, 68vw);
  aspect-ratio: 1;
  transition: transform 650ms cubic-bezier(0.7, 0, 0.2, 1), opacity 500ms ease;
}

.intro-overlay.is-finishing .intro-logo-wrap {
  transform: scale(0.92) translateY(-10px);
}

.intro-logo-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

#pen {
  transition: opacity 0.45s;
}

.intro-meta {
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8C9286;
  display: flex;
  gap: 18px;
  align-items: center;
  white-space: nowrap;
  transition: opacity 0.4s;
}

.intro-meta b {
  color: #C8F54A;
  font-weight: 500;
}

.intro-skip {
  background: none;
  border: 1px solid #22261F;
  color: #8C9286;
  font-family: inherit;
  font-size: inherit;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.intro-skip:hover,
.intro-skip:focus-visible {
  color: #ECEFE6;
  border-color: #8C9286;
  outline: none;
}

.replay-intro-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.replay-intro-btn:hover {
  color: var(--lime);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-tight {
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 240, 74, 0.28);
}

.section-header {
  max-width: 660px;
  margin-bottom: 52px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 14px;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.brand-icon-dark {
  display: none;
}

[data-theme="dark"] .brand-icon-light {
  display: none;
}

[data-theme="dark"] .brand-icon-dark {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

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

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-pill:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 24px 28px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

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

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-drawer ul a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 6px 0;
}

.mobile-drawer-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
}

.mobile-drawer-cta .btn {
  min-width: 200px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 380px at 78% 24%, rgba(37, 71, 232, 0.08), transparent 70%),
    radial-gradient(520px 340px at 66% 74%, rgba(95, 49, 196, 0.07), transparent 70%),
    radial-gradient(420px 300px at 14% 25%, rgba(198, 240, 74, 0.14), transparent 70%);
}

[data-theme="dark"] .hero-glow {
  background:
    radial-gradient(620px 400px at 78% 28%, rgba(37, 71, 232, 0.18), transparent 70%),
    radial-gradient(520px 360px at 66% 75%, rgba(95, 49, 196, 0.16), transparent 70%),
    radial-gradient(420px 300px at 12% 24%, rgba(198, 240, 74, 0.09), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-pill {
  background: var(--lime);
  color: var(--carbon);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.55rem, 4.8vw, 3.85rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 22px;
}

.hero-dot {
  color: var(--electric);
}

[data-theme="dark"] .hero-dot {
  color: var(--lime);
}

.hero-lead {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 490px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

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

.btn-primary {
  background: var(--carbon);
  color: var(--mist);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .btn-primary {
  background: var(--lime);
  color: var(--carbon);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.hero-tagline-strip {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.tagline-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.tagline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.mock-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* Interactive Knowledge Constellation (Hero Visual) */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.constellation-canvas {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 470 / 370;
  display: flex;
  align-items: center;
  justify-content: center;
}

.constellation-aura {
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 42%, rgba(198, 240, 74, 0.16), transparent 56%),
    radial-gradient(circle at 65% 55%, rgba(37, 71, 232, 0.18), transparent 60%),
    radial-gradient(circle at 50% 65%, rgba(95, 49, 196, 0.16), transparent 62%);
  filter: blur(26px);
  pointer-events: none;
}

.constellation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.constellation-orbit {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.constellation-link {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: stroke 260ms ease, stroke-width 260ms ease, opacity 260ms ease;
  opacity: 0.55;
}

.constellation-link.is-active {
  stroke: var(--lime);
  stroke-width: 2.2;
  opacity: 1;
}

[data-theme="light"] .constellation-link.is-active,
:root:not([data-theme="dark"]) .constellation-link.is-active {
  stroke: var(--electric);
}

.constellation-link--electric.is-active {
  stroke: var(--electric);
}

.constellation-link--violet.is-active {
  stroke: var(--violet);
}

.constellation-pulse {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-dasharray: 8 240;
  stroke-linecap: round;
  animation: orbitFlow 6s linear infinite;
  opacity: 0.65;
}

@keyframes orbitFlow {
  to {
    stroke-dashoffset: -248;
  }
}

/* Central FIKRAH Hub */
.constellation-hub {
  position: relative;
  z-index: 3;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 0 10px rgba(198, 240, 74, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.constellation-hub img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* Floating Interactive Nodes */
.c-node {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-align: left;
}

.c-node:hover,
.c-node.is-active {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.c-node[data-node="capture"].is-active {
  border-color: rgba(198, 240, 74, 0.65);
}

.c-node[data-node="understand"].is-active {
  border-color: rgba(37, 71, 232, 0.65);
}

.c-node[data-node="connect"].is-active {
  border-color: rgba(95, 49, 196, 0.65);
}

.c-node[data-node="discover"].is-active {
  border-color: rgba(198, 240, 74, 0.65);
}

.c-node--tl { top: 8%; left: 2%; animation: floatNodeA 6.5s ease-in-out infinite; }
.c-node--tr { top: 10%; right: 2%; animation: floatNodeB 7.2s ease-in-out infinite; }
.c-node--bl { bottom: 10%; left: 2%; animation: floatNodeB 6.8s ease-in-out infinite; }
.c-node--br { bottom: 8%; right: 2%; animation: floatNodeA 7.5s ease-in-out infinite; }

@keyframes floatNodeA {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes floatNodeB {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(6px); }
}

.c-node.is-active,
.c-node:hover {
  animation-play-state: paused;
}

.c-node-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-icon-lime {
  background: var(--lime);
  color: var(--carbon);
}

.c-icon-electric {
  background: rgba(37, 71, 232, 0.14);
  color: var(--electric);
}

[data-theme="dark"] .c-icon-electric {
  background: rgba(37, 71, 232, 0.25);
  color: #9EB2FF;
}

.c-icon-violet {
  background: rgba(95, 49, 196, 0.14);
  color: var(--violet);
}

[data-theme="dark"] .c-icon-violet {
  background: rgba(95, 49, 196, 0.28);
  color: #C7B2FF;
}

.c-node-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.2;
}

.c-node-text span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Clean Live Caption Bar below Constellation */
.constellation-caption {
  width: 100%;
  max-width: 450px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.constellation-step-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--carbon);
  white-space: nowrap;
  flex-shrink: 0;
}

.constellation-caption-text {
  line-height: 1.4;
}

@media (max-width: 520px) {
  .constellation-canvas {
    aspect-ratio: 1 / 1.05;
  }

  .c-node {
    padding: 9px 11px;
    gap: 8px;
  }

  .c-node-icon {
    width: 28px;
    height: 28px;
  }

  .c-node-text strong {
    font-size: 0.8rem;
  }

  .c-node-text span {
    display: none;
  }

  .constellation-hub {
    width: 68px;
    height: 68px;
    padding: 11px;
  }

  .constellation-caption {
    border-radius: var(--radius-md);
  }
}

/* ==========================================================================
   Workflow Section (Capture · Connect · Discover)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pillar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

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

.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.pillar-num-lime {
  background: var(--lime);
  color: var(--carbon);
}

.pillar-num-electric {
  background: rgba(37, 71, 232, 0.1);
  color: var(--electric);
}

[data-theme="dark"] .pillar-num-electric {
  background: rgba(37, 71, 232, 0.25);
  color: #9EB2FF;
}

.pillar-num-violet {
  background: rgba(95, 49, 196, 0.1);
  color: var(--violet);
}

[data-theme="dark"] .pillar-num-violet {
  background: rgba(95, 49, 196, 0.25);
  color: #C7B2FF;
}

.pillar-card h3 {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.pillar-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* 6-Stage Pipeline Ribbon */
.pipeline-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}

.pipeline-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.pipeline-step {
  position: relative;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
}

.pipeline-step strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 4px;
}

.pipeline-step span {
  display: block;
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Capabilities Grid
   ========================================================================== */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cap-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cap-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.cap-card h3 {
  font-size: 1.06rem;
  font-weight: 650;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

.cap-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Identity & Privacy Dark Band
   ========================================================================== */
.identity-band {
  background: var(--carbon);
  color: var(--mist);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  border: 1px solid rgba(238, 240, 242, 0.08);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .identity-band {
  background: linear-gradient(145deg, #17191E 0%, #1C1F27 100%);
  border-color: rgba(238, 240, 242, 0.12);
}

.identity-band .eyebrow {
  color: #A8B1BC;
}

.identity-band h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 14px;
}

.identity-band p {
  color: #C6CDD5;
  margin: 0 0 24px;
  font-size: 0.98rem;
}

.identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-lime {
  background: var(--lime);
  color: var(--carbon);
  font-weight: 700;
}

.btn-ghost-dark {
  background: rgba(238, 240, 242, 0.08);
  color: var(--mist);
  border-color: rgba(238, 240, 242, 0.16);
}

.btn-ghost-dark:hover {
  background: rgba(238, 240, 242, 0.14);
}

.identity-checklist {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(238, 240, 242, 0.1);
  border-radius: var(--radius-md);
  padding: 26px;
}

.identity-checklist h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--mist);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9rem;
  color: #D2D8DF;
}

.check-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(198, 240, 74, 0.16);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ==========================================================================
   Architecture Section
   ========================================================================== */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.arch-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.arch-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.arch-card > p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arch-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.arch-layer strong {
  font-weight: 650;
}

.arch-layer span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.infra-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.infra-tag {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.team-header-row .section-header {
  margin-bottom: 0;
}

.team-cohort-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.team-cohort-pill strong {
  color: var(--text-primary);
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.team-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.team-card--lime {
  --card-accent: var(--lime);
  --card-glow: rgba(198, 240, 74, 0.25);
  --person-tint: #101114;
}

.team-card--electric {
  --card-accent: var(--electric);
  --card-glow: rgba(37, 71, 232, 0.14);
  --person-tint: #2547E8;
}

.team-card--violet {
  --card-accent: var(--violet);
  --card-glow: rgba(95, 49, 196, 0.14);
  --person-tint: #5F31C4;
}

[data-theme="dark"] .team-card--lime {
  --card-glow: rgba(198, 240, 74, 0.16);
  --person-tint: #C6F04A;
}

[data-theme="dark"] .team-card--electric {
  --card-glow: rgba(37, 71, 232, 0.22);
  --person-tint: #8FA6FF;
}

[data-theme="dark"] .team-card--violet {
  --card-glow: rgba(95, 49, 196, 0.24);
  --person-tint: #B79CFF;
}

.team-visual {
  position: relative;
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.team-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.45;
  mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 10%, transparent 75%);
}

.team-visual::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(198, 240, 74, 0.16)), transparent 68%);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  opacity: 0.85;
}

.team-card:hover .team-visual::after {
  transform: scale(1.16);
  opacity: 1;
}

.team-index {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.team-person-ring {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.team-card:hover .team-person-ring {
  transform: scale(1.05);
  border-color: var(--card-accent, var(--lime));
}

.team-person-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-person-avatar svg {
  width: 46px;
  height: 46px;
  display: block;
}

.team-meta {
  padding: 22px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.team-meta h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.team-accent-bar {
  width: 28px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--card-accent, var(--lime));
  opacity: 0.85;
  transition: width var(--transition-fast), opacity var(--transition-fast);
}

.team-card:hover .team-accent-bar {
  width: 44px;
  opacity: 1;
}

/* ==========================================================================
   Footer & University Attribution
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 56px 0 42px;
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-block {
  max-width: 380px;
}

.footer-brand-block p {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

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

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* ==========================================================================
   Legal / Document Pages (Privacy & Terms)
   ========================================================================== */
.doc-hero {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.doc-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.doc-layout {
  padding: 48px 0 88px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 52px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.doc-toc-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

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

.doc-toc a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.doc-toc a:hover {
  color: var(--electric);
}

.doc-article {
  max-width: 72ch;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
}

.doc-article h2 {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 34px 0 10px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

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

.doc-article p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.doc-article ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.doc-article li {
  margin-bottom: 10px;
}

.doc-article strong {
  color: var(--text-primary);
}

.doc-article a.inline-link {
  color: var(--electric);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="dark"] .doc-article a.inline-link {
  color: #9EB2FF;
}

/* ==========================================================================
   Release & Download Page (Mobile-First & Clear)
   ========================================================================== */
.release-page {
  padding: 48px 0 96px;
}

.release-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.release-head {
  margin-bottom: 30px;
}

.release-head h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
}

.release-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 58ch;
}

.release-featured {
  background: var(--bg-elevated);
  border: 1px solid rgba(198, 240, 74, 0.4);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

[data-theme="light"] .release-featured,
:root:not([data-theme="dark"]) .release-featured {
  border-color: rgba(37, 71, 232, 0.28);
}

.release-featured-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.release-featured-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.release-featured h2 {
  margin: 0 0 6px;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.release-featured .apk-desc {
  margin-bottom: 16px;
}

.release-featured-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.release-subhead {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 28px 0 14px;
}

.release-alt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.release-alt-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.release-alt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.release-alt-card h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.apk-filename {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.apk-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.apk-badge--recommended {
  background: var(--lime);
  color: var(--carbon);
}

.apk-badge--size {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.apk-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.release-verify-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.release-verify-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.release-verify-row strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.release-verify-row span {
  display: block;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.checksum-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.checksum-details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.checksum-details summary:hover {
  color: var(--text-primary);
}

.checksum-pre {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
}

@media (max-width: 640px) {
  .release-page {
    padding: 36px 0 84px;
  }

  .release-featured,
  .release-alt-card,
  .release-verify-card {
    padding: 20px;
  }

  .release-alt-grid {
    grid-template-columns: 1fr;
  }

  .release-featured .btn,
  .release-alt-card .btn,
  .release-verify-row .btn {
    width: 100%;
  }
}

@view-transition {
  navigation: auto;
}

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 18px);
}

/* ==========================================================================
   Page Transitions & Scroll Reveal Motion
   ========================================================================== */
main {
  animation: pageIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.is-leaving main {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 540ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  main {
    animation: none;
  }
  body.is-leaving main {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .c-node,
  .constellation-pulse {
    animation: none;
  }
  .btn,
  .pillar-card,
  .team-card,
  .intro-overlay,
  .intro-logo-wrap {
    transition: none;
  }
}

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

  .pipeline-steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .doc-toc {
    position: static;
  }
}

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

  .mobile-menu-btn {
    display: inline-flex;
  }

  .pillars-grid,
  .capabilities-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .pillars-grid,
  .capabilities-grid,
  .team-grid,
  .pipeline-steps {
    grid-template-columns: 1fr;
  }

  .identity-band {
    padding: 34px 24px;
  }

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