/* SLASH6970.COM — styles v4 (redesign). Dark neon blue, one type scale, one spacing scale. */
:root {
  --bg: #050a18; --bg-2: #081128; --surface: rgba(255,255,255,.035); --surface-2: rgba(255,255,255,.06);
  --border: rgba(140,170,255,.14); --border-2: rgba(140,170,255,.28);
  --text: #eef3ff; --muted: #9aa8c7; --dim: #6c7a99;
  --blue: #2f7bff; --cyan: #19d3f5; --violet: #6a5cff;
  --grad: linear-gradient(100deg, #19d3f5, #2f7bff 55%, #6a5cff);
  --glow: 0 0 0 1px rgba(47,123,255,.35), 0 10px 40px -10px rgba(47,123,255,.55);
  --radius: 16px; --radius-sm: 10px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: clamp(4rem, 9vw, 7rem);
  --header-h: 60px; --max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60rem 40rem at 85% -10%, rgba(47,123,255,.14), transparent 60%), radial-gradient(50rem 35rem at -10% 40%, rgba(25,211,245,.07), transparent 60%); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.15rem; }
h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: .75rem; font-weight: 600; }
p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; background: var(--blue); color: #fff; border-radius: 8px; }
.skip-link:focus { top: .5rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header: slim, solid, flush at top ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #050a18; border-bottom: 1px solid var(--border); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand b { font-weight: 700; color: var(--cyan); }
.brand-mark { width: 38px; height: auto; filter: drop-shadow(0 0 8px rgba(80,255,120,.45)); }
.brand.small .brand-mark { width: 30px; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-list a { display: block; padding: .45rem .75rem; border-radius: 8px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-play { white-space: nowrap; }
.nav-play span { color: var(--cyan); font-family: var(--mono); font-weight: 700; }
.nav-list .nav-cta { margin-left: .5rem; color: #fff; background: var(--blue); font-weight: 600; }
.nav-list .nav-cta:hover { background: #4a8dff; }
.menu-toggle { display: none; align-items: center; gap: .5rem; height: 40px; padding: 0 .9rem; border-radius: 10px; border: 1px solid var(--border-2); background: transparent; color: var(--text); font: 600 .9rem var(--sans); cursor: pointer; }
.menu-icon { display: inline-grid; gap: 4px; }
.menu-icon i { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav-list { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: .75rem 1.25rem 1.25rem; background: #050a18; border-bottom: 1px solid var(--border); }
  .nav-list.open { display: flex; }
  .nav-list a { padding: .8rem .9rem; font-size: 1rem; }
  .nav-list .nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Banner: first thing under the header ---------- */
.banner { margin: 0; border-bottom: 1px solid var(--border); background: #030712; }
.banner img { width: 100%; max-height: 520px; object-fit: cover; }
/* Looping hero video: same box and crop as the still banner (full width, 3:1 desktop / 800x672 mobile, capped at 520px, center crop) */
.banner-video { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: center; background: #030712; }
.banner-video-d { aspect-ratio: 1920 / 640; }
.banner-video-m { display: none; aspect-ratio: 800 / 672; }
.banner-still { display: none; }
.banner-still img { display: block; }
@media (max-width: 640px) {
  .banner-video-d { display: none; }
  .banner-video-m { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-video, .banner-video-m { display: none !important; }
  .banner-still { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-copy { max-width: 760px; }
.pill { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: var(--s3); padding: .3rem .8rem; border: 1px solid var(--border-2); border-radius: 999px; font: 500 .8rem var(--mono); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
h1 { display: grid; gap: .6rem; margin-bottom: var(--s3); }
.wordmark { font-size: clamp(2rem, 9vw, 5.5rem); line-height: 1; letter-spacing: -.045em; font-weight: 800; background: linear-gradient(180deg, #fff 20%, #9fc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.term { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; margin-bottom: var(--s3); padding: .45rem .8rem; border-radius: var(--radius-sm); background: rgba(0,0,0,.35); border: 1px solid var(--border); font: .85rem var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.term-mark { color: var(--cyan); font-weight: 700; }
.term-prompt { color: var(--dim); }
.term-out { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.caret { width: 7px; height: 1.05em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: var(--s4) 0; }
.stats { display: flex; flex-wrap: wrap; gap: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--border); }
.stats li { display: grid; }
.stats strong { font-size: 1.25rem; letter-spacing: -.02em; }
.stats span { font-size: .85rem; color: var(--dim); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: 0 1.3rem; border-radius: 12px; border: 1px solid transparent; font: 600 .95rem var(--sans); cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: #4a8dff; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; }
.btn-lg { min-height: 54px; padding: 0 1.75rem; font-size: 1.05rem; }
.btn-sm { height: 30px; padding: 0 .75rem; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font: 600 .8rem var(--sans); cursor: pointer; }
.btn-sm:hover { border-color: var(--cyan); }

/* ---------- Sections ---------- */
.section { padding: var(--s5) 0; border-top: 1px solid var(--border); }
.kicker { margin-bottom: .75rem; font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); }
.section h2 { margin-bottom: var(--s4); max-width: 22ch; }
.section h2:has(+ .section-lede) { margin-bottom: var(--s2); }
.section-lede { color: var(--muted); margin-bottom: var(--s4); max-width: 60ch; }
.card-base, .svc, .pillar, .lab-card, .steps li, .feature, .cta, .note, .panel, .toy, .faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(47,123,255,.12); border: 1px solid rgba(47,123,255,.3); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { padding: .2rem .6rem; border-radius: 6px; background: var(--surface-2); font: .75rem var(--mono); color: var(--muted); }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.svc { padding: var(--s4) var(--s3); padding: clamp(1.5rem, 3vw, 2rem); transition: border-color .2s; }
.svc:hover { border-color: var(--border-2); }
.svc-head { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s2); }
.svc-tag { margin: .2rem 0 0; font: .78rem var(--mono); color: var(--dim); }
.svc-lede { color: var(--muted); margin-bottom: var(--s3); }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); }
.ticks li { position: relative; padding-left: 1.2rem; margin-bottom: .45rem; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--cyan); }

/* About */
.about-card { margin: 0 0 var(--s3); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.about-intro { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text); max-width: 55ch; margin-bottom: var(--s4); }
.about-body { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-h { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: var(--s3); letter-spacing: -.025em; }
.about-copy p { color: var(--muted); }
.about-copy strong { color: var(--text); }
.pillars { display: grid; gap: var(--s2); }
.pillar { padding: var(--s3); }
.pillar-num { display: block; margin-bottom: .5rem; font: 700 .8rem var(--mono); color: var(--cyan); }
.pillar h3 { margin-bottom: .4rem; }
.pillar p { color: var(--muted); font-size: .93rem; }

/* Toolbox */
.toolbox { padding: var(--s4) 0; border-top: 1px solid var(--border); }
.toolbox-title { font-size: .78rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: var(--s2); font-weight: 600; }
.toolbox-title span { color: var(--cyan); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border); font-size: .88rem; color: var(--muted); }

/* Featured */
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s4); align-items: center; padding: clamp(1.75rem, 4vw, 3rem); background: linear-gradient(135deg, rgba(47,123,255,.12), rgba(106,92,255,.05) 60%, transparent), var(--surface); }
.feature h2 { margin-bottom: var(--s2); }
.feature-copy > p:not(.kicker) { color: var(--muted); margin-bottom: var(--s3); }
.app-tile { display: flex; align-items: center; gap: var(--s2); padding: var(--s3); border-radius: var(--radius); background: rgba(0,0,0,.3); border: 1px solid var(--border); }
.app-icon { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: var(--grad); font: 800 1.8rem var(--sans); color: #fff; box-shadow: var(--glow); }
.app-meta { display: grid; gap: .15rem; }
.app-meta span { font-size: .85rem; color: var(--dim); }
.app-meta em { font-style: normal; font-size: .85rem; color: var(--cyan); }

/* Lab */
.lab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.lab-card { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: var(--s3); transition: border-color .2s, transform .2s; }
.lab-card:hover { border-color: var(--border-2); }
.lab-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.lab-status { align-self: flex-start; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); }
.lab-play { border-color: rgba(25,211,245,.4); background: linear-gradient(160deg, rgba(25,211,245,.1), transparent 70%), var(--surface); }
.lab-play:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.lab-play h3 a { color: var(--text); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lab-go { font-weight: 600; font-size: .9rem; color: var(--cyan); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); counter-reset: none; }
.steps li { padding: var(--s3); }
.steps .num { display: block; margin-bottom: var(--s2); font: 700 .85rem var(--mono); color: var(--cyan); }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s4); align-items: start; }
.faq-list { display: grid; gap: .6rem; }
.faq-list details { padding: 0 var(--s3); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 600; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 1.3rem/1 var(--mono); color: var(--cyan); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding-bottom: 1.1rem; font-size: .95rem; }

/* CTA */
.cta { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) var(--s3); background: radial-gradient(40rem 20rem at 50% 0%, rgba(47,123,255,.2), transparent 70%), var(--surface); }
.cta h2 { margin: 0 auto var(--s2); }
.cta p { color: var(--muted); margin-bottom: var(--s3); }
.cta .btn { max-width: 100%; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding: var(--s4) 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); font-size: .88rem; color: var(--dim); }
.footer-inner p { margin: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* 404 */
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; }
.center .btn { margin-top: var(--s2); }

/* ---------- GrokBot Playhouse (/sandbox) ---------- */
.play-hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 7rem) 0; border-bottom: 1px solid var(--border); }
.play-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.play-hero .container { position: relative; pointer-events: none; }
.play-hero .container > * { pointer-events: auto; max-width: 640px; }
.play-hero .wordmark { font-size: clamp(2.6rem, 8vw, 4.75rem); }
.play-hint { font: .8rem var(--mono); color: var(--dim); margin-top: var(--s2); }
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.panel { display: flex; flex-direction: column; overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; border-bottom: 1px solid var(--border); font: .8rem var(--mono); color: var(--muted); }
.panel-bar .btn-row, #pg-status { margin-left: auto; }
.btn-row { display: flex; gap: .4rem; }
.dots { display: flex; gap: 5px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.code-input, .preview-frame { width: 100%; min-height: 360px; border: 0; flex: 1; }
.code-input { padding: var(--s2); resize: vertical; background: rgba(0,0,0,.35); color: var(--text); font: .85rem/1.6 var(--mono); }
.code-input:focus { outline: none; }
.preview-frame { background: #fff; }
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.note { display: flex; flex-direction: column; gap: .5rem; padding: var(--s3); }
.note time { font: .75rem var(--mono); color: var(--cyan); }
.note p { color: var(--muted); font-size: .92rem; flex: 1; }
.toy { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: center; padding: clamp(1.5rem, 3vw, 2.25rem); }
.toy form { display: grid; gap: .6rem; }
.toy label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.field { height: 46px; padding: 0 .9rem; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: rgba(0,0,0,.35); color: var(--text); font: 1rem var(--sans); margin-bottom: .4rem; }
.field:focus { outline: none; border-color: var(--cyan); }
.range { width: 100%; accent-color: var(--blue); margin-bottom: .6rem; }
.toy-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.toy-status { min-height: 1.4em; margin: 0; font: .8rem var(--mono); color: var(--dim); }
.toy-out { display: grid; place-items: center; min-height: 200px; padding: var(--s3); border-radius: var(--radius); background: rgba(0,0,0,.35); border: 1px solid var(--border); }
.glitch { position: relative; margin: 0; font: 800 clamp(1.4rem, 4.2vw, 2.4rem) var(--mono); color: #f2f6ff; text-align: center; overflow-wrap: anywhere; text-shadow: -2px 0 #1e6bff, 2px 0 #19d3f5, 0 0 18px rgba(25,211,245,.55); }
.glitch.anim { animation: glitch 1.6s steps(2) infinite; }
@keyframes glitch { 0%,100% { transform: none; } 20% { transform: translate(-2px,1px) skewX(-4deg); } 40% { transform: translate(2px,-1px); } 60% { transform: translate(-1px,0) skewX(3deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .lab-grid, .steps, .notes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .svc-grid, .about-body, .feature, .faq-inner, .play-grid, .toy { grid-template-columns: 1fr; }
  .faq-inner { gap: 0; }
  .code-input, .preview-frame { min-height: 260px; }
}
@media (max-width: 560px) {
  :root { --header-h: 56px; }
  .container { width: min(100% - 2rem, var(--max)); }
  .lab-grid, .steps, .notes, .svc-cols { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .stats { gap: var(--s3); }
  .footer-inner { flex-direction: column; text-align: center; }
  .cta .btn-lg { font-size: .95rem; padding: 0 1.1rem; }
}
