/* OnyxOps — production stylesheet. No external assets. */

:root {
  color-scheme: dark;

  --bg: #1e1f22;
  --bg-alt: #232428;
  --surface: #2b2d31;
  --surface-raised: #313338;
  --border: #3f4147;
  --border-soft: #35373c;

  --blue: #00a8ff;
  --blue-dim: #0086cf;
  --blue-glow: rgba(0, 168, 255, 0.18);

  --text: #dbdee1;
  --text-muted: #96989d;
  --text-faint: #6d6f75;

  --ok: #23a55a;
  --warn: #f0b232;
  --err: #f23f42;

  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1120px;

  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --transition: 160ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, #34363c, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

h1, h2, h3 {
  color: var(--blue);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
}

/* ---------- Accessibility basics ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--blue);
  color: #08131a;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition);
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(30, 31, 34, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blue);
  text-decoration: none;
}

.brand-mark {
  color: var(--blue);
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
}

@media (max-width: 620px) {
  .site-nav {
    gap: 1rem;
  }
  .site-nav a {
    font-size: 0.85rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 6vw + 1rem, 7rem) 0 clamp(3rem, 5vw, 5rem);
}

.hero-inner {
  max-width: 760px;
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem);
  color: #f2f3f5;
}

.hero-lede {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: #08131a;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #33bcff;
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--blue);
  background: var(--blue-glow);
}

/* ---------- Sections shared ---------- */

section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.section-lede {
  color: var(--text-muted);
  max-width: 60ch;
  font-size: 1.02rem;
}

/* ---------- Capabilities ---------- */

.capabilities {
  background: var(--bg-alt);
  border-block: 1px solid var(--border-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.card:hover {
  border-color: var(--blue-dim);
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--blue-glow);
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.card h3 {
  color: #f2f3f5;
  margin-bottom: 0.4em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Process ---------- */

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.step {
  position: relative;
  padding-top: 0.25rem;
  border-top: 2px solid var(--border);
}

.step-num {
  display: block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin: 0.9rem 0 0.6rem;
}

.step h3 {
  color: #f2f3f5;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Status ---------- */

.status-section {
  background: var(--bg-alt);
  border-block: 1px solid var(--border-soft);
}

.status-card {
  margin-top: 2rem;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.status-dot[data-state="ok"] {
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
}

.status-dot[data-state="loading"] {
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  animation: pulse 1.4s ease-in-out infinite;
}

.status-dot[data-state="error"] {
  background: var(--err);
  box-shadow: 0 0 12px var(--err);
}

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

.status-text {
  font-weight: 600;
  color: #f2f3f5;
}

.status-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-soft);
}

.status-details div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.status-details dt {
  color: var(--text-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-details dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  word-break: break-word;
}

/* ---------- Closing CTA ---------- */

.cta {
  text-align: center;
}

.cta-inner {
  max-width: 640px;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta-note {
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: center;
}

.footer-sep {
  color: var(--text-faint);
}

/* Static OnyxOps header logo */
.brand-logo {
  display: block;
  width: clamp(8.55rem, 14.4vw, 11.7rem);
  height: auto;
  max-height: 48px;
  object-fit: contain;
}
