/* ============================================================================
   BrettlJausn — group website
   Dark / glassy / futuristic system (see styling.md §1–17)
   ========================================================================== */

:root {
  /* Brand */
  --brand-forest: #1F4D3A;
  --forest-deep: #0E2820;
  --forest-abyss: #061812;
  --herbal-lime: #8DC63F;
  --herbal-glow: rgba(141, 198, 63, .55);
  --alpine-white: #F7F9F8;

  /* Glass surfaces */
  --glass-bg: rgba(255, 255, 255, .04);
  --glass-bg-strong: rgba(255, 255, 255, .07);
  --glass-border: rgba(255, 255, 255, .09);
  --glass-border-bright: rgba(141, 198, 63, .35);

  /* Text */
  --text: rgba(247, 249, 248, .94);
  --text-dim: rgba(247, 249, 248, .74);
  --text-faint: rgba(247, 249, 248, .5);
  /* Brighter lime reserved for small accent text — #8DC63F reads soft at small
     sizes on the dark glass; this lifts contrast without changing fills/buttons. */
  --lime-text: #AEDC6A;

  /* Semantic */
  --primary: var(--herbal-lime);
  --bg: var(--forest-abyss);
  --card-bg: var(--glass-bg);
  --border: var(--glass-border);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Geometry */
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .15);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .35), 0 0 24px -6px var(--herbal-glow);

  --maxw: 1140px;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--forest-abyss);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Cosmic background layers (§3) --------------------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(141, 198, 63, .14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(47, 107, 79, .3), transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 70%, rgba(31, 77, 58, .4), transparent 60%),
    linear-gradient(180deg, var(--forest-abyss) 0%, #081e16 50%, var(--forest-abyss) 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .78 0 0 0 0 .25 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Layout helpers ------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 6rem 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 300; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; color: var(--text-dim); }
.lead { font-size: 1.15rem; color: var(--text-dim); }

em { font-style: italic; }
.hero h1 em,
.grad {
  font-style: italic;
  background: linear-gradient(135deg, var(--herbal-lime) 0%, #c5e890 50%, #A8C7B5 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime-text);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--herbal-lime);
  box-shadow: 0 0 10px var(--herbal-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lime-text);
  margin-bottom: 1.25rem;
}

/* ---- Buttons (§5) --------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 400;
  text-decoration: none;
  transition: all .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  isolation: isolate;
}
.btn-primary {
  background: var(--herbal-lime);
  color: var(--forest-abyss) !important;
  font-weight: 500;
  box-shadow: 0 0 0 1px rgba(141, 198, 63, .3), 0 8px 32px -8px var(--herbal-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(141, 198, 63, .5), 0 12px 40px -8px var(--herbal-glow), 0 0 24px var(--herbal-glow);
}
.btn-ghost {
  background: var(--glass-bg);
  color: var(--text) !important;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--glass-bg-strong); border-color: var(--glass-border-bright); }
.btn-outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid rgba(141, 198, 63, .4);
}
.btn-outline:hover { border-color: var(--lime-text); box-shadow: 0 0 24px -4px var(--herbal-glow); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Glass primitive (§4) ------------------------------------------------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: all .35s ease;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 40%, transparent 60%, rgba(141,198,63,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.glass:hover {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-bright);
  transform: translateY(-2px);
}

/* ---- Top navigation ------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 30, 22, .6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand-logo { height: 38px; width: auto; display: block; }
.footer-brand .brand-logo { height: 44px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: .9375rem; transition: color .2s; }
.nav-links a:hover { color: var(--lime-text); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: .25rem; }
.nav-cta-mobile { display: none; }   /* CTA shown inside the mobile menu only */

/* ---- Language switcher (custom styled dropdown) -------------------------- */
.lang-switch { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.lang-toggle:hover, .lang-switch.is-open .lang-toggle {
  color: var(--lime-text);
  border-color: var(--glass-border-bright);
  background: var(--glass-bg-strong);
}
.lang-current { font-weight: 500; }
.lang-caret { transition: transform .2s; }
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: .35rem;
  list-style: none;
  background: rgba(14, 40, 32, .96);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 30px -12px var(--herbal-glow);
  z-index: 120;
}
.lang-menu[hidden] { display: none; }
.lang-menu li { margin: 0; }
.lang-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .65rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: .9rem;
  transition: background .15s, color .15s;
}
.lang-option:hover { background: rgba(141, 198, 63, .12); color: var(--lime-text); }
.lang-option.is-current { color: var(--lime-text); }
.lang-option.is-current::after { content: '✓'; margin-left: auto; font-size: .8rem; }
.lang-option-code {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  width: 1.8rem;
  color: var(--text-faint);
}
.lang-option:hover .lang-option-code,
.lang-option.is-current .lang-option-code { color: var(--lime-text); }

/* ---- Hero ----------------------------------------------------------------- */
.hero { padding: 11rem 0 6rem; text-align: center; position: relative; overflow: hidden; }
.hero-orb {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(141,198,63,.12) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: orbPulse 8s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: .6; }
  50%      { transform: translateX(-50%) scale(1.15); opacity: .9; }
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -.02em; margin-bottom: 1.5rem; }
.hero .lead { max-width: 680px; margin: 0 auto 2.25rem; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: .5rem 1rem .5rem .75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--herbal-lime);
  box-shadow: 0 0 8px var(--herbal-glow);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ---- Stat strip ----------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 2rem 2.5rem;
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--lime-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-faint);
  margin-top: .6rem;
}

