/* ===========================
   PHAOS — Theme Stylesheet
   =========================== */

/* Custom Properties */
:root {
  --bg: #F8F5EF;
  --bg-alt: #F0ECE5;
  --bg-dark: #1A1612;
  --fg: #141210;
  --fg-muted: #6B6560;
  --fg-subtle: #9A8E86;
  --accent: #C8660A;
  --accent-light: #E8913A;
  --accent-faint: rgba(200, 102, 10, 0.08);
  --border: rgba(20, 18, 16, 0.1);
  --border-strong: rgba(20, 18, 16, 0.18);
  --radius: 6px;
  --radius-lg: 12px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1120px;
  --section-py: 96px;
  --section-px: 24px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Selection */
::selection { background: rgba(200, 102, 10, 0.2); color: var(--fg); }

/* Links */
a { color: inherit; text-decoration: none; }

/* ===========================
   NAV
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }
.nav-wordmark { font-weight: 600; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--fg); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px var(--section-px) 96px;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 18, 16, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 18, 16, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-bg-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 102, 10, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}
.hero-bg-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 102, 10, 0.05) 0%, transparent 70%);
  bottom: -100px;
  left: -50px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}
.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 500px;
  font-weight: 300;
}

/* Hero illustration */
.hero-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-diagram {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.diagram-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200, 102, 10, 0.15);
}
.diagram-ring--outer {
  width: 300px;
  height: 300px;
  animation: spin-ring 30s linear infinite;
}
.diagram-ring--mid {
  width: 200px;
  height: 200px;
  animation: spin-ring 18s linear infinite reverse;
}
@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.diagram-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.diagram-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Outer ring node positions */
.diagram-node--1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.diagram-node--2 { top: 50%; right: 0; transform: translate(50%, -50%); }
.diagram-node--3 { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.diagram-node--4 { top: 50%; left: 0; transform: translate(-50%, -50%); }
.diagram-node--5 { top: 20%; right: 10%; transform: translate(50%, -50%); }
/* Mid ring */
.diagram-node--6 { top: -10px; left: 50%; transform: translate(-50%, -50%); }
.diagram-node--7 { bottom: -10px; left: 50%; transform: translate(-50%, 50%); }
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-faint);
  border: 1px solid rgba(200, 102, 10, 0.2);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ===========================
   SHARED SECTION ATOMS
   =========================== */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.section-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 480px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header--left { text-align: left; }

/* ===========================
   MANIFESTO
   =========================== */
.manifesto {
  background: var(--fg);
  color: var(--bg);
  padding: var(--section-py) var(--section-px);
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}
.manifesto-rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 40px;
}
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--bg);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.manifesto-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(248, 245, 239, 0.65);
  font-weight: 300;
}

/* ===========================
   HOW IT WORKS
   =========================== */
.how {
  padding: var(--section-py) var(--section-px);
}
.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.how-step {
  background: var(--bg);
  padding: 40px 40px 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: background 0.2s;
}
.how-step:hover { background: var(--bg-alt); }
.how-step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  flex-shrink: 0;
  margin-top: 4px;
  min-width: 24px;
}
.how-step-body { flex: 1; }
.how-step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.how-step-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fg-muted);
  font-weight: 300;
}

/* ===========================
   VERTICALS
   =========================== */
.verticals {
  background: var(--bg-alt);
  padding: var(--section-py) var(--section-px);
}
.verticals-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.vertical-card {
  background: var(--bg-alt);
  padding: 44px 36px;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}
.vertical-card:hover { background: var(--bg); }
.vertical-card-icon {
  margin-bottom: 24px;
}
.vertical-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.vertical-card-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--fg-muted);
  font-weight: 300;
  flex: 1;
}

/* ===========================
   OUTCOMES
   =========================== */
.outcomes {
  padding: var(--section-py) var(--section-px);
}
.outcomes-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.outcomes-header {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.outcome-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  background: var(--bg);
  transition: box-shadow 0.2s, transform 0.2s;
}
.outcome-card:hover {
  box-shadow: 0 8px 40px rgba(200, 102, 10, 0.08);
  transform: translateY(-2px);
}
.outcome-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.outcome-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}
.outcome-denom {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--fg-muted);
  font-weight: 400;
}
.outcome-source {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--fg-subtle);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-style: italic;
  font-weight: 300;
}

/* ===========================
   APPROACH
   =========================== */
.approach {
  background: var(--fg);
  padding: var(--section-py) var(--section-px);
  color: var(--bg);
}
.approach-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.approach-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.approach-body {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: rgba(248, 245, 239, 0.65);
  font-weight: 300;
  margin-bottom: 16px;
}
.approach-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.approach-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.approach-item--yes { color: rgba(248, 245, 239, 0.85); }
.approach-item--no { color: rgba(248, 245, 239, 0.35); }
.approach-check, .approach-x {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.approach-check { background: rgba(200, 102, 10, 0.15); }
.approach-x { background: rgba(154, 142, 134, 0.15); }

/* ===========================
   CLOSING
   =========================== */
.closing {
  padding: 80px var(--section-px);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.closing-deco {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
  opacity: 0.4;
}
.closing-packages-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.closing-packages-link:hover { opacity: 0.7; }
.closing-statement {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.015em;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px var(--section-px);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}
.footer-wordmark { font-weight: 600; }
.footer-tagline {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  font-weight: 300;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-subtle);
  margin-top: 4px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  :root { --section-py: 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-illustration { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .verticals-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .approach-columns { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  :root { --section-py: 56px; --section-px: 20px; }
  .hero { padding-top: 72px; padding-bottom: 72px; min-height: auto; }
  .hero-headline { font-size: 2.2rem; }
  .nav-links { display: none; }
  .how-step { padding: 28px 24px; }
  .vertical-card { padding: 32px 24px; }
  .outcome-card { padding: 28px 24px; }
}