/* ================================================
   SIX ARROWS — Design System CSS
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Backgrounds */
  --bg-primary: #121212;
  --bg-elevated: #1e1e1e;
  --bg-surface: #252525;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --text-tertiary: rgba(255,255,255,0.5);
  --text-ghost: rgba(255,255,255,0.25);

  /* Borders */
  --border-subtle: rgba(255,255,255,0.08);
  --border-medium: rgba(255,255,255,0.12);

  /* Accents */
  --accent-amber: #d8a373;
  --accent-coral: #e0835c;
  --accent-mauve: #6c588d;
  --accent-sage: #a2b79f;

  /* Gradient */
  --gradient-brand: linear-gradient(135deg, #d8a373, #e0835c, #6c588d, #a2b79f);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --container-max: 1248px;
  --container-narrow: 800px;
  --padding-page: 48px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Animation */
  --ease-default: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-medium: 300ms;
  --duration-slow: 600ms;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* --- Typography --- */
.display-xl { font-size: 72px; letter-spacing: -0.03em; line-height: 1.05; }
.display-lg { font-size: 56px; letter-spacing: -0.025em; line-height: 1.1; }
.display-md { font-size: 40px; letter-spacing: -0.02em; line-height: 1.15; }
.heading-lg { font-size: 32px; letter-spacing: -0.015em; line-height: 1.2; }
.heading-md { font-size: 24px; letter-spacing: -0.01em; line-height: 1.3; font-weight: 600; }
.heading-sm { font-size: 20px; line-height: 1.3; font-weight: 600; }
.body-lg { font-size: 20px; line-height: 1.6; }
.body-md { font-size: 17px; line-height: 1.65; }
.body-sm { font-size: 15px; line-height: 1.6; }
.mono-md {
  font-family: 'Fragment Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.mono-sm {
  font-family: 'Fragment Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.quote {
  font-family: 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.5;
}

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-ghost { color: var(--text-ghost); }

.eyebrow {
  font-family: 'Fragment Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--padding-page);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--padding-page);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-border {
  border-bottom: 1px solid var(--border-subtle);
}

.text-center { text-align: center; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color var(--duration-medium) var(--ease-default),
              backdrop-filter var(--duration-medium) var(--ease-default);
}

.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
}

.nav.scrolled {
  background-color: rgba(30,30,30,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--padding-page);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand svg { height: 32px; width: auto; }

.nav-brand-text {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: 'Fragment Mono', monospace;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease-default);
  position: relative;
}

.nav-link:hover { color: var(--text-primary); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-coral);
  transform: scaleX(0);
  transition: transform var(--duration-medium) var(--ease-default);
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-link.active { color: var(--text-primary); }
.nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--duration-medium) var(--ease-default);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(18,18,18,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-default);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu .nav-link {
  font-family: 'Geist', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-menu .nav-link::after { display: none; }

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: var(--padding-page);
  font-size: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Geist', sans-serif;
  font-weight: 300;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fragment Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-medium) var(--ease-default);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #121212;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--gradient-brand);
  color: #121212;
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 0;
}

.btn-ghost:hover { color: var(--text-primary); }
.btn-ghost .arrow { transition: transform var(--duration-medium) var(--ease-default); }
.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-nav {
  padding: 8px 16px;
  font-size: 13px;
}

/* --- Hero --- */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-5xl) var(--padding-page);
  position: relative;
  overflow: hidden;
}

.hero-page { min-height: 60vh; }
.hero-framework { min-height: 70vh; }

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 600px at center, rgba(216,163,115,0.06), transparent 70%);
  pointer-events: none;
}

.hero .brandmark {
  width: 120px;
  height: 120px;
  margin-bottom: var(--space-2xl);
}

.hero .eyebrow { margin-bottom: var(--space-md); }

.hero h1 {
  margin-bottom: var(--space-lg);
  max-width: 800px;
}

.hero .subtext {
  max-width: 600px;
  margin-bottom: var(--space-2xl);
  font-size: 20px;
  line-height: 1.6;
}

/* --- Section Header --- */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 { margin-bottom: var(--space-md); }
.section-header .subtext { max-width: 640px; }
.section-header.center { text-align: center; }
.section-header.center .subtext { margin: 0 auto; }

/* --- Arrow Card Grid --- */
.arrow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.arrow-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--duration-medium) var(--ease-default);
  text-decoration: none;
  display: block;
}

.arrow-card:hover {
  background: var(--bg-surface);
  border-color: var(--border-medium);
}

.arrow-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  transition: transform var(--duration-medium) var(--ease-default);
}

.arrow-card:hover .icon { transform: scale(1.08); }

.arrow-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-sm);
}

.arrow-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Credibility Strip --- */
.credibility-strip {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0;
}

.credibility-inner {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat h3 {
  font-size: 32px;
  margin-bottom: var(--space-xs);
}

.stat p {
  font-family: 'Fragment Mono', monospace;
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* --- Quote Block --- */
.quote-block {
  padding: var(--space-5xl) 0;
  text-align: center;
}

.quote-block .quote-mark {
  font-size: 72px;
  line-height: 1;
  color: var(--text-ghost);
  font-family: 'Georgia', serif;
  margin-bottom: var(--space-lg);
}

.quote-block blockquote {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--space-5xl) 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.cta-section h2 { margin-bottom: var(--space-md); }
.cta-section .subtext { margin-bottom: var(--space-2xl); max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- Arrow Section (Framework page) --- */
.arrow-section {
  padding: var(--space-5xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.arrow-section:last-of-type { border-bottom: none; }

.arrow-section-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-3xl);
  align-items: start;
}

.arrow-section.reverse .arrow-section-inner {
  grid-template-columns: 3fr 2fr;
}

.arrow-section.reverse .arrow-visual { order: 2; }
.arrow-section.reverse .arrow-content { order: 1; }

.arrow-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
}

.arrow-number {
  font-family: 'Fragment Mono', monospace;
  font-size: 72px;
  font-weight: 400;
  color: var(--text-ghost);
  line-height: 1;
}

.arrow-visual .icon {
  width: 160px;
  height: 160px;
}

.arrow-content h2 { margin-bottom: var(--space-md); }

.arrow-content .lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.arrow-content .divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-xl) 0;
}

