/* =========================================================
   Triton.ai — static marketing site
   Palette inspired by the brand mark: deep-sea ink + cyan
   ========================================================= */

:root {
  /* Brand */
  --ink:        #0B1A2B;   /* deep sea navy */
  --ink-2:      #0E2236;   /* slightly lifted */
  --cyan:       #63C7F2;   /* brand accent (from logo) */
  --cyan-deep:  #63C7F2;   /* unified to the exact logo cyan */

  /* Light surfaces */
  --bg:         #FFFFFF;
  --bg-soft:    #F5F8FB;
  --bg-muted:   #EEF3F8;
  --line:       #E2E9F0;

  /* Text */
  --text:       #0B1A2B;
  --text-soft:  #4A5B6E;
  --text-faint: #7C8C9C;
  --on-dark:    #EaF2F9;
  --on-dark-soft:#A9BCD0;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans Condensed", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(11,26,43,.04), 0 12px 30px rgba(11,26,43,.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.btn-primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(99,199,242,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(99,199,242,.45); }

.btn-ghost {
  border-color: rgba(255,255,255,.22);
  color: var(--on-dark);
}
.btn-ghost:hover { border-color: var(--cyan); color: #fff; }

/* On light sections the ghost button needs dark borders */
.section .btn-ghost,
.cta .btn-ghost { /* default cta is dark, overridden below */ }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand-mark { color: var(--cyan); width: 30px; display: inline-flex; }
.brand-mark svg { width: 30px; height: auto; }
.brand-word { line-height: 1; }
.brand-logo { height: 28px; width: auto; }

.site-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--on-dark-soft);
}
.site-nav a { position: relative; padding: 4px 0; transition: color .2s ease; }
.site-nav a:hover { color: #fff; }
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--cyan);
  transition: width .2s ease;
}
.site-nav a:hover::after { width: 100%; }

.header-inner .btn-primary { margin-left: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--ink);
}
.hero-inner {
  position: relative;
  padding-top: 110px;
  padding-bottom: 96px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -.022em;
  margin: 0 0 24px;
  max-width: 22ch;
  color: #fff;
}
.grad {
  color: var(--cyan);
}
.hero-sub {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--on-dark-soft);
  max-width: 760px;
  margin: 0 0 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  margin: 56px 0 0;
  padding-top: 36px;
  border-top: 1px solid rgba(169, 188, 208, .18);
}
.hero-stat { min-width: 0; }
.hero-stat dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
}
.hero-stat dd {
  margin: 10px 0 0;
  max-width: 200px;
  font-size: 14px;
  color: var(--on-dark-soft);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section-dark { background: var(--ink); color: var(--on-dark); }

.kicker,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin: 0 0 16px;
}
.eyebrow { margin: 0 0 22px; }
.kicker-light { color: var(--cyan); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  max-width: 26ch;
}
.section-dark .section-title { color: #fff; }
.section-lead {
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--text-soft);
  max-width: 78ch;
  margin: 0 0 48px;
}
.section-lead-light { color: var(--on-dark-soft); }
.section-lead em { color: var(--cyan); font-style: italic; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 14px 34px rgba(11,26,43,.10); }
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: -.01em;
  color: var(--text);
}
.card p { margin: 0; color: var(--text-soft); font-size: 15.5px; }

.card-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan-deep);
  margin-bottom: 16px;
}
.card-feature { border-top: 3px solid var(--cyan); }

/* ---------- Company ---------- */
.company-intro .section-lead { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  position: relative;
  padding-block: clamp(72px, 10vw, 120px);
  text-align: left;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.cta-sub {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--on-dark-soft);
  max-width: 64ch;
  margin: 0 0 36px;
}
.cta-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.brand-footer { color: #fff; }
.brand-footer .brand-mark { color: var(--cyan); }
.brand-logo-footer { height: 28px; width: auto; }
.footer-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 14.5px;
}
.footer-nav a:hover { color: var(--cyan); }
.footer-meta {
  width: 100%;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-nav { display: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 76px; padding-bottom: 72px; }
  .footer-nav { margin-left: 0; flex-wrap: wrap; }
}

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