/*
 * Author:  Daryl Jones <daryl@tcomeng.com>  |  Copyright: (c) Daryl D. Jones, Inc. 2026
 * TrakORC marketing site — self-contained styles (no external fonts/CDNs).
 * Design tokens mirror the app's theme.css so the site and product read as one brand.
 */

:root {
  --bg-canvas: #0f1115;
  --bg-surface: #161a21;
  --bg-surface-raised: #1e232c;
  --bg-hover: #262c37;
  --border-subtle: #2a2f3a;
  --border-strong: #3a4150;
  --text-primary: #e6e8eb;
  --text-secondary: #9aa3af;
  --text-disabled: #5b6472;
  --accent: #6366f1;
  --accent-hover: #7c7ff2;
  --accent-muted: #6366f11a;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--border-strong); color: var(--text-primary); background: transparent; }
.btn--ghost:hover { background: var(--bg-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.brand img { height: 34px; width: auto; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-secondary); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text-primary); text-decoration: none; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 520px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(99, 102, 241, 0.18), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12.5px; font-weight: 600; color: var(--accent-hover);
  background: var(--accent-muted); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-subtle);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.1; margin: 22px 0 18px;
  font-weight: 700; letter-spacing: -0.02em; max-width: 18ch;
}
.hero .lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-secondary); max-width: 60ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin: 18px 0 0; color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.hero-note::first-letter { color: var(--success); }

/* Browser-framed product screenshot */
.showcase { margin-top: 56px; }
.browser {
  border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden;
  background: var(--bg-surface); box-shadow: var(--shadow-lg);
}
.browser__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--bg-surface-raised); border-bottom: 1px solid var(--border-subtle);
}
.browser__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.browser__addr {
  margin-left: 12px; font: 12px/1 var(--font-mono); color: var(--text-secondary);
  background: var(--bg-canvas); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-subtle);
}
.browser img { display: block; width: 100%; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-secondary); font-size: 18px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 26px;
}
.card .ico {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-muted); border: 1px solid var(--border-subtle);
  color: var(--accent-hover); margin-bottom: 16px;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* Jurisdictions strip */
.jur { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.jur span {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  color: var(--text-primary); font-weight: 600; font-size: 14px; background: var(--bg-surface);
}

/* Split (about / positioning) */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.panel {
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-canvas));
  border: 1px solid var(--border-subtle); border-radius: 12px; padding: 28px;
}
.panel .note {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 16px; color: var(--text-secondary);
  font-size: 15px;
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq article {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 20px 24px;
}
.faq h3 { margin: 0 0 6px; font-size: 17px; }
.faq p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .inner {
  background: radial-gradient(80% 120% at 50% 0%, rgba(99,102,241,0.18), transparent 70%), var(--bg-surface);
  border: 1px solid var(--border-strong); border-radius: 16px; padding: 56px 28px;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; }
.cta-band p { color: var(--text-secondary); max-width: 54ch; margin: 0 auto 26px; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle); padding: 40px 0; color: var(--text-secondary);
  font-size: 14px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--text-secondary); }
.disclaimer { max-width: 60ch; color: var(--text-disabled); font-size: 13px; margin-top: 10px; }
