/* ==========================================================================
   LuminaCX — site styles
   ========================================================================== */

:root {
  --ink: #0D1224;
  --ink-2: #161D33;
  --ink-3: #232B45;
  --paper: #FBFAF6;
  --paper-2: #F3F1EA;
  --card: #FFFFFF;
  --line: #E7E4DC;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #1A1F2E;
  --muted: #5D6477;
  --muted-dark: #A7ADBF;
  --lumen: #FFB000;
  --lumen-2: #FF8A3D;
  --lumen-soft: #FFF4D6;
  --lumen-ink: #9A5C00;
  --uplift: #16A34A;
  --uplift-soft: #E3F6EA;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 18, 36, .05), 0 8px 24px rgba(13, 18, 36, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.mt-lg { margin-top: 48px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--lumen); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--lumen); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 18, 36, .9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo {
  display: flex; align-items: center;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em;
}
.logo span { color: var(--lumen); }
.logo svg { width: 32px; height: 32px; margin-right: 10px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted-dark); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-links .nav-cta { margin-left: 10px; }
.nav-links .nav-cta a { color: var(--ink); background: var(--lumen); }
.nav-links .nav-cta a:hover { background: #FFC233; color: var(--ink); }
.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; cursor: pointer;
  background: none; border: 1px solid var(--line-dark); border-radius: 10px; color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 .98rem/1 var(--font); padding: 15px 22px; border-radius: 12px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lumen); color: var(--ink); box-shadow: 0 6px 20px rgba(255, 176, 0, .28); }
.btn-primary:hover { background: #FFC233; box-shadow: 0 10px 28px rgba(255, 176, 0, .38); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 500 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--lumen); box-shadow: 0 0 12px var(--lumen);
}

