/* ============================================
   AIVISOR — Fractional AI Officer Landing Page
   Design: Dark editorial, Syne + DM Sans
   Palette: #0D0D0D / #F4F0EB / #2563EB
   ============================================ */

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

:root {
  --bg:         #0D0D0D;
  --bg-2:       #111111;
  --bg-3:       #161616;
  --surface:    #1A1A1A;
  --border:     #242424;
  --cream:      #F4F0EB;
  --cream-2:    #D8D2C8;
  --cream-3:    #A8A29A;
  --blue:       #2563EB;
  --blue-light: #3B82F6;
  --blue-dim:   rgba(37, 99, 235, 0.15);
  --white:      #FFFFFF;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cream-3); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-sm);
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--cream);
  margin-bottom: var(--space-xl);
  max-width: 680px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(13, 13, 13, 0.85);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: 0.08em;
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--cream-3);
  letter-spacing: 0.06em;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) 2rem var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-eyebrow { margin-bottom: var(--space-md); }

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: var(--space-md);
}

.hero-headline em {
  font-style: normal;
  color: var(--cream-3);
  font-weight: 400;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--cream-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-lg);
}

.hero-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.hero-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cream);
}

.hero-price-sub {
  font-size: 0.85rem;
  color: var(--cream-3);
}

/* Hero Visual — Abstract orbital system */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  position: relative;
}

.hero-orb-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orb-1 {
  width: 280px;
  height: 280px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 40% 40%, rgba(37, 99, 235, 0.06), transparent 70%);
  animation: orb-pulse 6s ease-in-out infinite;
}

.orb-2 {
  width: 200px;
  height: 200px;
  border: 1px dashed rgba(37, 99, 235, 0.2);
  animation: orb-rotate 20s linear infinite;
}

.orb-3 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  animation: orb-pulse 4s ease-in-out infinite 1s;
}

@keyframes orb-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes orb-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Nodes */
.hero-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.8);
  flex-shrink: 0;
}

.node-label {
  font-size: 0.7rem;
  color: var(--cream-3);
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.node-1 { top: 15%; left: 50%; transform: translateX(-50%); }
.node-2 { top: 50%; right: 0; transform: translateY(-50%); flex-direction: row-reverse; }
.node-3 { bottom: 25%; right: 10%; }
.node-4 { bottom: 15%; left: 50%; transform: translateX(-50%); }

/* Hero Stats Bar */
.hero-stat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0 var(--1.5rem);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cream);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--cream-3);
  line-height: 1.4;
}

.stat-source {
  color: var(--cream-3);
  font-size: 0.68rem;
  opacity: 0.7;
}

.hero-stat-sep {
  width: 1px;
  height: 50px;
  background: var(--border);
  flex-shrink: 0;
}

/* --- Problem Section --- */
.problem {
  padding: var(--space-2xl) 2rem;
  border-bottom: 1px solid var(--border);
}

.problem-inner { max-width: 1200px; margin: 0 auto; }

.problem-header { margin-bottom: var(--space-xl); }

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: border-color 0.2s;
}

.problem-card:hover { border-color: var(--blue); }

.problem-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
}

.problem-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--cream);
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--cream-3);
  line-height: 1.65;
}

.problem-quote {
  background: var(--bg-2);
  border-left: 3px solid var(--blue);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.problem-quote blockquote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--cream-2);
  line-height: 1.7;
  max-width: 760px;
}

/* --- Services Section --- */
.services {
  padding: var(--space-2xl) 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.services-inner { max-width: 1200px; margin: 0 auto; }
.services-header { margin-bottom: var(--space-xl); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.service-card--accent { background: var(--bg-3); }

.service-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-top: 0.2rem;
  min-width: 24px;
}

.service-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.service-body p {
  font-size: 0.85rem;
  color: var(--cream-3);
  line-height: 1.6;
}

/* --- Manifesto Section --- */
.manifesto {
  padding: var(--space-2xl) 2rem;
  border-bottom: 1px solid var(--border);
}

.manifesto-inner { max-width: 900px; margin: 0 auto; text-align: center; }

.manifesto-rule {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.rule-line { flex: 1; height: 1px; background: var(--border); }

.rule-text {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-3);
  white-space: nowrap;
}

.manifesto-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--cream);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

.manifesto-text {
  font-size: 1rem;
  color: var(--cream-2);
  line-height: 1.75;
  margin-bottom: var(--space-md);
  text-align: left;
}

.manifesto-comparison {
  display: flex;
  gap: 0;
  margin-top: var(--space-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comparison-col {
  flex: 1;
  padding: var(--space-lg);
}

.comparison-col--old { background: var(--surface); }
.comparison-col--new { background: var(--bg-3); }

.comparison-header {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.comparison-item {
  font-size: 0.85rem;
  color: var(--cream-2);
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-item::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream-3);
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 1.5rem;
}

/* --- Outcomes Section --- */
.outcomes {
  padding: var(--space-2xl) 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.outcomes-inner { max-width: 1200px; margin: 0 auto; }
.outcomes-header { margin-bottom: var(--space-xl); }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.outcome-card {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 0.2s;
}

.outcome-card:hover { border-color: var(--blue); }

.outcome-icon {
  margin-bottom: var(--space-md);
}

.outcome-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.outcome-card p {
  font-size: 0.82rem;
  color: var(--cream-3);
  line-height: 1.6;
}

/* --- Closing Section --- */
.closing {
  padding: var(--space-2xl) 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.closing-inner { max-width: 1000px; margin: 0 auto; }

.closing-content {
  border-top: 1px solid var(--border);
  padding-top: var(--space-xl);
}

.closing-headline {
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}

.closing-headline em {
  font-style: normal;
  color: var(--blue-light);
}

.closing-sub {
  font-size: 1rem;
  color: var(--cream-3);
  line-height: 1.75;
  max-width: 680px;
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 2rem;
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--cream-3);
  line-height: 1.6;
}

.footer-meta { text-align: right; }

.footer-copy {
  font-size: 0.78rem;
  color: var(--cream-3);
  margin-bottom: 0.5rem;
}

.footer-note {
  font-size: 0.72rem;
  color: var(--cream-3);
  opacity: 0.5;
  max-width: 280px;
  line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stat-bar { flex-wrap: wrap; gap: var(--space-md); }
  .hero-stat { min-width: 40%; }
  .hero-stat-sep { display: none; }
  .problem-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .manifesto-comparison { flex-direction: column; }
  .comparison-divider { border-left: none; border-top: 1px solid var(--border); border-bottom: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 2rem; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .hero-stat { min-width: 100%; }
  .nav-tagline { display: none; }
  .hero-price { font-size: 2rem; }
}