/* ==========================================================================
   WOW Ai Suite — wowaisuite.com
   Single stylesheet. Mobile-first, responsive, WCAG AA.
   ========================================================================== */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  /* Brand colors */
  --navy: #1B223C;        /* primary deep navy */
  --navy-deep: #0A1128;   /* hero gradient dark stop (matches wowbackupandrestore) */
  --blue: #1A3297;        /* brand blue: buttons, links, headings */
  --star: #BFD4FF;        /* light-blue star tint */
  --indigo: #4F46E5;      /* indigo accent */
  --white: #FFFFFF;
  --bg: #FFFFFF;

  /* Supporting neutrals (derived, AA-safe on white) */
  --ink: #1B223C;         /* body text on white */
  --ink-soft: #43496180;  /* not used for text — decorative only */
  --muted: #4A5169;       /* secondary text, AA on white */
  --line: #E4E8F5;        /* hairlines / card borders */
  --secondary-border: #D2D9FC;
  --surface: #F6F8FE;     /* tinted section background */

  /* Spacing — 4px base unit */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --s20: 80px; --s24: 96px;

  /* Radii */
  --radius-card: 10px;
  --radius-pill: 100px;

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(27,34,60,.06), 0 8px 24px rgba(27,34,60,.06);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  color: var(--blue);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s4);
  font-weight: 800;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4.6vw, 44px); }
h3 { font-size: clamp(19px, 2.4vw, 22px); font-weight: 700; }

p { margin: 0 0 var(--s4); }

/* Visible focus for keyboard users (AA) */
:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: var(--s3) var(--s5);
  border-radius: 0 0 var(--radius-card) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ----- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s5);
}

.section { padding-block: var(--s16); }
.section--tint { background: var(--surface); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: var(--s3);
}

.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); }

.measure { max-width: 760px; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 14px 28px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: #15287a; border-color: #15287a; }

.btn--secondary { background: #fff; color: var(--blue); border-color: var(--secondary-border); }
.btn--secondary:hover { background: var(--surface); }

/* On dark sections (hero + closing band) */
.hero .btn--secondary,
.band .btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn--secondary:hover,
.band .btn--secondary:hover { background: rgba(255,255,255,.10); }
/* brighten the primary CTA so it pops on the gradient */
.hero .btn--primary,
.band .btn--primary { box-shadow: 0 8px 24px rgba(10,17,40,.45); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s8);
}
.cta-row .sep { color: var(--muted); }
.hero .cta-row .sep,
.band .cta-row .sep { color: rgba(255,255,255,.6); }

/* ----- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: var(--s4);
}
.brand { display: flex; align-items: center; gap: var(--s3); }

/* LOGO placeholder — replace with your file (see assets/README) */
.logo-placeholder {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  height: 36px;
  padding: 0 var(--s3);
  border: 2px dashed var(--secondary-border);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.logo-placeholder span { color: var(--muted); font-weight: 600; font-size: 11px; }

/* Real logo image (drop your file at assets/wow-logo.png) */
.brand { gap: var(--s3); }
.brand .logo { height: 46px; width: auto; display: block; }
.site-footer .brand .logo { height: 54px; }
@media (max-width: 560px) { .brand .logo { height: 40px; } }

/* "Ai Suite" wordmark lockup beside the mark */
.brand .wordmark {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--blue);
  padding-left: var(--s3);
  border-left: 2px solid var(--line);
}
.site-footer .brand .wordmark { font-size: 24px; }
@media (max-width: 560px) { .brand .wordmark { font-size: 18px; padding-left: var(--s2); } }

.header-nav { display: flex; align-items: center; gap: var(--s5); }
.header-nav a.navlink { color: var(--ink); font-weight: 600; font-size: 16px; }
.header-nav a.navlink:hover { color: var(--blue); }

/* hide the text link on very small screens, keep the button */
@media (max-width: 560px) {
  .header-nav a.navlink { display: none; }
}

/* ----- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(var(--s16), 9vw, var(--s24));
  color: #fff;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--blue) 100%);
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { color: rgba(255,255,255,.84); max-width: 60ch; }
.hero .eyebrow { color: #9DB6FF; }

/* ----- CSS starfield (no JS) — shared by hero + closing band ------------ */
.hero::before,
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Scattered light-blue stars, tiled. Two sizes for depth. */
  background-image:
    radial-gradient(1.6px 1.6px at 24px 36px,  rgba(191,212,255,.95), transparent),
    radial-gradient(1.4px 1.4px at 132px 88px, rgba(143,180,255,.85), transparent),
    radial-gradient(1px 1px     at 64px 168px, rgba(255,255,255,.75), transparent),
    radial-gradient(2px 2px     at 208px 128px, rgba(191,212,255,.90), transparent),
    radial-gradient(1px 1px     at 168px 44px, rgba(143,180,255,.70), transparent),
    radial-gradient(1.6px 1.6px at 238px 206px, rgba(255,255,255,.70), transparent),
    radial-gradient(1px 1px     at 96px 232px, rgba(191,212,255,.75), transparent),
    radial-gradient(1.3px 1.3px at 300px 70px, rgba(191,212,255,.80), transparent),
    radial-gradient(1px 1px     at 350px 180px, rgba(143,180,255,.65), transparent),
    radial-gradient(2px 2px     at 280px 250px, rgba(255,255,255,.60), transparent);
  background-repeat: repeat;
  background-size: 380px 300px;
  opacity: .9;
}
/* a soft indigo glow, like their hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(720px 360px at 88% -10%, rgba(79,70,229,.35), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }

/* ----- Feature grid ----------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--s8);
  box-shadow: var(--shadow);
  height: 100%;
}
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--blue);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: var(--s4);
  border: 1px solid var(--line);
}
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--muted); margin: 0; font-size: 16.5px; }

/* ----- "You stay in control" callout ------------------------------------ */
.control {
  border: 1px solid var(--secondary-border);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(var(--s8), 5vw, var(--s16));
  text-align: center;
}
.control p { margin: 0 auto; max-width: 64ch; color: var(--ink); font-size: clamp(18px, 2.2vw, 21px); }