/* ---- Products grid -------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.product-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.product-card h3 { margin-bottom: .75rem; color: var(--text); }
.product-card .grad { font-style: normal; }
.product-card p { font-size: .95rem; flex: 1 1 auto; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 1.5rem; }
.tag {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lime-text);
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(141, 198, 63, .14);
  border: 1px solid rgba(141, 198, 63, .3);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  text-decoration: none;
  color: var(--lime-text);
  font-size: .9rem;
  font-weight: 500;
}
.product-link .arrow { transition: transform .2s; }
.product-card:hover .product-link .arrow { transform: translateX(3px); }
.product-link.muted { color: var(--text-faint); }

/* ---- Services ------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card { padding: 2rem; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  background: rgba(141, 198, 63, .12);
  border: 1px solid rgba(141, 198, 63, .3);
  color: var(--lime-text);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.service-card p { font-size: .95rem; margin: 0; }

/* ---- How we work (steps §14) --------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 16%; right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--herbal-lime), transparent);
  opacity: .35;
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--forest-abyss);
  border: 1px solid var(--glass-border-bright);
  color: var(--lime-text);
  font-family: var(--font-mono);
  font-size: .8125rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 24px -4px var(--herbal-glow), inset 0 0 12px rgba(141,198,63,.08);
}
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { font-size: .9rem; margin: 0; }

/* ---- Founder card (About) ------------------------------------------------- */
.founder {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}
.founder-photo {
  width: 150px;
  height: 188px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  border: 1px solid var(--glass-border-bright);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35), 0 0 28px -10px var(--herbal-glow);
  flex: 0 0 auto;
}
.founder-name { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.1; }
.founder-role {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime-text);
  margin: .35rem 0 .9rem;
}
.founder-bio { font-size: .98rem; line-height: 1.6; color: var(--text-dim); margin: 0 0 1rem; max-width: 640px; }
.founder-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.founder-facts li { position: relative; padding-left: 1.1rem; font-size: .9rem; color: var(--text); }
.founder-facts li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--herbal-lime);
  box-shadow: 0 0 6px var(--herbal-glow);
}
.founder-linkedin { margin-top: 1.25rem; gap: .5rem; }
.founder-linkedin svg { color: var(--lime-text); }

@media (max-width: 640px) {
  .founder { flex-direction: column; align-items: center; text-align: center; }
  .founder-facts li { text-align: left; }
}

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { padding: 4rem 3rem; text-align: center; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .lead { max-width: 540px; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Footer --------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem 0 2.5rem;
  margin-top: 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.footer-brand { max-width: 340px; }
.footer-brand p { font-size: .9rem; margin-top: 1rem; }
.footer-legal-line { font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); letter-spacing: .03em; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0 .25rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-dim);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social:hover { color: var(--lime-text); border-color: var(--glass-border-bright); background: var(--glass-bg-strong); }
.footer-social svg { color: var(--lime-text); }
.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--lime-text);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text-dim);
  font-size: .9rem;
  margin-bottom: .6rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--lime-text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-faint);
  letter-spacing: .03em;
}

