/* ==========================================================================
   Opperium — Shared Design System
   Tokens, base, nav, footer, buttons, activity feed, forms, utilities.
   Page-specific styles live at the bottom of each page's <style> block or
   in a page-specific stylesheet (e.g. css/about.css).
   ========================================================================== */

:root{
  --void:#08080c;
  --surface:#111118;
  --surface-2:#181822;
  --teal:#16C79A;
  --violet:#8B5CF6;
  --mist:#9CA3AF;
  --white:#F4F4F6;
  --line:rgba(244,244,246,0.08);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--void);
  color:var(--white);
  font-family:'Inter',sans-serif;
  overflow-x:hidden;
}
::selection{background:var(--teal);color:var(--void);}
img{max-width:100%;display:block;}
a{color:inherit;}

.wrap{max-width:1100px;margin:0 auto;padding:0 5%;}

/* ---------- EYEBROW / LABEL ---------- */
.eyebrow{
  font-family:'Inter',sans-serif;font-weight:600;
  font-size:0.8rem;letter-spacing:0.09em;
  color:var(--teal);text-transform:uppercase;
  display:inline-flex;align-items:center;gap:0.6rem;
  margin-bottom:1.5rem;
}
.eyebrow::before{
  content:'';width:6px;height:6px;border-radius:50%;
  background:var(--teal);box-shadow:0 0 8px var(--teal);
  animation:pulse-dot 2s ease-in-out infinite;
}
.eyebrow.violet{color:var(--violet);}
.eyebrow.violet::before{background:var(--violet);box-shadow:0 0 8px var(--violet);}
@keyframes pulse-dot{0%,100%{opacity:1;}50%{opacity:0.3;}}

/* ---------- NAV ---------- */
nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.5rem 5%;
  backdrop-filter:blur(12px);
  background:rgba(8,8,12,0.6);
  border-bottom:1px solid var(--line);
}
.logo{
  display:inline-flex;align-items:center;gap:0.55rem;
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:1.3rem;
  color:var(--white);text-decoration:none;letter-spacing:-0.02em;
}
.logo-mark{
  width:26px;height:26px;object-fit:contain;flex:none;
  filter:drop-shadow(0 0 6px rgba(22,199,154,0.35));
  transition:filter 0.3s ease, transform 0.3s ease;
  transform-style:preserve-3d;will-change:transform;
}
.logo:hover .logo-mark{
  filter:drop-shadow(0 0 12px rgba(22,199,154,0.55)) drop-shadow(0 0 5px rgba(139,92,246,0.45));
}
@media (prefers-reduced-motion: reduce){
  .logo-mark{transition:none;}
}
.nav-links{list-style:none;display:flex;gap:1.9rem;}
.nav-links a{
  color:var(--mist);text-decoration:none;font-size:0.9rem;font-weight:500;
  transition:color 0.25s ease;
}
.nav-links a:hover, .nav-links a.active{color:var(--white);}
.nav-cta{
  padding:0.6rem 1.3rem;border:1px solid var(--line);border-radius:6px;
  color:var(--white);text-decoration:none;font-size:0.85rem;font-weight:500;
  transition:all 0.25s ease;
}
.nav-cta:hover{border-color:var(--teal);background:rgba(22,199,154,0.08);}
.nav-toggle{
  display:none;
  width:36px;height:36px;border-radius:6px;border:1px solid var(--line);
  background:transparent;cursor:pointer;
  align-items:center;justify-content:center;
  flex-direction:column;gap:4px;
}
.nav-toggle span{width:16px;height:1.5px;background:var(--white);transition:all 0.25s ease;}
.nav-toggle.open span:nth-child(1){transform:translateY(5.5px) rotate(45deg);}
.nav-toggle.open span:nth-child(2){opacity:0;}
.nav-toggle.open span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg);}

