/* arkivQ portal — Sovereign Digital Ark Documents
   Standalone static stylesheet. No build step, no external fonts or CDNs
   (air-gap safe). Palette derived from the arkivQ logo: deep navy through
   azure, with emerald + amber as signal colours only. */

/* ---------------------------------------------------------------- @font-face */

@font-face {
  font-family: "Elm Sans";
  src: url("fonts/elm-sans-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Elm Sans";
  src: url("fonts/elm-sans-italic-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------------------------------------------------------------- variables */

:root {
  --ground: #050A18;
  --deep:   #0B1E3B;
  --mid:    #1B6FB8;
  --azure:  #5DA6E0;
  --azure-aa: #7BB8EB;
  --steel:  #B6C2CE;
  --paper:  #F4F6F9;
  --ink:    #0E1626;
  --ok:     #34D399;
  --warn:   #F6B05B;

  --grad: linear-gradient(100deg, var(--deep) 0%, var(--mid) 55%, var(--azure) 100%);

  --display: "Elm Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:    "Elm Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --radius: 14px;
}

/* ---------------------------------------------------------------- reset */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  background: var(--ground);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--azure-aa); text-decoration: none; }
a:hover { color: var(--paper); }

::selection { background: var(--mid); color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azure-aa);
  font-weight: 600;
}

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 10, 24, 0.78);
  border-bottom: 1px solid rgba(182, 194, 206, 0.08);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand-img {
  height: 40px;
  width: auto;
  display: block;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav__links a:hover { color: var(--paper); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta a { white-space: nowrap; }

/* Hamburger toggle — desktop hidden, mobile visible. */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(182, 194, 206, 0.18);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle:hover { border-color: rgba(93, 166, 224, 0.5); }
.nav__toggle:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
}
.btn--solid {
  background: var(--grad);
  color: var(--paper);
  box-shadow: 0 4px 16px rgba(27, 111, 184, 0.25);
}
.btn--solid:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27, 111, 184, 0.35); color: var(--paper); }
.btn--line {
  border: 1px solid var(--mid);
  color: var(--paper);
  background: transparent;
}
.btn--line:hover { border-color: var(--azure); color: var(--paper); }
.btn--lg { padding: 17px 28px; font-size: 16px; }

/* Baseline touch-target enforcement for interactive elements. */
a.btn, button { min-height: 44px; }

/* ---------------------------------------------------------------- horizon */

.horizon {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mid), transparent);
  opacity: 0.45;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-top: 16px;
}
.section-head p {
  margin-top: 18px;
  color: var(--steel);
  font-size: 18px;
}

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

.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 75% 50%, rgba(27, 111, 184, 0.22), transparent 70%);
  pointer-events: none;
}
.hero__row {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__kicker { margin-bottom: 24px; }
.hero__h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 88px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.hero__h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  margin-top: 28px;
  color: var(--steel);
  font-size: 18px;
  line-height: 1.6;
  max-width: 56ch;
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__visual::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--azure), transparent);
  opacity: 0.5;
  top: 60%;
  left: 15%;
}
.hero__visual img {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 16px 48px rgba(27, 111, 184, 0.28));
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------- pillars */

.pillars { padding: 96px 0; }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar { padding: 8px; }
.pillar__claim {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--paper);
  margin-bottom: 16px;
}
.pillar__body {
  color: var(--steel);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------------------------------------------------------------- features (10 cards) */

.features { padding: 96px 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 28px 28px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 111, 184, 0.06), rgba(11, 30, 59, 0.18));
  border: 1px solid rgba(182, 194, 206, 0.10);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover {
  border-color: rgba(93, 166, 224, 0.35);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(27, 111, 184, 0.10), rgba(11, 30, 59, 0.25));
}
.card__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--azure-aa);
  display: block;
  margin-bottom: 12px;
}
.card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--paper);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.card__body {
  color: var(--steel);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------------------------------------------------------------- flow */

.flow { padding: 96px 0; }
.flow__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.flow__steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mid) 10%, var(--mid) 90%, transparent);
  opacity: 0.45;
}
.flow__step {
  text-align: center;
  position: relative;
}
.flow__icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ground);
  border: 1px solid var(--mid);
  color: var(--azure-aa);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  z-index: 1;
}
.flow__label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 8px;
}
.flow__caption {
  color: var(--steel);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- deploy + desktop bullets */

.story { padding: 96px 0; }
.story__lede {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.35;
  color: var(--paper);
  margin-bottom: 32px;
  max-width: 64ch;
}
.story__list {
  list-style: none;
  display: grid;
  gap: 18px;
  max-width: 76ch;
}
.story__list li {
  position: relative;
  padding-left: 28px;
  color: var(--steel);
  font-size: 16px;
  line-height: 1.65;
}
.story__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 1px;
  background: var(--azure);
}
.story__list code {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 2px 7px;
  background: rgba(27, 111, 184, 0.14);
  border: 1px solid rgba(93, 166, 224, 0.22);
  border-radius: 4px;
  color: var(--paper);
}

/* ---------------------------------------------------------------- inspect */

.inspect { padding: 96px 0; }
.inspect__panel {
  padding: 56px 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(11, 30, 59, 0.55), rgba(27, 111, 184, 0.10));
  border: 1px solid rgba(93, 166, 224, 0.22);
}
.inspect__panel p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  max-width: 90ch;
}
.inspect__panel code {
  font-family: var(--mono);
  font-size: 14px;
  padding: 2px 7px;
  background: rgba(27, 111, 184, 0.18);
  border: 1px solid rgba(93, 166, 224, 0.25);
  border-radius: 4px;
}
.inspect__panel a { color: var(--azure-aa); border-bottom: 1px solid rgba(93, 166, 224, 0.4); }
.inspect__panel a:hover { color: var(--paper); border-color: var(--paper); }

