/* ============================================================
   Datastream Networks — design tokens
   Palette:  #0B0F1A ink (bg) · #121829 panel · #1B2338 panel-raised
             #E8ECF6 text · #8792A8 muted
             #4C8DFF stream-blue (primary) · #34D0A6 signal-teal (secondary)
             #F2A83B amber (CTA / highlight)
   Type:     "Space Grotesk" for display/headings, "Inter" for body
   Layout:   left-aligned content, 1120px max width, generous 96px
             section rhythm, thin 1px hairlines instead of shadows
   ============================================================ */

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

:root {
  --bg: #0B0F1A;
  --panel: #121829;
  --panel-raised: #1B2338;
  --line: #262F47;
  --text: #E8ECF6;
  --muted: #8792A8;
  --blue: #4C8DFF;
  --teal: #34D0A6;
  --amber: #F2A83B;
  --danger: #FF6B6B;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; color: var(--muted); max-width: 62ch; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

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

/* ---------- Nav ---------- */
.nav {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,26,.9);
  backdrop-filter: blur(8px);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #06101F; }
.btn-primary:hover { background: #6ba0ff; }
.btn-amber { background: var(--amber); color: #241300; }
.btn-amber:hover { background: #ffbd5c; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #2a0000; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--teal); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.hero .lede { font-size: 17px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; }
.stream-art { position: relative; height: 320px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, var(--panel), var(--panel-raised)); overflow: hidden; }
.stream-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; }

/* ---------- Category tabs / service cards ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; background: transparent; }
.tab.active, .tab:hover { border-color: var(--blue); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 17px; margin: 0; }
.card .desc { font-size: 14px; margin: 0; }
.card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; color: var(--teal); }
.unit { font-size: 12.5px; color: var(--muted); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge-blue { background: rgba(76,141,255,.15); color: var(--blue); }
.badge-teal { background: rgba(52,208,166,.15); color: var(--teal); }
.badge-amber { background: rgba(242,168,59,.15); color: var(--amber); }
.badge-red { background: rgba(255,107,107,.15); color: var(--danger); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { font-family: 'Space Grotesk', sans-serif; color: var(--blue); font-size: 13px; font-weight: 700; margin-bottom: 10px; }

/* ---------- Auth forms ---------- */
.auth-shell { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 36px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; background: var(--panel-raised); border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); font-family: inherit; font-size: 14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.auth-foot a { color: var(--blue); font-weight: 600; }

/* ---------- Dashboard ---------- */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 68px); }
.sidebar { border-right: 1px solid var(--line); padding: 24px 16px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 14.5px; font-weight: 500; margin-bottom: 4px; }
.sidebar a:hover { background: var(--panel); color: var(--text); }
.sidebar a.active { background: var(--panel); color: var(--blue); }
.main { padding: 32px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-head h1 { font-size: 24px; margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat .label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stat .value { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }
.table-wrap table { margin: 0; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: none; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.method-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.method-chip { border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; cursor: pointer; font-size: 14px; font-weight: 500; }
.method-chip.active { border-color: var(--blue); color: var(--blue); }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; border: 1px solid transparent; }
.alert-success { background: rgba(52,208,166,.1); border-color: rgba(52,208,166,.3); color: var(--teal); }
.alert-error { background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.3); color: var(--danger); }
.alert-info { background: rgba(76,141,255,.1); border-color: rgba(76,141,255,.3); color: var(--blue); }

/* ---------- Footer ---------- */
footer { padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.footer-grid a { display: block; font-size: 14px; color: var(--text); margin-bottom: 10px; }
.footer-grid a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stream-art { height: 220px; }
  .steps { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 12px; gap: 4px; }
  .sidebar a { white-space: nowrap; margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
