/* Binnacrest AI — base styles
   Modern minimalism, calm digital palette */

:root {
  --ink: #16202e;
  --slate: #2b3b4e;
  --text: #435366;
  --muted: #6b7a8c;
  --accent: #2c6e8f;
  --accent-dark: #1f5069;
  --accent-soft: #e7f0f4;
  --bg: #ffffff;
  --panel: #f4f7fa;
  --panel-2: #eef2f6;
  --line: #e1e8ef;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(22, 32, 46, 0.07);
  --shadow-sm: 0 4px 14px rgba(22, 32, 46, 0.06);
  --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(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--slate);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

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

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.lead { font-size: 1.16rem; color: var(--slate); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--panel); color: var(--accent-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 9px 14px;
  border-radius: 8px;
}
.main-nav a:hover { background: var(--panel); color: var(--accent-dark); }
.main-nav a.active { color: var(--accent-dark); background: var(--accent-soft); }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(1100px 400px at 85% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, #fbfcfe, #ffffff);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: var(--ink); }
.hero p { max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-media .float-tile {
  position: absolute;
  left: -18px;
  bottom: -18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  max-width: 230px;
}
.hero-media .float-tile strong { color: var(--slate); display: block; font-size: 0.95rem; }
.hero-media .float-tile span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 52px 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 2rem; font-weight: 700; color: var(--accent-dark); letter-spacing: -0.02em; }
.stat .label { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }

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

.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.tile .icon svg { width: 22px; height: 22px; }
.tile h3 { margin-bottom: 8px; }
.tile p { margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Split / asymmetric ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--slate);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.85);
}

/* ---------- Media band ---------- */
.media-band img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.step .n {
  counter-increment: step;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
}
.step .n::before { content: counter(step); }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--ink), #22374d);
  border-radius: var(--radius);
  padding: 48px;
  color: #dfe7ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; color: #bfcedd; }
.cta .btn-primary { background: var(--accent); }
.cta .btn-primary:hover { background: #fff; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
}
.info-list { list-style: none; padding: 0; margin: 24px 0 0; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .k { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; min-width: 92px; }
.info-list .v { color: var(--slate); font-weight: 500; }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; color: var(--slate); font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.97rem;
  color: var(--slate);
  background: #fcfdfe;
  transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 4px 0 0; }

/* ---------- Prose (legal/detail pages) ---------- */
.page-hero {
  padding: 58px 0 40px;
  background: linear-gradient(180deg, #fbfcfe, #ffffff);
  border-bottom: 1px solid var(--line);
}
.prose { max-width: 780px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 26px; color: var(--slate); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }

.definition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.def {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.def dt { font-weight: 700; color: var(--slate); margin-bottom: 4px; }
.def dd { margin: 0; color: var(--text); font-size: 0.96rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #aebccd;
  padding: 56px 0 28px;
  margin-top: 8px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.site-footer h4 { color: #fff; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #aebccd; display: block; padding: 4px 0; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; font-weight: 700; }
.footer-brand .brand-mark { background: var(--accent); }
.footer-about { font-size: 0.95rem; color: #93a3b6; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #8494a7;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media img { height: 320px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .definition-grid { grid-template-columns: 1fr; }

  .nav-toggle-label {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0 11px;
  }
  .nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--slate);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 16px 18px;
    display: none;
  }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 54px 0 44px; }
  .grid-3, .grid-2, .steps, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 32px; }
  .hero-media .float-tile { position: static; margin-top: 16px; max-width: none; }
}
