/* ==========================================================================
   SHEQ Aegis marketing site — theme tokens match sheq-aegis-vextex-ui
   ========================================================================== */
:root {
  --sheq-bg: #f2f1ec;
  --sheq-surface: #ffffff;
  --sheq-border: #ddd8ce;
  --sheq-navy: #283080;
  --sheq-navy-light: #4d5cc2;
  --sheq-blue: #146a7a;
  --sheq-blue-light: #e6f3f5;
  --sheq-text: #1e2440;
  --sheq-text-muted: #6a6f85;
  --sheq-success: #3d7a52;
  --sheq-warning: #d68a1f;
  --sheq-danger: #b83a3a;
  --sheq-radius: 10px;
  --sheq-font-heading: "Lora", "Georgia", serif;
  --sheq-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--sheq-font-body);
  color: var(--sheq-text);
  background: var(--sheq-bg);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--sheq-font-heading);
  color: var(--sheq-navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
p {
  margin: 0 0 1em;
  color: var(--sheq-text);
}
a {
  color: var(--sheq-blue);
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sheq-navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--sheq-radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--sheq-navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--sheq-navy-light);
}
.btn--outline {
  background: transparent;
  color: var(--sheq-navy);
  border-color: var(--sheq-navy);
}
.btn--outline:hover {
  background: var(--sheq-blue-light);
}
.btn--ghost {
  background: transparent;
  color: var(--sheq-navy);
  border-color: var(--sheq-border);
}
.btn--ghost:hover {
  background: var(--sheq-blue-light);
}
.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 241, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sheq-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__logo {
  height: 34px;
  width: auto;
}
.brand__name {
  font-family: var(--sheq-font-heading);
  font-size: 1.1rem;
  color: var(--sheq-navy);
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  color: var(--sheq-text);
  font-weight: 500;
}
.nav a:hover {
  color: var(--sheq-navy);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  height: 2px;
  background: var(--sheq-navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sheq-blue);
  margin-bottom: 12px;
}
.eyebrow--center {
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.hero__lead {
  font-size: 1.08rem;
  color: var(--sheq-text-muted);
  max-width: 46ch;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.9rem;
  color: var(--sheq-text-muted);
}
.hero__trust li::before {
  content: "✓ ";
  color: var(--sheq-success);
  font-weight: 700;
}
.hero__art svg {
  width: 100%;
  height: auto;
}

/* ---------- Strip ---------- */
.strip {
  background: var(--sheq-navy);
  color: #fff;
  padding: 28px 0;
}
.strip__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.strip__item {
  flex: 1 1 200px;
}
.strip__num {
  display: block;
  font-family: var(--sheq-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.strip__item span:last-child {
  color: #d7dcf7;
  font-size: 0.92rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}
.section--alt {
  background: var(--sheq-surface);
}
.section__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  max-width: 46ch;
  margin: 0 auto 0.5em;
}
.section__title--left {
  text-align: left;
  margin-left: 0;
}
.section__lead {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 44px;
  color: var(--sheq-text-muted);
}

/* ---------- Feature grid ---------- */
.grid--features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--sheq-surface);
  border: 1px solid var(--sheq-border);
  border-radius: var(--sheq-radius);
  padding: 28px;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 12px 28px rgba(30, 36, 64, 0.08);
  transform: translateY(-3px);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}
.card p {
  color: var(--sheq-text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--icon-bg, var(--sheq-blue-light));
  color: var(--icon-fg, var(--sheq-blue));
  margin-bottom: 16px;
}
.card__icon svg {
  width: 24px;
  height: 24px;
}

/* ---------- Tag list ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tag {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--sheq-blue-light);
  color: var(--sheq-blue);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- About ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about__list {
  margin-top: 20px;
}
.about__list li {
  padding: 10px 0;
  border-top: 1px solid var(--sheq-border);
}
.about__list li:first-child {
  border-top: none;
}

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact__details {
  margin-top: 20px;
}
.contact__details li {
  padding: 6px 0;
  color: var(--sheq-text-muted);
}
.contact__form {
  background: var(--sheq-surface);
  border: 1px solid var(--sheq-border);
  border-radius: var(--sheq-radius);
  padding: 32px;
}
.form__row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__row label {
  font-weight: 600;
  font-size: 0.9rem;
}
.form__row input,
.form__row textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--sheq-border);
  border-radius: 8px;
  background: var(--sheq-bg);
  color: var(--sheq-text);
}
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--sheq-navy);
  box-shadow: 0 0 0 3px var(--sheq-blue-light);
}
.form__status {
  min-height: 1.2em;
  font-size: 0.9rem;
  margin: 12px 0 0;
}
.form__status.is-success {
  color: var(--sheq-success);
}
.form__status.is-error {
  color: var(--sheq-danger);
}

/* ---------- Legal pages ---------- */
.legal__inner {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}
.legal__updated {
  color: var(--sheq-text-muted);
  font-size: 0.9rem;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 1.6em;
}
.legal ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.legal li {
  margin-bottom: 0.5em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--sheq-border);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__nav {
  display: flex;
  gap: 22px;
}
.footer__nav a {
  text-decoration: none;
  color: var(--sheq-text-muted);
  font-size: 0.9rem;
}
.footer__nav a:hover {
  color: var(--sheq-navy);
}
.footer__copy {
  color: var(--sheq-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner,
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }
  .about__art {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
  .grid--features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sheq-bg);
    border-bottom: 1px solid var(--sheq-border);
    flex-direction: column;
    padding: 16px 24px;
    display: none;
    gap: 16px;
  }
  .nav.is-open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .header__actions .btn--ghost {
    display: none;
  }
  .grid--features {
    grid-template-columns: 1fr;
  }
  .strip__inner {
    text-align: left;
  }
}