/* ---------------------------------------------------------------- try */

.try { padding: 96px 0; text-align: center; }
.try__ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.try__quiet {
  margin-top: 28px;
  color: var(--steel);
  font-size: 15px;
}
.try__quiet a { border-bottom: 1px solid rgba(93, 166, 224, 0.35); padding-bottom: 1px; }

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

.footer {
  border-top: 1px solid rgba(182, 194, 206, 0.10);
  padding: 56px 0 48px;
  margin-top: 32px;
}
.footer__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__brand .nav__brand-img { height: 48px; }
.footer__tagline { color: var(--steel); font-size: 14.5px; }
.footer__col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure-aa);
  margin-bottom: 14px;
}
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a { color: var(--steel); font-size: 14.5px; }
.footer__col a:hover { color: var(--paper); }
.footer__vendor {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(182, 194, 206, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--steel);
  font-size: 13.5px;
}
.footer__mark { font-family: var(--mono); color: var(--azure-aa); }

/* ---------------------------------------------------------------- errpage (404/50x) */

.errpage {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px 64px;
  text-align: center;
}
.errpage__logo { width: 80px; height: 80px; margin: 0 auto 32px; }
.errpage__code {
  font-family: var(--display);
  font-size: 120px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 18px 0 4px;
}
.errpage__h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 12px 0 18px;
}
.errpage__p { color: var(--steel); font-size: 16px; margin-bottom: 32px; }
.errpage__btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- mobile */

/* Tablet and small-desktop: column collapses, hero shrinks. */
@media (max-width: 900px) {
  .hero__h1 { font-size: 64px; }
  .section-head h2 { font-size: 44px; }
  .hero__row { gap: 40px; }
  .pillars__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__row { grid-template-columns: 1fr 1fr; }
}

/* Phone: nav collapses to hamburger, hero stacks, cards single-column,
   document journey flips to vertical stack. */
@media (max-width: 768px) {
  .nav__row { padding: 10px 0; min-height: 56px; gap: 12px; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: rgba(5, 10, 24, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(182, 194, 206, 0.10);
  }
  .nav__links.nav__links--open { display: flex; }
  .nav__links a {
    width: 100%;
    padding: 12px 4px;
    min-height: 48px;
    font-size: 16px;
    border-bottom: 1px solid rgba(182, 194, 206, 0.06);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav { position: sticky; }
  .nav__row { position: relative; }

  .hero { padding: 56px 0 48px; }
  .hero__row { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .hero__visual img { max-width: 240px; }
  .hero__h1 { font-size: 56px; line-height: 1.04; letter-spacing: -0.02em; }
  .hero__lede { font-size: 17px; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 36px; }
  .features__grid { grid-template-columns: 1fr; }
  .card { padding: 24px 22px 26px; }

  /* Vertical flow stack with a connector running down the icon column. */
  .flow__steps {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 4px;
  }
  .flow__steps::before {
    top: 0;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--mid) 10%, var(--mid) 90%, transparent);
  }
  .flow__step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
    text-align: left;
    align-items: start;
  }
  .flow__icon { margin: 0; }
  .flow__label { margin-bottom: 4px; padding-top: 14px; }
  .flow__caption { padding-bottom: 4px; }

  .pillar__claim { font-size: 24px; }
  .story__lede { font-size: 22px; }
  .story h2 { font-size: 36px !important; }
  .inspect__panel { padding: 32px 24px; }
  .footer__row { grid-template-columns: 1fr; }
  .footer__col a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0; }
  .errpage__code { font-size: 84px; }
  .errpage__h1 { font-size: 28px; }
}

/* Compact phone: tighter type, full-width stacked CTAs, smaller logos. */
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .nav__brand-img { height: 32px; }
  .nav__cta .btn { padding: 11px 16px; font-size: 14px; }

  .hero { padding: 40px 0 36px; }
  .hero__h1 { font-size: 44px; line-height: 1.06; letter-spacing: -0.015em; }
  .hero__lede { font-size: 16px; }
  .hero__visual img { max-width: 200px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  .section-head h2 { font-size: 30px; }
  .section-head p { font-size: 16px; }
  .pillar__claim { font-size: 22px; }
  .card { padding: 22px 20px; }
  .card__title { font-size: 20px; }
  .card__body { font-size: 15px; }
  .story h2 { font-size: 30px !important; }
  .story__lede { font-size: 20px; }
  .story__list li { font-size: 15px; }
  .inspect__panel { padding: 26px 20px; }
  .inspect__panel p { font-size: 16px; line-height: 1.7; }
  .try__ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .try__ctas .btn { width: 100%; justify-content: center; }
  .footer { padding: 40px 0 32px; }
  .errpage { padding: 64px 18px 48px; }
  .errpage__code { font-size: 72px; }
  .errpage__h1 { font-size: 24px; }
}

/* Very narrow phones (e.g. iPhone SE 1st-gen at 320px). */
@media (max-width: 360px) {
  .wrap { padding: 0 14px; }
  .nav__row { gap: 8px; }
  .nav__brand-img { height: 28px; }
  .nav__cta .btn { padding: 10px 12px; font-size: 13px; }
  .hero__h1 { font-size: 38px; }
  .section-head h2 { font-size: 26px; }
  .pillar__claim { font-size: 20px; }
  .card__title { font-size: 19px; }
}