/* ----- Closing band ----------------------------------------------------- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--blue) 100%);
}
.band .container { position: relative; z-index: 1; }
.band h2 { color: #fff; max-width: 22ch; }
.band p { color: rgba(255,255,255,.82); max-width: 64ch; }

/* ----- Learn-more specifics --------------------------------------------- */
.callout {
  border: 1px solid var(--secondary-border);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(var(--s6), 4vw, var(--s10));
  margin-block: var(--s10);
}
.callout h3 { color: var(--blue); margin-top: 0; }
.callout ol { margin: 0 0 var(--s4); padding-left: 1.25em; }
.callout li { margin-bottom: var(--s3); color: var(--ink); }
.callout li strong { color: var(--blue); }
.callout .fineprint { margin: 0; color: var(--muted); font-weight: 600; }

.module-group {
  border-top: 1px solid var(--line);
  padding-block: var(--s10);
}
.module-group:last-of-type { border-bottom: 1px solid var(--line); }
.module-group .grouphead {
  display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.module-group h3 { margin: 0; }
.module-group .tag {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--indigo); background: rgba(79,70,229,.10);
  padding: 3px 10px; border-radius: var(--radius-pill);
}
.module-group .tag--always { color: #0a7a4b; background: rgba(10,122,75,.10); }

.module-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .module-list { grid-template-columns: 1fr 1fr; } }
.module-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 16.5px;
}
.module-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat,
    var(--blue);
}

/* ----- Footer ----------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s12);
  background: #fff;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
}
.site-footer .foot-links { display: flex; gap: var(--s6); flex-wrap: wrap; }
.site-footer a { color: var(--muted); font-weight: 600; }
.site-footer a:hover { color: var(--blue); }
.site-footer .copyright { color: var(--muted); font-size: 15px; margin: 0; }

/* ----- Utilities -------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 720px; margin-bottom: var(--s10); }
.section-head.center { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
