/* Taggart Terminal — shared stylesheet */

:root {
  --navy:      #0b1f3a;
  --navy-700:  #12315a;
  --navy-600:  #1a4272;
  --accent:    #1f8fb8;
  --accent-600:#166f90;
  --teal:      #14b8a6;
  --ink:       #14202e;
  --body:      #33475b;
  --muted:     #647486;
  --line:      #e2e8f0;
  --line-soft: #eef2f7;
  --bg:        #ffffff;
  --bg-soft:   #f5f8fc;
  --bg-navy:   #0b1f3a;
  --white:     #ffffff;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(11,31,58,.06), 0 8px 24px rgba(11,31,58,.06);
  --shadow-lg: 0 12px 40px rgba(11,31,58,.12);
  --maxw:      1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 .8rem; }
.lead { font-size: 1.16rem; color: var(--body); max-width: 52ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: 999px; font-weight: 650; font-size: .96rem;
  cursor: pointer; border: 1px solid transparent; transition: all .15s ease; text-decoration: none;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); text-decoration: none; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-600); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); text-decoration: none; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef4fa; text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); font-size: 1.12rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .95rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--body); font-weight: 550; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---- Hero ---- */
.hero { padding: 92px 0 76px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(31,143,184,.10), transparent 60%),
    radial-gradient(50% 50% at 8% 92%, rgba(20,184,166,.07), transparent 60%);
}
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.1rem; font-size: 1.25rem; max-width: 56ch; }
.hero-actions { margin-top: 2rem; display: flex; gap: 14px; flex-wrap: wrap; }
.trustbar { margin-top: 3rem; display: flex; gap: 10px 30px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trustbar span { display: inline-flex; align-items: center; gap: .5rem; }
.trustbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ---- Grid / cards ---- */
.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: 30px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(31,143,184,.14), rgba(20,184,166,.14));
  color: var(--accent-600); display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--body); font-size: .98rem; }

.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---- Split feature ---- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.checklist .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: rgba(20,184,166,.15); color: var(--accent-600);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800;
}
.panel {
  background: var(--bg-navy); color: #cdd9e6; border-radius: 16px; padding: 34px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.panel h3 { color: #fff; }
.panel .src { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: .95rem; }
.panel .src:last-child { border-bottom: 0; }
.panel .src b { color: #fff; font-weight: 650; }
.panel .badge { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); font-weight: 700; }

/* ---- CTA band ---- */
.cta-band { background: var(--navy); color: #fff; border-radius: 18px; padding: 56px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c7d8; max-width: 48ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---- Values / about ---- */
.value { padding: 26px 0; border-top: 1px solid var(--line); }
.value:first-child { border-top: 0; }
.value h3 { margin-bottom: .35rem; }
.value p { margin: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #a9b8c9; padding: 60px 0 34px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: #a9b8c9; font-size: .95rem; display: block; margin-bottom: .6rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { color: #8b9db1; font-size: .92rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #7c8da0;
}
.footer-bottom .disclaimer { max-width: 62ch; }

/* ---- Legal / prose pages ---- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin-top: 2.4rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.doc-meta { color: var(--muted); font-size: .92rem; margin-bottom: 2rem; }
.callout {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: .92rem; color: #7c2d12; margin: 1.5rem 0;
}

/* ---- Auth / login ---- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background: radial-gradient(70% 60% at 50% 0%, rgba(31,143,184,.10), transparent 60%), var(--bg-soft); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 38px 34px; box-shadow: var(--shadow-lg); }
.auth-card .brand { justify-content: center; margin-bottom: 6px; }
.auth-card h1 { font-size: 1.4rem; text-align: center; margin-bottom: .3rem; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .93rem; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .98rem; font-family: var(--font); transition: border .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,143,184,.15); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; margin: 4px 0 18px; }
.auth-foot { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 22px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px; background: #fff;
    border-bottom: 1px solid var(--line); padding: 16px 24px; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 52px; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
