/* =============================================================
   OSCA — Shared stylesheet
   Version: 0.1.0-research-draft
   ============================================================= */

:root {
  --bg: #0d1117;
  --card: #161b22;
  --border: #30363d;
  --border2: #21262d;
  --white: #e6edf3;
  --muted: #8b949e;
  --blue: #58a6ff;
  --blue2: #79c0ff;
  --violet: #bc8cff;
  --violet2: #d2a8ff;
  --teal: #2ecc71;
  --teal2: #56d364;
  --amber: #d29922;
  --red: #f85149;
  --steel: #1f2937;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.95);
  border-bottom: 1px solid var(--border2);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--violet2);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--violet2); }

.nav-cta {
  background: var(--violet);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.nav-cta:hover { background: var(--violet2); text-decoration: none; }

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(188, 140, 255, 0.1);
  border: 1px solid rgba(188, 140, 255, 0.3);
  color: var(--violet2);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-badge span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--violet2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.c-b { color: var(--violet2); }
.c-t { color: var(--blue2); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-quote {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  border-left: 3px solid var(--violet2);
  padding: 0.5rem 1rem;
  margin: 2rem auto;
  max-width: 600px;
  text-align: left;
  background: rgba(188, 140, 255, 0.05);
  border-radius: 0 8px 8px 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-primary {
  background: var(--violet);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-primary:hover { background: var(--violet2); text-decoration: none; }

.btn-ghost {
  color: var(--white);
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.btn-ghost:hover { border-color: var(--violet2); text-decoration: none; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
}

.stat-n {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--violet2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-l {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--violet2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 800px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Status box */
.status-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border2);
  font-size: 0.85rem;
}

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

.status-key { color: var(--muted); }

.badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-ok { background: rgba(86, 211, 100, 0.15); color: var(--teal2); }
.badge-warn { background: rgba(210, 153, 34, 0.15); color: var(--amber); }
.badge-fail { background: rgba(248, 81, 73, 0.15); color: var(--red); }

/* Footer */
footer {
  border-top: 1px solid var(--border2);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  background: rgba(0, 0, 0, 0.2);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.footer-brand .logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--violet2);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--white);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border2);
  color: var(--muted);
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.flinks { display: flex; gap: 1rem; }

/* Tables */
.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data th {
  background: var(--steel);
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  border: 1px solid rgba(88, 166, 255, 0.2);
}

.data td {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border2);
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.data td:first-child {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
}

/* Code */
code {
  font-family: 'DM Mono', monospace;
  font-size: 0.82em;
  background: rgba(88, 166, 255, 0.1);
  padding: 0.12em 0.4em;
  border-radius: 3px;
  color: var(--blue2);
}

pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--white);
}

pre code {
  background: transparent;
  padding: 0;
  color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 2rem 1rem 1.5rem; }
  .section { padding: 2rem 1rem; }
}
