/* ==========================================================================
   XDMicrobotics — "Neotix" theme layer
   Loaded AFTER style.css. Re-skins the whole site: warm beige canvas,
   dark rounded panels, signal-orange pill buttons, Plus Jakarta Sans.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root,
:root[data-theme="light"] {
  --panel:         #0c0806;               /* dark panels: hero, stats, CTA, footer */
  --panel-2:       #1a0e08;
  --bg:            #efece6;
  --bg-void:       #efece6;
  --bg-alt:        #e7e3da;
  --bg-elevated:   #ffffff;
  --bg-solid:      #ffffff;
  --text:          #0f0b08;
  --text-muted:    #5d5851;
  --text-subtle:   #8b857b;
  --border:        #e2ddd2;
  --border-strong: #cfc8ba;
  --accent:        #fa5005;
  --accent-hover:  #ff6a2b;
  --brand:         #fa5005;
  --shadow-color:  25 30% 12%;
  --brand-gradient: linear-gradient(135deg, #1d0f08, #0c0806);
  --accent-gradient: linear-gradient(135deg, #ff7a3d, #fa5005);
  --rail-gradient: linear-gradient(90deg, #fa5005, #ffab82);
  --glow-accent:   0 14px 34px rgb(250 80 5 / .18);
  --glow-brand:    0 14px 34px rgb(15 11 8 / .10);
  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / .05), 0 2px 8px hsl(var(--shadow-color) / .04);
  --shadow-md: 0 8px 24px hsl(var(--shadow-color) / .08);
  --shadow-lg: 0 18px 46px hsl(var(--shadow-color) / .12);
  --shadow-xl: 0 28px 70px hsl(var(--shadow-color) / .16);

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --gap-panel: clamp(12px, 2vw, 28px);
}
:root[data-theme="dark"] {
  --bg:            #0d0a08;
  --bg-void:       #0d0a08;
  --bg-alt:        #141009;
  --bg-elevated:   #1a1510;
  --bg-solid:      #1a1510;
  --text:          #f4efe8;
  --text-muted:    #b3ab9f;
  --text-subtle:   #7c7468;
  --border:        #2a231b;
  --border-strong: #3a3126;
  --panel:         #060403;
  --shadow-color:  20 30% 2%;
  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / .5);
  --shadow-md: 0 8px 24px hsl(var(--shadow-color) / .5);
  --shadow-lg: 0 18px 46px hsl(var(--shadow-color) / .55);
  --shadow-xl: 0 28px 70px hsl(var(--shadow-color) / .6);
}

