/* ==========================================================================
   OmnibusAI — Flow Code Loop Stylesheet
   Crafted for maximum readability, responsiveness, and authentic developer aesthetic
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-card: #121829;
  --bg-card-hover: #182035;
  --bg-elevated: #1a2238;
  --border-subtle: #1e293b;
  --border-active: #334155;
  --border-focus: #3b82f6;

  /* Typography Colors */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #030712;

  /* Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Human vs AI theme */
  --human-color: #10b981;
  --human-bg: rgba(16, 185, 129, 0.12);
  --ai-color: #38bdf8;
  --ai-bg: rgba(56, 189, 248, 0.12);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

/* Subtle Technical Grid Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #e2e8f0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-primary-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  background: #2563eb;
  color: #fff;
  border-color: #3b82f6;
}

.btn-primary-sm:hover {
  background: #1d4ed8;
}

.btn-outline-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-outline-sm:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

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

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-active);
  color: #fff;
}

.btn-lg {
  padding: 0.9rem 1.7rem;
  font-size: 1.02rem;
}

/* Badges & Eyebrows */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-head.text-center {
  text-align: center;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Top Bar */
.top-bar {
  background: #0b0f19;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  padding: 0.45rem 0;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.top-bar-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-link:hover {
  text-decoration: underline;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.brand-title {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
}

.brand-title strong {
  color: #38bdf8;
}

.brand-tag {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.desktop-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.desktop-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.desktop-cta {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-active);
  color: #f1f5f9;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  border-color: #38bdf8;
}

/* Mobile Backdrop Overlay */
.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 86vw);
  height: 100vh;
  background: #0d121f;
  border-left: 1px solid var(--border-active);
  z-index: 1300;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--border-active);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.m-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition);
}

.m-link i {
  width: 20px;
  color: #38bdf8;
  font-size: 0.95rem;
}

.m-link:hover, .m-link:active {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: #ffffff;
}

