/* mspfrontline.com: colour tokens follow the Frontline console (src/app.css). */
:root {
  --bg: #0b0f13;
  --bg-alt: #0f141a;
  --surface: #11161c;
  --surface-2: #161d24;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f1f4f7;
  --text-2: #c8d1da;
  --text-3: #94a2ae;
  --amber: #f2b441;
  --amber-dim: #b68528;
  --amber-bg: rgba(242, 180, 65, .1);
  --teal: #4fcfc1;
  --rose: #f26d6d;
  --radius: 18px;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0; }
kbd {
  font-family: var(--mono); font-size: .8em; padding: 1px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text);
}
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); color: #111; padding: 8px 14px; border-radius: 8px; }

.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 14px;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border: 0; border-radius: 980px;
  cursor: pointer; font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; transition: background .2s, transform .1s;
}
.btn-primary { background: var(--amber); color: #15110a; }
.btn-primary:hover { background: #f7c766; }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.link-arrow { color: var(--text); text-decoration: none; font-weight: 500; }
.link-arrow:hover { color: var(--amber); }

/* Nav */
.gnav { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 19, .72); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.gnav.scrolled { border-bottom-color: var(--line); }
.gnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.gnav-links { display: flex; gap: 28px; }
.gnav-links a { color: var(--text-3); text-decoration: none; font-size: 15px; }
.gnav-links a:hover, .gnav-links a[aria-current] { color: var(--text); }
@media (max-width: 760px) { .gnav-links { display: none; } }

/* Hero */
.hero { padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 8vw, 104px); background: radial-gradient(900px 480px at 50% 0%, rgba(242, 180, 65, .10), transparent 70%); text-align: center; }
.hero h1 { font-size: clamp(44px, 7vw, 88px); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { margin: 26px auto 0; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.rhythm { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 40px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.rhythm i { font-style: normal; color: var(--text-3); opacity: .6; }
.rhythm .amber { color: var(--amber); }

.shot { margin: clamp(48px, 6vw, 72px) 0 0; }
.window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(242, 180, 65, .06); }
.window-bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.shot figcaption { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* Sections */
.block { padding: clamp(80px, 10vw, 128px) 0; }
.block.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sechead { margin-bottom: clamp(36px, 5vw, 56px); }
.sechead h2 { font-size: clamp(32px, 4.4vw, 52px); max-width: 22ch; }
.sechead .lede { margin-top: 18px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.panel { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel h3 { font-size: 22px; margin-bottom: 16px; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.panel li { padding-left: 26px; position: relative; color: var(--text-2); }
.panel li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); }
.panel.bad li::before { content: "×"; color: var(--rose); }
.panel.good { border-color: rgba(242, 180, 65, .28); background: linear-gradient(180deg, var(--amber-bg), var(--surface) 60%); }
.panel.good li::before { content: "✓"; color: var(--amber); }

.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.loop li { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.loop .num { font-family: var(--mono); font-size: 13px; color: var(--amber); }
.loop h3 { font-size: 20px; margin: 10px 0 8px; }
.loop p { font-size: 15px; color: var(--text-3); }
@media (max-width: 1000px) { .loop { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .loop { grid-template-columns: 1fr; } }
.loopnote { margin-top: 32px; color: var(--text-2); max-width: 70ch; }
.loopnote b { color: var(--text); }

.card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-3); }
.tag { display: inline-block; margin-bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); background: var(--amber-bg); padding: 3px 8px; border-radius: 6px; }

.measure { align-items: start; gap: clamp(32px, 6vw, 80px); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stats li { padding: 22px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--amber); display: grid; gap: 4px; }
.stats b { font-weight: 600; }
.stats span { color: var(--text-3); font-size: 15px; }

.rule { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.rule .big { font-size: clamp(32px, 5vw, 60px); font-weight: 600; letter-spacing: -.02em; }
.rule .big b { color: var(--amber); font-weight: 600; }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 0 24px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--amber); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 22px; color: var(--text-2); }

/* Contact (same form as mspnexus.com) */
.contact { padding: clamp(100px, 12vw, 160px) 0; background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-head { display: grid; gap: 18px; position: sticky; top: 110px; }
.contact-head .eyebrow { margin: 0; }
.contact-head h2 { font-size: clamp(36px, 5vw, 60px); }
.contact-form { position: relative; display: grid; gap: 18px; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field em { font-style: normal; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: #080c0f; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(242, 180, 65, .18); }
.field.invalid input, .field.invalid textarea { border-color: var(--rose); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.turnstile { min-height: 65px; }
.contact-form .btn[disabled] { opacity: .5; cursor: progress; }
.form-status { min-height: 1.4em; font-size: 15px; color: var(--text-2); }
.form-status.is-ok { color: #4fcf8a; }
.form-status.is-error { color: var(--rose); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-head { position: static; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--text-3); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--amber); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
