/* ============================================
   NexusCommand — Marketing Site Styles
   Based on PermaShip Branding Guidelines
   ============================================ */

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

:root {
  --deep-navy: #0B1220;
  --dark-slate: #202A37;
  --midnight: #111827;
  --teal: #12B3B3;
  --cyan: #76E7C7;
  --electric-blue: #3B82F6;
  --white: #FFFFFF;
  --light-gray: #CBD6E2;
  --muted-gray: #94A3B8;
  --faint-gray: #EAF0F6;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --glow-teal: rgba(18, 179, 179, 0.3);
}

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

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--deep-navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-accent {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light-gray);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--deep-navy);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light-gray);
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: var(--white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.625rem 1.5rem;
  border: none;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: var(--deep-navy);
}

.btn-primary:hover {
  box-shadow: 0 0 24px var(--glow-teal);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}

.btn-outline:hover {
  background: rgba(18, 179, 179, 0.1);
  box-shadow: 0 0 16px rgba(18, 179, 179, 0.15);
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(18, 179, 179, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
  overflow: hidden;
}

.blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float-orb 8s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(18, 179, 179, 0.12);
  top: 10%;
  left: 15%;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(59, 130, 246, 0.1);
  top: 30%;
  right: 10%;
  animation-delay: -4s;
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-15px) translateX(10px); }
  66% { transform: translateY(10px) translateX(-8px); }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(118, 231, 199, 0.3);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  color: var(--light-gray);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted-gray);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--card-border);
}

/* --- Philosophy --- */
.philosophy {
  padding: 4rem 0;
  background: var(--dark-slate);
  text-align: center;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.philosophy-quote {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.philosophy-text {
  max-width: 600px;
  margin: 0 auto;
  color: var(--light-gray);
  font-size: 1.05rem;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted-gray);
  font-size: 1.05rem;
}

/* --- Demo Section --- */
.demo {
  padding: 6rem 0;
  background: var(--midnight);
}

.demo-gif {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.demo-gif img {
  width: 100%;
  display: block;
}

.demo-window {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.875rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--card-border);
}

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

.chrome-dot.red { background: #ff5f57; }
.chrome-dot.yellow { background: #ffbd2e; }
.chrome-dot.green { background: #28c840; }

.window-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-gray);
  font-weight: 500;
}

.window-body {
  padding: 0;
  flex: 1;
  display: flex;
}

/* --- Dashboard mockup --- */
.mock-sidebar {
  width: 160px;
  padding: 0.75rem 0;
  border-right: 1px solid var(--card-border);
  flex-shrink: 0;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.78rem;
  color: var(--muted-gray);
  cursor: default;
}

.mock-nav-item.active {
  color: var(--white);
  background: rgba(18, 179, 179, 0.08);
  border-right: 2px solid var(--teal);
}

.mock-main {
  flex: 1;
  padding: 1rem;
}

.mock-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mock-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.mock-stat-label {
  font-size: 0.65rem;
  color: var(--muted-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.mock-stat-value.accent {
  color: var(--teal);
}

.mock-activity {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem;
}

.mock-activity-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-gray);
  margin-bottom: 0.625rem;
}

.mock-activity-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.78rem;
  color: var(--light-gray);
}

.mock-activity-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-dot.approved { background: var(--cyan); }
.activity-dot.reviewing {
  background: #FBBF24;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.activity-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-text strong {
  color: var(--white);
}

.activity-time {
  font-size: 0.7rem;
  color: var(--muted-gray);
  flex-shrink: 0;
}

/* --- Chat mockup --- */
.chat-body {
  flex-direction: column;
  padding: 1rem;
  gap: 0.75rem;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(18, 179, 179, 0.15);
  color: var(--teal);
}

.chat-badge.nexus {
  background: rgba(18, 179, 179, 0.25);
  color: var(--cyan);
}

.chat-badge.human {
  background: rgba(59, 130, 246, 0.2);
  color: var(--electric-blue);
}

.chat-text {
  font-size: 0.82rem;
  color: var(--light-gray);
  line-height: 1.55;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-text code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  background: rgba(18, 179, 179, 0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  color: var(--teal);
}

.human-msg .chat-text {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.12);
}

/* --- Roster mockup --- */
.roster-body {
  flex-direction: column;
  padding: 0.5rem 0;
}

.roster-agent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.82rem;
}

.roster-agent:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.roster-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.roster-status.online {
  background: #28c840;
  box-shadow: 0 0 4px rgba(40, 200, 64, 0.4);
}

.roster-status.idle {
  background: var(--muted-gray);
}

.roster-agent strong {
  flex-shrink: 0;
}

.roster-role {
  font-size: 0.7rem;
  color: var(--muted-gray);
  flex: 1;
}

.roster-stat {
  font-size: 0.7rem;
  color: var(--teal);
  flex-shrink: 0;
}

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

  .mock-sidebar {
    display: none;
  }

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

/* --- Features --- */
.features {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(18, 179, 179, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(18, 179, 179, 0.1);
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.925rem;
  color: var(--muted-gray);
  line-height: 1.65;
}

/* --- Agents --- */
.agents {
  padding: 6rem 0;
  background: var(--midnight);
}

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

.agent-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.agent-card:hover {
  border-color: rgba(18, 179, 179, 0.2);
  transform: translateY(-2px);
}

.agent-card.agent-nexus {
  border-color: rgba(18, 179, 179, 0.3);
  background: rgba(18, 179, 179, 0.05);
}

.agent-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.15rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deep-navy);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  border-radius: 100px;
}

