/* ============================================================
   Buona Fortuna × AI — Design System
   Aesthetic: Luxury Architectural Dark
   Fonts: Cormorant Garamond (display) + Outfit (UI)
   ============================================================ */

@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=Outfit:wght@300;400;500;600&display=swap');

/* ---- Tokens ------------------------------------------------ */
:root {
  --bg:             #080706;
  --bg-alt:         #0D0B09;
  --bg-card:        #0F0E0C;
  --bg-card-hover:  #161410;
  --text:           #EDE8DC;
  --text-muted:     #7A7468;
  --text-faint:     #2E2C28;
  --gold:           #C4913A;
  --gold-light:     #DEB96A;
  --gold-dim:       rgba(196, 145, 58, 0.12);
  --gold-border:    rgba(196, 145, 58, 0.25);
  --border:         #1A1814;
  --border-light:   #252218;

  --font-display: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-ui:      'Outfit', 'Helvetica Neue', 'Arial', sans-serif;

  --container:    1240px;
  --gutter:       clamp(1.5rem, 4vw, 3rem);
  --pad-section:  clamp(5rem, 10vh, 8rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Atmospheric depth layer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 50% at 50% -5%, #1c1610 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 90%, #100d08 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Layout ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
  z-index: 1;
  padding: var(--pad-section) 0;
}

.section--alt {
  background: var(--bg-alt);
}

/* ---- Typography Atoms -------------------------------------- */
.label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.label::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

/* ---- Navigation -------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: rgba(8, 7, 6, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.back-link {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.85;
  transition: opacity 0.2s, gap 0.2s;
}

.back-link:hover {
  opacity: 1;
  gap: 0.85rem;
}

/* ---- Hero -------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, var(--border-light) 0%, transparent 70%);
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 2.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 9.5vw, 8rem);
  font-weight: 300;
  line-height: 0.97;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 3rem;
  max-width: 14ch;
}

.hero-headline .hl-muted {
  color: var(--text-muted);
  display: block;
}

.hero-headline .hl-em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-divider {
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin-bottom: 2.25rem;
}

.hero-sub {
  font-family: var(--font-ui);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.65;
  margin-bottom: 3rem;
}

/* ---- Buttons & Links --------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2.25rem;
  border: 1px solid var(--border-light);
  color: var(--text);
  background: transparent;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--gold {
  border-color: var(--gold-border);
  color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
  margin-top: 2.5rem;
  transition: gap 0.2s ease;
}

.link-more:hover {
  gap: 0.85rem;
}

/* ---- Why Now: Callout Grid --------------------------------- */
.callout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.callout {
  padding: 2.75rem 2.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  position: relative;
  transition: background 0.3s ease;
}

.callout:hover {
  background: var(--bg-card-hover);
}

.callout__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
  user-select: none;
}

.callout__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.callout__body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Two Vectors ------------------------------------------- */
.vectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.vector {
  padding: 3rem 2.75rem;
  background: var(--bg-card);
  border-top: 2px solid var(--border);
  transition: border-color 0.3s ease;
}

.vector:hover {
  border-top-color: var(--gold);
}

.vector__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.vector__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  line-height: 1.4;
}

.feature-list li::before {
  content: '';
  width: 1.25rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* ---- Card Grid (Initiatives) ------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.card {
  background: var(--bg-card);
  padding: 2.75rem 2.5rem;
  border-top: 1px solid var(--border);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-top-color: var(--gold);
}

.card:hover::after {
  width: 100%;
}

.card__num {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 2rem;
}

.card__icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 1.5rem;
  transition: opacity 0.25s;
}

.card:hover .card__icon {
  opacity: 0.9;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.875rem;
  transition: color 0.25s;
}

.card:hover .card__title {
  color: var(--gold-light);
}

.card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 2.25rem;
}

.card__cta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s, gap 0.2s;
}

.card:hover .card__cta {
  opacity: 1;
  gap: 0.75rem;
}

/* ---- Roadmap Timeline -------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 1.15rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--border-light) 60%, transparent 100%);
  opacity: 0.25;
  pointer-events: none;
}

.timeline__phase {
  padding: 0 3rem 0 0;
}

.timeline__phase:last-child {
  padding-right: 0;
}

.timeline__dot {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--gold);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  position: relative;
  z-index: 2;
  margin-bottom: 1.75rem;
}

.timeline__phase-tag {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.timeline__phase-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.timeline__phase-time {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 1.25rem;
}

.timeline__items {
  list-style: none;
}

.timeline__items li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
}

.timeline__items li::before {
  content: '·';
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ---- Metrics ----------------------------------------------- */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.metric {
  padding: 3rem 2.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
}

.metric__prefix {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--gold);
  vertical-align: super;
}

.metric__value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}

.metric__suffix {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--gold);
}

.metric__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 1rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.metrics-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ---- CTA Section ------------------------------------------- */
.cta-section {
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.cta-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Detail Page ------------------------------------------- */
.page-wrapper {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  padding-top: 7rem;
  padding-bottom: 8rem;
}

.page-header {
  padding-bottom: 4rem;
  margin-bottom: 5rem;
  border-bottom: 1px solid var(--border);
  max-width: 65ch;
}

.page-number {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 1.75rem;
  display: block;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 55ch;
}

/* ---- Detail Blocks ----------------------------------------- */
.detail-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.detail-block:first-child {
  border-top: none;
  padding-top: 0;
}

.detail-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.15;
  padding-top: 0.2rem;
}

.detail-body > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 62ch;
}

.detail-body > p:last-child { margin-bottom: 0; }

.detail-body > p strong {
  color: var(--text);
  font-weight: 500;
}

/* ---- Step List --------------------------------------------- */
.step-list {
  list-style: none;
  counter-reset: steps;
  margin-top: 0.5rem;
}

.step-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.step-list li:last-child { border-bottom: none; }

.step-list li::before {
  content: counter(steps, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1.2;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.step__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- KPI List ---------------------------------------------- */
.kpi-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kpi-list li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.1rem 1.5rem;
  background: var(--bg-card);
  border-left: 2px solid var(--gold);
}

.kpi__value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 300;
  color: var(--gold-light);
  white-space: nowrap;
  line-height: 1;
}

.kpi__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- Highlight Box ----------------------------------------- */
.highlight-box {
  padding: 1.75rem 2.25rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  margin: 1.5rem 0;
}

.highlight-box p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}

/* ---- Section Rule ------------------------------------------ */
hr.section-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ---- Scroll Reveal ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* Always visible on detail pages (no scroll reveal needed) */
.page-wrapper .reveal {
  opacity: 1;
  transform: none;
}

/* ---- Responsive -------------------------------------------- */
@media (max-width: 1024px) {
  .callout-grid  { grid-template-columns: 1fr; gap: 2px; }
  .card-grid     { grid-template-columns: repeat(2, 1fr); }
  .metrics-row   { grid-template-columns: repeat(2, 1fr); }
  .detail-block  { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 768px) {
  .vectors   { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .timeline  { grid-template-columns: 1fr; gap: 3rem; }
  .timeline::before { display: none; }
  .nav__links { display: none; }
}

@media (max-width: 560px) {
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .hero-headline { font-size: clamp(3rem, 13vw, 5rem); }
}

@media (max-width: 380px) {
  .metrics-row { grid-template-columns: 1fr; }
}
