/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* Tokens */
:root {
  --bg: #080C14;
  --surface: #0F1520;
  --surface-alt: #141D2B;
  --surface-hover: #161F2E;
  --gold: #C9A84C;
  --gold-dim: rgba(201, 168, 76, 0.12);
  --gold-border: rgba(201, 168, 76, 0.20);
  --cream: #F5F0E4;
  --cream-dim: rgba(245, 240, 228, 0.75);
  --text: #E8E2D8;
  --text-muted: rgba(232, 226, 216, 0.50);
  --border: rgba(201, 168, 76, 0.18);
  --border-subtle: rgba(201, 168, 76, 0.10);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

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

/* 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;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-brand { display: flex; align-items: baseline; gap: 10px; }
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.nav-tag {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--gold);
  text-decoration: none;
  padding: 8px 20px;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 48px 120px;
  max-width: 1120px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -120px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.hero-eyebrow-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.hero-eyebrow-text {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 36px;
  letter-spacing: -0.02em;
  max-width: 820px;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 56px;
  font-weight: 400;
}
.hero-actions { display: flex; align-items: center; gap: 24px; margin-bottom: 80px; }
.btn-primary {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--gold);
  text-decoration: none;
  padding: 14px 32px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.88; }
.hero-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.hero-meta-item { display: flex; gap: 14px; align-items: baseline; }
.hero-meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
  width: 80px;
}
.hero-meta-value { font-size: 0.82rem; color: var(--text-muted); font-weight: 400; }

/* Workflow Section */
.workflow-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 48px;
}
.workflow-inner { max-width: 1100px; }
.workflow-header { margin-bottom: 64px; }
.workflow-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.workflow-label-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.workflow-label-text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.workflow-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 600px;
}
.workflow-chain {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.workflow-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.workflow-col-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.workflow-item {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.workflow-item:hover {
  border-color: var(--gold-border);
  color: var(--cream-dim);
}
.workflow-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding-top: 32px;
}
.workflow-divider-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin-bottom: 8px;
}
.workflow-divider-label {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.workflow-tutti-box {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 20px 24px;
  text-align: center;
}
.workflow-tutti-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.workflow-tutti-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.workflow-inputs .workflow-col-label,
.workflow-outputs .workflow-col-label { text-align: right; }

/* Workflow output pain labels */
.workflow-output-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 16px;
  transition: border-color 0.2s;
}
.workflow-output-card:hover { border-color: var(--gold-border); }
.workflow-output-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}
.workflow-output-pain {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--gold);
  font-style: italic;
  line-height: 1.4;
}

/* User Roles */
.roles-section {
  padding: 100px 48px;
  background: var(--bg);
}
.roles-inner { max-width: 1100px; }
.roles-header { margin-bottom: 56px; }
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.section-label-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.section-label-text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 560px;
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.role-card {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.2s;
}
.role-card:hover { background: var(--surface-alt); }
.role-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.role-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
}
.role-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 16px;
}
.role-question {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1.4;
}
.role-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 400;
}

/* Insights Section */
.insights-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 48px;
}
.insights-inner { max-width: 1100px; }
.insights-header { margin-bottom: 56px; }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.insight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 32px 36px;
  position: relative;
  transition: border-color 0.2s;
}
.insight-card:hover { border-color: var(--gold-border); }
.insight-mark {
  position: absolute;
  top: 24px;
  left: -12px;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.insight-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--cream-dim);
  font-weight: 400;
}

/* Institutional Memory */
.memory-section {
  padding: 100px 48px;
  background: var(--bg);
}
.memory-inner { max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.memory-content {}
.memory-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 5px 12px;
  margin-bottom: 28px;
}
.memory-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.memory-desc {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--text-muted);
  font-weight: 400;
}
.memory-list {
  padding-top: 40px;
}
.memory-list-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.memory-list-item:last-child { border-bottom: none; }
.memory-list-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
  width: 24px;
  line-height: 1.7;
}
.memory-list-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 400;
}

