/* ==========================================================================
   ACCESA — Design System
   Prototype rebuild demonstrating repositioning recommendations.
   ========================================================================== */

:root {
  /* Navy ramp built from the logo's own background (#030030), so the
     lockup sits on the page with no visible edge. */
  --navy-900: #030030;
  --navy-850: #05023a;
  --navy-800: #070540;
  --navy-700: #0d0a4d;
  --navy-600: #15125c;
  --brand-indigo: #2e3192;   /* the arc of the C in the logo */
  --line-dark: rgba(255, 255, 255, 0.08);

  --paper: #f6f7f9;
  --paper-alt: #ffffff;
  --line-light: #e3e6ec;

  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93b8fb;
  --teal-400: #2dd4bf;
  --amber-400: #f5b544;

  --ink-900: #0f1524;
  --ink-700: #384157;
  --ink-500: #6b7488;

  --snow-100: #ffffff;
  --snow-300: #c9d0de;
  --snow-500: #8f99ad;

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 800;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1em; }
.lede { font-size: 1.12rem; max-width: 62ch; }

.accent { color: var(--blue-400); }

.eyebrow {
  display: inline-block;
  font-size: .715rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-dark .eyebrow {
  color: var(--blue-300);
  background: rgba(59, 130, 246, .14);
  border: 1px solid rgba(59, 130, 246, .25);
}

.section-light .eyebrow {
  color: #2563eb;
  background: rgba(59, 130, 246, .09);
  border: 1px solid rgba(59, 130, 246, .18);
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }

.section-dark {
  background: var(--navy-800);
  color: var(--snow-100);
}
.section-dark p { color: var(--snow-300); }
.section-dark .lede { color: var(--snow-300); }

.section-darker { background: var(--navy-850); color: var(--snow-100); }
.section-darker p, .section-darker .lede { color: var(--snow-300); }

.section-light { background: var(--paper); color: var(--ink-900); }
.section-light p, .section-light .lede { color: var(--ink-700); }

.section-white { background: var(--paper-alt); color: var(--ink-900); }
.section-white p, .section-white .lede { color: var(--ink-700); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .lede { margin-left: auto; margin-right: auto; }
.section-head--left { margin-left: 0; text-align: left; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(3, 0, 48, .84);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand { display: flex; align-items: center; margin-right: auto; }

/* The lockup already contains the wordmark and tagline, so it is the whole
   brand element — width is derived from height to preserve the aspect ratio. */
.brand-logo {
  height: 34px;
  width: auto;
  flex: none;
  transition: opacity .16s;
}
.brand:hover .brand-logo { opacity: .85; }

.brand-logo--footer { height: 40px; }

.nav-links { display: flex; align-items: center; gap: 3px; }

.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--snow-300);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .16s, background .16s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-links a.is-active { color: var(--blue-400); background: rgba(59, 130, 246, .12); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-dark);
  color: var(--snow-300);
  font: inherit; font-size: .78rem; font-weight: 700;
  padding: 7px 13px; border-radius: 100px; cursor: pointer;
  transition: background .16s, color .16s;
}
.lang-toggle:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: #fff; cursor: pointer; padding: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .16s, border-color .16s, box-shadow .16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }

.btn-primary {
  background: var(--blue-500); color: #fff;
  box-shadow: 0 6px 20px -8px rgba(59, 130, 246, .8);
}
.btn-primary:hover { background: #2f76ee; }

.btn-ghost-dark {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .1); }

.btn-ghost-light {
  background: #fff; border-color: var(--line-light); color: var(--ink-900);
}
.btn-ghost-light:hover { border-color: #b9c1d1; }

.btn-sm { padding: 9px 17px; font-size: .84rem; }
.btn-lg { padding: 15px 28px; font-size: .97rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  padding: 108px 0 88px;
}

.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 74% 42%, rgba(59, 130, 246, .20), transparent 68%),
    linear-gradient(180deg, rgba(3, 0, 48, .30) 0%, rgba(3, 0, 48, .82) 100%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }
.hero p { color: var(--snow-300); }

.hero-sub { font-size: 1.14rem; max-width: 60ch; }

.hero--page { padding: 84px 0 72px; }
.hero--page h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }

/* ---------- Stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.stat {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 2.05rem; font-weight: 800; color: var(--blue-400);
  letter-spacing: -.02em; line-height: 1.1;
}
.stat span {
  display: block; font-size: .82rem; color: var(--snow-500); margin-top: 5px;
}
.stat em {
  display: block; font-style: normal; font-size: .66rem;
  color: var(--snow-500); opacity: .72; margin-top: 7px;
}

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.section-light .card,
.section-white .card {
  background: #fff;
  border: 1px solid var(--line-light);
}
.section-light .card:hover,
.section-white .card:hover {
  transform: translateY(-3px);
  border-color: #c3cddf;
  box-shadow: 0 14px 34px -22px rgba(15, 21, 36, .5);
}

.section-dark .card,
.section-darker .card {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-dark);
}
.section-dark .card:hover,
.section-darker .card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, .4);
  background: rgba(255, 255, 255, .055);
}

.card p:last-child { margin-bottom: 0; }
.card p { font-size: .93rem; }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(59, 130, 246, .12);
  color: var(--blue-500);
  margin-bottom: 18px;
}
.section-dark .card-icon,
.section-darker .card-icon { color: var(--blue-400); }

/* ---------- Pillar cards (the dual positioning) ---------- */

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.pillar {
  position: relative;
  border-radius: 18px;
  padding: 38px 34px 34px;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(160deg, rgba(59, 130, 246, .1), rgba(255, 255, 255, .02) 55%);
  color: #fff;
  overflow: hidden;
}
.pillar--dev {
  background:
    linear-gradient(160deg, rgba(45, 212, 191, .11), rgba(255, 255, 255, .02) 55%);
}
.pillar .pillar-num {
  position: absolute; top: 24px; right: 30px;
  font-size: 3.4rem; font-weight: 800; line-height: 1;
  color: rgba(255, 255, 255, .05);
}
.pillar h3 { font-size: 1.62rem; font-weight: 800; margin-bottom: 12px; }
.pillar p { color: var(--snow-300); font-size: .97rem; }