.mobile-cta-box {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.m-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.96rem;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.highlight-text {
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-code {
  font-family: var(--font-mono);
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero-desc {
  font-size: 1.18rem;
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-desc strong {
  color: #ffffff;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.trust-stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.trust-divider {
  width: 1px;
  height: 34px;
  background: var(--border-subtle);
}

/* Terminal Card (Hero Visual) */
.terminal-card {
  background: #0b0f19;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
}

.terminal-header {
  background: #090c14;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-status {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.terminal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 280px;
  font-size: 0.86rem;
  position: relative;
}

.t-line {
  line-height: 1.5;
}

.t-comment {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.t-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-right: 0.5rem;
}

.t-you {
  background: var(--human-bg);
  color: var(--human-color);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.t-bot {
  background: var(--ai-bg);
  color: var(--ai-color);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.t-user code {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.03);
}

.t-ai code {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.06);
}

.t-system {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-badge-floating {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-footer {
  background: #090c14;
  border-top: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pill-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pill-role strong {
  color: var(--text-main);
}

/* Manifest Section */
.manifest-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent, rgba(13, 18, 31, 0.6), transparent);
}

.manifest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.manifest-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

.manifest-content u {
  text-decoration-color: #3b82f6;
  text-underline-offset: 6px;
}

.manifest-quote {
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #3b82f6;
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

.quote-icon {
  font-size: 1.2rem;
  color: #3b82f6;
  margin-bottom: 0.5rem;
  display: block;
}

.manifest-quote blockquote {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.manifest-grid-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.m-point {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.m-point h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.m-point p {
  font-size: 0.9rem;
}

.m-point-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.m-point-icon.red { color: #f43f5e; }
.m-point-icon.green { color: #10b981; }

/* Interactive Simulator Section */
.simulator-section {
  padding: 5rem 0;
}

.simulator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.sim-nav {
  display: flex;
  overflow-x: auto;
  background: #090c14;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem;
  gap: 0.4rem;
  scrollbar-width: thin;
}

.sim-step-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.sim-step-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.sim-step-btn.active {
  background: #1e293b;
  border-color: #334155;
  color: #38bdf8;
}

.sim-step-btn .sim-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.sim-step-btn.active .sim-num {
  background: #0284c7;
  color: #fff;
}

.sim-display {
  padding: 2.5rem;
  min-height: 420px;
}

/* Simulator Internal Grid */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.sim-info-pane h3 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.sim-lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.sim-roles-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sim-role-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.sim-role-card.human {
  border-left: 3px solid var(--human-color);
}

.sim-role-card.ai {
  border-left: 3px solid var(--ai-color);
}

.sim-role-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.sim-role-card.human .sim-role-title { color: var(--human-color); }
.sim-role-card.ai .sim-role-title { color: var(--ai-color); }

.sim-role-card p {
  font-size: 0.92rem;
  color: #e2e8f0;
}

.sim-code-pane {
  background: #090c14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sim-code-header {
  background: #06080d;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.sim-code-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #f1f5f9;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.sim-outcome {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  color: #34d399;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* 11 Steps Methodology Timeline */
.steps-section {
  padding: 5rem 0;
}

.phase-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.filter-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.5rem;
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.step-card.featured {
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.07), var(--bg-card));
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.25);
}

.step-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-card.featured .step-num {
  color: #60a5fa;
}

.step-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a2238;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #38bdf8;
  margin-bottom: 1rem;
}

.step-card.featured .step-icon-circle {
  background: #2563eb;
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
}

.step-line {
  flex-grow: 1;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--border-subtle),
    var(--border-subtle) 4px,
    transparent 4px,
    transparent 8px
  );
}

.step-line.step-line-end {
  display: none;
}

.step-body {
  padding-left: 1.5rem;
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.step-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #60a5fa;
}

.step-category.core-badge {
  color: #facc15;
}

.step-tag {
  font-size: 0.76rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.step-title {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 1.04rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.step-desc.highlight-p {
  color: #e2e8f0;
}

.step-desc strong {
  color: #ffffff;
}

.step-role-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.role-column {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--human-color);
  margin-bottom: 0.5rem;
}

.role-badge.ai {
  color: var(--ai-color);
}

.role-column p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.step-quote-box {
  font-size: 0.88rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.8rem;
}

.step-quote-box i {
  color: #3b82f6;
}

/* Comparison Section */
.comparison-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent, rgba(13, 18, 31, 0.5), transparent);
}

.table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th, .comp-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.94rem;
}

.comp-table th {
  background: #0a0e1a;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.comp-table th.col-old {
  color: #f87171;
  width: 38%;
}

.comp-table th.col-new {
  color: #38bdf8;
  width: 42%;
  background: rgba(56, 189, 248, 0.06);
}

.comp-table td.cell-highlight {
  background: rgba(56, 189, 248, 0.03);
  color: #f1f5f9;
}

.comp-table tr:last-child td {
  border-bottom: none;
}

/* Calculator Section */
.calculator-section {
  padding: 5rem 0;
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-left h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.calc-left p {
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

.calc-control-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.calc-control-group strong {
  color: #38bdf8;
}

.range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  cursor: pointer;
  margin-bottom: 0.8rem;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.8);
}

.range-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.calc-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #0a0e1a;
  padding: 2.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.result-metric {
  display: flex;
  flex-direction: column;
}

.metric-title {
  font-size: 0.84rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.metric-value.old-val {
  color: #ef4444;
  text-decoration: line-through;
  opacity: 0.75;
}

.metric-value.new-val {
  color: var(--accent-emerald);
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: #34d399;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.6rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question i {
  color: var(--text-dim);
  transition: transform 0.25s ease;
  font-size: 0.9rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: #38bdf8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.6rem;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.6rem 1.5rem 1.6rem;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0 6rem;
}

.cta-box {
  background: linear-gradient(135deg, #10172a 0%, #0e1526 100%);
  border: 1px solid #2563eb;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(37, 99, 235, 0.4);
}

.cta-content {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.cta-content h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.cta-content u {
  text-decoration-color: #38bdf8;
  text-underline-offset: 6px;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
}

.cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.form-input-wrap {
  position: relative;
  flex: 1;
}

.form-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.form-input-wrap input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #090c14;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input-wrap input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.btn-cta {
  padding: 0 1.5rem;
}

.form-feedback {
  min-height: 24px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.form-feedback.success {
  color: var(--accent-emerald);
}

.form-feedback.error {
  color: #f43f5e;
}

.cta-guarantees {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.cta-guarantees span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cta-guarantees i {
  color: var(--accent-emerald);
}

/* Footer */
.site-footer {
  background: #06080e;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-desc {
  margin-top: 1rem;
  max-width: 380px;
  font-size: 0.88rem;
}

.footer-desc strong {
  color: #e2e8f0;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.link-group h5 {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.link-group a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

.link-group a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  color: #38bdf8;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .manifest-card {
    grid-template-columns: 1fr;
  }

  .calc-card {
    grid-template-columns: 1fr;
  }

  .sim-grid {
    grid-template-columns: 1fr;
  }
}

/* Switch from desktop nav to mobile hamburger at 992px */
@media (max-width: 992px) {
  .desktop-nav {
    display: none !important;
  }

  .desktop-cta {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .nav-wrapper {
    height: 64px;
  }
}

@media (max-width: 768px) {
  .step-card {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
  }

  .step-sidebar {
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1rem;
  }

  .step-line {
    display: none;
  }

  .step-body {
    padding-left: 0;
  }

  .step-role-box {
    grid-template-columns: 1fr;
  }

  .cta-form {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .top-bar-content {
    font-size: 0.78rem;
    gap: 0.5rem;
    text-align: center;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}


/* ==========================================================================
   Sekcje treściowe: dla kogo, bez składni, kursy
   ========================================================================== */
.audience-section,
.nocode-section,
.courses-section {
  padding: 5rem 0;
}

.nocode-section {
  background: linear-gradient(180deg, transparent, rgba(13, 18, 31, 0.5), transparent);
}

.audience-grid,
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.aud-card,
.course-card,
.nocode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.aud-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.aud-card h4,
.course-card h4,
.nocode-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.aud-card p,
.course-card p,
.nocode-card li {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.why-box {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.why-box h3 {
  margin-bottom: 0.75rem;
}

.why-box p {
  color: var(--text-muted);
  line-height: 1.7;
}

.nocode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.nocode-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.nocode-card h4 i {
  color: var(--accent-rose);
  margin-right: 0.4rem;
}

.nocode-card.yes {
  border-color: rgba(16, 185, 129, 0.4);
}

.nocode-card.yes h4 i {
  color: var(--accent-emerald);
}

.nocode-note,
.courses-note {
  margin: 2rem auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.7;
}

.course-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.course-card h4 i {
  color: var(--accent-blue);
  margin-right: 0.4rem;
}

.course-meta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.course-card.featured-course {
  border-color: var(--accent-blue);
  background: var(--bg-elevated);
}

.sim-code-body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.manifest-content p + p {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .audience-grid,
  .courses-grid,
  .nocode-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Strona zapisu na kurs (rejestracja.html)
   ========================================================================== */
.signup-page { padding: 4rem 0 5rem; }
.signup-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.signup-intro h1 { font-size: 2.4rem; margin: 1rem 0; }
.signup-intro p { color: var(--text-muted); line-height: 1.7; }
.signup-points { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.75rem; color: var(--text-muted); }
.signup-points i { color: var(--accent-emerald); margin-right: 0.5rem; }
.signup-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 2rem; }
.signup-card form { display: grid; gap: 0.5rem; }
.signup-card label { font-size: 0.88rem; font-weight: 600; margin-top: 0.75rem; }
.signup-card input[type="text"],
.signup-card input[type="email"],
.signup-card textarea {
  width: 100%; padding: 0.75rem 1rem; font: inherit; color: var(--text-main);
  background: var(--bg-primary); border: 1px solid var(--border-active); border-radius: var(--radius-md);
}
.signup-card input:focus, .signup-card textarea:focus { outline: none; border-color: var(--border-focus); }
.signup-hint, .signup-opt { font-size: 0.8rem; color: var(--text-dim); font-weight: 400; }
.signup-consent { display: flex !important; gap: 0.75rem; align-items: flex-start; font-weight: 400 !important; color: var(--text-muted); line-height: 1.5; }
.signup-consent input { margin-top: 0.25rem; }
.signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-error { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); padding: 0.75rem 1rem; border-radius: var(--radius-md); margin-top: 0.75rem; font-size: 0.9rem; }
.signup-card .btn-lg { margin-top: 1rem; justify-content: center; }
.signup-success { text-align: center; display: grid; gap: 1rem; justify-items: center; }
.signup-success i { font-size: 3rem; color: var(--accent-emerald); }
.signup-success p { color: var(--text-muted); line-height: 1.6; }
.signup-error[hidden], .signup-success[hidden], #signupForm[hidden] { display: none; }
@media (max-width: 900px) { .signup-wrap { grid-template-columns: 1fr; gap: 2rem; } }
