/* Atrium public website. Same navy and gold as the portal
   (backend/public/atrium-docs.css). Light by default, dark by system
   setting, and the header button overrides either way (data-theme). */
:root {
  --bg: #EEF2F9;
  --bg-grad: linear-gradient(160deg, #E3EAF6 0%, #EEF2F9 42%, #F7F9FC 100%);
  --card: #ffffff; --card-alt: #F6F8FC;
  --text: #0F1A30; --text-2: #44536F; --muted: #5A6884;
  --line: #D3DCEB;
  --accent: #0B2A5B; --gold: #D4AF37; --gold-text: #7A5F0A;
  --navy: #061A40; --navy-2: #0B2A5B;
  --shadow: 0 1px 2px rgba(11,42,91,0.06), 0 10px 28px -14px rgba(11,42,91,0.22);
  --shot-shadow: 0 2px 6px rgba(11,42,91,0.10), 0 30px 60px -30px rgba(11,42,91,0.45);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050D1F;
    --bg-grad: linear-gradient(160deg, #0B2A5B 0%, #071A3A 42%, #040A16 100%);
    --card: #0D1D3D; --card-alt: #0A1731;
    --text: #E9EEF8; --text-2: #9FB0CF; --muted: #7386AD;
    --line: #22376A;
    --accent: #D4AF37; --gold-text: #E2C25E;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -16px rgba(0,0,0,0.5);
    --shot-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #050D1F;
  --bg-grad: linear-gradient(160deg, #0B2A5B 0%, #071A3A 42%, #040A16 100%);
  --card: #0D1D3D; --card-alt: #0A1731;
  --text: #E9EEF8; --text-2: #9FB0CF; --muted: #7386AD;
  --line: #22376A;
  --accent: #D4AF37; --gold-text: #E2C25E;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -16px rgba(0,0,0,0.5);
  --shot-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg) var(--bg-grad) fixed; color: var(--text); line-height: 1.6; min-height: 100vh;
  display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header: navy in both themes, like the portal. */
.top { background: var(--navy); border-bottom: 1px solid rgba(212,175,55,0.38); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: 0.02em; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a { color: #A6B2CE; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.top nav a:hover, .top nav a.active { color: #fff; background: #0F3061; }
.theme-btn { background: none; border: 1px solid rgba(166,178,206,0.35); color: #A6B2CE; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-size: 16px; margin-left: 6px; }
.theme-btn:hover { color: #fff; border-color: var(--gold); }

.beta { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #061A40; background: linear-gradient(120deg, #E2C25E, #D4AF37); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hero.single .wrap { display: block; max-width: 820px; text-align: center; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 12px; }
h3 { font-size: 17px; margin-bottom: 6px; }
.lead { font-size: 18.5px; color: var(--text-2); max-width: 60ch; }
.hero.single .lead { margin: 0 auto; }
.supports { margin-top: 16px; font-size: 15px; color: var(--muted); }
.supports strong { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero.single .cta { justify-content: center; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn:hover { border-color: var(--gold); }
.btn.primary { border: 0; color: #fff; background: linear-gradient(120deg, #061A40 0%, #0B2A5B 55%, #D4AF37 130%); }
:root[data-theme="dark"] .btn.primary { color: #061A40; background: linear-gradient(120deg, #E2C25E, #D4AF37); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #061A40; background: linear-gradient(120deg, #E2C25E, #D4AF37); } }

/* Sections */
section { padding: 48px 0; }
.sub { color: var(--text-2); max-width: 68ch; margin-bottom: 28px; font-size: 16.5px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--text-2); font-size: 15px; }
.grid .card { position: relative; overflow: hidden; padding-top: 26px; }
.grid .card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #0B2A5B, #D4AF37); }
.band { background: var(--navy); color: #fff; border-top: 1px solid rgba(212,175,55,0.38); border-bottom: 1px solid rgba(212,175,55,0.38); }
.band .sub, .band p { color: #A6B2CE; }
.band a.btn { background: linear-gradient(120deg, #E2C25E, #D4AF37); color: #061A40; border: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.ticks li strong { color: var(--text); }
.band .ticks li { color: #A6B2CE; } .band .ticks li strong { color: #fff; }

/* Product screenshots: one per theme, the right one shown. */
.shot { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shot-shadow); overflow: hidden; background: var(--card); }
.shot img { width: 100%; height: auto; }
.shot .d { display: none; }
:root[data-theme="dark"] .shot .l { display: none; } :root[data-theme="dark"] .shot .d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot .l { display: none; }
  :root:not([data-theme="light"]) .shot .d { display: block; }
}
figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* The TV picture on the home page: drawn, not a photo. */
.tv { background: #0a0a0c; border-radius: 14px; padding: 10px 10px 12px; box-shadow: var(--shot-shadow); }
.tv-screen { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; position: relative; color: #fff; padding: 5% 5.5%;
  background: radial-gradient(120% 90% at 85% 0%, rgba(212,175,55,0.30), transparent 55%), linear-gradient(150deg, #0B2A5B 0%, #061A40 55%, #030B1C 100%);
  display: flex; flex-direction: column; container-type: inline-size; }
.tv-top { display: flex; justify-content: space-between; align-items: flex-start; font-size: 2.3cqw; color: #C9D3EA; }
.tv-top b { display: block; font-size: 3.4cqw; color: #fff; letter-spacing: 0.14em; }
.tv-hello { margin-top: auto; }
.tv-hello small { font-size: 2.3cqw; color: #E2C25E; letter-spacing: 0.12em; text-transform: uppercase; }
.tv-hello div { font-size: 5.6cqw; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.tv-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.6cqw; margin-top: 4cqw; }
.tv-tiles span { background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.14); border-radius: 1.4cqw; padding: 2.2cqw 1cqw; text-align: center; font-size: 2.1cqw; font-weight: 600; }
.tv-tiles span:first-child { background: #fff; color: #061A40; border-color: #fff; }
.tv-shot { width: 100%; height: auto; border-radius: 6px; }
.tv-stand { width: 26%; height: 8px; margin: 0 auto; background: #0a0a0c; border-radius: 0 0 8px 8px; }

/* Tables and contact */
.plain { width: 100%; border-collapse: collapse; }
.plain td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.plain td:first-child { font-weight: 700; color: var(--text); width: 34%; padding-right: 16px; }
.note { font-size: 14px; color: var(--muted); }

footer { margin-top: auto; background: var(--navy); color: #A6B2CE; font-size: 14px; padding: 28px 0; border-top: 1px solid rgba(212,175,55,0.38); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
footer a { color: #C9D3EA; text-decoration: none; } footer a:hover { color: #fff; }
footer .right { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap, .split, .shots { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 36px 0; }
  .brand span, .top nav a.login { display: none; }
  .brand img { height: 34px; }
  .top .wrap { padding: 0 12px; }
  .top nav a { padding: 8px 8px; font-size: 13.5px; }
  .theme-btn { margin-left: 2px; }
  footer .right { margin-left: 0; }
}
