/* ============================================================================
   SquidLab base theme in the brand colors of the squid logo: deep navy canvas,
   cyan-blue accent, soft glows.

   This file is the shared foundation (design tokens, page shell, buttons) for
   the only two pages that exist: dashboard.html and legal.html. Everything the
   old marketing pages needed lives nowhere anymore - dashboard.css builds the
   whole application UI on top of the tokens below.
   ============================================================================ */
:root {
  --bg:        #060b10;
  --bg-2:      #0a121a;
  --panel:     #0e1720;
  --panel-2:   #13202b;
  --panel-3:   #192a37;
  --border:    #1c2b3a;
  --border-2:  #2b4256;
  --text:      #eef6fc;
  --muted:     #93aabe;
  --dim:       #5f7891;

  /* brand accent: the squid cyan */
  --accent:    #23aef2;
  --accent-2:  #56c8ff;
  --accent-3:  #a5e3ff;
  --accent-ink:#e3f6ff;
  --accent-glow: rgba(35,174,242,.45);

  /* status (reserved) */
  --green:  #2fd692;
  --amber:  #ffc44d;
  --red:    #ff5d75;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(2,8,14,.55);
  --shadow-glow: 0 0 42px -8px var(--accent-glow);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient brand glows */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 560px at 72% -12%, rgba(35,174,242,.16), transparent 62%),
    radial-gradient(800px 700px at -8% 22%, rgba(30,120,200,.10), transparent 58%),
    radial-gradient(900px 800px at 100% 92%, rgba(35,174,242,.07), transparent 55%);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(140,190,230,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(140,190,230,.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 60% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent-2); }
.muted { color: var(--muted); }

/* ---------- page header (dashboard topbar + legal page) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6,11,16,.72);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20.5px; letter-spacing: -.3px; }
.brand img { width: 38px; height: 38px; display: block; filter: drop-shadow(0 0 12px rgba(35,174,242,0)); transition: filter .3s; }
.brand:hover img { filter: drop-shadow(0 0 12px var(--accent-glow)); }
.brand b { color: var(--accent-2); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, filter .18s ease, background .18s, border-color .18s, box-shadow .25s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, #5ecbff 0%, var(--accent) 55%, #0f86cc 100%);
  color: #04121d; font-weight: 700;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 14px 38px -10px var(--accent-glow); }
.btn-ghost { background: rgba(19,32,43,.5); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: 0 0 22px -6px var(--accent-glow); transform: translateY(-2px); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- generic panel ---------- */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 46px 0; color: var(--dim); margin-top: 40px; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }

/* legal links: deliberately quiet. The law wants them permanently reachable,
   not prominent. */
.footer-legal { font-size: 12.5px; color: var(--dim); display: flex; gap: 14px; align-items: center; }
.footer-legal a { color: var(--dim); text-decoration: none; transition: color .15s; }
.footer-legal a:hover { color: var(--muted); text-decoration: underline; }

/* ---------- legal page ---------- */
.legal { max-width: 780px; padding: 76px 0 20px; }
.legal h1 { font-size: 30px; letter-spacing: -.4px; margin-bottom: 4px; }
.legal h1 + .legal-sub { color: var(--dim); font-size: 13.5px; margin-bottom: 30px; }
.legal h2 { font-size: 16px; color: var(--accent-2); margin: 30px 0 8px; font-weight: 600; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; }
.legal ul { margin: 6px 0 0 20px; }
.legal li { margin-bottom: 5px; }
.legal a { color: var(--accent-2); }
.legal-rule { border: 0; border-top: 1px solid var(--border); margin: 52px 0 44px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
