@font-face { font-family: Inter; src: url(assets/fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(assets/fonts/Inter-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #050b1a;
  --bg-2: #0a1530;
  --card: rgba(18, 36, 78, 0.55);
  --card-solid: #0d1a3a;
  --line: rgba(110, 170, 255, 0.18);
  --text: #e6eefc;
  --muted: #9aaed4;
  --blue: #2f8cff;
  --blue-hi: #6cc4ff;
  --live: #2fd27a;
  --design: #6cc4ff;
  --planned: #8b97b3;
  --radius: 14px;
  --accent: var(--blue);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-hi); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #3d9bff, #1d6fe0);
  color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 20px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 24px rgba(47, 140, 255, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(47, 140, 255, 0.5); }
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue-hi); box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn[aria-disabled="true"] { background: #1b2746; color: var(--muted); box-shadow: none; cursor: default; transform: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(5, 11, 26, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .14em; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; text-align: center; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 720px; pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 42%, rgba(47, 140, 255, 0.35), transparent 70%),
    radial-gradient(closest-side at 50% 60%, rgba(16, 60, 160, 0.5), transparent 80%);
}
.hero-in { position: relative; }
.hero-logo { width: min(620px, 92%); filter: drop-shadow(0 0 40px rgba(47, 140, 255, 0.45)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.hero h1 { font-size: clamp(30px, 5.2vw, 54px); margin-top: 4px; }
.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #c9d6ea 45%, #7f93b5 55%, #e9f1ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 28px rgba(108, 196, 255, 0.35);
}
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 620px; margin: 14px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.hero-stats { list-style: none; padding: 0; margin: 34px auto 0; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-stats li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.hero-stats b { color: var(--text); }

/* Sections */
section h2 { font-size: clamp(26px, 3.6vw, 36px); }
.section-lead { color: var(--muted); margin: 8px 0 22px; }
.bots { padding: 56px 0; background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }

/* Tabs */
.tabs-shell { position: relative; margin: 0 -16px; }
.tabs-shell::after { content: ""; position: absolute; right: 0; top: 0; bottom: 8px; width: 32px; background: linear-gradient(90deg, transparent, var(--bg-2)); pointer-events: none; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: thin; scrollbar-color: #24447f transparent; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { height: 6px; }
.tabs::-webkit-scrollbar-thumb { background: #24447f; border-radius: 3px; }
.tabs::-webkit-scrollbar-track { background: transparent; }
.tab {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #2a6fd6, #17468f); border-color: rgba(255, 255, 255, 0.2); }
.tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--planned); }
.tab .dot.live { background: var(--live); box-shadow: 0 0 8px var(--live); }
.tab .dot.design { background: var(--design); }
.tab-sep { flex: none; align-self: center; color: var(--planned); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 0 4px 0 8px; }

/* Overview grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 22px 0 10px; }
.group-title:first-child { margin-top: 6px; }
.card {
  display: flex; flex-direction: column; gap: 8px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; gap: 10px; }
.card h3 { font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 55%, white 10%), color-mix(in srgb, var(--accent) 25%, #0b1630));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 4px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.ico.big { width: 64px; height: 64px; font-size: 34px; border-radius: 18px; }

.pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; border: 1px solid currentColor; white-space: nowrap; }
.pill.live { color: var(--live); }
.pill.design { color: var(--design); }
.pill.planned { color: var(--planned); }

/* Bot panel */
.panel { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.bot {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.bot-head { display: flex; gap: 16px; align-items: center; padding: 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
.bot-head h3 { font-size: clamp(22px, 3vw, 28px); }
.bot-head .tagline { color: var(--muted); margin: 4px 0 0; }
.bot-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bot-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; padding: 22px; }
.bot-body h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.bot-body p { margin: 0 0 18px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.features li { display: flex; gap: 10px; }
.features li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.cmds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cmd { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; background: #081128; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--blue-hi); }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.plan div { background: #081128; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.plan b { display: block; margin-bottom: 2px; }
.plan ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.works-with { color: var(--muted); font-size: 14px; }
.works-with a { color: var(--blue-hi); }
.bot-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 22px 22px; }
.bot-note { color: var(--muted); font-size: 14px; padding: 0 22px 22px; margin: -8px 0 0; }

/* Why */
.why { padding: 56px 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 22px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.why-card h3 { font-size: 17px; margin: 10px 0 6px; }
.why-card p { margin: 0; color: var(--muted); font-size: 15px; }
.why-ico { font-size: 26px; }

/* Support */
.support { padding: 0 0 56px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.help-card { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color .15s ease, transform .15s ease; }
.help-card:hover { border-color: var(--blue-hi); transform: translateY(-2px); }
.help-card h3 { font-size: 17px; margin: 10px 0 6px; }
.help-card p { margin: 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

/* Ticket form */
.ticket { display: grid; grid-template-columns: 1fr 1.6fr; gap: 26px; margin-top: 26px;
  background: linear-gradient(120deg, rgba(47, 140, 255, 0.18), rgba(10, 21, 48, 0.85)); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.ticket-side h3 { font-size: 24px; margin-bottom: 8px; }
.ticket-side > p { color: var(--muted); margin: 0 0 16px; }
.ticket-side .features { font-size: 14px; color: var(--muted); --accent: var(--blue-hi); }
.ticket-form { display: grid; gap: 14px; }
.ticket-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ticket-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.ticket-form .opt { color: var(--muted); font-weight: 400; }
.ticket-form .req { color: var(--blue-hi); }
.ticket-form input, .ticket-form select, .ticket-form textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--text);
  background: #081128; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.ticket-form textarea { resize: vertical; min-height: 120px; }
.ticket-form input:focus, .ticket-form select:focus, .ticket-form textarea:focus { outline: none; border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(108, 196, 255, 0.2); }
.ticket-form [aria-invalid="true"] { border-color: #ff6b6b; }
.ticket-form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.ticket-form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.ticket-form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.ticket-form .btn:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute !important; left: -9999px; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; }
.form-status.ok { color: var(--live); }
.form-status.err { color: #ff8a8a; }

/* Footer */
.foot-brand a { color: var(--muted); }
.foot { border-top: 1px solid var(--line); padding: 22px 0 32px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 760px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .bot-body { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; padding: 18px; }
  .ticket-form .row { grid-template-columns: 1fr; }
  .bot-head { align-items: flex-start; }
}
@media (max-width: 420px) {
  .plan { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Legal pages */
.legal { padding: 40px 16px 56px; max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal .features { --accent: var(--blue-hi); }
