/* Cortex 2026 site style — dark, clean, gold + blue. Used by index.html and black-box-services.html */
:root {
  --bg: #07090E; --bg2: #0B0E15; --card: #0F131C; --card2: #11151F; --line: rgba(255,255,255,0.08); --line2: rgba(255,255,255,0.14);
  --text: #E8EAF0; --soft: #C9CEDA; --muted: #A8B0C2; --dim: #8A93A6;
  --gold: #E9D3A0; --gold-deep: #C9A84C; --blue: #7C96FF; --blue-soft: #A9B8FF; --green: #5EE0A8;
  --serif: 'Instrument Serif', Georgia, serif; --sans: 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--gold); } a:hover { color: #fff; }
img, svg { max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7,9,14,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand svg { width: 52px; height: 52px; flex: none; display: block; }
.brand .wm { display: flex; flex-direction: column; line-height: 1.15; font-family: Georgia, serif; }
.brand .wm b { letter-spacing: 0.24em; font-size: 16px; color: #fff; }
.brand .wm span { font-size: 10px; letter-spacing: 0.22em; color: var(--gold-deep); }
.links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.links a { color: var(--soft); text-decoration: none; }
.links a:hover, .links a[aria-current="page"] { color: #fff; }
.links a[aria-current="page"] { font-weight: 700; }
.menu-btn { display: none; background: none; border: 1px solid var(--line2); color: #fff; border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #0A0D13; border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .links.open { display: flex; }
  .links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .links .btn { margin-top: 12px; text-align: center; border-bottom: none; }
}

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px; padding: 16px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.1; }
.btn-gold { background: var(--gold); color: #0B0D12 !important; } .btn-gold:hover { background: #F3E2B8; }
.btn-ghost { border-color: rgba(255,255,255,0.2); color: #fff !important; } .btn-ghost:hover { border-color: #fff; }
.btn-dark { background: #0B0D12; color: #fff !important; }
.btn-sm { padding: 12px 20px; font-size: 14px; }
.links .btn { color: #0B0D12; }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; font-size: 12px; letter-spacing: 0.12em; font-weight: 600; text-transform: uppercase; }
.eyebrow.gold { border: 1px solid rgba(233,211,160,0.28); background: rgba(233,211,160,0.06); color: var(--gold); }
.eyebrow.blue { border: 1px solid rgba(124,150,255,0.35); background: rgba(124,150,255,0.08); color: var(--blue-soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.kicker { font-size: 12px; letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; margin-bottom: 16px; }
h1, h2, h3 { margin: 0; }
.display { font-family: var(--serif); font-weight: 400; color: #fff; letter-spacing: -0.02em; line-height: 0.98; }
.display em, .h2 em { font-style: italic; color: var(--gold); }
.hero h1 { font-size: clamp(46px, 6.4vw, 92px); margin: 26px 0 22px; }
.h2 { font-family: var(--serif); font-weight: 400; color: #fff; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; margin: 0 0 32px; }
p { line-height: 1.65; }
.muted { color: var(--muted); }

/* hero */
.hero { padding: 56px 0 96px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 480px; min-width: 0; position: relative; z-index: 2; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.facts { display: flex; gap: 18px 30px; flex-wrap: wrap; margin-top: 48px; font-size: 13px; color: var(--dim); }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 25px; color: #fff; white-space: nowrap; }
.scene { flex: 1 1 460px; min-width: 0; height: 540px; position: relative; perspective: 1600px; }
.glow { position: absolute; left: 50%; top: 50%; width: 440px; height: 440px; margin: -220px 0 0 -220px; border-radius: 50%; filter: blur(30px);
  background: radial-gradient(circle at 35% 30%, rgba(124,150,255,0.35), rgba(124,150,255,0) 60%), radial-gradient(circle at 70% 75%, rgba(233,211,160,0.28), rgba(233,211,160,0) 55%); }
.ring { position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; margin: -310px 0 0 -310px; opacity: 0.55; animation: spin 60s linear infinite; }
.stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(52deg) rotateZ(-38deg) translateY(10px); }
.floater { position: absolute; width: 360px; transform-style: preserve-3d; }
.glass { border-radius: 22px; padding: 22px; box-shadow: 0 50px 90px rgba(0,0,0,0.55); }
.glass .lbl { font-size: 11px; letter-spacing: 0.14em; }
.g1 { background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.14); }
.g2 { background: linear-gradient(160deg, rgba(124,150,255,0.22), rgba(124,150,255,0.05)); border: 1px solid rgba(124,150,255,0.35); }
.g3 { background: linear-gradient(160deg, rgba(233,211,160,0.24), rgba(233,211,160,0.05)); border: 1px solid rgba(233,211,160,0.45); }
.tag { font-size: 11px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--soft); }
.f1 { animation: floaty 7s ease-in-out infinite; } .f2 { animation: floaty 7s ease-in-out -2.3s infinite; } .f3 { animation: floaty 7s ease-in-out -4.6s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .f1, .f2, .f3, .ring { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 760px) { .scene { height: 420px; transform: scale(0.78); transform-origin: center top; margin-bottom: -90px; } .hero { padding-top: 32px; } }
@media (max-width: 480px) { .scene { display: none; } .hero { padding-bottom: 24px; } section.block { padding-top: 64px; } }

/* sections */
section.block { padding: 100px 0 40px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.head-row p { color: var(--muted); max-width: 400px; margin: 0; }
.grid { display: grid; gap: 18px; }
.g-auto-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g-auto-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g-auto-210 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.g-auto-170 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.card h3 { font-size: 21px; color: #fff; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card.blue { background: linear-gradient(140deg, #141A2A, #0D111A); border-color: rgba(124,150,255,0.3); }
.card.step { background: linear-gradient(180deg, #11151F, #0B0E15); display: flex; flex-direction: column; gap: 14px; }
.num { font-family: var(--serif); font-size: 56px; color: var(--gold); line-height: 1; }
.svc { display: flex; flex-direction: column; gap: 18px; }
.svc a { font-weight: 700; font-size: 14px; color: var(--blue-soft); text-decoration: none; }
.feature { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; margin-bottom: 18px; }
.feature::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(233,211,160,0.22), rgba(233,211,160,0) 65%); }
.feature > div { flex: 1 1 380px; min-width: 0; position: relative; }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: 44px; color: #fff; margin-bottom: 12px; }
.who { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.who svg { flex: none; margin-top: 2px; }
.who b { display: block; color: #fff; font-size: 15px; }
.who span { font-size: 13px; color: var(--muted); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; padding: 40px 0 100px; }
.panel { border-radius: 28px; padding: 48px; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.02; margin-top: 14px; }
.panel.goldbg { background: var(--gold); color: #0B0D12; }
.panel.dark { background: var(--card2); border: 1px solid var(--line); }
.panel .k { font-size: 12px; letter-spacing: 0.16em; font-weight: 700; }
@media (max-width: 560px) { .panel { padding: 32px; } .panel h3 { font-size: 36px; } .feature { padding: 28px; } .feature h3 { font-size: 36px; } }
.cta { position: relative; overflow: hidden; border-radius: 36px; border: 1px solid var(--line); background: #0D1018; padding: 90px 32px; text-align: center; margin-bottom: 80px; }
.cta::before, .cta::after { content: ""; position: absolute; left: 50%; top: 100%; border-radius: 50%; }
.cta::before { width: 900px; height: 900px; margin: -450px 0 0 -450px; border: 1px solid rgba(233,211,160,0.25); box-shadow: 0 0 120px rgba(233,211,160,0.12) inset; }
.cta::after { width: 620px; height: 620px; margin: -310px 0 0 -310px; border: 1px solid rgba(124,150,255,0.25); }
.cta > * { position: relative; z-index: 1; }
.cta .ctas { justify-content: center; }
.band { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; border-radius: 22px; padding: 24px 28px; background: rgba(233,211,160,0.08); border: 1px solid rgba(233,211,160,0.3); }
.band p { margin: 0; max-width: 760px; color: var(--soft); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--dim); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer .brand svg { width: 40px; height: 40px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.footer a { color: var(--dim); text-decoration: none; } .footer a:hover { color: #fff; }

/* forms */
.form-card { background: #0D1018; border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 3vw, 40px); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form .full { grid-column: 1 / -1; }
.form .sec { grid-column: 1 / -1; margin-top: 10px; }
.form .sec b { display: block; font-size: 12px; letter-spacing: 0.14em; color: var(--gold); }
.form .sec span { font-size: 13px; color: var(--dim); }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--soft); font-weight: 600; min-width: 0; }
.form input, .form select, .form textarea { background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 13px 14px; color: #fff; font-family: inherit; font-size: 15px; width: 100%; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); outline: none; }
.req { color: var(--gold); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-foot small { color: var(--dim); max-width: 460px; font-size: 13px; }
.status { grid-column: 1 / -1; font-size: 14px; min-height: 20px; }
.status.err { color: #FF9C9C; } .status.ok { color: var(--green); }
.success { display: none; text-align: center; padding: 40px 10px; }
.success.show { display: block; }
.contact-tile { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.contact-tile small { display: block; font-size: 12px; color: var(--dim); }

/* Desktop: menu as a left side rail (phones/narrow windows keep the top bar + menu button) */
@media (min-width: 1100px) {
  body { padding-left: 248px; }
  header.nav { position: fixed; top: 0; left: 0; bottom: 0; width: 248px; border-bottom: none; border-right: 1px solid var(--line); background: rgba(7,9,14,0.94); }
  header.nav .wrap { height: 100%; max-width: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 30px; padding: 28px 20px 24px; }
  header.nav .brand { padding: 0 6px; }
  header.nav .menu-btn { display: none !important; }
  header.nav nav#nav-links { display: flex !important; flex: 1; flex-direction: column; align-items: stretch; gap: 4px; position: static; background: none; border: 0; padding: 0; }
  header.nav nav#nav-links a:not(.btn) { display: block; padding: 11px 12px; border-radius: 10px; font-size: 15px; color: var(--soft); border: 0; }
  header.nav nav#nav-links a:not(.btn):hover { background: rgba(255,255,255,0.05); color: #fff; }
  header.nav nav#nav-links a[aria-current="page"] { background: rgba(233,211,160,0.12); color: #fff; font-weight: 700; }
  header.nav nav#nav-links .btn { margin-top: auto; text-align: center; }
  header.nav nav#nav-links::after { content: "(561) 467-6677"; display: block; text-align: center; font-size: 13px; color: var(--dim); margin-top: 12px; }
}

html { overflow-x: hidden; }

/* slow scrolling banner under the hero */
.hero { padding-bottom: 56px; }
.marquee { position: relative; display: flex; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; align-items: center; gap: 44px; padding-right: 44px; flex: none; animation: mq 95s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-item { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.mq-item b { font-family: var(--serif); font-weight: 400; font-size: 30px; color: #fff; }
.mq-item span { font-size: 14px; color: var(--muted); }
.mq-dot { color: var(--gold); font-size: 14px; opacity: .8; }
@keyframes mq { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } .mq-track + .mq-track { display: none; } .marquee { justify-content: center; } }
.marquee + section.block { padding-top: 72px; }