/* ---------- 2. Base ---------- */
body { background: var(--bg); font-feature-settings: "ss01"; }
.bg-grid { display: none; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
h1 { font-weight: 600; font-size: clamp(2.6rem, 5.8vw, 4.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: -.04em; }
::selection { background: var(--accent); color: #fff; }

/* Eyebrow = white pill with an orange asterisk */
.eyebrow {
  gap: .5rem;
  padding: .5rem 1.05rem;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text);
  background: var(--bg-solid);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.eyebrow::before {
  content: "\2731";               /* ✱ */
  width: auto; height: auto;
  border: 0; transform: none;
  font-size: .85rem;
  line-height: 1;
  color: var(--accent);
}
.lede { color: var(--text-muted); }

/* ---------- 3. Buttons: orange pills ---------- */
.btn {
  --btn-bg: var(--accent);
  clip-path: none;
  border: 0;
  border-radius: 999px;
  padding: .95rem 1.7rem;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
  box-shadow: none;
}
.btn::after { display: none; }
.btn:hover { background: var(--text); color: var(--bg-solid); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn svg { width: 16px; height: 16px; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--ghost { --btn-fg: var(--text); background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn--ghost:hover { background: var(--text); }
.btn--on-dark { --btn-bg: rgb(255 255 255 / .1); --btn-fg: #fff; border: 0; backdrop-filter: blur(10px); }
.btn--on-dark:hover { background: #fff; color: var(--panel); }
.hero .btn:not(.btn--on-dark):hover,
.cta-band .btn:not(.btn--on-dark):hover,
.dark-panel .btn:hover { background: #fff; color: var(--panel); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1rem; }

/* ---------- 4. Top bar + header ---------- */
.topbar {
  background: var(--accent);
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 46px;
  flex-wrap: wrap;
  padding-block: .35rem;
}
.topbar__group { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.topbar a, .topbar span.topbar__item { display: inline-flex; align-items: center; gap: .5rem; transition: opacity .2s var(--ease); }
.topbar a:hover { opacity: .78; }
.topbar svg { width: 16px; height: 16px; flex-shrink: 0; }

.header,
.header.header--solid {
  position: sticky;
  top: 0;
  background: var(--panel);
  border-bottom: 1px solid rgb(255 255 255 / .08);
  box-shadow: none;
  backdrop-filter: none;
  --nav-fg: rgb(255 255 255 / .82);
  --nav-fg-strong: #fff;
}
.header.is-stuck,
.header.header--solid.is-stuck {
  background: color-mix(in srgb, var(--bg-solid) 94%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  --nav-fg: var(--text-muted);
  --nav-fg-strong: var(--text);
}
.header__inner { height: 84px; }
/* Logo is FIXED: original navy + orange artwork, never recoloured by theme or scroll.
   It sits in a white badge so it reads on any header background. */
.logo {
  padding: 6px 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgb(0 0 0 / .18);
}
.logo img,
:root[data-theme] .logo img,
:root[data-theme] .header .logo img { height: 36px; filter: none; }
.logo:hover img { transform: none; }
.footer__brand img,
:root[data-theme] .footer__brand img {
  height: 62px;
  padding: 10px 18px;
  background: #fff;
  border-radius: 16px;
  filter: none;
}

.nav a { font-weight: 600; font-size: .95rem; padding: .55rem 1.05rem; }
.nav a::after { display: none; }
.nav a:hover, .nav a.is-active { color: var(--accent); }
.header__actions .btn { padding: .8rem 1.5rem; font-size: .92rem; }
.theme-toggle { border-color: rgb(255 255 255 / .2); }
.header.is-stuck .theme-toggle { border-color: var(--border-strong); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- 5. Hero ---------- */
.hero {
  min-height: 0;
  display: block;
  padding-block: clamp(40px, 5vw, 72px) clamp(84px, 9vw, 130px);
  background: var(--panel);
  border-radius: 0 0 clamp(26px, 3.4vw, 46px) clamp(26px, 3.4vw, 46px);
}
.hero::before, .hero::after { display: none; }
.hero__media video { opacity: .38; }
.hero__media::after {
  background:
    radial-gradient(60% 70% at 78% 30%, rgb(250 80 5 / .34), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgb(150 55 10 / .35), transparent 70%),
    linear-gradient(100deg, rgb(12 8 6 / .96) 0%, rgb(26 14 8 / .88) 55%, rgb(36 16 8 / .78) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.hero__inner { max-width: none; }
.hero .eyebrow {
  color: #fff;
  background: rgb(255 255 255 / .09);
  border: 0;
  box-shadow: none;
  padding: .5rem 1.05rem;
}
.hero .eyebrow::before { color: var(--accent); }
.hero .status-chip { margin-bottom: 1.7rem; }
.hero .status-dot { display: none; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--accent); white-space: normal; }
.hero__lede { color: rgb(255 255 255 / .8); max-width: 46ch; }
.hero__trust { font-family: var(--font-body); font-weight: 500; font-size: .86rem; letter-spacing: 0; color: rgb(255 255 255 / .55); }

.hero__visual { position: relative; }
.hero__photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: clamp(20px, 2.4vw, 30px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgb(0 0 0 / .5);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(12 8 6 / .55) 100%);
}
.hero__glass {
  position: absolute;
  left: clamp(-34px, -3vw, -14px);
  bottom: clamp(18px, 3vw, 38px);
  z-index: 2;
  width: min(300px, 74%);
  padding: 1.25rem 1.4rem;
  background: rgb(40 24 16 / .62);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 20px;
  color: #fff;
}
.hero__glass strong { display: block; font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; margin-bottom: .7rem; }
.hero__glass .tags { gap: .35rem; }
.hero__glass .tag { background: rgb(255 255 255 / .12); border: 0; color: #fff; font-size: .7rem; }
.hero__badge {
  position: absolute;
  right: clamp(-26px, -2vw, -10px);
  top: clamp(24px, 6vw, 70px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 138px; height: 138px;
  background: var(--panel);
  border-radius: 50%;
  box-shadow: 0 14px 40px rgb(0 0 0 / .45);
}
.hero__badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge text { fill: rgb(255 255 255 / .85); font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.hero__badge .go {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 0 0 7px rgb(250 80 5 / .22);
  transition: transform .3s var(--ease);
}
.hero__badge:hover .go { transform: scale(1.1) rotate(-12deg); }
.hero__badge .go svg { width: 24px; height: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__badge svg.ring { animation: none; } }

/* ---------- 6. Ticker band ---------- */
.ticker {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  padding-block: clamp(14px, 1.8vw, 20px);
  margin-top: clamp(-36px, -3vw, -24px);
  transform: rotate(-1.1deg) scale(1.02);
}
.ticker__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.ticker__track span::after { content: "\2731"; font-size: .8em; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- 7. Sections ---------- */
.section { padding-block: clamp(76px, 9vw, 130px); }
.section--alt { background: var(--bg-alt); border: 0; }
.section-head { max-width: 62rem; }
.section-head h2 { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* Stat strip (restyled .metrics) */
.metrics { background: transparent; border: 0; padding-block: clamp(40px, 5vw, 72px) 0; }
.metrics__grid { gap: clamp(12px, 1.6vw, 20px); }
.metric {
  background: var(--bg-solid);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
  padding: clamp(22px, 2.6vw, 32px);
}
.metric:last-child { border-right: 0; }
.metric__value { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; }
.metric__label { font-family: var(--font-body); font-size: .86rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__media .figure { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__media .figure img { aspect-ratio: 4 / 4.4; }
.about__years {
  position: absolute;
  right: clamp(-22px, -2vw, -8px);
  bottom: clamp(20px, 3vw, 40px);
  padding: 1.2rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.about__years b { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.about__years span { font-size: .84rem; font-weight: 600; opacity: .92; }
.about h2 { margin-block: 1.1rem 1.4rem; }
.about .lede { margin-bottom: 1.2rem; }
.about p.sub { color: var(--text-muted); margin-bottom: 1.8rem; }
.checklist--pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.checklist--pills li {
  gap: .5rem; align-items: center;
  padding: .5rem 1rem;
  font-size: .88rem; font-weight: 600; color: var(--text);
  background: var(--bg-solid);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.checklist--pills svg { width: 16px; height: 16px; margin: 0; }

/* ---------- 8. Cards ---------- */
.card {
  background: var(--bg-solid);
  backdrop-filter: none;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(26px, 2.8vw, 36px);
}
.card::before, .card::after { display: none; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 60px; height: 60px;
  background: var(--bg-alt);
  color: var(--accent);
  border: 0;
  border-radius: 50%;
}
.card:hover .card__icon { background: var(--accent); color: #fff; transform: rotate(-8deg) scale(1.05); box-shadow: 0 10px 24px rgb(250 80 5 / .35); }
.card__num { font-size: 2.4rem; font-weight: 700; letter-spacing: -.05em; color: var(--border-strong); }
.card__num::before, .card__num::after { content: none; }
.card:hover .card__num { color: var(--accent); }
.card h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); }
.card p { font-size: .96rem; }
.card .tags { border-top: 1px solid var(--border); }
.card__link {
  display: inline-flex; align-items: center; gap: .5rem;
  align-self: flex-start;
  margin-top: 1.1rem;
  padding: .7rem 1.2rem;
  font-size: .88rem; font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.card__link svg { width: 14px; height: 14px; }
.card:hover .card__link { background: var(--accent); color: #fff; }
.tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 0;
}
.panel {
  background: var(--bg-solid);
  backdrop-filter: none;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel:hover { box-shadow: var(--shadow-md); }
.figure { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.figure::after { display: none; }

/* ---------- 9. Stacked project cards ---------- */
.stack { display: grid; gap: 0; }
.stack__card {
  position: sticky;
  top: calc(104px + var(--i, 0) * 22px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 52px);
  align-items: stretch;
  margin-bottom: clamp(20px, 3vw, 36px);
  padding: clamp(16px, 2vw, 26px);
  background: var(--bg-solid);
  border-radius: clamp(22px, 2.6vw, 34px);
  box-shadow: var(--shadow-md);
}
.stack__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(8px, 2vw, 34px); }
.stack__num { font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.stack__body h3 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; margin-bottom: 1rem; }
.stack__body p { color: var(--text-muted); margin-bottom: 1.4rem; max-width: 46ch; }
.stack__body .tags { margin-bottom: 1.8rem; }
.stack__body .btn { align-self: flex-start; }
.stack__img {
  position: relative;
  min-height: clamp(240px, 32vw, 420px);
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  background: var(--panel);
}
.stack__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack__img .project__badge { top: 16px; left: 16px; }
.section-foot { text-align: center; margin-top: clamp(28px, 4vw, 48px); }

/* Project grid (projects.html) */
.project {
  background: var(--bg-solid);
  backdrop-filter: none;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}
.project:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.project__visual { border-radius: calc(var(--radius-lg) - 8px); }
.project__visual::after { display: none; }
.project__badge { font-family: var(--font-body); background: var(--accent); letter-spacing: .06em; }
.project__body { padding: 20px 12px 10px; }
.project__body .tags { border-top: 1px solid var(--border); }

/* ---------- 10. Dark panel (stats + platforms) ---------- */
.dark-panel {
  position: relative;
  margin-inline: var(--gap-panel);
  padding-block: clamp(64px, 8vw, 110px);
  background: var(--panel);
  color: #fff;
  border-radius: clamp(26px, 3.4vw, 46px);
  overflow: hidden;
  isolation: isolate;
}
.dark-panel::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 100% 0%, rgb(250 80 5 / .3), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgb(130 50 10 / .35), transparent 70%);
}
.dark-panel h2, .dark-panel h3 { color: #fff; }
.dark-panel .lede, .dark-panel p { color: rgb(255 255 255 / .72); }
.dark-panel .eyebrow { color: #fff; background: rgb(255 255 255 / .09); box-shadow: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(14px, 1.8vw, 22px); margin-bottom: clamp(56px, 7vw, 96px); }
.stat {
  padding: clamp(22px, 2.4vw, 32px);
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .08);
  border-radius: 22px;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.stat:hover { background: rgb(255 255 255 / .09); transform: translateY(-4px); }
.stat__num { font-size: clamp(3rem, 6vw, 4.8rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; color: var(--accent); }
.stat__label { margin-top: .9rem; font-size: 1.1rem; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.stat p { margin-top: .4rem; font-size: .9rem; }
.dark-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(28px, 4vw, 48px); }
.dark-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 20ch; margin-top: 1rem; }
.dark-head p { max-width: 42ch; margin-top: 1rem; }

.marquee { padding-block: 10px; }
.brand-chip {
  background: #fff;
  backdrop-filter: none;
  border: 0;
  border-radius: 20px;
  color: #0f0b08;
  box-shadow: none;
}
.brand-chip:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgb(0 0 0 / .3); }
.brand-chip img, :root[data-theme="light"] .brand-chip img { filter: grayscale(1); opacity: .8; }
.brand-chip:hover img { filter: none; opacity: 1; }
.brand-chip__role { color: #6b655d; }

/* ---------- 11. Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: clamp(12px, 1.6vw, 20px); counter-reset: s; }
.step {
  position: relative;
  padding: clamp(22px, 2.2vw, 30px);
  background: var(--bg-solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step__num {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 1.4rem;
  font-weight: 700; font-size: .95rem;
  color: #fff; background: var(--accent);
  border-radius: 50%;
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { font-size: .9rem; color: var(--text-muted); }

/* Full process page timeline */
.process__num { color: var(--text); background: var(--bg-solid); border: 2px solid var(--border-strong); }
.section--alt .process__num { background: var(--bg-solid); }
.process__item:hover .process__num { box-shadow: 0 8px 22px rgb(250 80 5 / .35); }
.process__item::before { background: repeating-linear-gradient(180deg, var(--border-strong) 0 6px, transparent 6px 12px); }
.process__content { background: var(--bg-solid); backdrop-filter: none; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.process__item:hover .process__content { box-shadow: var(--shadow-lg); border-color: transparent; }

/* ---------- 12. FAQ ---------- */
.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item { background: var(--bg-solid); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .3s var(--ease); }
.faq__item[open] { box-shadow: var(--shadow-md); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.25rem 1.5rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600; letter-spacing: -.02em;
  cursor: pointer; list-style: none;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  display: grid; place-items: center;
  width: 34px; height: 34px; flex-shrink: 0;
  font-size: 1.3rem; font-weight: 500; line-height: 1;
  color: #fff; background: var(--accent);
  border-radius: 50%;
  transition: transform .3s var(--ease);
}
.faq__item[open] summary { background: var(--accent); color: #fff; }
.faq__item[open] summary::after { content: "\2212"; background: #fff; color: var(--accent); }
.faq__item p { padding: 1.2rem 1.5rem 1.4rem; color: var(--text-muted); font-size: .98rem; }
.faq__item a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 13. CTA band / feature band ---------- */
.cta-band, .feature-band {
  margin-inline: var(--gap-panel);
  border-radius: clamp(26px, 3.4vw, 46px);
  background: var(--panel);
}
.cta-band { margin-top: clamp(40px, 6vw, 80px); margin-bottom: var(--gap-panel); padding-block: clamp(64px, 8vw, 110px); }
.cta-band::before {
  background:
    radial-gradient(55% 80% at 50% 0%, rgb(250 80 5 / .42), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgb(140 55 10 / .35), transparent 70%);
}
.cta-band__media { opacity: .22; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.feature-band::before {
  background:
    radial-gradient(70% 90% at 12% 18%, rgb(250 80 5 / .3), transparent 62%),
    radial-gradient(60% 80% at 92% 86%, rgb(120 48 10 / .55), transparent 60%);
}
.feature-band .panel { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.feature-band .card__icon { background: rgb(255 255 255 / .1); color: var(--accent); }

/* ---------- 14. Inner-page hero ---------- */
.phero {
  padding-block: clamp(56px, 7vw, 96px) clamp(60px, 7.5vw, 104px);
  background: var(--panel);
  border-radius: 0 0 clamp(26px, 3.4vw, 46px) clamp(26px, 3.4vw, 46px);
}
.phero::before { display: none; }
.phero__media img { opacity: .5; }
.phero__media::after {
  background:
    radial-gradient(55% 80% at 88% 10%, rgb(250 80 5 / .32), transparent 70%),
    linear-gradient(100deg, rgb(12 8 6 / .96) 0%, rgb(26 14 8 / .9) 55%, rgb(36 16 8 / .8) 100%);
}
.phero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
.phero .eyebrow { color: #fff; background: rgb(255 255 255 / .09); box-shadow: none; }
.crumb { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

/* ---------- 15. Contact + form ---------- */
.form { background: var(--bg-solid); backdrop-filter: none; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.field input, .field select, .field textarea,
:root[data-theme="light"] .field input, :root[data-theme="light"] .field select, :root[data-theme="light"] .field textarea {
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { background: var(--bg-solid); }
.contact-card { background: var(--panel); border: 0; border-radius: var(--radius-lg); }
.contact-card::before {
  background: radial-gradient(70% 70% at 100% 0%, rgb(250 80 5 / .36), transparent 65%);
  background-size: auto;
}
.contact-item__label { font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; }

/* ---------- 16. Footer ---------- */
.footer {
  margin: 0 var(--gap-panel) var(--gap-panel);
  padding-inline: 0;
  background: var(--panel);
  border: 0;
  border-radius: clamp(26px, 3.4vw, 46px);
  overflow: hidden;
}
.footer::before { background: linear-gradient(90deg, transparent, var(--accent), transparent); height: 1px; opacity: .8; }
.footer h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; font-weight: 700; }
.footer li a:hover, .footer__legal a:hover { color: var(--accent); }

.chat__launcher { box-shadow: 0 10px 30px rgb(250 80 5 / .45), var(--shadow-lg); }

/* ---------- 17. Legal pages ---------- */
.prose__meta { font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .about { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .hero__glass { left: 12px; }
  .hero__badge { right: 12px; width: 116px; height: 116px; }
  .stack__card { position: relative; top: auto; grid-template-columns: 1fr; }
  .stack__img { order: -1; min-height: 240px; }
}
@media (max-width: 860px) {
  .topbar { display: none; }
  .header__inner { height: 72px; }
  .logo { padding: 5px 11px; border-radius: 12px; }
  .logo img, :root[data-theme] .logo img, :root[data-theme] .header .logo img { height: 30px; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bg-solid);
  }
  .nav a { color: var(--text); border-bottom-color: var(--border); border-radius: 0; }
  .nav a:hover, .nav a.is-active { color: var(--accent); }
  .header.has-open-nav,
  .header:has(.nav.is-open) { background: var(--panel); backdrop-filter: none; }
  .hero { padding-top: 32px; }
}
@media (max-width: 560px) {
  .hero__glass { position: relative; left: auto; bottom: auto; width: auto; margin: -64px 14px 0; }
  .ticker { transform: none; margin-top: 0; }
}

/* ---- Luna mascot ---- */
.chat__launcher { width: 64px; height: 64px; }
.chat__launcher svg.luna { width: 40px; height: 40px; }
.chat__ico-open { display: grid; place-items: center; color: #fff; transition: opacity .2s, transform .3s; animation: lunaFloat 4s ease-in-out infinite; }
.chat__launcher.is-active .chat__ico-open { opacity: 0; transform: rotate(90deg); animation: none; }
.chat__launcher:hover .luna__bulb { animation-duration: .6s; }
.chat__avatar { background: rgb(255 255 255 / .14); color: #fff; width: 44px; height: 44px; }
.chat__avatar svg.luna { width: 34px; height: 34px; }
.luna__eye { transform-box: fill-box; transform-origin: center; animation: lunaBlink 5s infinite; }
.luna__bulb { animation: lunaBulb 1.8s ease-in-out infinite; }
@keyframes lunaBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes lunaBulb { 50% { opacity: .35; } }
@keyframes lunaFloat { 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .luna__eye, .luna__bulb, .chat__ico-open { animation: none; } }

/* Closed chat panel must not sit invisibly */
.chat__panel[hidden] { display: none; }
.chat__panel:not(.is-open) { pointer-events: none; }

/* ---------- Header login dropdown (adapts to dark header and scrolled light header) ---------- */
.login-menu { position: relative; }
.login-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; user-select: none; }
.login-menu summary::-webkit-details-marker { display: none; }
.header .header-login {
  background: transparent; color: var(--nav-fg-strong, #fff);
  border: 1.5px solid color-mix(in srgb, var(--nav-fg-strong, #fff) 45%, transparent);
  padding: .8rem 1.3rem; font-size: .92rem;
}
.header .header-login:hover,
.login-menu[open] .header-login { background: var(--nav-fg-strong, #fff); color: var(--panel); border-color: transparent; }
.header.is-stuck .header-login:hover,
.header.is-stuck .login-menu[open] .header-login { color: var(--bg-solid); }
.header-login svg { width: 14px; height: 14px; transition: transform .2s; }
.login-menu[open] .header-login svg { transform: rotate(180deg); }
.login-menu__list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 260px; display: grid; gap: 4px; padding: 8px;
  background: var(--bg-solid); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
}
.login-menu__list a { display: grid; gap: 2px; padding: .75rem 1rem; border-radius: 12px; color: var(--text); }
.login-menu__list a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.login-menu__list strong { font-size: .95rem; }
.login-menu__list small { color: var(--text-muted); font-size: .8rem; }
@media (max-width: 560px) { .header .header-login { padding: .65rem .9rem; } .login-menu__list { right: -60px; } }
