/* ML Speculative Systems — dark, technical/quant theme. No external assets. */

:root {
  --bg:        #08090c;
  --bg-soft:   #0d0f14;
  --panel:     #11141b;
  --panel-2:   #0f1218;
  --border:    #1d222c;
  --border-2:  #2a313d;
  --text:      #e7ebf2;
  --text-dim:  #9aa4b2;
  --text-mute: #6b7280;
  --accent:    #4fd1c5; /* restrained teal */
  --accent-dim:#2f8a83;
  --warn-bg:   #100f0a;
  --warn-border:#3a3320;

  --maxw: 1080px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7fe3da; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04201d;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.2px;
}
.wordmark:hover { color: var(--text); }
.wordmark-mark { color: var(--accent); display: inline-flex; }
.wordmark-text { font-size: 15px; }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.3px;
}
.site-nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 15% 0%, rgba(79,209,197,0.10), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.hero-title {
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-weight: 680;
  margin: 0 0 24px;
  max-width: 18ch;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-dim);
  max-width: 62ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: var(--accent);
  color: #04201d;
  border: 1px solid var(--accent);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #6fe0d6; color: #04201d; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--panel); color: var(--text); border-color: var(--accent-dim); }

/* Sections */
.section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.section-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: -0.3px;
  font-weight: 660;
  margin: 0 0 28px;
}
.prose {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-dim);
  max-width: 70ch;
}
.prose p { margin: 0 0 16px; }

/* Focus cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 24px 28px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.card-index {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  opacity: 0.85;
}
.card-title {
  font-size: 18px;
  font-weight: 640;
  margin: 12px 0 10px;
  letter-spacing: -0.2px;
}
.card p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* Notice / disclaimer */
.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left: 3px solid #b8923a;
  border-radius: 10px;
  padding: 26px 28px;
  max-width: 80ch;
}
.notice .section-label { color: #d8b153; }
.notice p { color: var(--text-dim); margin: 0 0 14px; font-size: 15.5px; }
.notice p:last-child { margin-bottom: 0; }

/* Contact */
.contact-email { margin: 18px 0 0; }
.contact-email a {
  font-family: var(--mono);
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: 0.3px;
}

/* Footer */
.site-footer { padding: 44px 0 56px; }
.footer-inner { display: flex; flex-direction: column; gap: 4px; }
.footer-legal { font-weight: 640; color: var(--text); margin: 0; }
.footer-meta { color: var(--text-dim); margin: 0; font-size: 14px; }
.footer-copy { color: var(--text-mute); margin: 10px 0 0; font-size: 13px; font-family: var(--mono); }

/* Focus-visible accessibility */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 48px 0; }
  .site-nav { gap: 18px; }
}
@media (max-width: 460px) {
  .wordmark-text { font-size: 13px; }
  .site-nav a { font-size: 13px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
