:root {
  /* Primary — light */
  --bg: #F8F9FC;
  --bg-light: #EEF1F7;
  --text: #111827;
  --muted: #5B6475;
  --panel: #FFFFFF;
  --border: rgba(17, 24, 39, 0.10);
  --border-hover: rgba(var(--accent-rgb), 0.22);
  --shadow: 0 4px 24px rgba(17, 24, 39, 0.08);
  --radius-lg: 20px;
  --radius-md: 12px;
  --accent: #6D4DFF;
  --accent-rgb: 109, 77, 255;
  --secondary: #00DFF7;
  --secondary-rgb: 0, 223, 247;
  --glow: 0 0 20px rgba(var(--accent-rgb), 0.15);
  /* Dark sections */
  --dark-bg: #0B0F19;
  --dark-text: #f0f5fc;
  --dark-muted: #8e9cb0;
  --dark-border: rgba(255, 255, 255, 0.08);
  --dark-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { 
  color: inherit; 
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.5);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1001;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* Sticky Glassmorphic Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  background: rgba(248, 249, 252, 0.92);
  transition: background 0.3s;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0;
}

.brand img {
  width: 178px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1.5px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.05);
}
.nav-cta:hover {
  background: rgba(var(--accent-rgb), 0.2);
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-1px);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mobile-menu-toggle:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}

.mobile-menu-icon {
  display: inline-flex;
  width: 14px;
  height: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-icon span {
  display: block;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav-panel {
  display: none;
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 24px 0 12px;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb-nav a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb-nav a:hover {
  color: var(--accent);
}
.breadcrumb-separator {
  margin: 0 8px;
  color: #9ca3af;
}
.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

/* Common Card Styling */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(17, 24, 39, 0.12), 0 0 0 1px rgba(var(--accent-rgb), 0.06);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  padding-right: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.25);
  animation: pulse 2s infinite;
}

.dark-section .eyebrow {
  color: var(--secondary);
}
.dark-section .eyebrow::before {
  background: var(--secondary);
  box-shadow: 0 0 20px rgba(var(--secondary-rgb), 0.3);
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px rgba(var(--secondary-rgb), 0.8); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 24px;
  color: var(--text);
}

.subhead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(180deg, #9C82FF 0%, #6D4DFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(var(--accent-rgb), 0.45);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-light);
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-proof-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 8px;
}

.hero-proof-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hero-proof-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  margin-top: 2px;
}

.hero-proof-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.hero-proof-text p {
  font-size: 14px;
  color: var(--muted);
}

.hero-visual-card {
  padding: 28px 32px;
  width: 100%;
  background: #070B16;
  border-color: rgba(var(--accent-rgb), 0.22);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.hero-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-loop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.hero-loop-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-loop-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 8px rgba(var(--secondary-rgb), 0.8);
  animation: pulse 2s infinite;
}

.hero-loop-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d1423;
  background: var(--secondary);
  padding: 3px 8px;
  border-radius: 4px;
}

.hero-loop-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.hero-loop-step {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 10px;
  transition: background 0.2s ease;
  cursor: default;
}

.hero-loop-step:hover {
  background: rgba(255,255,255,0.04);
}

.hero-loop-step-active {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}

.hero-loop-step-active:hover {
  background: rgba(var(--accent-rgb), 0.12);
}

.hero-loop-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-loop-step-active .hero-loop-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.4);
}

.hero-loop-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #f0f5fc;
  line-height: 1.2;
}

.hero-loop-desc {
  display: block;
  font-size: 12px;
  color: #8e9cb0;
  margin-top: 2px;
  line-height: 1.3;
}

.hero-loop-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.hero-loop-status-active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
}

.hero-loop-status-done {
  color: #8e9cb0;
}

.hero-loop-connector {
  width: 2px;
  height: 10px;
  background: linear-gradient(180deg, rgba(var(--secondary-rgb), 0.15), rgba(var(--secondary-rgb), 0.35));
  margin-left: 31px;
  position: relative;
  z-index: 1;
}

