/* Psibyte — Bold Editorial design system (based on Superdesign "Bold Editorial Style") */
:root {
  --yellow: #ffe17c;
  --charcoal: #171e19;
  --dark: #272727;
  --sage: #b7c6c2;
  --white: #ffffff;
  --paper: #f8f9fa;
  --muted: rgba(23, 30, 25, .7);
  --line: rgba(23, 30, 25, .1);
  --line-dark: rgba(183, 198, 194, .1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Satoshi", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--charcoal); background: var(--white); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; }

/* Typography */
.display, h1, h2, .h2, h3.display { font-family: var(--display); text-transform: uppercase; font-weight: 400; line-height: .9; letter-spacing: normal; margin: 0; }
h1 { font-size: clamp(3.2rem, 9vw, 8rem); }
h2, .h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
h3 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 1.9rem; line-height: 1; margin: 0 0 .6rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; background: var(--white); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(255,225,124,.35); }
.dark .eyebrow { background: transparent; border-color: rgba(183,198,194,.25); color: var(--sage); }

/* Rotated highlight behind key words */
.hl { position: relative; z-index: 0; white-space: nowrap; display: inline-block; }
.hl::before { content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; top: 52%; height: .45em; background: var(--yellow); transform: rotate(-1.5deg) skewX(-15deg); }
.dark .hl { color: var(--charcoal); }
.dark .hl::before { top: 6%; height: 92%; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; height: 80px; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-family: var(--display); font-size: 1.9rem; text-transform: uppercase; text-decoration: none; line-height: 1; }
.logo span { color: var(--yellow); -webkit-text-stroke: 1px var(--charcoal); }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; font: inherit; font-weight: 700; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; cursor: pointer; border: 0; font: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease); }
.btn-pill { background: var(--charcoal); color: var(--white); padding: .7rem 1.5rem; border-radius: 999px; font-size: .9rem; font-weight: 700; }
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,30,25,.2); }
.btn-big { font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: .02em; background: var(--yellow); color: var(--charcoal); padding: 1rem 2rem; border-radius: 10px; }
.btn-big:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--charcoal); }
.btn-ghost { font-weight: 700; padding: 1rem 1.2rem; text-decoration: underline; text-underline-offset: 5px; }
.btn-dark { background: var(--charcoal); color: var(--white); box-shadow: 0 18px 40px rgba(23,30,25,.25); }
.btn-dark:hover { transform: scale(1.05); box-shadow: 0 18px 40px rgba(23,30,25,.35); }

@media (max-width: 960px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: var(--white); padding: 1.5rem 20px 2rem; border-bottom: 1px solid var(--line); gap: 1.1rem; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.1rem; }
  .header-cta .btn-pill { display: none; }
}

/* Sections */
main { padding-top: 80px; }
section { padding: 6rem 0; }
.dark { background: var(--charcoal); color: var(--white); }
.dark .lead, .dark .muted { color: rgba(255,255,255,.7); }
.grid-bg { background-color: var(--white); background-image: linear-gradient(to right, rgba(23,30,25,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(23,30,25,.06) 1px, transparent 1px); background-size: 40px 40px; }
.dark.grid-bg { background-color: var(--charcoal); background-image: linear-gradient(to right, #b7c6c220 1px, transparent 1px), linear-gradient(to bottom, #b7c6c220 1px, transparent 1px); }
.section-head { max-width: 52rem; margin-bottom: 3rem; }
.section-head .eyebrow { margin-bottom: 1.4rem; }
.section-head h2 { margin-bottom: 1.2rem; }

/* Hero */
.hero { padding: 7rem 0 6rem; text-align: center; }
.hero .eyebrow { margin-bottom: 2rem; }
.hero h1 { max-width: 14ch; margin: 0 auto 1.8rem; }
.hero .lead { margin: 0 auto 2.4rem; max-width: 36rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }
.page-hero { padding: 6rem 0 4.5rem; }
.page-hero h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); max-width: 16ch; margin: 1.6rem 0 1.6rem; }
.crumbs { font-size: .8rem; font-weight: 500; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Trust strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2rem 0; background: var(--white); }
.strip p { text-align: center; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 1.1rem; }
.strip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; }
.strip li { font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; color: rgba(23,30,25,.55); }

