/* ============================================================
   Wisdom Systems AI - shared stylesheet
   Industrial-utilitarian. Dark. Precise. Operator energy.
   ============================================================ */

/* ---- Fonts -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

/* ---- Design tokens ----------------------------------------- */
:root {
  /* palette - Wisdom Systems AI brand (Multiply what matters) */
  --bg:        #0b0d14;   /* brand near-black */
  --bg-2:      #11131d;   /* raised surface (violet-tinted) */
  --bg-3:      #171a26;   /* cards / inputs */
  --line:      #242a3a;   /* hairline borders */
  --line-2:    #333a4e;   /* stronger borders */

  /* --cyan keeps its name for back-compat but now holds the brand violet,
     so every existing accent across the site rebrands in one move. */
  --cyan:      #7b5cf6;   /* brand primary - violet */
  --purple:    #7b5cf6;
  --purple-2:  #b69dff;   /* light violet accent */
  --amber:     #f59e0b;
  --green:     #10b981;

  --text:      #e5e7eb;   /* primary text */
  --text-2:    #9ca3af;   /* secondary text */
  --text-3:    #6f7686;   /* muted / labels */

  /* type */
  --font-display: 'Syne', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* layout */
  --maxw: 1120px;
  --gap: 24px;
  --radius: 10px;
  --nav-h: 68px;
}

/* ---- Reset / base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* subtle grid texture */
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: #fff;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--text-2); }

/* ---- Layout primitives ------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
  display: inline-block;
}
.eyebrow--purple { color: var(--purple); }
.eyebrow--amber { color: var(--amber); }

.lead { font-size: 1.15rem; color: var(--text-2); }
.muted { color: var(--text-3); }
.accent { color: var(--cyan); }

/* ---- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--cyan);
  color: #0b0d14;
  box-shadow: 0 0 0 1px rgba(123,92,246,.25), 0 8px 30px -12px rgba(123,92,246,.5);
}
.btn--primary:hover { background: #9a7ef9; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---- Navigation -------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10,12,15,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; gap: 24px; }
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px;
  background: url("/logo-mark.png") center / contain no-repeat;
  filter: drop-shadow(0 0 9px rgba(123,92,246,0.35));
  flex: none;
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-2);
}
.nav-links a:hover { color: #fff; text-decoration: none; }
/* Primary button in the nav: keep its dark label, the .nav-links a color
   rule above is more specific than .btn--primary and would wash it out. */
.nav-links a.btn--primary,
.nav-links a.btn--primary:hover { color: #0b0d14; }
.nav-toggle { display: none; }

/* ---- Hero -------------------------------------------------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::after {
  /* faint cyan glow top-right */
  content: "";
  position: absolute;
  top: -180px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(123,92,246,.10), transparent 65%);
  pointer-events: none;
}
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 56ch; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- Grids & cards ----------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 8px; }
.card--accent { border-color: rgba(123,92,246,.4); }
.card__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* problem / solution split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--bg-3);
}
.panel--problem { border-left: 3px solid var(--amber); }
.panel--solution { border-left: 3px solid var(--green); }
.panel h3 { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.panel--problem h3 { color: var(--amber); }
.panel--solution h3 { color: var(--green); }
.panel ul { margin: 0; padding-left: 1.1em; }
.panel li { color: var(--text-2); margin-bottom: 0.5em; }

/* ---- Product ladder ---------------------------------------- */
.ladder { display: grid; gap: 14px; }
.rung {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s ease, transform .12s ease;
}
.rung:hover { border-color: var(--line-2); }
.rung--featured { border-color: rgba(123,92,246,.45); box-shadow: 0 0 0 1px rgba(123,92,246,.12); }
.rung__step {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-3);
}
.rung__name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.08rem; }
.rung__desc { color: var(--text-2); font-size: 0.95rem; margin: 2px 0 0; }
.rung__price { font-family: var(--font-mono); font-weight: 600; color: var(--cyan); white-space: nowrap; }
.rung__price small { color: var(--text-3); font-weight: 400; }
.rung__cta { white-space: nowrap; }

/* ---- Forms ------------------------------------------------- */
.form { display: grid; gap: 14px; max-width: 480px; }
.form--inline { max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
}
.input, .textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(123,92,246,.15);
}
.textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--text-3); margin: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* capture card */
.capture {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 32px;
}

/* ---- Content preview --------------------------------------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .card__tag { margin-bottom: 12px; }
.post-card h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }
.post-card .read { margin-top: auto; font-family: var(--font-mono); font-size: 0.82rem; }

/* ---- Lists ------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
}
.checklist li::before {
  content: "›";
  position: absolute; left: 6px; top: -1px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ---- Pricing tiers (work-with-me) -------------------------- */
.tier { display: flex; flex-direction: column; height: 100%; }
.tier__price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #fff; margin: 6px 0 4px; }
.tier__price small { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); font-weight: 400; }
.tier .checklist { margin: 16px 0 24px; }
.tier .btn { margin-top: auto; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid rgba(123,92,246,.4);
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-block;
}

/* ---- Prose (privacy / long copy) --------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { color: var(--text-2); margin-bottom: 0.4em; }
.prose a { text-decoration: underline; }

/* ---- Callout ----------------------------------------------- */
.callout {
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--green);
  background: var(--bg-3);
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 0.95rem;
}
.callout strong { color: var(--green); }

/* ---- Confirmation (thank-you) ------------------------------ */
.confirm-mark {
  width: 56px; height: 56px;
  border: 2px solid var(--green);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--green);
  font-size: 1.6rem;
  margin: 0 auto 24px;
  box-shadow: 0 0 24px -6px var(--green);
}

/* ---- Footer ------------------------------------------------ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px 0;
  margin-top: 40px;
}
.footer .container { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.footer p { margin: 0; color: var(--text-3); font-size: 0.9rem; }
.footer-links { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-2); }
.footer-no-ads { color: var(--green); font-family: var(--font-mono); font-size: 0.82rem; }

/* ---- Utilities --------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- Responsive -------------------------------------------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .split { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links .btn { margin-top: 8px; }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--text);
    border-radius: 6px;
    padding: 8px 10px;
    font-family: var(--font-mono);
    cursor: pointer;
  }
  .rung {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "step price"
      "name price"
      "desc desc"
      "cta  cta";
    row-gap: 6px;
  }
  .rung__step { grid-area: step; }
  .rung__name { grid-area: name; }
  .rung__desc { grid-area: desc; }
  .rung__price { grid-area: price; align-self: start; text-align: right; }
  .rung__cta { grid-area: cta; margin-top: 8px; }
  .rung__cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 48px; }
}

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