/* HeronDX marketing site.
 *
 * Brand constants:   Navy #09263A · Teal #40767D · Orange #D65C1D · Cream #FFF3DB · Ivory #FFFEFA
 *
 * Colour roles mirror the logo: navy is structure (hero, headings), paper is the surface,
 * teal is interaction, orange is attention only — one CTA, "DX", the live status dot.
 * Orange sits at navy's split complement, so it stays scarce to keep its punch.
 */

:root {
  --navy: #09263a;
  --navy-deep: #061a29;
  --navy-black: #040f18;
  --teal: #40767d;
  --teal-lift: #5fa9b1;
  --teal-soft: #e3eeef;
  --orange: #d65c1d;
  --orange-solid: #bf4f16;   /* 4.8:1 with white */
  --orange-hover: #a3420f;
  --cream: #fff3db;
  --ivory: #fffefa;

  --canvas: #f5f5f1;
  --surface: #ffffff;
  --line: #e1e5e1;
  --ink: #0b1f2e;
  --ink-2: #34495a;
  --ink-3: #5a6f82;

  --font: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgb(9 38 58 / .05), 0 1px 1px rgb(9 38 58 / .03);
  --shadow-pop: 0 12px 40px -12px rgb(9 38 58 / .28), 0 2px 8px rgb(9 38 58 / .08);
  --wrap: 1120px;
}

*, *::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: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
/* :where() keeps this reset at zero specificity so component rules (e.g. .disciplines margin) win. */
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--navy); color: var(--ivory); padding: .5rem .75rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* ---- lockup / wordmark ------------------------------------------------- */
.lockup { display: inline-flex; align-items: center; gap: .65rem; }
.mark-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 4px; border-radius: 12px;
  background: var(--ivory);
  box-shadow: inset 0 0 0 1px rgb(9 38 58 / .08);
}
.mark-tile img { width: 100%; height: 100%; object-fit: contain; }
.wordmark { font-weight: 500; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; color: var(--ivory); }
.wordmark .dx { color: var(--orange); }
.wordmark.small { font-size: 1.15rem; color: var(--navy); }

/* ---- header -------------------------------------------------------------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding-block: 1.1rem;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1rem; font-size: .95rem; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-solid); }
.btn-outline { color: var(--ivory); border-color: rgb(255 254 250 / .35); }
.btn-outline:hover { border-color: rgb(255 254 250 / .7); background: rgb(255 254 250 / .06); }
.btn-ghost { color: var(--ivory); border-color: rgb(255 254 250 / .28); }
.btn-ghost:hover { border-color: rgb(255 254 250 / .6); background: rgb(255 254 250 / .06); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--teal-lift); outline-offset: 3px; }

/* ---- hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; place-items: center;
  color: var(--ivory);
  background:
    radial-gradient(60% 55% at 78% 20%, rgb(64 118 125 / .35), transparent 70%),
    radial-gradient(45% 45% at 12% 85%, rgb(214 92 29 / .16), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 60%, var(--navy-black) 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
/* Darkens behind the copy so text stays legible regardless of what the particles do. */
.hero-veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 50% 50%, rgb(6 26 41 / .7), transparent 75%),
    linear-gradient(180deg, rgb(9 38 58 / .35) 0%, transparent 30%, transparent 70%, rgb(4 15 24 / .8) 100%);
}
.hero-inner {
  text-align: center;
  padding-block: 8rem 6rem;
  max-width: 52rem;
  display: flex; flex-direction: column; align-items: center;
}
.hero h1 {
  color: var(--ivory);
  font-size: clamp(2.6rem, 6.5vw, 4.9rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--teal-lift); }
.lede {
  margin-top: 1.6rem; max-width: 40rem;
  font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6;
  color: rgb(255 254 250 / .8);
  text-wrap: pretty;
}
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }

/* ---- sections --------------------------------------------------------------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-head { max-width: 40rem; margin-inline: auto; text-align: center; }
.label {
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; text-wrap: balance; }
.section .sub { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-2); text-wrap: pretty; }

/* LIS */
.lis { background: var(--canvas); }
.disciplines {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
}
.disciplines li {
  padding: .5rem 1.05rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--navy); font-weight: 500; font-size: .95rem; line-height: 1.3;
}
.disciplines li.more { color: var(--ink-3); background: transparent; border-style: dashed; }

.features {
  margin-top: 3.5rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
/* 3 + 2 with the last row centred: a 6-track grid where each card spans two tracks. */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .feature { grid-column: span 2; }
  .feature:nth-child(4) { grid-column: 2 / span 2; }
}
/* 2 + 2 + 1 with the last card centred. */
@media (max-width: 800px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature:nth-child(4) { grid-column: span 2; }
  .feature:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(4), .feature:nth-child(5) { grid-column: auto; }
}
.feature {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.35rem; box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); border-color: rgb(64 118 125 / .35); }
.feature .icon {
  display: inline-flex; width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal); align-items: center; justify-content: center;
}
.feature .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 1.25rem; font-size: 1.15rem; font-weight: 600; }
.feature p { margin-top: .5rem; color: var(--ink-3); font-size: .98rem; line-height: 1.5; text-wrap: pretty; }

/* Contact */
.contact { background: var(--navy); color: var(--ivory); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-logo {
  width: 240px; height: auto; margin-bottom: 2rem;
  background: var(--ivory); padding: 1rem 1.3rem; border-radius: 18px;
}
.contact h2 { color: var(--ivory); }
.contact .btn { margin-top: 1.8rem; }

/* Footer */
.site-footer { background: var(--canvas); border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: .92rem; color: var(--ink-3); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
