/* CiteIntel: navy and shield red from the logo, blue action color from the app. */
:root {
  --navy: #16294d;
  --navy-2: #1f3a6b;
  --red: #b02a30;
  --blue: #1a73e8;
  --blue-dark: #155fc0;
  --ink: #18202e;
  --muted: #5b6577;
  --line: #dde2ea;
  --bg: #f5f7fa;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .7em 1.2em;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:focus-visible { outline: 3px solid rgba(26, 115, 232, .45); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-ghost-dark { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost-dark:hover { border-color: var(--muted); }
.btn-sm { padding: .45em .95em; font-size: .9375rem; }
.btn-lg { padding: .85em 1.5em; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- header */

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--blue); }

/* ---------------------------------------------------------------- hero */

.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(176, 42, 48, .35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 96px 0 104px;
}
.hero-inner { max-width: 868px; margin-left: max(0px, calc((100% - 1120px) / 2)); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8125rem;
  font-weight: 700;
  color: #f2b8bb;
  margin: 0 0 16px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.01em; }
.lede { font-size: 1.1875rem; color: rgba(255, 255, 255, .85); max-width: 640px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 20px 0 0; color: rgba(255, 255, 255, .8); }
.hero-note a { color: #fff; }

/* ---------------------------------------------------------------- modules */

.modules { padding: 88px 0; background: var(--bg); }
.modules h2, .platforms h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-lede { color: var(--muted); max-width: 620px; margin: 0 0 40px; font-size: 1.0625rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card h3 { font-size: 1.1875rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- platforms */

.platforms { padding: 80px 0; }
.platforms-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.platforms p { max-width: 620px; margin: 0 0 .5em; }

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9375rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---------------------------------------------------------------- account */

.page-account { background: var(--bg); }
.account-main { padding: 56px 0 72px; }
.loading { color: var(--muted); }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.panel h1 { font-size: 1.75rem; }
.panel h2 { font-size: 1.25rem; margin-bottom: 1em; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.account-head h1 { font-size: 1.75rem; margin-bottom: .2em; }
.account-head p { margin: 0; }
.account-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

form label { display: block; font-weight: 600; font-size: .9375rem; margin: 16px 0 6px; }
form label:first-of-type { margin-top: 0; }
form input, form select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: .65em .8em;
  border: 1px solid #c8cfdb;
  border-radius: 8px;
  background: #fff;
}
form input:focus, form select:focus { outline: 3px solid rgba(26, 115, 232, .3); border-color: var(--blue); }
form input:disabled { background: var(--bg); color: var(--muted); }
form button[type=submit] { margin-top: 20px; }
.hint { font-size: .875rem; color: var(--muted); margin: 6px 0 0; }
.form-error, .form-ok { margin: 16px 0 0; padding: .6em .8em; border-radius: 8px; font-size: .9375rem; }
.form-error { background: #fdecec; color: #8f1d22; }
.form-ok { background: #e8f5ec; color: #1d6b35; }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .platforms-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav a[href="#modules"] { display: none; }
  .brand img { height: 30px; }
  .hero { padding: 64px 0 72px; }
  .panel { padding: 22px; }
}
