/* ============================================================
   GolOps Design System
   Dark, institutional, premium. No decorations. No emojis.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Tokens ---- */
:root {
  --bg-base:       #08090C;
  --bg-surface:    #0E1016;
  --bg-elevated:   #141720;
  --bg-hover:      #1A1E2A;

  --border:        #1E2330;
  --border-light:  #252B3A;

  --gold:          #C4A84F;
  --gold-dim:      #8A7235;
  --gold-subtle:   rgba(196, 168, 79, 0.08);

  --blue:          #2F65E0;
  --blue-dim:      rgba(47, 101, 224, 0.15);

  --text-primary:  #EDF0F5;
  --text-secondary:#8B919E;
  --text-muted:    #50566A;

  --accent-red:    #C44F4F;
  --accent-green:  #4FC478;

  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;

  --font-body:     'Manrope', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --max-w:         1200px;
  --transition:    0.2s ease;
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

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; }

/* ---- Typography ---- */
.display {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.display em {
  font-style: normal;
  color: var(--gold);
}

h1 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; }

.overline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--sm {
  padding: 3.5rem 0;
}

.section--lg {
  padding: 9rem 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav__logo-mark {
  width: 28px;
  height: 28px;
  background: var(--gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bg-base);
  letter-spacing: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}

.nav__link:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav__link.active { color: var(--text-primary); }

.nav__link--phase {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: var(--transition);
}

.nav__mobile-menu {
  display: none;
}

@media (max-width: 1024px) {
  .nav__links { gap: 0; }
  .nav__link { padding: 0.4rem 0.55rem; font-size: 0.78rem; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__mobile-toggle { display: flex; }
  .nav__cta .btn { display: none; }

  .nav__mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(8, 9, 12, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 99;
  }

  .nav__mobile-menu.open { display: flex; }

  .nav__mobile-menu .nav__link {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
  }

  .nav__mobile-menu .btn {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--bg-base);
}
.btn--primary:hover {
  background: #D4B55C;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(196,168,79,0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: var(--bg-elevated);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn--outline-gold:hover {
  background: var(--gold-subtle);
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}

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

.card--gold-top {
  border-top: 2px solid var(--gold);
}

.card--interactive:hover {
  transform: translateY(-2px);
  border-color: var(--gold-dim);
}

.card--dark {
  background: var(--bg-elevated);
}

/* ---- Stat block ---- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat__num {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.stat__num--gold { color: var(--gold); }

.stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ---- Tags / Badges ---- */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  border: 1px solid;
}

.tag--gold { color: var(--gold); border-color: var(--gold-dim); background: var(--gold-subtle); }
.tag--blue { color: #5B8DF0; border-color: rgba(91,141,240,0.3); background: rgba(91,141,240,0.08); }
.tag--neutral { color: var(--text-muted); border-color: var(--border); background: transparent; }
.tag--green { color: var(--accent-green); border-color: rgba(79,196,120,0.3); background: rgba(79,196,120,0.06); }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

.divider--short {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

/* ---- Section header ---- */
.section-header {
  margin-bottom: 4rem;
}

.section-header--center {
  text-align: center;
}

.section-header--center .lead {
  margin: 1rem auto 0;
}

/* ---- Table ---- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-hover); }

/* ---- Form ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold-dim);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-textarea { resize: vertical; min-height: 100px; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 60% 50%, rgba(196,168,79,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(47,101,224,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

/* ---- Ticker / Running line ---- */
.ticker {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  gap: 4rem;
  animation: ticker 30s linear infinite;
}

.ticker__item {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.ticker__item span {
  color: var(--gold);
  margin-right: 0.5rem;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Phase marker ---- */
.phase-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.phase-marker::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--border-light);
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 28ch;
  line-height: 1.6;
}

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__col-links a:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ---- Page header (inner pages) ---- */
.page-hero {
  padding: 9rem 0 5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(196,168,79,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ---- Numbered list ---- */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.numbered-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.numbered-item__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
  min-width: 2rem;
  padding-top: 0.15rem;
}

.numbered-item__content h4 {
  margin-bottom: 0.35rem;
}

.numbered-item__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---- Progress/Timeline ---- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item__dot {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.timeline-item__dot--active {
  border-color: var(--gold);
  background: var(--gold-subtle);
}

.timeline-item__dot--active::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---- Quote / Callout ---- */
.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.callout p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* ---- Metric row ---- */
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.metric-row:last-child { border-bottom: none; }

.metric-row__label { font-size: 0.88rem; color: var(--text-secondary); }
.metric-row__val { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-primary); }

/* ---- Utility ---- */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-xs { margin-top: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.mt-xl { margin-top: 4rem; }

.mb-xs { margin-bottom: 0.5rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.5rem; }
.gap-lg { gap: 2.5rem; }

.w-full { width: 100%; }
.hidden { display: none; }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.35s; opacity: 0; }
.fade-up-4 { animation-delay: 0.5s; opacity: 0; }

/* ---- Highlight bar ---- */
.highlight-bar {
  display: flex;
  align-items: stretch;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.highlight-bar__segment {
  flex: 1;
  padding: 2rem;
  border-right: 1px solid var(--border);
}

.highlight-bar__segment:last-child { border-right: none; }

@media (max-width: 768px) {
  .highlight-bar { flex-direction: column; }
  .highlight-bar__segment { border-right: none; border-bottom: 1px solid var(--border); }
  .highlight-bar__segment:last-child { border-bottom: none; }
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--text-secondary); }
.breadcrumb span { color: var(--text-muted); }
