/* ============================================================
   Fine — finely tuned optimization tools
   Single-page static site · no dependencies
   ============================================================ */

:root {
  --bg:        #08090d;
  --bg-soft:   #0d0f16;
  --panel:     #11131c;
  --panel-2:   #161927;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --text:      #e8eaf0;
  --muted:     #9aa0b4;
  --faint:     #6a7088;

  --accent:    #7c8cff;
  --accent-2:  #51e6c4;
  --accent-3:  #b06bff;
  --good:      #51e6c4;

  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-3) 55%, var(--accent-2) 100%);

  --radius:    16px;
  --radius-sm: 11px;
  --maxw:      1160px;

  --shadow:    0 24px 70px -24px rgba(0,0,0,.7);
  --glow:      0 0 60px -10px rgba(124,140,255,.45);

  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(124,140,255,.3); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* gradient text */
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  --pad: 11px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad);
  font: 600 14.5px/1 'Inter', sans-serif;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { --pad: 15px 26px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn--solid {
  color: #0a0b10; background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 10px 30px -10px rgba(124,140,255,.6);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124,140,255,.75); background-position: 100% 0; }
.btn--ghost {
  color: var(--text); background: rgba(255,255,255,.03); border-color: var(--line-2);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: #fff; background: rgba(124,140,255,.08); }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 12.5px/1 'JetBrains Mono', monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow__pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(81,230,196,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(81,230,196,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(81,230,196,0); }
  100% { box-shadow: 0 0 0 0 rgba(81,230,196,0); }
}

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 22px; height: 22px; border-radius: 7px; background: var(--grad);
  box-shadow: var(--glow); position: relative; flex: none;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 5px; border-radius: 3px;
  background: var(--bg);
}
.brand__mark--sm { width: 16px; height: 16px; border-radius: 5px; }
.brand__mark--sm::after { inset: 3px; border-radius: 2px; }
.brand__name { font: 700 19px/1 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.brand__dot { color: var(--accent-2); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8,9,13,.72);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 14.5px; color: var(--muted); transition: color .2s; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; gap: 10px; align-items: center; }
/* On desktop the menu wrapper is transparent to layout — links & cta act as direct flex items */
.nav__menu { display: contents; }
.nav--full .nav__links { margin-right: auto; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; border-radius: 2px; transition: .3s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: 168px 0 96px; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  max-width: var(--maxw); margin-inline: auto; padding-inline: 24px;
}
.hero__inner { position: relative; z-index: 2; }
.hero__bg { position: absolute; inset: -10% -20%; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.orb--1 { width: 520px; height: 520px; background: radial-gradient(circle, #4a5bff, transparent 65%); top: -120px; left: -60px; animation: float1 16s ease-in-out infinite; }
.orb--2 { width: 460px; height: 460px; background: radial-gradient(circle, #51e6c4, transparent 65%); bottom: -160px; right: 0; opacity: .4; animation: float2 20s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(-30px, -24px) scale(1.1); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 40% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 40% 40%, #000 30%, transparent 75%);
  opacity: .5;
}

.hero__title {
  font: 700 clamp(40px, 6.4vw, 78px)/1.03 'Space Grotesk', sans-serif;
  letter-spacing: -.03em; margin: 22px 0 20px;
}
.hero__lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 33em; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; gap: 14px; margin: 32px 0 22px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--faint); }
.dotsep { position: relative; padding-left: 16px; }
.dotsep::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }

/* hero floating panel */
.hero__panel {
  position: relative; z-index: 2;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  animation: floatPanel 7s ease-in-out infinite;
}
@keyframes floatPanel { 50% { transform: translateY(-12px); } }
.panel__head { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.panel__title { margin-left: 8px; font: 500 12.5px/1 'JetBrains Mono', monospace; color: var(--faint); }
.panel__body { display: grid; grid-template-columns: auto 1fr; gap: 26px; padding: 26px 24px; align-items: center; }
.score { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.score__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.score__track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 9; }
.score__fill {
  fill: none; stroke: url(#scoreGrad); stroke: var(--accent-2); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.6s var(--ease);
}
.score__num { font: 700 38px/1 'Space Grotesk', sans-serif; }
.score__label { position: absolute; bottom: 14px; font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.panel__metrics { display: grid; gap: 11px; }
.panel__metrics li { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.panel__metrics span { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.panel__metrics b { font-weight: 600; }
.good { color: var(--good); }

/* ============================================================
   STATS
   ============================================================ */
.stats { border-block: 1px solid var(--line); background: var(--bg-soft); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 44px 24px; }
.stat { text-align: center; }
.stat b { display: block; font: 700 clamp(30px, 4vw, 44px)/1 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: 110px 0; position: relative; z-index: 2; }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__title { font: 700 clamp(28px, 4vw, 46px)/1.1 'Space Grotesk', sans-serif; letter-spacing: -.025em; margin: 16px 0 14px; }
.section__sub { color: var(--muted); font-size: 17px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { opacity: .8; }
.card__icon { font-size: 26px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: rgba(124,140,255,.1); border: 1px solid var(--line); margin-bottom: 18px; }
.card h3 { font: 600 19px/1.2 'Space Grotesk', sans-serif; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   GENIE
   ============================================================ */
.genie { background: var(--bg-soft); border-block: 1px solid var(--line); }
.genie__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { display: grid; gap: 12px; margin: 26px 0 30px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); font-size: 15px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 700;
  color: #0a0b10; background: var(--accent-2);
}
.genie__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.chat {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.chat__head { display: flex; align-items: center; gap: 9px; padding: 15px 18px; border-bottom: 1px solid var(--line); font: 600 14px/1 'Space Grotesk', sans-serif; }
.chat__body { padding: 20px 18px; display: grid; gap: 12px; min-height: 230px; }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(8px); }
.msg.show { opacity: 1; transform: none; transition: .5s var(--ease); }
.msg--user { justify-self: end; background: var(--grad); color: #0a0b10; border-bottom-right-radius: 4px; font-weight: 500; }
.msg--bot { justify-self: start; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); }
.msg--bot code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--accent-2); }
.msg--result { background: rgba(81,230,196,.08); border-color: rgba(81,230,196,.3); }
.msg--result b { color: var(--accent-2); }
.chat__input { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
.chat__caret { width: 2px; height: 16px; background: var(--accent-2); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: linear-gradient(165deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.step__num { font: 700 15px/1 'JetBrains Mono', monospace; color: var(--accent-2); background: rgba(81,230,196,.08); border: 1px solid var(--line); display: inline-block; padding: 7px 11px; border-radius: 8px; margin-bottom: 18px; }
.step h3 { font: 600 20px/1.2 'Space Grotesk', sans-serif; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   PRICING
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative;
  transition: transform .35s var(--ease), border-color .35s;
}
.plan:hover { transform: translateY(-4px); }
.plan--featured { border-color: rgba(124,140,255,.5); box-shadow: var(--glow); }
.plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #0a0b10; font: 600 11.5px/1 'Inter'; padding: 6px 13px; border-radius: 999px; letter-spacing: .02em; }
.plan__name { font: 600 16px/1 'JetBrains Mono', monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.plan__price { font: 700 42px/1 'Space Grotesk', sans-serif; letter-spacing: -.02em; margin-bottom: 22px; }
.plan__price span { font-size: 16px; color: var(--faint); font-weight: 500; }
.plan ul { display: grid; gap: 11px; margin-bottom: 26px; }
.plan ul li { position: relative; padding-left: 26px; color: var(--muted); font-size: 14.5px; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

/* ============================================================
   CTA
   ============================================================ */
.cta { text-align: center; }
.cta__inner {
  max-width: 720px; margin-inline: auto; padding: 64px 32px;
  background: radial-gradient(ellipse at top, rgba(124,140,255,.14), transparent 70%), var(--panel);
  border: 1px solid var(--line-2); border-radius: 24px; box-shadow: var(--shadow);
}
.cta__title { font: 700 clamp(30px, 4.5vw, 50px)/1.1 'Space Grotesk', sans-serif; letter-spacing: -.025em; }
.cta__sub { color: var(--muted); margin: 14px 0 30px; }
.cta__form { display: flex; gap: 12px; max-width: 480px; margin-inline: auto; }
.cta__form input {
  flex: 1; padding: 15px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04); color: var(--text); font-size: 15px; outline: none;
  transition: border-color .25s;
}
.cta__form input:focus { border-color: var(--accent); }
.cta__form input::placeholder { color: var(--faint); }
.cta__note { margin-top: 16px; font-size: 14px; color: var(--accent-2); min-height: 20px; }
.cta__form--stacked { flex-direction: column; max-width: 520px; }
.cta__form textarea {
  width: 100%; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04); color: var(--text); font: 400 15px/1.5 'Inter', sans-serif;
  outline: none; resize: vertical; min-height: 110px; transition: border-color .25s;
}
.cta__form textarea:focus { border-color: var(--accent); }
.cta__form textarea::placeholder { color: var(--faint); }
.cta__alt { margin-top: 14px; font-size: 14px; color: var(--muted); }
.cta__alt a { color: var(--accent-2); border-bottom: 1px solid transparent; transition: border-color .2s; }
.cta__alt a:hover { border-bottom-color: var(--accent-2); }

/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */
.legal { padding: 150px 0 90px; position: relative; z-index: 2; }
.legal__inner { max-width: 760px; margin-inline: auto; }
.legal h1 {
  font: 700 clamp(30px, 5vw, 48px)/1.1 'Space Grotesk', sans-serif;
  letter-spacing: -.025em; margin-bottom: 10px;
}
.legal__updated { color: var(--faint); font: 500 13px/1 'JetBrains Mono', monospace; margin-bottom: 40px; }
.legal h2 {
  font: 600 21px/1.3 'Space Grotesk', sans-serif; margin: 38px 0 12px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.legal h3 { font: 600 16px/1.4 'Inter', sans-serif; margin: 22px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; display: grid; gap: 7px; }
.legal a { color: var(--accent-2); border-bottom: 1px solid transparent; transition: border-color .2s; }
.legal a:hover { border-bottom-color: var(--accent-2); }
.legal strong { color: var(--text); font-weight: 600; }
.legal__back {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 44px;
  font-size: 14.5px; color: var(--muted);
}
.legal__back:hover { color: var(--text); }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); position: relative; z-index: 2; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 56px 24px 36px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 26em; }
.footer__col h4 { font: 600 13px/1 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); flex-wrap: wrap; gap: 10px; }
.footer__host code { font-family: 'JetBrains Mono', monospace; color: var(--accent-2); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.langsw {
  display: flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03);
}
.langsw__btn {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 12px/1 'JetBrains Mono', monospace; letter-spacing: .04em;
  padding: 7px 10px; border-radius: 999px; transition: color .2s, background .2s;
}
.langsw__btn:hover { color: var(--text); }
.langsw__btn.is-active { background: var(--grad); color: #0a0b10; }


/* ============================================================
   CHATBOT WIDGET (rule-based, no backend)
   ============================================================ */
.cbot-launch {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 12px 34px -8px rgba(124,140,255,.6);
  display: grid; place-items: center; color: #0a0b10;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cbot-launch:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 44px -8px rgba(124,140,255,.8); }
.cbot-launch svg { width: 26px; height: 26px; }
.cbot-launch .cbot-launch__close { display: none; }
.cbot-launch.is-open .cbot-launch__open { display: none; }
.cbot-launch.is-open .cbot-launch__close { display: block; }
.cbot-launch__ping {
  position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-2); border: 2px solid var(--bg);
}
.cbot-launch.is-open .cbot-launch__ping { display: none; }

.cbot {
  position: fixed; bottom: 96px; right: 24px; z-index: 100;
  width: 370px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 130px);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.cbot.is-open { opacity: 1; transform: none; pointer-events: auto; }
.cbot__head { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cbot__head .brand__mark { width: 26px; height: 26px; }
.cbot__head-txt b { display: block; font: 600 15px/1.2 'Space Grotesk', sans-serif; }
.cbot__head-txt span { font-size: 12px; color: var(--accent-2); display: flex; align-items: center; gap: 6px; }
.cbot__head-txt span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(81,230,196,.6); animation: pulse 2.4s infinite; }
.cbot__close { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 8px; transition: .2s; }
.cbot__close:hover { color: var(--text); background: rgba(255,255,255,.06); }

.cbot__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 11px; scrollbar-width: thin; }
.cbot__msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; animation: cbotIn .35s var(--ease); }
@keyframes cbotIn { from { opacity: 0; transform: translateY(8px); } }
.cbot__msg--bot { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cbot__msg--user { align-self: flex-end; background: var(--grad); color: #0a0b10; border-bottom-right-radius: 4px; font-weight: 500; }
.cbot__msg a.cbot__action {
  display: inline-block; margin-top: 9px; padding: 7px 13px; border-radius: 999px;
  background: rgba(124,140,255,.14); border: 1px solid var(--line-2); color: var(--accent-2);
  font-size: 13px; font-weight: 600; transition: .2s;
}
.cbot__msg a.cbot__action:hover { background: rgba(124,140,255,.24); color: #fff; }
.cbot__typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 4px; }
.cbot__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: cbotDot 1.2s infinite; }
.cbot__typing span:nth-child(2) { animation-delay: .2s; }
.cbot__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cbotDot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.cbot__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.cbot__chip {
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03); color: var(--text); font-size: 13px; cursor: pointer;
  transition: .2s; font-family: inherit;
}
.cbot__chip:hover { border-color: var(--accent); color: #fff; background: rgba(124,140,255,.1); }

.cbot__input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.cbot__input input {
  flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04); color: var(--text); font-size: 14px; outline: none; font-family: inherit;
}
.cbot__input input:focus { border-color: var(--accent); }
.cbot__input input::placeholder { color: var(--faint); }
.cbot__send { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #0a0b10; display: grid; place-items: center; transition: transform .2s; }
.cbot__send:hover { transform: scale(1.06); }
.cbot__send svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .cbot { right: 16px; left: 16px; width: auto; bottom: 88px; }
  .cbot-launch { bottom: 18px; right: 18px; }
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero__panel { max-width: 460px; }
  .genie__grid { grid-template-columns: 1fr; gap: 36px; }
  .cards, .steps, .plans { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__burger { display: block; }

  /* index nav: brand left · langsw + burger right */
  .nav--full .langsw { margin-left: auto; }
  .nav--full .nav__menu { display: none; }

  /* keep the bar (logo, language switcher, burger/X) above the overlay */
  .nav--full.is-open .brand,
  .nav--full.is-open .langsw,
  .nav--full.is-open .nav__burger { position: relative; z-index: 2; }

  /* full-screen overlay menu — fully opaque, covers everything */
  .nav--full.is-open .nav__menu {
    display: flex; flex-direction: column; justify-content: center;
    position: fixed; inset: 0; z-index: 1;
    background: var(--bg);
    padding: 96px 32px 40px;
  }
  .nav--full.is-open .nav__links { display: flex; flex-direction: column; }
  .nav--full.is-open .nav__links a {
    padding: 17px 2px; font: 600 22px/1.2 'Space Grotesk', sans-serif;
    border-bottom: 1px solid var(--line);
  }
  .nav--full.is-open .nav__links a::after { display: none; }
  .nav--full.is-open .nav__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
  .nav--full.is-open .nav__cta .btn { width: 100%; --pad: 15px 26px; font-size: 16px; }

  /* legal-page nav (no burger): keep the back button, drop the solid CTA */
  .nav:not(.nav--full) .nav__cta .btn--solid { display: none; }
  .nav:not(.nav--full) .nav__cta .btn { padding: 9px 14px; font-size: 13px; }

  .cards, .steps, .plans { grid-template-columns: 1fr; }
  .cta__form { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