.nav-mobile{
  position:fixed;top:0;right:0;bottom:0;z-index:99;
  width:min(78vw,320px);
  background:var(--surface);border-left:1px solid var(--line);
  padding:6rem 2rem 2rem;
  transform:translateX(100%);transition:transform 0.3s ease;
  display:flex;flex-direction:column;gap:1.75rem;
}
.nav-mobile.open{transform:translateX(0);}
.nav-mobile a{
  color:var(--white);text-decoration:none;font-family:'Bricolage Grotesque',sans-serif;
  font-weight:700;font-size:1.15rem;
}
.nav-mobile a.active{color:var(--teal);}
.nav-scrim{
  position:fixed;inset:0;z-index:98;background:rgba(8,8,12,0.6);
  opacity:0;pointer-events:none;transition:opacity 0.3s ease;
}
.nav-scrim.open{opacity:1;pointer-events:auto;}

@media (max-width:980px){
  .nav-links{display:none;}
  .nav-toggle{display:flex;}
}

/* ---------- BUTTONS ---------- */
.btn-primary{
  padding:0.95rem 1.8rem;border-radius:8px;
  background:var(--white);color:var(--void);
  text-decoration:none;font-weight:600;font-size:0.95rem;
  border:none;cursor:pointer;font-family:inherit;
  transition:all 0.25s ease;display:inline-block;
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(22,199,154,0.25);}
.btn-ghost{
  padding:0.95rem 1.8rem;border-radius:8px;border:1px solid var(--line);
  color:var(--white);text-decoration:none;font-weight:500;font-size:0.95rem;
  background:transparent;cursor:pointer;font-family:inherit;
  transition:all 0.25s ease;display:inline-block;
}
.btn-ghost:hover{border-color:var(--mist);}

/* ---------- PAGE HERO (interior pages) ---------- */
.page-hero{
  position:relative;
  padding:9.5rem 5% 5rem;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.page-hero-inner{max-width:720px;position:relative;z-index:3;}
.page-hero h1{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:clamp(2.1rem, 4.5vw, 3.1rem);
  line-height:1.12;letter-spacing:-0.02em;
  margin-bottom:1.3rem;
}
.page-hero h1 em{
  font-style:normal;
  background:linear-gradient(120deg, var(--teal), var(--violet));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.page-hero p{font-size:1.05rem;line-height:1.65;color:var(--mist);max-width:560px;}

/* ---------- SECTION SCAFFOLDING ---------- */
section{position:relative;}
.section{padding:6rem 5%;border-top:1px solid var(--line);}
.section-inner{max-width:1100px;margin:0 auto;}
.section-header{max-width:620px;margin-bottom:3rem;}
.section-header h2{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;
  font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.2;
  margin-bottom:1rem;letter-spacing:-0.01em;
}
.section-header p{color:var(--mist);line-height:1.6;font-size:1rem;}

/* ---------- ACTIVITY FEED (replaces the old fake-terminal log) ---------- */
.activity-feed{
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
  padding:0.5rem 2rem;
}
.activity-item{
  display:flex;gap:1.2rem;align-items:flex-start;
  padding:1.5rem 0;position:relative;
}
.activity-item::before{
  content:'';position:absolute;left:19px;top:56px;bottom:-1.5rem;width:1px;
  background:var(--line);
}
.activity-item:last-child::before{display:none;}
.activity-icon{
  flex:none;width:40px;height:40px;border-radius:50%;
  background:var(--surface-2);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--teal);
  position:relative;z-index:1;
}
.activity-item.violet .activity-icon{color:var(--violet);}
.activity-icon svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.activity-body{flex:1;padding-top:0.35rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;}
.activity-text h4{
  font-family:'Inter',sans-serif;font-weight:600;font-size:0.98rem;
  color:var(--white);margin-bottom:0.25rem;
}
.activity-text p{color:var(--mist);font-size:0.88rem;line-height:1.5;}
.activity-meta{
  flex:none;font-family:'JetBrains Mono',monospace;font-size:0.78rem;
  color:var(--teal);background:rgba(22,199,154,0.08);
  border-radius:6px;padding:0.3rem 0.6rem;height:fit-content;white-space:nowrap;
}
.activity-item.violet .activity-meta{color:var(--violet);background:rgba(139,92,246,0.1);}
@media (max-width:560px){
  .activity-feed{padding:0.5rem 1.2rem;}
  .activity-body{flex-direction:column;gap:0.4rem;}
}

/* ---------- CARDS ---------- */
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:12px;
  padding:2rem;
  transition:border-color 0.25s ease, transform 0.25s ease;
}
.card:hover{border-color:rgba(22,199,154,0.35);transform:translateY(-3px);}