/* ---------- Dark surfaces ---------- */
.dark { background: var(--ink); color: #D5D9E4; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--muted-dark); }
.dark .lede { color: #B6BCCB; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 120px; }
.hero::before, .page-hero::before, .cta-band::before {
  content: ""; position: absolute; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 0, .28), rgba(255, 138, 61, .09) 42%, transparent 68%);
}
.hero::before { width: 960px; height: 960px; right: -280px; top: -420px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.glow { background: linear-gradient(90deg, var(--lumen), var(--lumen-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: 1.2rem; color: #C4C9D6; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 36px 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--muted-dark); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--lumen); flex: none; }

/* Experiment card (hero visual) */
.exp-card {
  position: relative; padding: 26px; border-radius: 20px;
  background: linear-gradient(180deg, #1A2139, #141A2E);
  border: 1px solid var(--line-dark); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.exp-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
  font: 500 .74rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark);
}
.exp-live { display: flex; align-items: center; gap: 6px; color: #7BE0A1; }
.exp-live i { width: 7px; height: 7px; border-radius: 50%; background: #34D27B; animation: pulse 1.8s infinite; }
.exp-hyp { color: #E6E9F1; font-size: .98rem; margin-bottom: 22px; }
.exp-hyp b { color: var(--lumen); }
.exp-row { margin-bottom: 16px; }
.exp-label { display: flex; justify-content: space-between; font-size: .88rem; color: #C4C9D6; margin-bottom: 8px; }
.bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #56607D; }
.exp-row.win .bar span { background: linear-gradient(90deg, var(--lumen), var(--lumen-2)); }
.exp-row.win .exp-label { color: #fff; font-weight: 600; }
.exp-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: .88rem; color: var(--muted-dark);
}
.delta { font: 600 .88rem/1 var(--mono); color: #5BE08F; background: rgba(52, 210, 123, .12); padding: 7px 10px; border-radius: 8px; }
.exp-note { margin: 14px 0 0; text-align: right; font: 500 .68rem/1 var(--mono); color: #6B7390; letter-spacing: .08em; text-transform: uppercase; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 88px 0 84px; }
.page-hero::before { width: 760px; height: 760px; right: -220px; top: -360px; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 820px; }
.page-hero .lede { max-width: 680px; font-size: 1.2rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
section[id] { scroll-margin-top: 72px; }
.section-sm { padding: 72px 0; }
.alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* ---------- Grids & cards ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card { display: block; text-decoration: none; }
a.card:hover { transform: translateY(-3px); border-color: #D9D4C6; box-shadow: 0 2px 4px rgba(13, 18, 36, .06), 0 18px 40px rgba(13, 18, 36, .1); }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 12px; background: var(--lumen-soft); color: var(--lumen-ink);
}
.card-icon svg { width: 24px; height: 24px; }
.card-link { display: inline-flex; gap: 6px; margin-top: 18px; font-weight: 700; font-size: .93rem; color: var(--ink); }
.dark .card { background: var(--ink-2); border-color: var(--line-dark); box-shadow: none; }
.dark .card p { color: #AEB4C4; }
.dark .card-icon { background: rgba(255, 176, 0, .12); color: var(--lumen); }

/* Pain points */
.pain { border-left: 3px solid var(--lumen); padding: 4px 0 4px 22px; }
.pain h3 { margin-bottom: .35em; }
.pain p { color: var(--muted); margin: 0; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; padding: 10px 12px; border-radius: 10px;
  font: 600 .85rem/1 var(--mono); color: var(--ink); background: var(--lumen);
}
.step::after {
  content: ""; position: absolute; top: 17px; left: 62px; right: -14px; height: 1px;
  background: repeating-linear-gradient(90deg, #CFC9B8 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step p { color: var(--muted); margin: 0; }
.dark .step p { color: #AEB4C4; }
.dark .step::after { background: repeating-linear-gradient(90deg, #3A4260 0 6px, transparent 6px 12px); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-weight: 600; font-size: .95rem; }
.dark .chips li { background: var(--ink-2); border-color: var(--line-dark); color: #E3E6EE; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }

/* Metrics */
.metric { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.metric .abbr { display: block; margin-bottom: 12px; font: 600 1.7rem/1 var(--mono); color: var(--ink); }
.metric .abbr::after { content: " ▲"; font-size: .9rem; color: var(--uplift); vertical-align: middle; }
.metric h3 { font-size: 1.02rem; margin-bottom: .4em; }
.metric p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Check list */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; border-radius: 6px;
  background: var(--uplift-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.dark .check-list li::before { background-color: rgba(52, 210, 123, .14); }

/* Tools strip */
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; list-style: none; margin: 0; padding: 0; }
.tools li { font-weight: 700; font-size: 1.08rem; color: #8A8FA0; letter-spacing: -.01em; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 500 1.5rem/1 var(--mono); color: var(--lumen-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 720px; margin: 14px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: 100px 0; text-align: center; }
.cta-band::before { width: 900px; height: 900px; left: 50%; bottom: -620px; transform: translateX(-50%); }
.cta-band .container { position: relative; }
.cta-band h2 { max-width: 760px; margin-inline: auto; }
.cta-band p { max-width: 600px; margin: 0 auto 32px; color: #B6BCCB; font-size: 1.15rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Services page ---------- */
.service { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service:last-child { padding-bottom: 0; }
.service-meta { margin-bottom: 14px; font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lumen-ink); }
.service h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.service p { color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.panel-title { margin-bottom: 18px; font: 500 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.panel + .panel { margin-top: 16px; }
.panel .ideal { margin: 0; color: var(--muted); font-size: .96rem; }

/* Engagement plans */
.plan { display: flex; flex-direction: column; }
.plan .check-list { flex: 1; margin: 22px 0 30px; }
.plan .btn { align-self: flex-start; }
.plan.featured { border: 2px solid var(--lumen); box-shadow: 0 20px 50px rgba(255, 176, 0, .16); }
.plan-sub { color: var(--muted); margin: 0; }
.badge {
  display: inline-block; align-self: flex-start; margin-bottom: 14px; padding: 6px 10px; border-radius: 6px;
  font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--lumen); color: var(--ink);
}
.badge.soft { background: var(--paper-2); color: var(--muted); }

/* ---------- Approach page ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 38px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--lumen); box-shadow: 0 0 0 5px var(--lumen-soft);
}
.timeline .when { display: block; margin-bottom: 8px; font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lumen-ink); }
.timeline p { color: var(--muted); margin: 0; }

.standard { display: flex; gap: 18px; }
.standard .num { flex: none; font: 600 .85rem/1 var(--mono); color: var(--lumen); padding-top: 5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid #D9D5CA; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lumen); box-shadow: 0 0 0 4px rgba(255, 176, 0, .2); }
.form-note { margin: 0; font-size: .86rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; }
.next-steps { list-style: none; margin: 0; padding: 0; counter-reset: ns; display: grid; gap: 18px; }
.next-steps li { position: relative; padding-left: 44px; color: var(--muted); }
.next-steps li strong { display: block; color: var(--ink); }
.next-steps li::before {
  counter-increment: ns; content: counter(ns); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font: 600 .85rem/1 var(--mono); background: var(--lumen-soft); color: var(--lumen-ink);
}
.contact-line { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-line:hover { color: var(--lumen-ink); }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin: 2em 0 .6em; }
.prose p, .prose li { color: #3A4052; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Simple centered pages (404 / thanks) ---------- */
.center-page { min-height: calc(100vh - 73px); display: grid; place-items: center; padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.center-page .lede { max-width: 560px; margin: 0 auto 32px; }
.center-page .hero-actions { justify-content: center; }
.big-code { font: 600 clamp(4rem, 12vw, 8rem)/1 var(--mono); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 36px; color: #9AA1B4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid p { max-width: 320px; margin: 16px 0 0; font-size: .95rem; }
.footer-grid h4 { margin-bottom: 16px; font: 500 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: #9AA1B4; text-decoration: none; font-size: .95rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .88rem;
}
.footer-bottom a { color: #9AA1B4; }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .service, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: grid; }
  .js .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 24px 24px;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
  }
  .js .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 12px; }
  .nav-links .nav-cta { margin: 10px 0 0; }
  .nav-links .nav-cta a { text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(1180px, 100% - 32px); }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 88px; }
  .page-hero { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .card, .panel { padding: 24px; }
  .hero-actions .btn { width: 100%; }
}
