/* ============================================================
   OWLNOX — Main Stylesheet
   ============================================================ */

/* ── Color Tokens ─────────────────────────────────────────── */
:root {
  /* Brand accents */
  --cyan: #6fe3ff;
  --cyan-dim: #3a9fc0;
  --blue: #3d6bff;

  /* Backgrounds */
  --bg: #04070b;
  --bg-header: rgba(4, 7, 11, 0.82);
  --panel: rgba(255, 255, 255, 0.045);
  --panel-hover: rgba(255, 255, 255, 0.075);

  /* Borders */
  --panel-border: rgba(111, 227, 255, 0.16);
  --border-subtle: rgba(111, 227, 255, 0.08);

  /* Text */
  --heading-color: #eaf6ff;
  --text: #eaf6ff;
  --text-dim: #93aebd;
  --text-muted: #546a78;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'Inter', system-ui, Arial, sans-serif;
  line-height: 1.6;
}
main { display: block; }
.mono { font-family: 'Consolas', 'Courier New', monospace; }
a { color: var(--cyan); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ── Accessibility ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 8px 16px;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 700;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

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

/* ── Background Decoration ────────────────────────────────── */
#bgGrid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.45;
  background-image:
    linear-gradient(rgba(111, 227, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 227, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}
#bgVignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(61, 107, 255, 0.12), transparent 55%);
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: var(--bg-header);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand svg { width: 26px; height: 26px; }
.brand span { font-size: 15px; letter-spacing: 3px; color: var(--cyan); font-weight: 700; }

/* ── Navigation — mobile-first ────────────────────────────── */
nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 16px;
  background: var(--bg-header);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
  gap: 4px;
}
nav.is-open { display: flex; }
nav a {
  color: var(--text-dim); text-decoration: none;
  font-size: 15px; margin-left: 0; padding: 12px 16px; border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
nav a:hover,
nav a:focus-visible { color: var(--cyan); }
nav a:not(.cta-btn):hover { background: var(--panel); }
nav a[aria-current='page'] {
  color: var(--cyan);
  background: var(--panel);
}
nav .cta-btn { margin: 4px 0; text-align: center; }
nav .cta-btn[aria-current='page'] {
  background: rgba(111, 227, 255, 0.12);
  box-shadow: 0 0 18px rgba(111, 227, 255, 0.3);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-dim);
  border-radius: 6px;
  line-height: 0;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover { color: var(--cyan); background: var(--panel); }

/* ── Buttons ──────────────────────────────────────────────── */
.cta-btn {
  display: inline-block;
  border: 1px solid rgba(111, 227, 255, 0.5);
  color: var(--cyan);
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.cta-btn:hover {
  background: rgba(111, 227, 255, 0.12);
  box-shadow: 0 0 18px rgba(111, 227, 255, 0.3);
}
.cta-btn:active { transform: translateY(1px); }
.cta-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.cta-primary {
  display: inline-block;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  color: var(--bg);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 22px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 24px rgba(111, 227, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(111, 227, 255, 0.45);
}
.cta-primary:active { transform: translateY(0); box-shadow: 0 0 12px rgba(111, 227, 255, 0.25); }
.cta-primary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* ── Typography ───────────────────────────────────────────── */
section { padding: 90px 0; }
.eyebrow {
  font-size: 12px; letter-spacing: 4px; color: var(--cyan-dim);
  text-transform: uppercase; margin-bottom: 14px;
}
h1 {
  font-size: 36px; font-weight: 700; margin: 0 0 20px;
  color: var(--heading-color); letter-spacing: 0.5px; line-height: 1.15;
}
h1 span { color: var(--cyan); }
h2 {
  font-size: 32px; font-weight: 600; margin: 0 0 18px;
  color: var(--heading-color); line-height: 1.2;
}
h2 span { color: var(--cyan); }
p.lead { font-size: 17px; color: var(--text-dim); max-width: 640px; margin: 0 0 32px; }

/* ── Hero ─────────────────────────────────────────────────── */
#hero { padding-top: 110px; text-align: center; }
#hero .wrap { display: flex; flex-direction: column; align-items: center; }
#hero p.lead { margin-left: auto; margin-right: auto; font-size: 19px; }
#hero .owl {
  width: 96px; height: 96px; margin-bottom: 26px;
  filter: drop-shadow(0 0 22px rgba(111, 227, 255, 0.45));
}
.hero-ctas { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }

/* ── Cards ────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 26px 24px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  background: var(--panel-hover);
  transform: translateY(-3px);
  border-color: rgba(111, 227, 255, 0.28);
}
.card h3 { font-size: 16px; color: var(--cyan); margin: 0 0 10px; }
.card p { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ── Process Flow ─────────────────────────────────────────── */
.flow {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-top: 36px;
}
.flow-box {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 8px;
  padding: 10px 16px; font-size: 12.5px; color: var(--text); text-align: center;
}
.flow-arrow { color: var(--cyan-dim); font-size: 16px; }

/* ── Tech Chips ───────────────────────────────────────────── */
.tech-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12.5px;
  font-family: monospace;
  border: 1px solid var(--panel-border);
  color: var(--text-dim);
  margin: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tech-chip:hover { border-color: rgba(111, 227, 255, 0.35); color: var(--text); }

/* ── CTA Section ──────────────────────────────────────────── */
#cta { text-align: center; }
#cta .card { max-width: 640px; margin: 0 auto; padding: 44px 40px; }
#cta p.lead { margin-left: auto; margin-right: auto; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 60px 0 32px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p {
  font-size: 13px; color: var(--text-dim);
  max-width: 320px; margin: 0; line-height: 1.6;
}
.footer-col h4 {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 16px; font-weight: 600;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col ul li a {
  color: var(--text-dim); text-decoration: none; font-size: 13px;
  transition: color 0.2s ease;
}
.footer-col ul li a:hover,
.footer-col ul li a:focus-visible { color: var(--cyan); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px; font-size: 12.5px;
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--cyan); }

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

  html { scroll-behavior: auto; }
}

/* ── 480px: Large Mobile ──────────────────────────────────── */
@media (min-width: 480px) {
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  #hero { padding-top: 120px; }
}

/* ── 768px: Tablet ────────────────────────────────────────── */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }

  .nav-toggle { display: none; }
  nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border: none;
    gap: 4px;
  }
  nav a { margin-left: 16px; padding: 6px 10px; border-radius: 999px; font-size: 13px; }
  nav a:not(.cta-btn):hover,
  nav a[aria-current='page'] { background: rgba(111, 227, 255, 0.08); }
  nav .cta-btn { margin: 0 0 0 8px; text-align: left; }
}

/* ── 1024px: Desktop ──────────────────────────────────────── */
@media (min-width: 1024px) {
  h1 { font-size: 52px; }
  h2 { font-size: 42px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  nav a { font-size: 14px; margin-left: 18px; }
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; }
}
