/* ==========================================================================
   WP Vulcan — homepage styles
   ========================================================================== */

:root {
  /* Brand (from Brand Assets/wp-vulcan-colours.css) */
  --vulcan-midnight: #0B0F24;
  --vulcan-purple: #7C3AED;
  --vulcan-orange: #FF6A00;
  --vulcan-pink: #FF3D6E;
  --vulcan-gold: #FFA53D;
  --vulcan-white: #FFFFFF;
  --vulcan-gradient: linear-gradient(135deg, #FFA53D 0%, #FF6A00 35%, #FF3D6E 68%, #7C3AED 100%);
  --vulcan-heading-font: Montserrat, Arial, sans-serif;
  --vulcan-body-font: Inter, Arial, sans-serif;

  /* UI */
  --bg: var(--vulcan-midnight);
  --bg-deep: #0E0F2A;
  --bg-section: #121333;
  --surface: rgba(255, 255, 255, .035);
  --surface-strong: #15163A;
  --border: rgba(255, 255, 255, .11);
  --border-strong: rgba(167, 139, 250, .45);
  --text: #FFFFFF;
  --text-muted: #C3C5DC;
  --text-dim: #9A9CB8;
  --green: #22C55E;
  --amber: #F59E0B;
  --red: #F43F5E;

  --radius: 14px;
  --container: 1188px;
  --gutter: 24px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--vulcan-body-font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--vulcan-heading-font); font-weight: 700; margin: 0; line-height: 1.12; letter-spacing: -.015em; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--vulcan-gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only, .sr-defs { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--vulcan-orange); font-weight: 600; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.eyebrow {
  font-family: var(--vulcan-heading-font);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #E4E4F2;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--vulcan-heading-font); font-weight: 600; font-size: .95rem; line-height: 1;
  border-radius: 10px; padding: .85em 1.4em; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-lg { font-size: 1rem; padding: 1em 1.45em; min-height: 46px; }
.btn-sm { font-size: .9rem; padding: .7em 1.2em; }
.btn-primary {
  background: linear-gradient(180deg, #FF801F 0%, var(--vulcan-orange) 100%);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(255, 106, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(255, 106, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; --icon-play-fg: var(--bg); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn-ghost .icon-play { width: 1.25em; height: 1.25em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
}
/* The blur lives on a pseudo-element: a backdrop-filter on the header itself would become
   the containing block for the fixed-position mobile menu and collapse it to header height. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 15, 36, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--border);
  opacity: 0;
  transition: opacity .25s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand img { height: 48px; width: auto; }

.site-nav { flex: 1; display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 8px;
  font-size: .94rem; font-weight: 500; color: #fff;
}
.nav-link:hover, .nav-item.is-open > .nav-link { background: rgba(255, 255, 255, .06); }
.nav-caret { width: 15px; height: 15px; opacity: .8; transition: transform .2s ease; }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 300px; padding: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* hover bridge */
.dropdown a { display: block; padding: 10px 12px; border-radius: 10px; }
.dropdown a:hover, .dropdown a:focus-visible { background: rgba(255, 255, 255, .06); }
.dropdown strong { display: block; font-size: .92rem; font-weight: 600; }
.dropdown span { display: block; font-size: .82rem; color: var(--text-dim); }
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 981px) {
  .has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-login { font-size: .94rem; font-weight: 500; }
.nav-login:hover { color: var(--vulcan-gold); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: 40px 0 44px;
  background:
    radial-gradient(60% 40% at 82% 22%, rgba(124, 58, 237, .14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow: hidden;
}
@media (min-width: 1200px) {
  .hero { padding: 80px 0 44px; }
}
.hero-bg {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: max(500px, 40vw);           /* grows with width so the peak is never cropped */
  background: var(--bg-deep) url("../img/hero-mountains.jpg") 44% bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}
.hero-copy { padding-top: 22px; }
.hero h1 { font-size: clamp(2.25rem, 1.6vw + 1.75rem, 2.9rem); margin: 18px 0 22px; letter-spacing: -.02em; line-height: 1.06; }
.hero h1 .line { display: block; }
.lead { font-size: 1.15rem; line-height: 1.6; color: #D3D4E6; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: .86rem; color: #E7E7F2; }
.checks li { display: inline-flex; align-items: center; gap: 6px; text-shadow: 0 1px 10px rgba(11, 15, 36, .85); }
.checks .icon { filter: drop-shadow(0 1px 4px rgba(11, 15, 36, .9)); }
.checks .icon { width: 15px; height: 15px; stroke-width: 2.6; color: var(--vulcan-orange); }

.hero-visual { container-type: inline-size; }

/* ---------- Dashboard mock ---------- */
.app-mock {
  font-size: calc(100cqw / 52);      /* 10px at 520px wide; everything below scales in em */
  border-radius: 1.6em;
  background: linear-gradient(180deg, rgba(23, 22, 58, .97), rgba(15, 16, 42, .97));
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, .25),
    0 0 46px rgba(124, 58, 237, .45),
    0 34px 70px -24px rgba(255, 106, 0, .5);
  overflow: hidden;
  color: #E8E8F4;
}
@media (min-width: 981px) {
  .app-mock {
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
    transform-origin: center center;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
    will-change: transform;
  }
  .app-mock:hover { transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg); }
}
.app-mock .icon { width: 1.35em; height: 1.35em; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 1.2em 1.6em; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.app-brand { display: flex; align-items: center; gap: .6em; font-family: var(--vulcan-heading-font); font-weight: 700; font-size: 1.25em; }
.app-brand img { width: 1.5em; height: 1.5em; }
.app-tools { display: flex; align-items: center; gap: 2em; color: #CFCFE4; }
.app-bell { position: relative; }
.app-bell::after { content: ""; position: absolute; top: -.1em; right: -.15em; width: .55em; height: .55em; border-radius: 50%; background: var(--vulcan-pink); }
.app-avatar { width: 2.2em; height: 2.2em; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #F3F3FA 0 28%, transparent 29%), radial-gradient(ellipse at 50% 100%, #F3F3FA 0 48%, transparent 49%), #7B7FA6; border: .15em solid #F3F3FA; }

.app-body { display: grid; grid-template-columns: 11.6em minmax(0, 1fr); }
.app-menu { padding: 1em .8em; display: grid; gap: .3em; align-content: start; font-size: .92em; color: #B9BBD4; }
.app-menu li { display: flex; align-items: center; gap: .8em; padding: .75em .9em; border-radius: .7em; }
.app-menu .icon { width: 1.3em; height: 1.3em; }
.app-menu .is-active { background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; }

.app-main { padding: 1.4em 1.6em 1.6em .4em; display: grid; gap: 1em; }
.app-heading strong { display: block; font-family: var(--vulcan-heading-font); font-size: 1.6em; font-weight: 600; }
.app-heading span { font-size: .9em; color: var(--text-dim); }

.app-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7em; }
.app-stat { display: flex; align-items: center; gap: .7em; padding: 1em .9em; border-radius: .9em; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.app-stat .icon { width: 1.9em; height: 1.9em; }
.app-stat strong { display: block; font-family: var(--vulcan-heading-font); font-size: 1.7em; line-height: 1; }
.app-stat span { font-size: .8em; color: var(--text-dim); }
.tone-purple .icon { color: #A78BFA; }
.tone-green .icon { color: var(--green); }
.tone-amber .icon { color: var(--amber); }
.tone-red .icon { color: var(--red); }
.tone-orange .icon { color: var(--vulcan-orange); }

.app-card { border-radius: .9em; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); padding: 1.1em 1.1em 1em; }
.app-card > strong, .app-card-head strong { font-size: 1.05em; font-weight: 600; }
.app-card-head { display: flex; align-items: center; justify-content: space-between; }
.app-range select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: .85em; color: #E8E8F4;
  background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8E8F4' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .7em center / .9em no-repeat;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: .6em;
  padding: .45em 2.2em .45em .9em; cursor: pointer;
}
.app-range select option { color: #111; }
.app-chart-svg { width: 100%; height: 6.4em; margin-top: .9em; overflow: visible; }
.chart-line, .chart-area { transition: d .45s ease; }

.app-activity ul { margin-top: .6em; }
.app-activity li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9em; padding: .7em 0; font-size: .92em; border-top: 1px solid rgba(255, 255, 255, .06); }
.app-activity li:first-child { border-top: 0; }
.app-activity time { color: var(--text-dim); font-size: .9em; }

/* ---------- Pillars ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 120px;
}
.pillar { display: flex; gap: 22px; align-items: flex-start; padding: 6px 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.pillar:first-child { border-left: 0; padding-left: 12px; }
.pillar-icon { width: 44px; height: 44px; stroke-width: 1.9; }
.pillar h2 { font-size: 1.2rem; margin-bottom: 6px; }
.pillar p { font-size: .9rem; line-height: 1.5; color: var(--text-muted); }

/* ---------- Features ---------- */
/* Features + CTA share one continuous background so there is no seam between them */
.section-group {
  background:
    radial-gradient(55% 45% at 0% 62%, rgba(124, 58, 237, .10), transparent 70%),
    radial-gradient(45% 35% at 100% 100%, rgba(255, 61, 110, .05), transparent 70%),
    var(--bg-section);
}
.features { padding: 56px 0 56px; }
.features-grid { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: 44px; align-items: start; }
.features-intro { padding-top: 6px; }
.features-intro .eyebrow { letter-spacing: .18em; font-size: .76rem; white-space: nowrap; }
.features-intro h2 { font-size: clamp(1.9rem, 1.4vw + 1.2rem, 2.2rem); margin: 18px 0 26px; }
.features-intro p:not(.eyebrow) { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 30px; }

.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  padding: 22px 18px 24px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, .4); }
.feature-icon { width: 32px; height: 32px; stroke-width: 2; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.02rem; margin-bottom: 8px; letter-spacing: -.02em; }
.feature-card p { font-size: .92rem; line-height: 1.5; color: var(--text-muted); }

/* ---------- Security monitoring ---------- */
.security { padding: 24px 0 72px; }
.security-grid { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: 44px; align-items: start; }
.security-intro h2 { font-size: clamp(1.9rem, 1.4vw + 1.2rem, 2.2rem); margin: 18px 0 22px; }
.security-intro > p:not(.eyebrow, .security-note) { color: var(--text-muted); font-size: 1.02rem; }
.security-intro .eyebrow { letter-spacing: .18em; font-size: .76rem; }
.security-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 24px; padding: 16px 18px;
  border-radius: 12px; border: 1px solid rgba(255, 106, 0, .28);
  background: linear-gradient(90deg, rgba(255, 106, 0, .08), rgba(255, 61, 110, .04));
  color: #ECECF6; font-size: .95rem;
}
.security-note .icon { width: 22px; height: 22px; margin-top: 1px; }
.security-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.security-list li { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--border); }
.security-list li:nth-child(-n+2) { border-top: 0; padding-top: 6px; }
.security-icon { width: 28px; height: 28px; stroke-width: 1.9; margin-top: 2px; }
.security-list h3 { font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -.01em; }
.security-list p { font-size: .92rem; line-height: 1.55; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 72px; }
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 44px 40px 48px 54px;
  border-radius: 18px;
  border: 1px solid rgba(167, 139, 250, .28);
  background: linear-gradient(95deg, #17163F 0%, #221A52 55%, #2E1C63 100%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.cta-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/cta-mountains.jpg") 72% bottom / cover no-repeat;
}
.cta h2 { font-size: clamp(1.45rem, 1.2vw + 1rem, 1.85rem); margin-bottom: 10px; }
.cta p { color: var(--text-muted); }
.cta-copy { flex: 1 1 340px; }

/* Early access form */
.ea { flex: 0 1 500px; min-width: 0; }
.ea-form[hidden], .ea-success[hidden] { display: none; }
.ea-form, .ea-success {
  position: relative; isolation: isolate;
  padding: 24px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* Frosted glass on a pseudo-element, so it never becomes a containing block for anything inside. */
.ea-form::before, .ea-success::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(14, 16, 42, .62);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.ea-fields { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 12px; }
.ea-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ea-field label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: .8rem; font-weight: 600; color: #E4E4F2; white-space: nowrap;
}
.ea-field label span { font-weight: 500; font-size: .74rem; color: var(--text-dim); }
.ea-input {
  width: 100%; height: 50px; padding: 0 16px;
  font: inherit; font-size: 1rem; color: #fff;
  background: rgba(8, 10, 30, .7);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ea-input::placeholder { color: #7F82A3; }
.ea-input:hover { border-color: rgba(255, 255, 255, .28); }
.ea-input:focus { outline: none; border-color: var(--vulcan-orange); background-color: rgba(8, 10, 30, .85); box-shadow: 0 0 0 3px rgba(255, 106, 0, .22); }
.ea-input[aria-invalid] { border-color: var(--red); }
.ea-select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px; cursor: pointer;
  color-scheme: dark;               /* dark native dropdown list where the browser supports it */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8A3D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.ea-select:has(option[value=""]:checked) { color: #7F82A3; }   /* "Choose…" reads as a placeholder */
.ea-select option { background: #151834; color: #F2F2FA; }
.ea-select option[value=""] { color: #8E90AE; }
.ea-submit { width: 100%; min-height: 52px; margin-top: 16px; justify-content: center; }
.ea-submit:disabled { opacity: .75; cursor: progress; transform: none; }
.ea-error { margin-top: 10px; font-size: .86rem; font-weight: 500; color: #FF9DB0; }
.ea-error:empty { display: none; }
.cta .ea-privacy { margin-top: 14px; font-size: .78rem; line-height: 1.5; color: #B9BBD3; text-align: center; }
.ea-privacy a { color: #D9D9EA; text-decoration: underline; text-underline-offset: 2px; }
.ea-privacy a:hover { color: #fff; }
.ea-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ea-success { display: flex; gap: 14px; align-items: flex-start; border-color: rgba(34, 197, 94, .45); }
.ea-success:focus { outline: none; }
.ea-success-icon { width: 28px; height: 28px; color: var(--green); }
.ea-success strong { display: block; font-family: var(--vulcan-heading-font); font-size: 1.1rem; margin-bottom: 4px; }
.cta .ea-success p { color: #D9D9EA; font-size: .94rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: 14px; color: var(--text-dim); }
.footer-col h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #E4E4F2; margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--text-dim); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .82rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .features-grid, .security-grid { grid-template-columns: 1fr; gap: 36px; }
  .features-intro, .security-intro { max-width: 640px; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 16px var(--gutter) 32px;
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-header:has(.site-nav.is-open) { background: var(--bg-deep); }
  .nav-list { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; border-radius: 0; }
  .nav-link:hover, .nav-item.is-open > .nav-link { background: none; }
  .dropdown {
    position: static; width: auto; transform: none; box-shadow: none; border: 0; background: none;
    padding: 0 0 12px; display: none; opacity: 1; visibility: visible;
  }
  .dropdown::before { display: none; }
  .nav-item.is-open > .dropdown { display: block; transform: none; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-login { text-align: center; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
  .nav-actions .btn { padding: 1em; font-size: 1rem; }

  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 600px; }
  .hero-bg { height: 560px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; margin-top: 90px; }
  .pillar:nth-child(odd) { border-left: 0; padding-left: 12px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-panel { flex-direction: column; align-items: stretch; padding: 36px 28px 64px; }
  .cta-copy, .ea { flex: none; width: 100%; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .brand img { height: 36px; }
  .hero h1 { font-size: 2.2rem; }
  .lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-bg { height: 1000px; }          /* peak glows behind the dashboard; pillars sit on dark foreground */
  .features-intro .eyebrow { white-space: normal; }
  .app-body { grid-template-columns: 1fr; }
  .app-menu { display: none; }
  .app-main { padding: 1.4em 1.6em 1.6em; }
  .app-mock { font-size: calc(100cqw / 40); }
  .app-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; gap: 26px; }
  .pillar:nth-child(n) { border-left: 0; padding: 0; }
  .feature-cards { grid-template-columns: 1fr; }
  .security-list { grid-template-columns: 1fr; }
  .security-list li:nth-child(2) { border-top: 1px solid var(--border); padding-top: 22px; }
  .cta-panel .btn { width: 100%; }
  .ea-form, .ea-success { padding: 18px; }
  .ea-fields { grid-template-columns: 1fr; }
  .footer-grid { gap: 28px 16px; }
}

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