/* ---------- FORM ELEMENTS ---------- */
label{
  display:block;font-family:'Inter',sans-serif;font-weight:600;font-size:0.78rem;
  letter-spacing:0.04em;text-transform:uppercase;color:var(--mist);
  margin-bottom:0.5rem;
}
input, select, textarea{
  width:100%;background:var(--surface);border:1px solid var(--line);
  border-radius:8px;padding:0.85rem 1rem;color:var(--white);
  font-family:'Inter',sans-serif;font-size:0.95rem;
  transition:border-color 0.25s ease;
}
input:focus, select:focus, textarea:focus{
  outline:none;border-color:var(--teal);
}
textarea{resize:vertical;min-height:140px;}
::placeholder{color:#565660;}

/* ---------- FOOTER ---------- */
footer{
  border-top:1px solid var(--line);
  padding:4rem 5% 2.5rem;
}
.footer-inner{
  max-width:1100px;margin:0 auto;
  display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:3rem;
  margin-bottom:3rem;
}
.footer-brand .logo{display:inline-block;margin-bottom:0.9rem;}
.footer-brand p{color:var(--mist);font-size:0.9rem;line-height:1.6;max-width:320px;}
.footer-col h4{
  font-family:'Inter',sans-serif;font-weight:600;font-size:0.76rem;
  letter-spacing:0.07em;text-transform:uppercase;color:var(--mist);
  margin-bottom:1rem;
}
.footer-col a{
  display:block;color:var(--white);text-decoration:none;font-size:0.92rem;
  margin-bottom:0.7rem;transition:color 0.2s ease;
}
.footer-col a:hover{color:var(--teal);}
.footer-bottom{
  max-width:1100px;margin:0 auto;
  padding-top:2rem;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;
  font-family:'Inter',sans-serif;font-size:0.82rem;color:#565660;
}
@media (max-width:720px){
  .footer-inner{grid-template-columns:1fr;gap:2.2rem;}
}

/* ---------- FAQ / ACCORDION ---------- */
.faq-tabs{
  display:flex;gap:0.6rem;flex-wrap:wrap;margin-bottom:2.5rem;
}
.faq-tab{
  font-family:'Inter',sans-serif;font-weight:500;font-size:0.86rem;
  padding:0.55rem 1.15rem;border-radius:999px;border:1px solid var(--line);
  background:transparent;color:var(--mist);cursor:pointer;
  transition:all 0.2s ease;
}
.faq-tab:hover{color:var(--white);border-color:rgba(244,244,246,0.2);}
.faq-tab.active{color:var(--void);background:var(--teal);border-color:var(--teal);}

.faq-group{margin-bottom:2.5rem;}
.faq-group-label{
  font-family:'JetBrains Mono',monospace;font-size:0.72rem;letter-spacing:0.1em;
  text-transform:uppercase;color:var(--violet);margin-bottom:1rem;
}
.faq-item{
  border:1px solid var(--line);border-radius:10px;background:var(--surface);
  margin-bottom:0.75rem;overflow:hidden;
}
.faq-item summary{
  list-style:none;cursor:pointer;padding:1.15rem 1.3rem;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:0.98rem;
  color:var(--white);
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary .q-icon{
  flex:none;width:20px;height:20px;position:relative;
}
.faq-item summary .q-icon::before,
.faq-item summary .q-icon::after{
  content:'';position:absolute;background:var(--teal);
  border-radius:2px;transition:transform 0.25s ease;
}
.faq-item summary .q-icon::before{left:0;top:9px;width:20px;height:2px;}
.faq-item summary .q-icon::after{left:9px;top:0;width:2px;height:20px;}
.faq-item[open] summary .q-icon::after{transform:rotate(90deg);opacity:0;}
.faq-item .faq-answer{
  padding:0 1.3rem 1.3rem;color:var(--mist);font-size:0.94rem;line-height:1.65;
  max-width:640px;
}
.faq-empty{color:#565660;font-family:'JetBrains Mono',monospace;font-size:0.85rem;}

/* ---------- CONTACT FORM ---------- */
.contact-layout{
  display:grid;grid-template-columns:1fr 1.3fr;gap:3rem;align-items:start;
}
.contact-side .eyebrow{margin-bottom:1.2rem;}
.contact-side h2{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:1.5rem;
  line-height:1.3;letter-spacing:-0.01em;margin-bottom:1.2rem;
}
.contact-side p{color:var(--mist);font-size:0.95rem;line-height:1.65;margin-bottom:1.6rem;}
.contact-fact{
  display:flex;gap:0.7rem;align-items:flex-start;
  padding:1rem 0;border-top:1px solid var(--line);
  font-size:0.88rem;color:var(--mist);line-height:1.55;
}
.contact-fact:last-child{border-bottom:1px solid var(--line);}
.contact-fact .dot{
  flex:none;width:6px;height:6px;border-radius:50%;background:var(--teal);
  margin-top:0.5rem;
}

.contact-form-wrap{
  background:var(--surface);border:1px solid var(--line);border-radius:14px;
  padding:2.2rem;
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;}
.form-field{margin-bottom:1.3rem;}
.form-field:last-of-type{margin-bottom:0;}
.form-hint{font-size:0.78rem;color:#565660;margin-top:0.4rem;}
.form-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}

.form-submit-row{
  display:flex;align-items:center;gap:1rem;margin-top:1.8rem;flex-wrap:wrap;
}
.form-status{
  font-family:'JetBrains Mono',monospace;font-size:0.82rem;
}
.form-status.success{color:var(--teal);}
.form-status.error{color:var(--violet);}

.form-success-panel{
  text-align:center;padding:2.5rem 1rem;
}
.form-success-panel .eyebrow{justify-content:center;}
.form-success-panel h3{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:1.3rem;
  margin-bottom:0.8rem;
}
.form-success-panel p{color:var(--mist);font-size:0.92rem;line-height:1.6;}

@media (max-width:860px){
  .contact-layout{grid-template-columns:1fr;gap:2.2rem;}
  .form-row{grid-template-columns:1fr;}
}

/* ---------- SERVICE CARDS ---------- */
.services-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;
}
.service-card{
  background:var(--surface);border:1px solid var(--line);border-radius:12px;
  padding:2rem;transition:border-color 0.25s ease, transform 0.25s ease;
}
.service-card:hover{border-color:rgba(22,199,154,0.35);transform:translateY(-3px);}
.service-icon{
  width:44px;height:44px;border-radius:10px;
  background:var(--surface-2);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:1.4rem;color:var(--teal);
}
.service-card.violet .service-icon{color:var(--violet);}
.service-icon svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.service-num{
  font-family:'JetBrains Mono',monospace;font-size:0.72rem;color:var(--mist);
  letter-spacing:0.08em;margin-bottom:0.7rem;display:block;
}
.service-card h3{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:1.1rem;
  margin-bottom:0.7rem;letter-spacing:-0.01em;
}
.service-card p{color:var(--mist);font-size:0.92rem;line-height:1.62;}
@media (max-width:920px){.services-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.services-grid{grid-template-columns:1fr;}}

/* ---------- ROI WIDGET ---------- */
.roi-layout{
  display:grid;grid-template-columns:0.85fr 1.15fr;gap:2rem;align-items:start;
}
.roi-inputs{
  background:var(--surface);border:1px solid var(--line);border-radius:12px;
  padding:1.8rem;
}
.roi-field{margin-bottom:1.4rem;}
.roi-field:last-child{margin-bottom:0;}
.roi-field .roi-value{
  font-family:'Inter',sans-serif;font-weight:600;color:var(--teal);float:right;
}
.roi-field input[type="range"]{
  width:100%;appearance:none;height:4px;border-radius:2px;
  background:var(--line);margin-top:0.6rem;
}
.roi-field input[type="range"]::-webkit-slider-thumb{
  appearance:none;width:16px;height:16px;border-radius:50%;
  background:var(--teal);cursor:pointer;box-shadow:0 0 0 4px rgba(22,199,154,0.15);
}
.roi-field input[type="range"]::-moz-range-thumb{
  width:16px;height:16px;border-radius:50%;border:none;
  background:var(--teal);cursor:pointer;box-shadow:0 0 0 4px rgba(22,199,154,0.15);
}
.roi-note{
  font-size:0.8rem;color:#565660;line-height:1.55;margin-top:1.6rem;
  padding-top:1.4rem;border-top:1px solid var(--line);
}

.roi-results{
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
  padding:2.2rem;height:100%;
}
.roi-results-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-bottom:1.8rem;
}
.roi-stat{
  background:var(--surface-2);border:1px solid var(--line);border-radius:12px;
  padding:1.4rem 1.3rem;
}
.roi-stat.primary{grid-column:1 / -1;background:linear-gradient(135deg, rgba(22,199,154,0.1), rgba(139,92,246,0.06));border-color:rgba(22,199,154,0.25);}
.roi-stat-label{
  font-family:'Inter',sans-serif;font-weight:600;font-size:0.78rem;
  letter-spacing:0.04em;text-transform:uppercase;color:var(--mist);
  margin-bottom:0.6rem;
}
.roi-stat-value{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:2rem;letter-spacing:-0.02em;color:var(--white);
  line-height:1.1;
}
.roi-stat.primary .roi-stat-value{font-size:2.6rem;color:var(--teal);}
.roi-stat-unit{font-family:'Inter',sans-serif;font-weight:500;font-size:1rem;color:var(--mist);margin-left:0.3rem;}
.roi-breakdown{
  font-size:0.85rem;color:var(--mist);line-height:1.6;
  padding-top:1.4rem;border-top:1px solid var(--line);
}
.roi-breakdown strong{color:var(--white);font-weight:600;}
@media (max-width:860px){.roi-layout{grid-template-columns:1fr;}}
@media (max-width:420px){.roi-results-grid{grid-template-columns:1fr;}}

/* ---------- INTRO SPLASH (once per session, all pages) ---------- */
.intro-overlay{
  position:fixed;inset:0;z-index:1000;
  background:var(--void);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  perspective:800px;
  transition:opacity 0.55s cubic-bezier(0.4,0,0.2,1);
}
.intro-overlay.intro-hide{opacity:0;pointer-events:none;}
.intro-logo-wrap{position:relative;display:flex;align-items:center;justify-content:center;}
.intro-ring{
  position:absolute;width:120px;height:120px;border-radius:50%;
  border:1px solid rgba(22,199,154,0.4);
  animation:intro-ring-pulse 1.8s cubic-bezier(0.16,1,0.3,1) forwards;
}
.intro-ring.ring-2{border-color:rgba(139,92,246,0.35);animation-delay:0.25s;}
@keyframes intro-ring-pulse{
  0%{transform:scale(0.35);opacity:0;}
  35%{opacity:0.7;}
  100%{transform:scale(2.6);opacity:0;}
}
.intro-logo{
  width:88px;height:auto;position:relative;z-index:1;
  opacity:0;transform:scale(0.55) rotateY(-30deg);
  filter:drop-shadow(0 0 0 rgba(22,199,154,0));
  animation:intro-logo-in 1.15s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes intro-logo-in{
  0%{opacity:0;transform:scale(0.5) rotateY(-35deg);filter:drop-shadow(0 0 0 rgba(22,199,154,0));}
  55%{opacity:1;transform:scale(1.1) rotateY(10deg);filter:drop-shadow(0 0 34px rgba(22,199,154,0.55));}
  100%{opacity:1;transform:scale(1) rotateY(0deg);filter:drop-shadow(0 0 22px rgba(22,199,154,0.4));}
}

/* ---------- CHATBOT WIDGET ---------- */
.chat-launcher{
  position:fixed;right:1.5rem;bottom:1.5rem;z-index:200;
  width:56px;height:56px;border-radius:50%;
  background:var(--white);border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 30px rgba(0,0,0,0.4);
  transition:transform 0.25s ease;
}
.chat-launcher:hover{transform:translateY(-2px);}
.chat-launcher .dot{
  position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;
  background:var(--teal);box-shadow:0 0 8px var(--teal);
  animation:pulse-dot 2s ease-in-out infinite;
}
.chat-launcher svg{width:22px;height:22px;}
.chat-launcher img.icon-open{width:24px;height:auto;display:block;}
.chat-launcher .icon-close{display:none;}
.chat-launcher.open .icon-open{display:none;}
.chat-launcher.open .icon-close{display:block;}

.chat-panel{
  position:fixed;right:1.5rem;bottom:5.5rem;z-index:199;
  width:min(380px,calc(100vw - 2.5rem));height:min(560px,calc(100vh - 8rem));
  background:var(--surface);border:1px solid var(--line);border-radius:14px;
  display:flex;flex-direction:column;overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
  opacity:0;transform:translateY(12px) scale(0.98);pointer-events:none;
  transition:opacity 0.2s ease, transform 0.2s ease;
}
.chat-panel.open{opacity:1;transform:translateY(0) scale(1);pointer-events:auto;}

.chat-header{
  display:flex;align-items:center;gap:0.6rem;
  padding:0.9rem 1.1rem;border-bottom:1px solid var(--line);background:var(--surface-2);
  flex:none;
}
.chat-header span.dot{width:8px;height:8px;border-radius:50%;background:var(--teal);box-shadow:0 0 6px var(--teal);}
.chat-header .path{font-family:'JetBrains Mono',monospace;font-size:0.78rem;color:var(--mist);}

.chat-log{
  flex:1;overflow-y:auto;padding:1.1rem;
  display:flex;flex-direction:column;gap:0.9rem;
  font-size:0.9rem;line-height:1.55;
}
.chat-msg{max-width:88%;}
.chat-msg.user{align-self:flex-end;text-align:right;}
.chat-msg.assistant{align-self:flex-start;}
.chat-msg .bubble{
  display:inline-block;padding:0.7rem 0.9rem;border-radius:10px;
  text-align:left;white-space:pre-wrap;
}
.chat-msg.user .bubble{background:var(--white);color:var(--void);border-bottom-right-radius:2px;}
.chat-msg.assistant .bubble{background:var(--surface-2);color:var(--white);border:1px solid var(--line);border-bottom-left-radius:2px;}
.chat-msg.assistant .bubble::before{
  content:'>';color:var(--teal);font-family:'JetBrains Mono',monospace;margin-right:0.5rem;
}
.chat-msg .bubble.error{border-color:rgba(139,92,246,0.4);color:var(--mist);}

.chat-typing{display:inline-flex;gap:4px;align-items:center;padding:0.2rem 0;}
.chat-typing span{width:5px;height:5px;border-radius:50%;background:var(--mist);animation:chat-bounce 1.2s ease-in-out infinite;}
.chat-typing span:nth-child(2){animation-delay:0.15s;}
.chat-typing span:nth-child(3){animation-delay:0.3s;}
@keyframes chat-bounce{0%,60%,100%{opacity:0.3;transform:translateY(0);}30%{opacity:1;transform:translateY(-3px);}}

.chat-input-row{
  display:flex;gap:0.5rem;padding:0.9rem;border-top:1px solid var(--line);flex:none;
}
.chat-input-row input{
  flex:1;background:var(--void);font-size:0.88rem;padding:0.7rem 0.85rem;
}
.chat-input-row button{
  flex:none;width:40px;height:40px;border-radius:8px;border:none;
  background:var(--teal);color:var(--void);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:opacity 0.2s ease;
}
.chat-input-row button:disabled{opacity:0.4;cursor:default;}
.chat-input-row button svg{width:16px;height:16px;}

@media (max-width:480px){
  .chat-panel{right:0.75rem;bottom:5rem;}
  .chat-launcher{right:1rem;bottom:1rem;}
}

/* ---------- CTA BAND (shared — closing section on every interior page + home) ---------- */
.cta-band{
  padding:5.5rem 5%;border-top:1px solid var(--line);
  text-align:center;
}
.cta-band .eyebrow{justify-content:center;}
.cta-band h2{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:clamp(1.6rem,3.4vw,2.3rem);
  margin-bottom:1.2rem;letter-spacing:-0.02em;
}
.cta-band p{color:var(--mist);max-width:480px;margin:0 auto 2rem;line-height:1.6;}

/* ---------- STEP LIST (shared — used by About's process + Home's condensed version) ---------- */
.step-list{border-top:1px solid var(--line);}
.step-item{
  display:grid;grid-template-columns:80px 1fr;gap:1.5rem;
  padding:2rem 0;border-bottom:1px solid var(--line);
}
.step-item .step-tag{
  font-family:'JetBrains Mono',monospace;font-size:0.85rem;color:var(--mist);
  padding-top:0.2rem;
}
.step-item h3{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:1.2rem;
  margin-bottom:0.5rem;letter-spacing:-0.01em;
}
.step-item p{color:var(--mist);font-size:0.95rem;line-height:1.65;max-width:600px;}
@media (max-width:560px){
  .step-item{grid-template-columns:1fr;gap:0.4rem;}
}

/* ---------- INTEGRATIONS MARQUEE ---------- */
.marquee{
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:1.6rem 0;overflow:hidden;position:relative;
}
.marquee::before,.marquee::after{
  content:'';position:absolute;top:0;bottom:0;width:8%;z-index:2;pointer-events:none;
}
.marquee::before{left:0;background:linear-gradient(90deg,var(--void),transparent);}
.marquee::after{right:0;background:linear-gradient(270deg,var(--void),transparent);}
.marquee-track{
  display:flex;gap:3.5rem;width:max-content;
  animation:marquee-scroll 32s linear infinite;
}
.marquee-item{
  font-family:'Inter',sans-serif;font-weight:600;font-size:1rem;
  color:var(--mist);white-space:nowrap;display:flex;align-items:center;gap:0.6rem;
  opacity:0.7;
}
.marquee-item .dot{width:4px;height:4px;border-radius:50%;background:var(--teal);}
@keyframes marquee-scroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@media (prefers-reduced-motion: reduce){.marquee-track{animation:none;}}

/* ---------- INTERACTION UTILITIES ---------- */
.reveal{
  opacity:0;transform:translateY(22px);
  transition:opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible{opacity:1;transform:translateY(0);}
.reveal-group .reveal:nth-child(1){transition-delay:0s;}
.reveal-group .reveal:nth-child(2){transition-delay:0.08s;}
.reveal-group .reveal:nth-child(3){transition-delay:0.16s;}
.reveal-group .reveal:nth-child(4){transition-delay:0.24s;}
.reveal-group .reveal:nth-child(5){transition-delay:0.32s;}
.reveal-group .reveal:nth-child(6){transition-delay:0.4s;}

.tilt{transform-style:preserve-3d;will-change:transform;}

#cursor-glow{
  position:fixed;top:0;left:0;width:480px;height:480px;z-index:1;
  border-radius:50%;pointer-events:none;
  background:radial-gradient(circle, rgba(22,199,154,0.10) 0%, rgba(139,92,246,0.05) 45%, transparent 72%);
  transform:translate(-50%,-50%);
  opacity:0;transition:opacity 0.4s ease;
}
#cursor-glow.active{opacity:1;}

@media (max-width:860px), (prefers-reduced-motion: reduce), (hover:none){
  #cursor-glow{display:none;}
}

@media (prefers-reduced-motion: reduce){
  .eyebrow::before,.chat-launcher .dot{animation:none;}
  .chat-typing span{animation:none;opacity:0.6;}
  .reveal{opacity:1;transform:none;transition:none;}
  .tilt{transform:none !important;}
}