/* ---- Legal / prose sub-pages --------------------------------------------- */
.legal { padding: 9rem 0 5rem; }
.legal-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.legal-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.01em; margin-bottom: 1rem; }
.legal-head .legal-updated {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-faint);
}
.legal-note {
  max-width: 620px;
  margin: 1.25rem auto 0;
  padding: .6rem 1rem;
  font-size: .82rem;
  color: var(--text-dim);
  background: rgba(141, 198, 63, .08);
  border: 1px solid rgba(141, 198, 63, .22);
  border-radius: var(--radius);
}
.legal-body { max-width: 820px; margin: 0 auto; padding: 2.5rem clamp(1.25rem, 4vw, 3rem); }
.legal-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 .85rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--glass-border);
}
.legal-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-body h3 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; color: var(--text); }
.legal-body p, .legal-body li { color: var(--text-dim); font-size: .975rem; line-height: 1.7; }
.legal-body p { margin: 0 0 1rem; }
.legal-body strong { color: var(--text); font-weight: 500; }
.legal-body code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: rgba(141, 198, 63, .1);
  border: 1px solid rgba(141, 198, 63, .2);
  padding: .08em .35em;
  border-radius: 4px;
}
.legal-body a { color: var(--lime-text); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body ul, .legal-body ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.legal-body li { margin-bottom: .5rem; }
.legal-body ul li::marker { color: var(--lime-text); }
.legal-intro {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 2rem !important;
}
.legal-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-faint);
  line-height: 1.7;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 auto 2.5rem;
  max-width: 820px;
  justify-content: center;
}
.legal-toc a {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--lime-text);
  text-decoration: none;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(141, 198, 63, .1);
  border: 1px solid rgba(141, 198, 63, .25);
}
.legal-toc a:hover { background: rgba(141, 198, 63, .18); }

/* ---- Form controls (§6) --------------------------------------------------- */
.form-control {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 300;
  color: var(--text);
  background: rgba(8, 30, 22, .35);
  backdrop-filter: blur(8px);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus {
  outline: none;
  border-color: var(--lime-text);
  background: rgba(8, 30, 22, .55);
  box-shadow: 0 0 0 3px rgba(141, 198, 63, .18), 0 0 16px -4px var(--herbal-glow);
}
textarea.form-control { resize: vertical; min-height: 96px; line-height: 1.5; }

/* ---- Modal / dialog (§9) -------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 24, 18, .65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal-backdrop.is-open { opacity: 1; }

.dialog {
  background: var(--forest-deep);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 40px -10px var(--herbal-glow);
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  transform: translateY(8px) scale(.985);
  transition: transform .22s ease;
}
.modal-backdrop.is-open .dialog { transform: none; }
.dialog::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--herbal-lime), transparent);
  box-shadow: 0 0 12px var(--herbal-glow);
}
.dialog-close {
  position: absolute;
  top: .85rem; right: 1rem;
  background: none; border: 0;
  color: var(--text-dim);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  transition: color .15s;
}
.dialog-close:hover { color: var(--lime-text); }
.dialog-head { margin-bottom: 1.5rem; }
.dialog-head h2 { font-size: 1.9rem; margin: .35rem 0 .5rem; }
.dialog-head p { font-size: .92rem; margin: 0; color: var(--text-dim); }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  margin-bottom: .4rem;
}
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-status {
  font-size: .85rem;
  margin: .25rem 0 0;
  padding: .6rem .8rem;
  border-radius: var(--radius);
}
.cf-status.is-error   { background: rgba(255,107,94,.15); color: #ff8a80; border: 1px solid rgba(255,107,94,.3); }
.cf-status.is-success { background: rgba(141,198,63,.15); color: var(--lime-text); border: 1px solid rgba(141,198,63,.3); }
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1.5rem;
}
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---- Reveal animation (§13) ---------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  /* Mobile: collapse everything into the hamburger — only logo + toggle show. */
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%; left: 0; right: 0;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(8, 30, 22, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 18px 40px rgba(0,0,0,.4);
  }
  .nav.open .nav-links a { font-size: 1.05rem; }
  .nav.open .nav-cta-mobile { display: inline-flex; margin-top: .25rem; }
  /* Switcher opens inline within the mobile menu rather than as an overlay. */
  .nav.open .lang-menu { position: static; min-width: 0; width: 100%; margin-top: .5rem; box-shadow: none; }
  .product-grid, .services-grid, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  section { padding: 4.5rem 0; }
  .hero { padding: 9rem 0 4rem; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .cta-band, .stats { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ---- Chat widget ---------------------------------------------------------- */
.bj-chat { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900; }

.bj-chat-fab {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--forest-abyss);
  background: var(--herbal-lime);
  box-shadow: 0 8px 28px -6px var(--herbal-glow), 0 0 0 1px rgba(141,198,63,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bj-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -6px var(--herbal-glow), 0 0 24px var(--herbal-glow);
}
.bj-chat-fab:active { transform: translateY(0); }
.bj-chat.is-open .bj-chat-fab { background: var(--forest-deep); color: var(--lime-text); box-shadow: 0 8px 28px -8px rgba(0,0,0,.5), 0 0 0 1px var(--glass-border-bright); }

.bj-chat-panel[hidden] { display: none; }
.bj-chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 2.5rem));
  height: min(560px, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  background: rgba(14, 40, 32, .92);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px -12px var(--herbal-glow);
  overflow: hidden;
  transform-origin: bottom right;
  animation: bj-chat-in .22s ease;
}
.bj-chat-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 55%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--herbal-lime), transparent);
  box-shadow: 0 0 12px var(--herbal-glow);
}
@keyframes bj-chat-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.bj-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.bj-chat-head-title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}
.bj-chat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--herbal-lime);
  box-shadow: 0 0 8px var(--herbal-glow);
  animation: pulse 1.8s ease-in-out infinite;
}
.bj-chat-close {
  background: none; border: 0;
  color: var(--text-dim);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  transition: color .15s;
}
.bj-chat-close:hover { color: var(--lime-text); }