/* ==========================================================================
   Modern theme layer (overrides above; keep last)
   ========================================================================== */
:root {
  --sheq-ink: #0b1030;
  --sheq-ink-2: #141a4a;
  --sheq-accent: #3ec7d9;
  --sheq-glow: 0 10px 40px rgba(77, 92, 194, 0.35);
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(242, 241, 236, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition:
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(11, 16, 48, 0.1);
  background: rgba(255, 255, 255, 0.86);
}
.nav a {
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--sheq-navy-light), var(--sheq-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 2px;
}
.nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  padding: 12px 26px;
}
.btn--primary {
  background: linear-gradient(135deg, var(--sheq-navy-light), var(--sheq-navy));
  box-shadow: 0 6px 20px rgba(40, 48, 128, 0.35);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #5f6fe0, var(--sheq-navy));
  box-shadow: var(--sheq-glow);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 150px;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(62, 199, 217, 0.18), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(77, 92, 194, 0.35), transparent 60%),
    linear-gradient(160deg, var(--sheq-ink) 0%, var(--sheq-ink-2) 55%, #1d2670 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 199, 217, 0.35), transparent 65%);
  filter: blur(30px);
  animation: orb 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: #fff;
  letter-spacing: -0.01em;
}
.gradient-text {
  background: linear-gradient(90deg, #8fa0ff 0%, var(--sheq-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #bfeaf1;
  backdrop-filter: blur(6px);
}
.hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sheq-accent);
  box-shadow: 0 0 10px var(--sheq-accent);
}
.hero__lead {
  color: #c3c9ee;
}
.hero .btn--primary {
  background: linear-gradient(135deg, #5f6fe0, #3ec7d9);
  color: #06122b;
  box-shadow: 0 8px 28px rgba(62, 199, 217, 0.35);
}
.hero .btn--primary:hover {
  box-shadow: 0 10px 36px rgba(62, 199, 217, 0.55);
}
.hero .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
}
.hero__trust {
  color: #aeb6e6;
}
.hero__trust li::before {
  color: var(--sheq-accent);
}
.hero__art {
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}
.hero__art circle:first-of-type {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1.5;
}
.hero__art g circle {
  fill: var(--sheq-accent);
  filter: drop-shadow(0 0 8px var(--sheq-accent));
}

/* ---------- Stats strip (floating card over the hero edge) ---------- */
.strip {
  background: transparent;
  padding: 0;
  margin-top: -72px;
  position: relative;
  z-index: 2;
}
.strip__inner {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  padding: 28px 12px;
  box-shadow: 0 24px 60px rgba(11, 16, 48, 0.18);
  gap: 0;
}
.strip__item {
  padding: 4px 24px;
}
.strip__item + .strip__item {
  border-left: 1px solid var(--sheq-border);
}
.strip__num {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--sheq-navy-light), var(--sheq-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.strip__item span:last-child {
  color: var(--sheq-text-muted);
}

/* ---------- Sections ---------- */
.section__title {
  letter-spacing: -0.01em;
}
.eyebrow {
  color: var(--sheq-blue);
}
.eyebrow--center::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sheq-navy-light), var(--sheq-accent));
}

/* ---------- Cards with cursor spotlight ---------- */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border-color: rgba(221, 216, 206, 0.9);
  background: linear-gradient(180deg, #fff, #fbfbf9);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    rgba(77, 92, 194, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover::before {
  opacity: 1;
}
.card:hover {
  border-color: rgba(77, 92, 194, 0.45);
  box-shadow: 0 20px 44px rgba(40, 48, 128, 0.14);
  transform: translateY(-5px);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease;
}
.card:hover .card__icon {
  transform: scale(1.08) rotate(-4deg);
}

/* ---------- Tags ---------- */
.tag {
  background: #fff;
  border: 1px solid var(--sheq-border);
  color: var(--sheq-navy);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.tag:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--sheq-navy-light), var(--sheq-navy));
  color: #fff;
  box-shadow: var(--sheq-glow);
}

/* ---------- About / Contact ---------- */
.about__art svg {
  filter: drop-shadow(0 24px 40px rgba(40, 48, 128, 0.18));
}
.about__list li {
  transition: padding-left 0.2s ease;
}
.about__list li:hover {
  padding-left: 8px;
}
.contact__form {
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11, 16, 48, 0.1);
}
.form__row input,
.form__row textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .card.reveal.is-visible:hover {
  transform: translateY(-5px);
}

/* ---------- Keyframes ---------- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes orb {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-60px, 50px) scale(1.15);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 64px 0 130px;
  }
  .hero__art {
    max-width: 380px;
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .strip__item + .strip__item {
    border-left: none;
    border-top: 1px solid var(--sheq-border);
    padding-top: 16px;
    margin-top: 12px;
  }
  .strip__inner {
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .hero__art {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
