/* ==========================================================================
   Hightower Secure — stylesheet
   Dark technical. No external dependencies, no webfonts, no build step.
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

button, input, textarea, select { font: inherit; color: inherit; }

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg:            #07080b;
  --bg-2:          #0b0d12;
  --surface:       #0f1218;
  --surface-2:     #14181f;
  --border:        #1d222c;
  --border-strong: #2a313e;

  --text:          #e8eaef;
  --text-dim:      #a5adbb;
  --text-faint:    #6d7684;

  --accent:        #3ce6c4;
  --accent-dim:    #1f8f7c;
  --accent-glow:   rgba(60, 230, 196, 0.14);
  --accent-ink:    #04120f;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono",
               Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1140px;
  --radius:    14px;
  --radius-sm: 9px;

  --section-y: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Base ----------------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease);
}
a:hover { color: #74f2da; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--section-y); }

.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section--line { border-top: 1px solid var(--border); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1.2rem;
  font-weight: 650;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- Typography ----------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

h1, h2, h3, h4 {
  font-weight: 640;
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 6.2vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.015em; line-height: 1.35; }

.lede {
  font-size: clamp(1.06rem, 1.7vw, 1.25rem);
  color: var(--text-dim);
  line-height: 1.62;
  max-width: 62ch;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

.section-head { max-width: 68ch; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 + p { margin-top: 1.1rem; }

.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* --- Buttons -------------------------------------------------------------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.94rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -12px var(--accent-glow), 0 0 0 1px var(--accent-glow);
}
.btn svg { flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  --btn-bg: var(--surface-2);
  border-color: var(--accent-dim);
  box-shadow: none;
}

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.87rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 580;
  font-size: 0.93rem;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.18s var(--ease);
}
.link-arrow:hover::after { transform: translateX(3px); }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 8, 11, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 660;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent);
}
.brand__name b { font-weight: 660; }
.brand__name span { color: var(--text-faint); font-weight: 500; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 520;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--text); }

.nav__cta { display: flex; align-items: center; gap: 0.75rem; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta > .btn { display: none; }
  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a {
    padding: 0.85rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav__links li:last-child a { border-bottom: 0; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
/* teal glow */
.hero::before {
  width: min(900px, 120vw);
  aspect-ratio: 1;
  top: -45%;
  right: -18%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
}
/* grid lines */
.hero::after {
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}
.hero > .container { position: relative; z-index: 1; }

.hero__inner { max-width: 54rem; }
.hero h1 { margin-top: 1.4rem; }
.hero .lede { margin-top: 1.6rem; }
.hero .btn-row { margin-top: 2.4rem; }
.hero__note {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

/* page hero (interior pages) */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  width: min(800px, 110vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  margin-top: 1.2rem;
}
.page-hero .lede { margin-top: 1.35rem; }

/* --- Capability strip ----------------------------------------------------- */
.strip {
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding-block: 1.35rem;
  align-items: center;
}
.strip__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.strip__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.strip__items li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.strip__items li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
  flex: none;
}

/* --- Grids ---------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.15rem;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* --- Cards ---------------------------------------------------------------- */
.card {
  position: relative;
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
              background 0.2s var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-dim); font-size: 0.94rem; }
.card__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(60, 230, 196, 0.09);
  border: 1px solid rgba(60, 230, 196, 0.18);
  color: var(--accent);
}
.card__icon svg { width: 17px; height: 17px; }
.card .link-arrow { margin-top: 1.1rem; }

.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }

/* --- Service groups ------------------------------------------------------- */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--border);
}
.svc:first-of-type { border-top: 0; }
@media (max-width: 820px) {
  .svc { grid-template-columns: 1fr; gap: 1.5rem; }
}
.svc__head { align-self: start; position: sticky; top: 96px; }
@media (max-width: 820px) { .svc__head { position: static; } }
.svc__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.svc__head h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  margin: 0.7rem 0 0.85rem;
}
.svc__head p { color: var(--text-dim); font-size: 0.95rem; }

.svc__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}
.svc__list li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.8rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.svc__list li:hover { border-color: var(--accent-dim); background: var(--surface-2); }
.svc__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  margin-top: 0.45em;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: 0.85;
}

/* --- Steps ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.15rem;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.step__n {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.55rem; }
.step p { color: var(--text-dim); font-size: 0.93rem; }

/* --- Split / prose ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.prose > * + * { margin-top: 1.05rem; }
.prose h3 { margin-top: 2.25rem; }
.prose p, .prose li { color: var(--text-dim); }
.prose ul { padding-left: 1.15rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 620; }

/* --- Definition rows (engagements / FAQ) --------------------------------- */
.rows { border-top: 1px solid var(--border); margin-top: clamp(2rem, 4vw, 3rem); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 0.5rem; }
}
/* stacked variant — for rows sitting inside a narrow column */
.rows--stack .row { grid-template-columns: 1fr; gap: 0.4rem; }

.row h3 { letter-spacing: -0.02em; }
.row p { color: var(--text-dim); font-size: 0.95rem; }
.row__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.5rem;
}

/* --- CTA band ------------------------------------------------------------- */
.cta {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  bottom: -70%;
  left: 50%;
  width: min(900px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.35rem;
}
.cta__inner h2 { max-width: 30ch; }
.cta__inner p { color: var(--text-dim); max-width: 52ch; }

/* --- Contact panel ------------------------------------------------------- */
.mail-card {
  display: grid;
  gap: 1.35rem;
  justify-items: start;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.mail-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.mail-link {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 3.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  word-break: break-word;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 0.15rem;
}
.mail-link:hover { border-bottom-color: var(--accent); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 560;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.copy-btn:hover { border-color: var(--accent-dim); color: var(--text); }
.copy-btn[data-copied="true"] { color: var(--accent); border-color: var(--accent-dim); }

.checklist { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.checklist li::before {
  content: "✓";
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1.7;
  flex: none;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  font-size: 0.9rem;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__blurb {
  max-width: 34ch;
  color: var(--text-faint);
  font-size: 0.89rem;
  margin-top: 0.85rem;
}
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4.5rem);
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer__col a { color: var(--text-dim); font-size: 0.9rem; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* --- Reveal on scroll ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