/* Problem / solution */
.split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.split > div { padding: 5.5rem max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); align-self: stretch; }
.split .old { background: var(--charcoal); color: var(--white); padding-right: 4rem; }
.split .new { background: var(--dark); color: var(--white); border-left: 4px solid var(--yellow); padding-left: 4rem; }
.split h2 { font-size: clamp(2.4rem, 4.5vw, 4rem); margin-bottom: 2rem; }
.split .old h2 { color: var(--sage); }
.split ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.split li { display: flex; gap: .9rem; align-items: flex-start; font-size: 1.05rem; }
.split .old li { color: rgba(183,198,194,.85); }
.split li svg { flex: 0 0 22px; margin-top: 3px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > div { padding: 4rem 20px; } .split .new { border-left: 0; border-top: 4px solid var(--yellow); } }

/* Pain points */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pain { border: 1px solid var(--line-dark); border-radius: 22px; padding: 2.2rem; background: var(--dark); display: flex; flex-direction: column; gap: 1rem; }
.pain .x { display: flex; align-items: center; gap: .7rem; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.pain h3 { font-size: 2rem; color: var(--white); margin: 0; }
.pain p { color: rgba(255,255,255,.72); margin: 0; }
.pain .cost { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); color: var(--yellow); font-weight: 700; }
@media (max-width: 900px) { .pain-grid { grid-template-columns: 1fr; } }

/* Proof / outcomes */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.proof { border-top: 4px solid var(--charcoal); padding-top: 1.4rem; }
.proof .metric { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: .9; margin-bottom: .8rem; }
.proof .metric .hl { white-space: normal; }
.proof p { color: var(--muted); margin: 0; }
.commit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; }
.commit div { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.commit strong { display: block; margin-bottom: .4rem; }
.commit span { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .proof-grid { grid-template-columns: 1fr; gap: 2rem; } .commit { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .commit { grid-template-columns: 1fr; } }
.step .when { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: var(--yellow); padding: .2rem .55rem; border-radius: 6px; margin-bottom: .7rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(380px, auto); gap: 1.2rem; }
.card { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 2.2rem; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); text-decoration: none; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(23,30,25,.1); }
.card.span-2 { grid-column: span 2; }
.card.ink { background: var(--charcoal); color: var(--white); border-color: var(--line-dark); }
.card.ink p { color: rgba(255,255,255,.72); }
.card.sun { background: var(--yellow); }
.card h3 { font-size: 2rem; }
.card p { color: var(--muted); }
.card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.2rem; opacity: .7; }
.card .more { margin-top: auto; font-weight: 700; padding-top: 1rem; }
.card .more::after { content: " →"; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; grid-auto-rows: auto; } .card.span-2 { grid-column: auto; } .card { min-height: 300px; } }