.bj-chat-log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.bj-chat-msg {
  max-width: 86%;
  padding: .6rem .85rem;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.bj-chat-msg-bot {
  align-self: flex-start;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.bj-chat-msg-user {
  align-self: flex-end;
  background: rgba(141, 198, 63, .16);
  border: 1px solid rgba(141, 198, 63, .3);
  border-bottom-right-radius: 4px;
  color: var(--text);
}
.bj-chat-typing { display: inline-flex; gap: 4px; align-items: center; }
.bj-chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--herbal-lime);
  opacity: .5;
  animation: bj-chat-blink 1.2s infinite ease-in-out;
}
.bj-chat-typing span:nth-child(2) { animation-delay: .2s; }
.bj-chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bj-chat-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.bj-chat-form {
  display: flex;
  gap: .5rem;
  padding: .75rem;
  border-top: 1px solid var(--glass-border);
}
.bj-chat-input {
  flex: 1 1 auto;
  padding: .6rem .85rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(8, 30, 22, .45);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .15s, box-shadow .15s;
}
.bj-chat-input::placeholder { color: var(--text-faint); }
.bj-chat-input:focus {
  outline: none;
  border-color: var(--lime-text);
  box-shadow: 0 0 0 3px rgba(141, 198, 63, .16);
}
.bj-chat-send {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  background: var(--herbal-lime);
  color: var(--forest-abyss);
  transition: transform .15s, box-shadow .15s;
}
.bj-chat-send:hover { box-shadow: 0 0 18px -2px var(--herbal-glow); }
.bj-chat-send:disabled { opacity: .5; cursor: default; box-shadow: none; }
.bj-chat-foot {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .04em;
  text-align: center;
  color: var(--text-faint);
  padding: 0 .75rem .7rem;
}

@media (max-width: 480px) {
  .bj-chat { right: 1rem; bottom: 1rem; }
  .bj-chat-panel { bottom: 70px; height: min(70vh, calc(100vh - 6rem)); }
}

/* ---- Cookie notice -------------------------------------------------------- */
.cookie-notice {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 950;             /* above the chat fab so it's fully visible */
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem 1.1rem;
  background: rgba(14, 40, 32, .94);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 30px -14px var(--herbal-glow);
  animation: bj-chat-in .25s ease;
}
.cookie-notice-text {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.cookie-notice-text a { color: var(--lime-text); text-decoration: none; }
.cookie-notice-text a:hover { text-decoration: underline; }
.cookie-notice-accept { align-self: flex-start; }
.btn-sm { padding: .45rem 1.1rem; font-size: .85rem; }
.cookie-notice.is-hiding {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
@media (max-width: 560px) {
  .cookie-notice { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; }
}

/* ---- Reduced motion (§13) ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-orb, .eyebrow::before, .live-dot, .bj-chat-dot { animation: none; }
  .bj-chat-panel, .cookie-notice { animation: none; }
}