.hero-loop-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: #8e9cb0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-loop-footer::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 18px;
  color: var(--text);
}

.section-header p {
  font-size: 17px;
  color: var(--muted);
}

.light-section {
  position: relative;
  margin: 60px calc(50% - 50vw);
  padding: 88px calc(50vw - 50% + 24px);
  background: var(--bg-light);
}

/* Platform Grid */
.platform-section {
  padding: 100px 0;
  position: relative;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.platform-card {
  padding: 24px 22px;
  border: 1px solid var(--border);
  height: 100%;
}

.platform-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.platform-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.platform-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* Brand Thesis */
.thesis-section {
  padding: 30px 0 70px;
}

.thesis-panel {
  padding: 36px 40px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.thesis-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.thesis-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.thesis-line {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 3.3vw, 38px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0;
}

.thesis-line strong {
  color: var(--accent);
  font-weight: 800;
}

.thesis-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thesis-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--bg-light);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.thesis-chip strong {
  color: var(--text);
}

/* Problem Comparison Panel */
.comparison-section {
  padding: 80px 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comp-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comp-card-legacy {
  border-color: rgba(239, 68, 68, 0.15);
}
.comp-card-legacy:hover {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.05);
}

.comp-card-atlas {
  border-color: rgba(var(--accent-rgb), 0.15);
}
.comp-card-atlas:hover {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.05);
}

.comp-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.comp-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.comp-card-legacy .comp-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.comp-card-atlas .comp-icon {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.comp-title {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comp-list li {
  font-size: 15px;
  color: var(--muted);
  position: relative;
  padding-left: 24px;
  line-height: 1.55;
}

.comp-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.comp-card-legacy .comp-list li::before {
  background: #ef4444;
}

.comp-card-atlas .comp-list li::before {
  background: var(--accent);
}

.comp-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* Workflow Wedges Section */
.workflows-section {
  padding: 100px 0;
}

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

.workflow-card {
  padding: 30px 28px;
  border: 1px solid var(--border);
}

.workflow-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}

.workflow-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.expansion-row {
  margin-top: 20px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-light);
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

/* Decision Loop Flow Widget */
.loop-section {
  padding: 100px 0;
  position: relative;
}

.loop-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

.loop-flow::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--secondary-rgb), 0) 0%, rgba(var(--secondary-rgb), 0.4) 30%, rgba(var(--secondary-rgb), 0.4) 70%, rgba(var(--secondary-rgb), 0) 100%);
  z-index: 1;
}

.loop-actions {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.loop-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.loop-step-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #0d1423;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.loop-step:hover .loop-step-badge {
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: scale(1.05);
}

.loop-step h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.loop-step p {
  font-size: 14px;
  color: var(--muted);
  padding: 0 10px;
}

/* Decision Memory Section */
.memory-section {
  padding: 100px 0;
}

.memory-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.memory-loop-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 420px;
  padding: 34px;
  background:
    radial-gradient(circle at 78% 16%, rgba(var(--accent-rgb), 0.18), transparent 28%),
    radial-gradient(circle at 20% 82%, rgba(139, 92, 246, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(9, 16, 30, 0.9), rgba(3, 7, 18, 0.78)),
    url("bg-pattern.png");
  background-size: auto, auto, auto, cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.memory-loop-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  opacity: 0.7;
}

.memory-loop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.memory-loop-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(3, 7, 18, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.memory-loop-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.memory-loop-label {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
}

.memory-loop-arrow {
  position: relative;
  z-index: 1;
  width: 2px;
  height: 18px;
  margin-left: 33px;
  background: linear-gradient(180deg, rgba(var(--secondary-rgb), 0.2), rgba(var(--secondary-rgb), 0.85));
}

.memory-loop-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(var(--secondary-rgb), 0.85);
  border-bottom: 2px solid rgba(var(--secondary-rgb), 0.85);
  transform: translateX(-50%) rotate(45deg);
}

