/* =====================================
   KLICA OS — OPERATING SYSTEM
   Executive ops, autonomously run
   ===================================== */

:root {
  --ink: #0B1120;
  --ink-soft: #111827;
  --ink-border: #1a2438;
  --cream: #F4EFE6;
  --cream-dark: #EDE6DA;
  --amber: #C9936A;
  --amber-dim: rgba(201, 147, 106, 0.15);
  --slate: #8B9BAD;
  --slate-light: #B8C0CC;
  --text-light: #E8ECE4;
  --text-muted: #6B7A8A;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--ink-border);
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text-light);
}

.nav-sep {
  color: var(--ink-border);
  font-size: 14px;
}

.nav-tagline {
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-badge {
  font-size: 11px;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 160px 1fr 280px;
  gap: 48px;
  align-items: start;
  max-width: 1400px;
  width: 100%;
}

.hero-anchor {
  padding-top: 20px;
}

.hero-number {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-anchor-line {
  width: 1px;
  height: 60px;
  background: var(--ink-border);
  margin: 20px 0 16px 36px;
}

.hero-anchor-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  line-height: 1.4;
  padding-left: 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

.hero-headline-row {
  display: block;
}

.hero-headline-row--indent {
  padding-left: 1.5em;
  color: var(--amber);
  font-style: italic;
}

.hero-body p {
  font-size: 17px;
  color: var(--slate-light);
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  border: 1px solid var(--ink-border);
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: 500;
}

.hero-aside {
  padding-top: 12px;
}

.hero-stat-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--ink-border);
  border-radius: 8px;
  overflow: hidden;
}

.hero-stat {
  padding: 18px 20px;
  border-bottom: 1px solid var(--ink-border);
}

.hero-stat:last-child {
  border-bottom: none;
}

.hero-stat-value {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, black 0%, transparent 100%);
}

/* ---- MANIFESTO ---- */
.manifesto {
  background: var(--cream);
  padding: 100px 48px;
}

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

.manifesto-quote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 24px;
}

.manifesto-attribution {
  font-size: 12px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- SECTIONS COMMON ---- */
.section-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

/* ---- MODULES ---- */
.modules {
  padding: 100px 48px;
  background: var(--ink);
}

.modules-header {
  margin-bottom: 64px;
}

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

.module-card {
  background: var(--ink-soft);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}

.module-card:hover {
  background: #141c2e;
}

.module-num {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.05em;
}

.module-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
}

.module-desc {
  font-size: 14px;
  color: var(--slate-light);
  line-height: 1.6;
  font-weight: 300;
}

/* ---- CHIEF ASSISTANT ---- */
.chiefassistant {
  background: var(--ink-soft);
  padding: 100px 48px;
  border-top: 1px solid var(--ink-border);
  border-bottom: 1px solid var(--ink-border);
}

.ca-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  max-width: 1200px;
}

.ca-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 28px;
}

.ca-body {
  font-size: 16px;
  color: var(--slate-light);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 20px;
}

.ca-pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}

.ca-pillar {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--slate-light);
}

.ca-pillar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.ca-message-example {
  background: var(--ink);
  border: 1px solid var(--ink-border);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 8px;
}

.ca-msg-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ca-msg-from {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ca-msg-time {
  font-size: 12px;
  color: var(--text-muted);
}

.ca-msg-body {
  font-size: 14px;
  color: var(--slate-light);
  line-height: 1.65;
  font-weight: 300;
  font-style: italic;
}

/* ---- PROCESS ---- */
.process {
  padding: 100px 48px;
  background: var(--cream);
}

.process-header {
  margin-bottom: 72px;
}

.process-header .section-title {
  color: var(--ink);
}

.process-header .section-label {
  color: #9B7A52;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  position: relative;
}

.process-step {
  padding: 0 32px 0 0;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: 0;
  width: 32px;
  height: 1px;
  background: #D4C9B5;
}

.process-step:last-child::after {
  display: none;
}

.step-numeral {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: rgba(11, 17, 32, 0.08);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-desc {
  font-size: 14px;
  color: #6B5E4E;
  line-height: 1.65;
  font-weight: 300;
}

/* ---- PRICING ---- */
.pricing {
  padding: 100px 48px;
  background: var(--ink);
}

.pricing-header {
  margin-bottom: 64px;
}

.pricing-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--slate);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-border);
  border: 1px solid var(--ink-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.pricing-tier {
  background: var(--ink-soft);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-tier--core {
  background: #141e30;
}

.tier-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tier-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  font-weight: 600;
}

.tier-plan {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.tier-amount {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
}

.tier-period {
  font-size: 14px;
  color: var(--slate);
}

.tier-target {
  font-size: 13px;
  color: var(--slate-light);
  font-weight: 300;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-features li {
  font-size: 13px;
  color: var(--slate-light);
  padding-left: 16px;
  position: relative;
  font-weight: 300;
}

.tier-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 10px;
  top: 2px;
}

.pricing-footer {
  font-size: 12px;
  color: var(--slate);
  text-align: center;
}

/* ---- CLOSING ---- */
.closing {
  background: var(--cream);
  padding: 120px 48px;
}

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

.closing-number {
  font-family: var(--font-serif);
  font-size: 120px;
  font-weight: 700;
  color: rgba(11, 17, 32, 0.06);
  line-height: 1;
  margin-bottom: -40px;
  letter-spacing: -0.04em;
}

.closing-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 32px;
}

.closing-body {
  font-size: 17px;
  color: #6B5E4E;
  line-height: 1.75;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--ink-soft);
  padding: 32px 48px;
  border-top: 1px solid var(--ink-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
}

.footer-slug {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 12px;
}

.footer-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--slate);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 80px 1fr;
    gap: 24px;
  }

  .hero-aside {
    display: none;
  }

  .hero-number {
    font-size: 48px;
  }

  .hero-anchor-label {
    display: none;
  }

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

  .ca-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .process-step::after {
    display: none;
  }

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

@media (max-width: 600px) {
  .nav {
    padding: 14px 24px;
  }

  .hero {
    padding: 100px 24px 60px;
  }

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

  .hero-anchor {
    display: none;
  }

  .modules,
  .chiefassistant,
  .process,
  .pricing,
  .manifesto,
  .closing {
    padding: 64px 24px;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
  }
}