.agent-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 179, 179, 0.08);
  color: var(--teal);
  margin: 0 auto 0.75rem;
}

.agent-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.agent-role {
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agent-desc {
  font-size: 0.82rem;
  color: var(--muted-gray);
  line-height: 1.55;
}

/* --- Expand Section --- */
.expand {
  padding: 5rem 0;
  background: var(--dark-slate);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.expand-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.expand-desc {
  font-size: 1.05rem;
  color: var(--light-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.expand-desc strong {
  color: var(--white);
}

.inline-link {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(18, 179, 179, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.inline-link:hover {
  text-decoration-color: var(--teal);
}

.expand-attribution {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-gray);
  font-style: italic;
}

.expand-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(118, 231, 199, 0.08);
  border: 1px solid rgba(118, 231, 199, 0.15);
  border-radius: 100px;
}

.expand-examples {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.example-agent {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.125rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}

.example-agent:hover {
  border-color: rgba(18, 179, 179, 0.2);
}

.example-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.example-agent div {
  display: flex;
  flex-direction: column;
}

.example-agent strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.example-agent span {
  font-size: 0.75rem;
  color: var(--muted-gray);
}

@media (max-width: 768px) {
  .expand-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- How It Works --- */
.how-it-works {
  padding: 6rem 0;
}

.steps {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 4.5rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--teal), transparent);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 179, 179, 0.1);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: 1.125rem;
  font-weight: 700;
}

.step-content {
  padding-top: 0.5rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--muted-gray);
  line-height: 1.65;
}

/* --- Adapters --- */
.adapters {
  padding: 6rem 0;
  background: var(--midnight);
}

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

.adapter {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s ease;
}

.adapter:hover {
  border-color: rgba(18, 179, 179, 0.2);
}

.adapter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.adapter-options {
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* --- Quickstart --- */
.quickstart {
  padding: 6rem 0;
}

.code-block {
  max-width: 680px;
  margin: 0 auto 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.3);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--card-border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.code-title {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-gray);
  font-weight: 500;
}

.code-block pre {
  padding: 1.5rem;
  overflow-x: auto;
}

.code-block code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--light-gray);
}

.code-comment {
  color: var(--muted-gray);
}

.code-prompt {
  color: var(--teal);
  font-weight: 500;
}

.code-placeholder {
  color: var(--cyan);
  background: rgba(118, 231, 199, 0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.code-success {
  color: var(--cyan);
}

.quickstart-notes {
  max-width: 680px;
  margin: 0 auto;
}

.note {
  font-size: 0.9rem;
  color: var(--muted-gray);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.note strong {
  color: var(--light-gray);
}

/* --- Open Source Values --- */
.oss-values {
  padding: 6rem 0;
  background: var(--midnight);
}

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

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.value-card:hover {
  border-color: rgba(18, 179, 179, 0.2);
  transform: translateY(-2px);
}

.value-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 179, 179, 0.08);
  color: var(--teal);
  margin: 0 auto 1rem;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--muted-gray);
  line-height: 1.6;
}

/* --- Differentiator --- */
.differentiator {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: var(--dark-slate);
}

.diff-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--light-gray);
  line-height: 1.7;
}

.diff-text strong {
  color: var(--white);
}

/* --- FAQ --- */
.faq {
  padding: 6rem 0;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--card-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--white);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--teal);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted-gray);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 0 1.25rem;
  font-size: 0.925rem;
  color: var(--muted-gray);
  line-height: 1.7;
  max-width: 640px;
}

.faq-answer code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: rgba(18, 179, 179, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--teal);
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --- CTA --- */
.cta {
  padding: 6rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(18, 179, 179, 0.06) 0%, transparent 70%),
    var(--dark-slate);
  border-top: 1px solid var(--card-border);
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-subtitle {
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--muted-gray);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted-gray);
  margin-top: 0.25rem;
}

.footer-tagline a {
  color: var(--teal);
  transition: color 0.2s ease;
}

.footer-tagline a:hover {
  color: var(--cyan);
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--muted-gray);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted-gray);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.25rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

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

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

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

  .step {
    gap: 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    gap: 1.5rem;
  }
}

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

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cards */
.features-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.25s; }

.agents-grid .reveal:nth-child(2) { transition-delay: 0.04s; }
.agents-grid .reveal:nth-child(3) { transition-delay: 0.08s; }
.agents-grid .reveal:nth-child(4) { transition-delay: 0.12s; }
.agents-grid .reveal:nth-child(5) { transition-delay: 0.16s; }
.agents-grid .reveal:nth-child(6) { transition-delay: 0.2s; }
.agents-grid .reveal:nth-child(7) { transition-delay: 0.24s; }
.agents-grid .reveal:nth-child(8) { transition-delay: 0.28s; }
.agents-grid .reveal:nth-child(9) { transition-delay: 0.32s; }
.agents-grid .reveal:nth-child(10) { transition-delay: 0.36s; }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