.memory-loop-item-final {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.10);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.10);
}

.memory-loop-note {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.memory-copy h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.memory-copy p {
  font-size: 16px;
  color: var(--dark-muted);
  margin-bottom: 24px;
}

/* Founder Section */
.founder-section {
  padding: 100px 0;
}

.founder-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  padding: 48px;
  border: 1px solid var(--border);
  align-items: start;
}

.founder-profile {
  text-align: center;
}

.founder-avatar-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 3px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: var(--glow);
}

.founder-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-profile h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.founder-profile p {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.founder-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.founder-bio h4 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.founder-bio p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.founder-bio p strong {
  color: var(--text);
}

.substack-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
}

.substack-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-light);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  flex: 1 1 250px;
  max-width: 540px;
}

.substack-card:hover {
  border-color: rgba(255, 103, 25, 0.4);
  background: rgba(255, 103, 25, 0.02);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.substack-card.checklist-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.02);
}

.substack-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 103, 25, 0.1);
  border: 1px solid rgba(255, 103, 25, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6719;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.substack-card:hover .substack-icon-wrapper {
  background: rgba(255, 103, 25, 0.2);
  border-color: rgba(255, 103, 25, 0.4);
  color: #fff;
}

.substack-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.substack-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 700;
}

.substack-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.substack-description {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.substack-arrow {
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.substack-card:hover .substack-arrow {
  transform: translateX(4px);
  color: #ff6719;
}

.substack-card.checklist-card:hover .substack-arrow {
  color: var(--accent);
}

/* Why Now CTA Section */
.cta-section {
  padding: 100px 0 120px;
  text-align: center;
  position: relative;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
  border: 1.5px solid var(--border);
  position: relative;
}

.cta-container::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.4), transparent);
}

.cta-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.cta-section p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form-container {
  max-width: 500px;
  margin: 0 auto;
}

.cta-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.form-input {
  flex: 1;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.form-input::placeholder {
  color: var(--muted);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.cta-micro {
  font-size: 13px;
  color: var(--muted);
}

.cta-supporting-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
}

.recognition-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.recognition-item {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-light);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.recognition-item strong {
  color: var(--text);
}

.recognition-item:hover,
.recognition-item:focus-visible {
  border-color: rgba(93, 85, 232, 0.34);
  background: rgba(93, 85, 232, 0.04);
  color: var(--accent);
}

.recognition-item:hover strong,
.recognition-item:focus-visible strong {
  color: var(--accent);
}

/* Modal / Pop-ups */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  width: 100%;
  max-width: 480px;
  padding: 36px 32px;
  border: 1.5px solid var(--dark-border);
  background: #111827;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  transition: color 0.2s ease;
}
.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.modal-desc {
  font-size: 14px;
  color: var(--dark-muted);
  margin-bottom: 24px;
}

.modal-container .form-input {
  background: rgba(3, 7, 18, 0.6);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.modal-container .form-input::placeholder {
  color: var(--dark-muted);
}

.modal-container .form-input:focus {
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.modal-container .form-label {
  color: var(--dark-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-status {
  min-height: 24px;
  font-size: 14px;
  color: var(--accent);
  text-align: center;
}

/* Reader Modal Styles */
.modal-container.reader-modal {
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 36px;
}

.reader-modal-content {
  color: var(--dark-text);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.reader-modal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.reader-modal-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 8px;
  line-height: 1.25;
}

.reader-modal-meta {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 4px;
}

.reader-modal-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.reader-modal-attribution {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.reader-callout {
  background: rgba(var(--accent-rgb), 0.04);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
  font-style: italic;
}

.reader-section {
  margin-bottom: 28px;
}

.reader-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-section p {
  color: var(--dark-muted);
  margin-bottom: 12px;
}

.reader-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 4px;
}

.reader-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reader-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.05);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  user-select: none;
}

.reader-item-text {
  color: var(--dark-muted);
}

.reader-item-text strong {
  color: var(--dark-text);
}

.reader-conclusion {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 32px;
  text-align: center;
}

.reader-conclusion-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-text);
}