.arrow-subsection { margin-bottom: var(--space-xl); }
.arrow-subsection:last-child { margin-bottom: 0; }
.arrow-subsection h3 { margin-bottom: var(--space-sm); font-size: 24px; }
.arrow-subsection p { color: var(--text-secondary); }

/* --- Process Steps --- */
.process-step {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.process-step:last-child { border-bottom: none; }

.step-number {
  font-family: 'Fragment Mono', monospace;
  font-size: 14px;
  color: var(--text-ghost);
  min-width: 60px;
  padding-top: 4px;
}

.step-content h3 {
  font-size: 24px;
  margin-bottom: var(--space-sm);
}

.step-content p { color: var(--text-secondary); }

/* --- Tool Cards --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.tool-card h3 { font-size: 20px; margin-bottom: var(--space-sm); }
.tool-card p { font-size: 15px; color: var(--text-secondary); }

/* --- What This Is / Isn't --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.comparison-col h3 {
  font-size: 24px;
  margin-bottom: var(--space-lg);
}

.comparison-list li {
  display: flex;
  gap: 12px;
  margin-bottom: var(--space-md);
  font-size: 17px;
  line-height: 1.5;
}

.comparison-list .marker {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 18px;
}

.marker-negative { color: var(--accent-coral); }
.marker-positive { color: var(--accent-sage); }

/* --- Journal --- */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-pill {
  font-family: 'Fragment Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
}

.filter-pill:hover { background: var(--bg-surface); }
.filter-pill.active {
  background: rgba(162,183,159,0.15);
  color: var(--accent-sage);
  border-color: var(--accent-sage);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.journal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-medium) var(--ease-default);
  display: block;
  text-decoration: none;
}

.journal-card:hover {
  background: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.journal-card-inner { padding: var(--space-lg); }

.journal-tag {
  display: inline-block;
  font-family: 'Fragment Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent-sage);
  background: rgba(162,183,159,0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.journal-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-sm);
  transition: color var(--duration-medium) var(--ease-default);
}

.journal-card:hover h3 { color: var(--accent-amber); }

.journal-card .excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.journal-card .date {
  font-family: 'Fragment Mono', monospace;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-group { margin-bottom: var(--space-md); }

.form-group label {
  display: block;
  font-family: 'Fragment Mono', monospace;
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  font-size: 17px;
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-default);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-medium);
  box-shadow: 0 0 0 3px rgba(216,163,115,0.15);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-ghost); }

.form-fine-print {
  text-align: center;
  margin-top: var(--space-md);
  font-family: 'Fragment Mono', monospace;
  font-size: 12px;
  color: var(--text-tertiary);
}

.btn-full { width: 100%; justify-content: center; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-5xl) 0 var(--space-2xl);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-top: var(--space-md);
  max-width: 300px;
  line-height: 1.5;
}

.footer-columns {
  display: flex;
  gap: var(--space-4xl);
}

.footer-col h4 {
  font-family: 'Fragment Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
  font-weight: 400;
}

.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
  transition: color var(--duration-fast) var(--ease-default);
}

.footer-col a:hover { color: var(--text-secondary); }

.footer-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-2xl) 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p,
.footer-bottom a {
  font-family: 'Fragment Mono', monospace;
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-bottom a:hover { color: var(--text-secondary); }

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 80ms; }
.stagger-2 { transition-delay: 160ms; }
.stagger-3 { transition-delay: 240ms; }
.stagger-4 { transition-delay: 320ms; }
.stagger-5 { transition-delay: 400ms; }

/* --- Responsive --- */
@media (max-width: 1137px) {
  :root { --padding-page: 48px; }
  .display-xl { font-size: 56px; }
  .display-lg { font-size: 40px; }
  .display-md { font-size: 32px; }
  .heading-lg { font-size: 28px; }
  .arrow-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 809px) {
  :root { --padding-page: 24px; --space-5xl: 80px; }
  .display-xl { font-size: 40px; }
  .display-lg { font-size: 32px; }
  .display-md { font-size: 28px; }
  .heading-lg { font-size: 24px; }
  .body-lg { font-size: 17px; }
  .quote-block blockquote { font-size: 20px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { min-height: 80vh; padding-top: 100px; }
  .hero-page { min-height: 50vh; }
  .hero .brandmark { width: 80px; height: 80px; }
  .hero .subtext { font-size: 17px; }

  .arrow-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; }

  .arrow-section-inner,
  .arrow-section.reverse .arrow-section-inner {
    grid-template-columns: 1fr;
  }

  .arrow-section.reverse .arrow-visual { order: 0; }
  .arrow-section.reverse .arrow-content { order: 0; }

  .arrow-visual { align-items: center; }
  .arrow-visual .icon { width: 96px; height: 96px; }
  .arrow-number { font-size: 48px; }

  .credibility-inner { flex-direction: column; gap: var(--space-xl); }

  .comparison-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }

  .process-step { flex-direction: column; gap: var(--space-md); }

  .footer-top { flex-direction: column; }
  .footer-columns { flex-direction: column; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--space-sm); }

  .stat h3 { font-size: 28px; }
}
