/* ============================================================
   KILLSWITCH Web Studio — design system
   Brand color lives in --accent. The "Adjust live" demo just
   rewrites this one variable, which is the whole pitch.
   ============================================================ */
:root {
  --accent: #14e9a0;
  --accent-ink: #04130d;
  --ink: #f4f6f8;
  --body: #b9bec9;
  --muted: #7e8492;
  --line: #23262f;
  --bg: #0b0c10;
  --bg-alt: #111319;
  --bg-dark: #060709;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.6);
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; color: var(--ink); line-height: 1.1; font-weight: 600; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  padding: 13px 24px; border-radius: 999px; border: 0;
  font: 600 15px/1 'Inter', sans-serif; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-weight: 500; font-size: 15px; color: var(--body); transition: color .2s; }
.nav__links a:hover { color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; }
.nav__cta, .nav__links a.nav__cta { color: var(--accent-ink); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 55%),
    var(--bg);
  padding: 96px 0 84px;
}
.hero__inner { text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 22px auto 0; max-width: 600px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 48px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.hero__stats strong { font-family: 'Fraunces', serif; font-size: 38px; color: var(--ink); display: block; }
.hero__stats span { font-size: 14px; color: var(--muted); }

/* ---------- Trust strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; padding: 22px 24px; }
.strip span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.strip em { font-family: 'Fraunces', serif; font-style: normal; font-weight: 600; font-size: 19px; color: color-mix(in srgb, var(--ink) 70%, var(--bg)); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(28px, 4vw, 42px); text-align: center; letter-spacing: -.02em; }
.section__sub { text-align: center; color: var(--muted); max-width: 580px; margin: 16px auto 52px; font-size: 17px; }

/* ---------- Example cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__thumb { height: 168px; }
.thumb--a { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)); }
.thumb--b { background: linear-gradient(135deg, #ff8a5b, #ef4444); }
.thumb--c { background: linear-gradient(135deg, #0ea5e9, #10b981); }
.card h3 { font-size: 21px; margin: 22px 22px 8px; }
.card p { margin: 0 22px 24px; color: var(--muted); font-size: 15px; }

/* ---------- Showcase blocks ---------- */
.showcase { margin-bottom: 40px; }
.showcase__label {
  display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.statband {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 24px; text-align: center;
}
.statband strong { font-family: 'Fraunces', serif; font-size: 40px; color: var(--accent); display: block; }
.statband span { font-size: 14px; color: var(--muted); }

/* ---------- Tiers / pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tiers--demo .tier { text-align: center; }
.tier {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative; display: flex; flex-direction: column;
}
.tier--featured { border-color: var(--accent); box-shadow: var(--shadow); transform: scale(1.03); }
.tier__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.pricing__step { text-align: center; font-family: 'Fraunces', serif; font-size: 22px; color: var(--ink); margin: 0 0 28px; }
.pricing__step--two { margin-top: 60px; }
.pricing__step span { color: var(--muted); font-weight: 400; font-size: 16px; }
.tier__scale { font-family: 'Fraunces', serif; font-weight: 600; color: #10b981; letter-spacing: 3px; font-size: 18px; margin-bottom: 8px; }
.tier h4 { font-size: 22px; margin-bottom: 8px; }
.tier__price { font-family: 'Fraunces', serif; font-size: 40px; color: var(--ink); margin-bottom: 18px; }
.tier__price small { font-size: 15px; color: var(--muted); font-family: 'Inter', sans-serif; margin-left: 4px; }
.tier ul { list-style: none; margin-bottom: 26px; flex: 1; }
.tier li { padding: 9px 0 9px 26px; position: relative; font-size: 15px; border-bottom: 1px solid var(--line); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.tier--demo span, .tiers--demo span { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 24px; font: 600 16px 'Inter', sans-serif; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.faq__q span { color: var(--accent); font-size: 22px; transition: transform .25s; }
.faq__item.open .faq__q span { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__a p { padding: 0 24px 20px; color: var(--muted); }

/* ---------- Lead form ---------- */
.leadform { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 620px; }
.leadform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.leadform input, .leadform textarea, .contact__form input {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: 400 15px 'Inter', sans-serif; margin-bottom: 14px; background: var(--bg-alt); transition: border-color .2s;
}
.leadform input:focus, .leadform textarea:focus, .contact__form input:focus { outline: none; border-color: var(--accent); }
.leadform__note { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 6px; }

/* ---------- Adjust live demo ---------- */
.adjust { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.adjust__controls p { font-weight: 600; color: var(--ink); margin-bottom: 12px; margin-top: 24px; }
.adjust__controls p:first-child { margin-top: 0; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--bg); cursor: pointer; background: var(--s); box-shadow: 0 0 0 1.5px var(--line); transition: transform .15s; }
.swatch:hover { transform: scale(1.12); }
.adjust__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font: 500 14px 'Inter', sans-serif; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.miniwin { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.miniwin__bar { background: var(--bg-alt); padding: 12px 16px; display: flex; gap: 7px; border-bottom: 1px solid var(--line); }
.miniwin__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.miniwin__bar i:first-child { background: #ff5f57; } .miniwin__bar i:nth-child(2){ background:#febc2e;} .miniwin__bar i:nth-child(3){background:#28c840;}
.miniwin__body { padding: 44px 36px; text-align: center; background: radial-gradient(600px 240px at 70% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent); }
.miniwin__body h3 { font-size: 26px; margin-bottom: 10px; transition: opacity .2s; }
.miniwin__body p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Capabilities grid ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.cap:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.cap__ic { font-size: 30px; margin-bottom: 14px; }
.cap h3 { font-size: 19px; margin-bottom: 8px; }
.cap p { color: var(--muted); font-size: 15px; }
.caps__foot { text-align: center; margin-top: 42px; font-size: 17px; color: var(--muted); }
.caps__foot a { color: var(--accent); font-weight: 600; }

/* ---------- Live dashboard demo ---------- */
.dash { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 920px; margin: 0 auto; }
.dash__bar { background: var(--bg-dark); padding: 13px 18px; display: flex; align-items: center; gap: 7px; }
.dash__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d47; }
.dash__bar i:first-child { background: #ff5f57; } .dash__bar i:nth-child(2){ background:#febc2e;} .dash__bar i:nth-child(3){background:#28c840;}
.dash__bar span { color: #8a8f9c; font-size: 13px; margin-left: 10px; }
.dash__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.metric { background: var(--bg); padding: 26px 22px; }
.metric__label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 12px; }
.metric strong { font-family: 'Fraunces', serif; font-size: 34px; color: var(--ink); display: block; line-height: 1; }
.metric em { font-style: normal; font-size: 13px; color: var(--muted); display: block; margin-top: 8px; }
.metric em.up { color: #10b981; }
.metric--wx strong { color: var(--accent); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 4px; }
.bars i { flex: 1; height: var(--h, 50%); background: color-mix(in srgb, var(--accent) 70%, var(--bg)); border-radius: 4px 4px 0 0; animation: grow .8s var(--ease) both; }
@keyframes grow { from { height: 0; } }

/* ---------- CTA section ---------- */
.section--cta { background: var(--bg-dark); border-top: 1px solid var(--line); }
.section--cta .contact { text-align: center; max-width: 640px; margin: 0 auto; }
.section--cta h2 { color: #fff; font-size: clamp(30px, 5vw, 46px); }
.section--cta p { color: #a8acb8; margin: 16px 0 32px; font-size: 18px; }
.contact__form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.contact__form input { flex: 1; min-width: 200px; margin-bottom: 0; background: #1b1d25; border-color: #2a2d38; color: #fff; }
.contact__ok { color: #4ade80; font-weight: 600; margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); border-top: 1px solid #1f2129; padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: #8a8f9c; font-size: 14px; }
.footer a:hover { color: #fff; }

/* ============ CHAT WIDGET — "box on the bottom" ============ */
.chat__launch {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-size: 26px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform .25s var(--ease);
}
.chat__launch:hover { transform: scale(1.08) rotate(-6deg); }
.chat__launchdot { position: absolute; top: 12px; right: 12px; width: 11px; height: 11px; background: #28c840; border: 2px solid #fff; border-radius: 50%; }
.chat {
  position: fixed; bottom: 96px; right: 24px; z-index: 80;
  width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 130px);
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  animation: pop .25s var(--ease);
}
.chat[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.chat__head { background: var(--accent); color: var(--accent-ink); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.chat__head strong { display: block; font-family: 'Inter', sans-serif; font-size: 15px; }
.chat__head small { opacity: .85; font-size: 12px; }
.chat__close { background: none; border: 0; color: var(--accent-ink); font-size: 16px; cursor: pointer; opacity: .9; }
.chat__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-alt); }
.msg { max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg--bot { background: var(--bg); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--user { background: var(--accent); color: var(--accent-ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg--typing { color: var(--muted); font-style: italic; }
.chat__input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--bg); }
.chat__input input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 16px; font: 400 14px 'Inter', sans-serif; }
.chat__input input:focus { outline: none; border-color: var(--accent); }
.chat__input button { width: 42px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 15px; cursor: pointer; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav__links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--bg); padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s var(--ease); }
  .nav__links.open { transform: none; }
  .nav__toggle { display: block; }
  .cards, .tiers, .statband, .leadform__row, .caps { grid-template-columns: 1fr; }
  .dash__grid { grid-template-columns: 1fr 1fr; }
  .statband { grid-template-columns: 1fr 1fr; }
  .tier--featured { transform: none; }
  .hero__stats { gap: 32px; }
}
