/* 483 Systems — landing page. Brand navy from the logo; restrained technical style. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #051E48;        /* logo background */
  --navy-2: #0A2A5C;
  --grid: rgba(120, 160, 255, .08);
  --accent: #5B8CFF;      /* on dark */
  --accent-ink: #1A4FA0;  /* on light */
  --ink: #1C2128;
  --muted: #57606A;
  --line: #D0D7DE;
  --bg-alt: #F4F6F9;
  --on-dark: #FFFFFF;
  --on-dark-2: #C3D0EA;
  --radius: 6px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; margin-bottom: 1.6rem; max-width: 22ch; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 600; font-size: .96rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #4677F0; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

/* header */
.top { background: var(--navy); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top__row { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--on-dark-2); text-decoration: none; font-size: .92rem; }
.nav a:hover { color: #fff; }

/* hero */
.hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--on-dark);
  padding: 96px 0 104px;
}
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.eyebrow, .kicker, .stack__title, .steps__n, .stack__list span {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "DejaVu Sans Mono", monospace;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow { color: var(--accent); margin-bottom: 20px; }
.hero h1 { max-width: 18ch; }
.lead { font-size: 1.12rem; color: var(--on-dark-2); margin-top: 22px; max-width: 58ch; }
.lead--dark { color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.stack {
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius);
  background: rgba(5, 30, 72, .6); padding: 26px 26px 22px;
}
.stack__title { color: var(--on-dark-2); margin-bottom: 14px; }
.stack__list { list-style: none; margin: 0; padding: 0; }
.stack__list li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-weight: 500;
}
.stack__list span { color: var(--accent); }
.stack__result {
  margin-top: 6px; padding-top: 16px; border-top: 2px solid var(--accent);
  font-weight: 600; color: #fff;
}
.stack__result span { color: var(--accent); margin-right: 6px; }

/* sections */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { color: var(--accent-ink); margin-bottom: 12px; }
.kicker--light { color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; background: #fff; }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.icon { width: 44px; height: 44px; fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.integrate { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 70ch; color: var(--muted); }
.integrate strong { color: var(--ink); font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 0 24px 0 0; border-top: 2px solid var(--navy); padding-top: 20px; margin-right: 20px; }
.steps__n { color: var(--accent-ink); display: block; margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .96rem; }
.note { margin-top: 40px; color: var(--muted); }

.why { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; }
.why__list { list-style: none; margin: 0; padding: 0; }
.why__list li { padding: 18px 0; border-top: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list h3 { margin-bottom: 6px; }
.why__list p { color: var(--muted); font-size: .98rem; }

/* contact */
.contact { background: var(--navy); color: #fff; padding: 96px 0; }
.contact__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.mail { display: inline-block; margin-top: 30px; color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }
.mail:hover { color: var(--on-dark-2); }
.portal-card { border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 30px; }
.portal-card p { color: var(--on-dark-2); margin: 10px 0 24px; }

/* footer */
.foot { background: #03142F; color: var(--on-dark-2); font-size: .88rem; }
.foot__row { display: flex; align-items: center; gap: 28px; min-height: 80px; flex-wrap: wrap; }
.foot img { height: 28px; width: auto; }
.foot p:last-child { margin-left: auto; }
.foot a { color: var(--on-dark-2); }
.foot a:hover { color: #fff; }

/* simple page (portal, 404) */
.simple { min-height: calc(100vh - 148px); display: flex; align-items: center; }
.simple .wrap { max-width: 720px; }
.simple .lead { color: var(--muted); }
.simple .cta .btn--ghost { color: var(--navy); border-color: var(--line); }

/* responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .top__row { justify-content: space-between; }
  .hero { padding: 64px 0 72px; }
  .hero__grid, .why, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .section, .contact { padding: 64px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .steps li { margin-right: 0; }
  .cta .btn { flex: 1 1 100%; }
  .foot p:last-child { margin-left: 0; }
}
