/* ============================================================
   Stratus Networks — site stylesheet
   Design language: credible enterprise infrastructure.
   Palette: slate + indigo, teal used sparingly. Mono for data.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Ink + neutrals */
  --ink:        #0f172a;
  --ink-soft:   #475569;
  --muted:      #94a3b8;
  --line:       #e2e8f0;
  --line-soft:  #eef2f7;
  --surface:    #f8fafc;
  --surface-2:  #f1f5f9;
  --bg:         #ffffff;

  /* Brand */
  --brand:      #4338ca;
  --brand-600:  #4f46e5;
  --brand-500:  #6366f1;
  --brand-tint: #eef2ff;
  --accent:     #0d9488;
  --accent-tint:#ccfbf1;

  /* Status */
  --good:       #16a34a;
  --warn:       #d97706;

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* Geometry */
  --radius:   12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow:    0 4px 6px -1px rgba(15,23,42,.07), 0 2px 4px -2px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 25px -5px rgba(15,23,42,.10), 0 8px 10px -6px rgba(15,23,42,.06);
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }

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

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: .85rem;
}
.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .72rem 1.3rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-600); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand));
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.brand .logo-mark svg { width: 18px; height: 18px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .94rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section.tint { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 78% -8%, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(40% 40% at 0% 100%, rgba(13,148,136,.07), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.trust-bar { margin-top: 2.6rem; display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.trust-bar .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* network panel art */
.hero-panel {
  position: relative; aspect-ratio: 1 / 0.86;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--surface));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-panel .panel-bar { height: 38px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #fff; }
.hero-panel .panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.hero-panel svg { width: 100%; height: calc(100% - 38px); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8dee9; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand); margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .95rem; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat .num { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat .num span { color: var(--brand-600); }
.stat .label { font-size: .9rem; color: var(--muted); margin-top: 2px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.feature-list li { display: flex; gap: .7rem; padding: .55rem 0; color: var(--ink-soft); }
.feature-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }

.panel-soft {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--surface)); padding: 28px;
  box-shadow: var(--shadow); font-family: var(--mono); font-size: .82rem; color: var(--ink-soft);
}
.panel-soft .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.panel-soft .row:last-child { border-bottom: 0; }
.panel-soft .ok { color: var(--good); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), #312e81);
  border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 120% at 100% 0%, rgba(255,255,255,.12), transparent 55%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.82); position: relative; max-width: 52ch; margin-inline: auto; }
.cta-band .btn { position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: #f1f5ff; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1120; color: #94a3b8; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .blurb { font-size: .9rem; max-width: 34ch; color: #7e8aa3; }
.footer-col h4 { color: #e2e8f0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: .92rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .82rem; color: #64748b; flex-wrap: wrap; }
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a { color: #64748b; }
.footer-bottom .socials a:hover { color: #cbd5e1; }
.footer-bottom svg { width: 18px; height: 18px; }

/* ---------- Generic page header ---------- */
.page-hero { padding: 72px 0 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero .lead { margin-top: .4rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink-soft); }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { color: var(--ink-soft); padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-tint);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Utility / accessibility ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }
.kbd { font-family: var(--mono); font-size: .82em; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .1em .45em; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px; box-shadow: var(--shadow);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .cta-band, .panel-soft { padding: 32px 22px; }
}

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