.pillar-list {
  list-style: none; margin: 22px 0 26px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px;
}
.pillar-list li {
  font-size: .87rem; color: var(--snow-300);
  padding-left: 22px; position: relative;
}
.pillar-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400);
}
.pillar--dev .pillar-list li::before { background: var(--teal-400); }

/* ---------- Checklists ---------- */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.checklist li {
  position: relative; padding-left: 30px; font-size: .95rem;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .28em;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(59, 130, 246, .14);
  border: 1px solid rgba(59, 130, 246, .4);
}
.checklist li::after {
  content: "";
  position: absolute; left: 6px; top: .62em;
  width: 5px; height: 8px;
  border: solid var(--blue-500);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.section-dark .checklist li::after,
.section-darker .checklist li::after { border-color: var(--blue-400); }

/* ---------- Placeholder blocks (unused once real content is in) ---------- */

.ph {
  position: relative;
  border: 2px dashed rgba(245, 181, 68, .55);
  border-radius: var(--radius);
  background: rgba(245, 181, 68, .05);
}

.ph-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .655rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a6111;
  background: var(--amber-400);
  padding: 4px 11px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-dark .ph-label,
.section-darker .ph-label,
.hero .ph-label { color: #4a3405; }

.ph-note {
  font-size: .82rem !important;
  color: #9a7526 !important;
  margin: 0 !important;
}
.section-dark .ph-note,
.section-darker .ph-note { color: rgba(245, 181, 68, .82) !important; }

.ph-banner {
  border: 1px dashed rgba(245, 181, 68, .5);
  background: rgba(245, 181, 68, .08);
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 26px;
}
.ph-banner p { margin: 0; font-size: .85rem; }

/* logo wall placeholder */
.logo-wall {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  padding: 30px;
}
.logo-slot {
  height: 62px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(245, 181, 68, .45);
  background: rgba(245, 181, 68, .07);
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  color: rgba(245, 181, 68, .85);
  text-align: center; padding: 6px;
}

/* ---------- Case study cards ---------- */

.case {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: #fff;
  display: flex; flex-direction: column;
}
.case-top {
  padding: 26px 26px 0;
}
.case-tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #2563eb; margin-bottom: 12px;
  display: block;
}
.case-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  margin-top: auto;
}
.case-metrics div {
  padding: 18px 14px; text-align: center;
  border-right: 1px solid var(--line-light);
}
.case-metrics div:last-child { border-right: 0; }
.case-metrics b {
  display: block; font-size: 1.35rem; font-weight: 800; color: var(--ink-900);
}
.case-metrics span { font-size: .7rem; color: var(--ink-500); }

/* ---------- Process steps ---------- */

.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step {
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .035);
  position: relative;
}
.step-num {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  color: var(--blue-400); margin-bottom: 14px; display: block;
}

/* ---------- Timeline ---------- */

.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--blue-500), rgba(59,130,246,.08));
}
.tl-item { position: relative; margin-bottom: 34px; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy-800); border: 3px solid var(--blue-500);
}
.tl-year {
  font-size: .78rem; font-weight: 800; color: var(--blue-400);
  letter-spacing: .08em; display: block; margin-bottom: 4px;
}

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-light); }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-light); }
th { font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); background: #fafbfc; }
tr:last-child td { border-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, #2f76ee, #5b9bff);
  border-radius: 20px;
  padding: 52px 48px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 0; max-width: 52ch; }
.cta-band .btn-ghost-light { background: #fff; color: #1d4ed8; border-color: #fff; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; }

.form-card {
  background: #fff; border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .82rem; font-weight: 600;
  margin-bottom: 7px; color: var(--ink-700);
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .92rem;
  padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-light); background: #fbfcfd; color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(59, 130, 246, .35); outline-offset: 1px;
  border-color: var(--blue-500); background: #fff;
}
.field textarea { min-height: 118px; resize: vertical; }

/* Netlify honeypot — must exist in the DOM but never be seen or focusable.
   display:none would let some bots skip it, so it is moved off-screen. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.contact-block {
  background: #fff; border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px;
}
.contact-block h4 { margin-bottom: 6px; }
.contact-block a { color: #2563eb; font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: var(--snow-300);
  padding: 62px 0 28px;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 34px;
  padding-bottom: 40px;
}
.footer-grid h5 {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--snow-500); margin: 0 0 16px; font-weight: 800;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: .87rem; color: var(--snow-300); }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: .87rem; color: var(--snow-500); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .8rem; color: var(--snow-500);
}
.footer-bottom a { color: var(--snow-500); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-500); font-size: .88rem; }
.section-dark .muted, .section-darker .muted { color: var(--snow-500); }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  font-size: .76rem; font-weight: 600;
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .04);
  color: var(--snow-300);
}
.section-light .badge, .section-white .badge {
  border-color: var(--line-light); background: #fff; color: var(--ink-700);
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-850);
    border-bottom: 1px solid var(--line-dark);
    flex-direction: column; align-items: stretch;
    padding: 14px 20px 20px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: .95rem; }
  .nav-toggle { display: block; order: 3; }
  .pillars { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 68px 0; }
  .cta-band { padding: 36px 28px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pillar-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .brand-logo { height: 28px; }
}