/* For Who Section */
.for-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
}
.for-inner { max-width: 1100px; }
.for-header { margin-bottom: 40px; }
.for-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.for-tag {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 20px;
  font-weight: 400;
  transition: border-color 0.2s, color 0.2s;
}
.for-tag:hover { border-color: var(--gold-border); color: var(--cream-dim); }

/* Outcomes Section */
.outcomes-section {
  padding: 100px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.outcomes-inner { max-width: 1100px; }
.outcomes-header { margin-bottom: 56px; }
.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.outcome-block {}
.outcome-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: inline-block;
  padding: 5px 12px;
}
.outcome-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}
.outcome-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg);
  transition: background 0.2s;
}
.outcome-item:last-child { border-bottom: none; }
.outcome-item:hover { background: var(--surface-alt); }
.outcome-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}
.outcome-label-sm {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}
.outcome-scenario {}
.outcome-scenario-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.outcome-scenario-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--cream-dim);
  font-weight: 400;
}
.cta-section {
  padding: 120px 48px;
  background: var(--bg);
  text-align: center;
}
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.cta-sub {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 48px;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 48px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
}
.footer-brand { display: flex; align-items: baseline; gap: 10px; }
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
}
.footer-slug { font-size: 0.7rem; color: var(--text-muted); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

/* Responsive */
@media (max-width: 900px) {
  .nav { padding: 14px 24px; }
  .hero { padding: 120px 24px 80px; }
  .roles-section { padding: 80px 24px; }
  .roles-grid { grid-template-columns: 1fr; }
  .insights-section { padding: 80px 24px; }
  .insights-grid { grid-template-columns: 1fr; }
  .memory-section { padding: 80px 24px; }
  .memory-inner { grid-template-columns: 1fr; gap: 48px; }
  .workflow-section { padding: 80px 24px; }
  .workflow-chain { grid-template-columns: 1fr; }
  .workflow-divider { display: none; }
  .workflow-inputs .workflow-col-label,
  .workflow-outputs .workflow-col-label { text-align: left; }
  .workflow-col { display: none; }
  .workflow-tutti-box { display: none; }
  .outcomes-section { padding: 80px 24px; }
  .outcomes-grid { grid-template-columns: 1fr; gap: 40px; }
  .outcome-item { padding: 20px 20px; gap: 16px; }
  .outcome-num { font-size: 2rem; width: 36px; }
  .for-section { padding: 60px 24px; }
  .cta-section { padding: 80px 24px; }
  .footer { padding: 28px 24px; }
  .footer-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero-headline { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-right { gap: 12px; }
  .nav-cta { font-size: 0.72rem; padding: 7px 16px; }
}

/* ── Product Nav (shared across all product pages) ── */
.pnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  background: rgba(8, 12, 20, 0.97);
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pnav-brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
}
.pnav-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.pnav-tag {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}
.pnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pnav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(232, 226, 216, 0.45);
  text-decoration: none;
  padding: 6px 12px;
  letter-spacing: 0.02em;
  transition: color 0.15s;
  white-space: nowrap;
}
.pnav-links a:hover { color: var(--cream); }
.pnav-links a.pnav-active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}
/* Hamburger toggle (hidden on desktop) */
.pnav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
  font-size: 1rem;
  line-height: 1;
}
/* Product page footer */
.pfooter {
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 24px 48px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(232, 226, 216, 0.3);
  font-style: italic;
  background: var(--bg);
}
@media (max-width: 768px) {
  .pnav { padding: 12px 20px; }
  .pnav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(8, 12, 20, 0.98); border-bottom: 1px solid rgba(201, 168, 76, 0.16); padding: 8px 0; gap: 0; }
  .pnav-links.pnav-open { display: flex; }
  .pnav-links a { padding: 10px 20px; border-radius: 0; }
  .pnav-toggle { display: block; }
  .pfooter { padding: 20px 20px; }
}