/* FAQ Section Styles */
.faq-section {
  margin-top: 40px;
  margin-bottom: 80px;
}
.faq-header {
  margin-bottom: 32px;
  text-align: center;
}
.faq-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.faq-header p {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.faq-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.1);
}
.faq-question {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}
.faq-answer {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* Dark Sections (Execution Loop + Decision Memory) */
.dark-section {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding: 100px calc(50vw - 50% + 24px);
  background: var(--dark-bg);
  color: var(--dark-text);
}

.dark-section .section-header h2,
.dark-section .loop-step h4,
.dark-section .memory-copy h2 {
  color: var(--dark-text);
}

.dark-section .section-header p,
.dark-section .loop-step p,
.dark-section .memory-copy p {
  color: var(--dark-muted);
}

.dark-section .loop-step-badge {
  background: #0d1423;
  border-color: var(--dark-border);
  box-shadow: var(--dark-shadow);
}

.dark-section .loop-step:hover .loop-step-badge {
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.dark-section .memory-copy .eyebrow {
  color: var(--secondary);
}

/* Article Subpage Layout */
.page-article {
  padding: 24px 0 80px;
}
.page-article section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.page-article h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.page-article h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text);
}

.page-article h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.page-article p {
  margin-bottom: 16px;
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
}

.page-article p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-article p a:hover {
  color: #5233e0;
}

.flow-diagram {
  background: #0B0F19;
  color: #f0f5fc;
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 24px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.flow-arrow {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  color: var(--accent);
  font-weight: bold;
  font-size: 18px;
}
.flow-label {
  flex: 1;
  font-size: 15px;
}
.flow-governance {
  background: rgba(109, 77, 255, 0.15);
  border: 1px solid rgba(109, 77, 255, 0.35);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 8px 0;
}
.flow-governance a {
  color: var(--secondary);
  text-decoration: underline;
}
.flow-governance-controls {
  font-size: 14px;
  margin-top: 6px;
  color: #d1d5db;
}
.flow-governance-controls a {
  color: var(--secondary);
  text-decoration: underline;
}

.principles-list {
  list-style: none;
  padding: 0;
}
.principles-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: #374151;
}
.principles-list li:last-child {
  border-bottom: none;
}
.principles-list strong {
  color: var(--text);
}

.cta-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 12px;
  transition: background 0.2s ease;
}
.cta-link-btn:hover {
  background: var(--accent);
  color: #fff;
}

aside.related {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
aside.related p {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}
aside.related ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Footer & Knowledge Graph Link Strip */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-light);
  margin-top: 60px;
  font-size: 14px;
  color: var(--muted);
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .thesis-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .loop-flow {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .loop-flow::before {
    display: none;
  }
  .memory-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .memory-loop-visual {
    order: 2;
  }
  .founder-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .cta-form {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }
  .header {
    position: sticky;
  }
  .nav {
    height: 72px;
    position: relative;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 138px;
    height: 44px;
  }
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    gap: 10px;
  }
  .nav-links {
    display: none;
  }
  .nav-actions {
    gap: 8px;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .mobile-nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    z-index: 110;
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .mobile-nav-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-nav-panel .nav-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
  }
  .mobile-nav-panel .nav-link:hover {
    background: rgba(var(--accent-rgb), 0.07);
    color: var(--accent);
  }
  .nav-cta {
    padding: 9px 14px;
    font-size: 13px;
  }
  .thesis-section {
    padding: 18px 0 54px;
  }
  .thesis-panel {
    padding: 28px 22px;
  }
  .memory-loop-visual {
    min-height: auto;
    padding: 24px;
  }
  .memory-loop-label {
    font-size: 16px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