/* Card visuals */
.viz { margin-top: auto; padding-top: 1.6rem; }
.pulse-row { display: flex; gap: 8px; align-items: flex-end; height: 90px; }
.pulse-row i { flex: 1; background: var(--charcoal); border-radius: 6px; animation: pulse 2.4s var(--ease) infinite; }
.pulse-row i:nth-child(odd) { background: var(--yellow); border: 1px solid var(--charcoal); }
.pulse-row i:nth-child(1){height:30%;animation-delay:0s}.pulse-row i:nth-child(2){height:55%;animation-delay:.2s}.pulse-row i:nth-child(3){height:40%;animation-delay:.4s}.pulse-row i:nth-child(4){height:75%;animation-delay:.6s}.pulse-row i:nth-child(5){height:60%;animation-delay:.8s}.pulse-row i:nth-child(6){height:95%;animation-delay:1s}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }
@media (prefers-reduced-motion: reduce) { .pulse-row i { animation: none; } html { scroll-behavior: auto; } }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.7; background: #0f1411; color: var(--sage); border-radius: 12px; padding: 1rem 1.2rem; border: 1px solid var(--line-dark); overflow: hidden; white-space: pre; }
.code b { color: var(--yellow); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips span { font-size: .8rem; font-weight: 700; border: 1px solid currentColor; border-radius: 999px; padding: .3rem .8rem; opacity: .85; }
.stat { font-family: var(--display); font-size: 5.5rem; line-height: .9; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
.steps .sticky { position: sticky; top: 120px; align-self: start; }
.steps h2 { font-size: clamp(3rem, 6vw, 5.5rem); margin-bottom: 1.2rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 2rem; padding: 2.4rem 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num { font-family: var(--display); font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: .8; color: rgba(255,225,124,.35); -webkit-text-stroke: 1px rgba(23,30,25,.25); transition: color .3s var(--ease); min-width: 1.4ch; }
.step:hover .num { color: var(--yellow); -webkit-text-stroke: 1px var(--charcoal); }
.step h3 { font-size: 2.1rem; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 1rem; } .steps .sticky { position: static; } .step { gap: 1.2rem; } }

/* Lists / module grid */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.module { border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; background: var(--white); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.module:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23,30,25,.08); }
.module h3 { font-size: 1.6rem; }
.module p { color: var(--muted); font-size: .97rem; margin: 0 0 .8rem; }
.module ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; color: var(--muted); }
.module .badge { display: inline-block; background: var(--yellow); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 6px; margin-bottom: .9rem; }
.dark .module { background: var(--dark); border-color: var(--line-dark); }
.dark .module p, .dark .module ul { color: rgba(255,255,255,.72); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); border: 1px solid var(--charcoal); }
.checklist li::after { content: ""; position: absolute; left: 6px; top: .62rem; width: 6px; height: 3px; border-left: 2px solid var(--charcoal); border-bottom: 2px solid var(--charcoal); transform: rotate(-45deg); }

/* Answer box (AEO) */
.answer { border-left: 6px solid var(--yellow); background: var(--paper); padding: 1.6rem 1.8rem; border-radius: 0 16px 16px 0; font-size: 1.08rem; }
.answer strong { display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .5rem; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.15rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.8rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 1rem 0 0; color: var(--muted); }

/* Final CTA */
.final { position: relative; overflow: hidden; background: var(--yellow); text-align: center; padding: 8rem 0; }
.final .ghost { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; font-family: var(--display); text-transform: uppercase; font-size: clamp(6rem, 20vw, 16rem); line-height: .85; color: rgba(23,30,25,.07); white-space: nowrap; pointer-events: none; user-select: none; }
.final .wrap { position: relative; }
.final h2 { font-size: clamp(3rem, 8vw, 7rem); margin-bottom: 1.6rem; }
.final p { font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 42rem; margin: 0 auto 2.4rem; }

/* Forms */
.form { display: grid; gap: 1rem; text-align: left; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { font-size: .85rem; font-weight: 700; display: grid; gap: .4rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .95rem 1.2rem; border: 1px solid rgba(23,30,25,.2); border-radius: 10px; background: var(--white); color: var(--charcoal); width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--yellow); border-color: var(--charcoal); }
.form .hp { position: absolute; left: -9999px; }
.form-status { font-weight: 700; min-height: 1.5em; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.inline-form { display: flex; gap: .8rem; max-width: 36rem; margin: 0 auto; }
.inline-form input { flex: 1; font: inherit; padding: 1rem 1.4rem; border: 1px solid rgba(23,30,25,.2); border-radius: 10px; min-width: 0; }
@media (max-width: 560px) { .inline-form { flex-direction: column; } }

.panel { border: 1px solid var(--line); border-radius: 22px; padding: 2.2rem; background: var(--white); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.info-list strong { display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Jobs */
.job { border-top: 1px solid var(--line); padding: 2.2rem 0; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.job:last-of-type { border-bottom: 1px solid var(--line); }
.job .id { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin-top: .6rem; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; gap: .6rem; } }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.75); padding: 5rem 0 2.5rem; font-size: .95rem; }
.site-footer .logo { color: var(--white); font-size: 2.6rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; font-size: .85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 3rem 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
