/*
Theme Name: Flash Analytics
Theme URI: https://flash.local/
Author: Flash Analytics
Description: Dark, responsive company website for a systems analysis practice.
Version: 1.0.0
Text Domain: flash-analytics
*/

:root {
  --ink: #f5f7fb;
  --muted: #a9b1c3;
  --bg: #07090e;
  --panel: #0d111a;
  --panel-2: #111724;
  --line: rgba(255,255,255,.10);
  --cyan: #79e6ff;
  --lime: #b9ff66;
  --violet: #9e8cff;
  --max: 1180px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(121,230,255,.08), transparent 26rem),
    radial-gradient(circle at 84% 24%, rgba(158,140,255,.08), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-main { overflow: hidden; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--bg); border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,9,14,.78); backdrop-filter: blur(20px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header.scrolled { border-color: var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 750; letter-spacing: .13em; }
.brand-mark { position: relative; width: 34px; height: 34px; border: 1px solid rgba(121,230,255,.45); border-radius: 50%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border-radius: 50%; }
.brand-mark::before { inset: 8px; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.brand-mark::after { inset: -4px 12px; border-block: 1px solid var(--lime); transform: rotate(45deg); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); }
.nav-cta { padding: 10px 16px; color: var(--ink) !important; border: 1px solid var(--line); border-radius: 999px; }
.menu-toggle { display: none; color: var(--ink); background: transparent; border: 0; padding: 8px; }

.hero { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 90px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; margin: 0 0 22px; color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.035em; }
h1 { max-width: 850px; font-size: clamp(52px, 7.4vw, 100px); font-weight: 690; }
h1 span { color: var(--muted); }
.lead { max-width: 650px; margin: 30px 0 36px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; text-decoration: none; font-weight: 650; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }
.button-primary { color: #081014; background: var(--cyan); border-color: var(--cyan); }
.button-primary:hover { background: #a2eeff; }
.button-arrow::after { content: "↗"; }

.system-orbit { position: relative; width: min(100%, 470px); aspect-ratio: 1; justify-self: end; border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(circle, rgba(121,230,255,.13), transparent 60%); }
.system-orbit::before, .system-orbit::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.system-orbit::before { inset: 17%; }
.system-orbit::after { inset: 35%; background: var(--cyan); box-shadow: 0 0 45px rgba(121,230,255,.7); }
.orbit-line { position: absolute; inset: 49.8% -7%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); transform: rotate(-28deg); }
.node { position: absolute; width: 13px; height: 13px; border: 2px solid var(--bg); border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px rgba(185,255,102,.75); }
.node-a { top: 14%; left: 34%; }
.node-b { right: 5%; top: 48%; background: var(--violet); }
.node-c { bottom: 13%; left: 21%; background: var(--cyan); }
.orbit-label { position: absolute; padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; background: rgba(7,9,14,.78); color: var(--muted); font: 600 11px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.label-a { top: 7%; right: 15%; }
.label-b { bottom: 23%; right: -2%; }
.label-c { bottom: 2%; left: 24%; }

.signal-strip { border-block: 1px solid var(--line); }
.signal-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.signal-item { padding: 22px 20px; color: var(--muted); border-right: 1px solid var(--line); font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.signal-item:first-child { border-left: 1px solid var(--line); }
.signal-item::before { content: "●"; margin-right: 10px; color: var(--lime); font-size: 8px; }

.section { padding: 130px 0; }
.section-head { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; margin-bottom: 62px; align-items: start; }
.section-kicker { color: var(--cyan); font: 700 12px/1.2 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
h2 { max-width: 780px; font-size: clamp(39px, 5vw, 68px); font-weight: 650; }
.section-copy { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 19px; }
.cards { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { min-height: 280px; padding: 38px; background: linear-gradient(145deg, rgba(255,255,255,.035), transparent); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card:nth-child(2n) { border-right: 0; }
.card:nth-last-child(-n+2) { border-bottom: 0; }
.card-index { display: block; margin-bottom: 72px; color: var(--cyan); font: 12px/1 ui-monospace, monospace; }
.card h3 { font-size: 27px; font-weight: 620; }
.card p { max-width: 480px; margin: 16px 0 0; color: var(--muted); }

.method { position: relative; }
.method::before { content: ""; position: absolute; inset: 5% auto 5% 0; width: 1px; background: linear-gradient(transparent, rgba(121,230,255,.3), transparent); }
.steps { counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 110px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { content: "0" counter(step); color: var(--cyan); font: 13px/1.4 ui-monospace, monospace; }
.step h3 { font-size: clamp(24px, 3vw, 36px); }
.step p { max-width: 660px; margin: 12px 0 0; color: var(--muted); }

.cta-panel { position: relative; padding: clamp(44px, 8vw, 92px); overflow: hidden; border: 1px solid rgba(121,230,255,.22); border-radius: 34px; background: linear-gradient(135deg, rgba(121,230,255,.10), rgba(158,140,255,.08)); }
.cta-panel::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -230px; border: 1px solid rgba(121,230,255,.25); border-radius: 50%; box-shadow: 0 0 0 55px rgba(121,230,255,.025), 0 0 0 110px rgba(121,230,255,.025); }
.cta-panel h2 { max-width: 760px; position: relative; z-index: 1; }
.cta-panel .button-row { margin-top: 36px; position: relative; z-index: 1; }

.page-hero { padding: 105px 0 65px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 950px; font-size: clamp(46px, 7vw, 82px); }
.page-hero p { max-width: 680px; color: var(--muted); font-size: 20px; }
.page-body { padding: 75px 0 120px; }
.prose { max-width: 790px; }
.prose h2 { margin: 52px 0 18px; font-size: 32px; }
.prose h3 { margin: 36px 0 12px; font-size: 23px; }
.prose p, .prose li { color: #c3c9d5; }
.prose a { color: var(--cyan); }
.prose ul { padding-left: 20px; }
.prose .updated { color: var(--muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.contact-aside p { color: var(--muted); }
.contact-meta { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-meta small { display: block; color: var(--muted); }
.contact-meta a { text-decoration: none; font-size: 20px; }
.contact-form { padding: clamp(28px,5vw,52px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; }
.field input, .field textarea { width: 100%; color: var(--ink); background: #090c12; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 155px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(121,230,255,.09); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; }
.checkbox input { margin-top: 5px; }
.checkbox a { color: var(--cyan); }
.notice { margin-bottom: 24px; padding: 14px 16px; border-radius: 12px; background: rgba(185,255,102,.09); border: 1px solid rgba(185,255,102,.25); }
.notice-error { background: rgba(255,100,115,.08); border-color: rgba(255,100,115,.25); }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { border-top: 1px solid var(--line); padding: 62px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.footer-intro { max-width: 380px; color: var(--muted); }
.footer-title { margin-bottom: 16px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #d6dae3; text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 840px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; inset: 78px 20px auto; flex-direction: column; align-items: stretch; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #0b0e15; }
  .main-nav.open { display: flex; }
  .hero-grid, .section-head, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .system-orbit { width: min(82vw, 420px); margin: 35px auto 0; }
  .section-head { gap: 22px; }
  .signal-inner { grid-template-columns: 1fr 1fr; }
  .signal-item:nth-child(2) { border-right: 0; }
  .signal-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 90px 0; }
  .contact-grid { gap: 42px; }
}
@media (max-width: 580px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 62px; }
  h1 { font-size: 48px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .card:last-child { border-bottom: 0 !important; }
  .card-index { margin-bottom: 44px; }
  .step { grid-template-columns: 48px 1fr; gap: 12px; }
  .field-row, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .signal-inner { grid-template-columns: 1fr; }
  .signal-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-item:last-child { border-bottom: 0; }
}
