/* ============================================================
   Seraphim Labs — styles.css
   Dark / technical aesthetic. Mobile-first.
   ============================================================ */

/* --- Design tokens --- */
:root {
  --bg:            #0a0a0a;
  --surface:       #141414;
  --surface-alt:   #0f0f0f;
  --border:        #262626;
  --text:          #f5f5f5;
  --text-muted:    #a3a3a3;
  --accent:        #c9a14a;
  --accent-hover:  #e0b85d;

  --maxw:          1100px;
  --maxw-narrow:   720px;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-8:  3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  --radius:    4px;
  --radius-lg: 8px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0 0 var(--space-4); }
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover, a:focus { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.4em;
  border-radius: var(--radius);
  color: var(--text);
  word-break: break-all;
}

/* --- Layout primitives --- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container.narrow { max-width: var(--maxw-narrow); }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  gap: var(--space-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
}
.brand-name {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.primary-nav {
  display: flex;
  gap: var(--space-5);
}
.primary-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--text); }

/* --- Hero --- */
.hero {
  padding: var(--space-12) 0 var(--space-10);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-mark {
  width: 160px;
  height: 160px;
  margin-bottom: var(--space-6);
}
.hero-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.hero-sub {
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 1.05rem;
  margin-bottom: var(--space-8);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-hover);
  color: #0a0a0a;
}
.btn-secondary {
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover, .btn-secondary:focus {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Sections --- */
.section { padding: var(--space-12) 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--border); }
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-6);
  letter-spacing: -0.005em;
}

/* --- Cards (What we do) --- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text);
}
.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: var(--space-4);
  border: 1px solid var(--border);
}
.tag-live { color: var(--accent); border-color: var(--accent); }
.tag-dev { color: var(--text-muted); }
.tag-research { color: var(--text-muted); }

/* --- Product spotlight --- */
.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}
.product-mark { width: 96px; height: 96px; }
.product-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: calc(-1 * var(--space-3));
}
.product-address {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-2);
}
.product-links span { color: var(--border); }

/* --- Disclosure (Provider details) --- */
.disclosure-intro { color: var(--text-muted); margin-top: calc(-1 * var(--space-3)); }
.disclosure {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-6) 0 var(--space-5);
}
.disclosure dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.disclosure dd { margin: 0; }
.disclosure dd code { word-break: break-all; }
.disclosure-nodes {
  display: grid;
  gap: var(--space-2);
}
.disclosure-nodes code { width: fit-content; max-width: 100%; }
.disclosure-metrics { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: var(--space-10) 0 var(--space-8);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.footer-title {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.footer-contact p { margin-bottom: var(--space-2); color: var(--text-muted); }
.footer-contact a { color: var(--text); }
.footer-contact a:hover { color: var(--accent); }
.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-legal p { margin: 0; }

/* --- Responsive: tablet & up --- */
@media (min-width: 768px) {
  .hero { padding: var(--space-12) 0; }
  .hero-mark { width: 200px; height: 200px; }
  .hero-title { font-size: 2.75rem; }
  .hero-sub { font-size: 1.15rem; }

  .section-title { font-size: 1.85rem; }

  .cards { grid-template-columns: repeat(3, 1fr); }

  .product {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: var(--space-8);
  }
  .product-mark { width: 128px; height: 128px; flex-shrink: 0; }
  .product-links { justify-content: flex-start; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
