/* TTV bye bye — site design system (Dark OLED, red slash accent) */
:root {
  --bg: #08070d;
  --bg-2: #0e0c15;
  --surface: #14111d;
  --surface-2: #1b1626;
  --border: #271f33;
  --border-2: #382c48;

  --text: #f6f4fb;
  --dim: #c0bacd;
  --mute: #837c95;

  --red: #ff2a4d;
  --red-deep: #c00b30;
  --red-soft: rgba(255, 42, 77, 0.14);
  --purple: #9146ff;
  --green: #46d160;
  --amber: #ffb020;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --maxw: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* ambient backdrop */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -8%, rgba(255, 42, 77, 0.13), transparent 60%),
    radial-gradient(40% 40% at 85% 10%, rgba(145, 70, 255, 0.10), transparent 60%);
}

h1, h2, h3, .brand, .stat-num, .display {
  font-family: "Orbitron", "Inter", sans-serif; font-weight: 800; letter-spacing: -.01em;
  line-height: 1.05;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 86px 0; }
.eyebrow {
  font: 600 12px/1 "JetBrains Mono", monospace; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); display: inline-block; }
.section-title { font-size: clamp(26px, 4vw, 40px); margin: 14px 0 12px; }
.section-sub { color: var(--dim); max-width: 60ch; font-size: 17px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 7, 13, 0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo img { width: 30px; height: 30px; }
.brand { font-size: 19px; }
.brand .t { color: var(--purple); }
.brand .b { color: #fff; }
.nav-links { margin-inline-start: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--dim); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 20px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s var(--ease), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(180deg, var(--red), var(--red-deep)); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(255, 42, 77, .6), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(255, 42, 77, .75); }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--purple); }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; text-align: center; position: relative; }
.hero h1 { font-size: clamp(40px, 8vw, 78px); }
.hero h1 .slash { color: var(--red); text-shadow: 0 0 26px rgba(255, 42, 77, .55); }
.hero .lede { color: var(--dim); font-size: clamp(16px, 2.4vw, 20px); max-width: 62ch; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 16px; color: var(--mute); font-size: 13px; font-family: "JetBrains Mono", monospace; }
.badge-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--dim);
  font-size: 12.5px; font-weight: 500;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* hero glass mock */
.hero-mock {
  margin: 54px auto 0; max-width: 560px; position: relative;
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: 0 40px 90px -40px rgba(255, 42, 77, .35); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mock-bar .url { flex: 1; height: 26px; border-radius: 7px; background: var(--bg); display: flex; align-items: center; padding: 0 12px; color: var(--mute); font: 12px "JetBrains Mono", monospace; }
.mock-body { padding: 26px; display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 190px; background: radial-gradient(circle at 50% 40%, rgba(145,70,255,.10), transparent 70%); }
.mock-stat { text-align: center; }
.mock-stat .n { font: 800 44px/1 "Orbitron", sans-serif; color: var(--green); }
.mock-stat .l { color: var(--mute); font-size: 12px; margin-top: 6px; }
.mock-x { width: 2px; height: 60px; background: var(--border-2); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .8); }
.card .ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: 0; }
.card p { color: var(--dim); font-size: 14.5px; }
.col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; }
.card.feature-hero { background: linear-gradient(135deg, rgba(255,42,77,.10), var(--surface) 55%); border-color: #3a2233; }
.card.feature-hero .ic { background: var(--red); color: #fff; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 26px; position: relative; }
.step .num { font: 800 14px/1 "JetBrains Mono", monospace; color: var(--red); border: 1px solid var(--border-2); width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { font-size: 17px; font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: 0; margin-bottom: 7px; }
.step p { color: var(--dim); font-size: 14px; }

/* ---------- cta band ---------- */
.band {
  border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 48px 32px; text-align: center;
  background: linear-gradient(135deg, rgba(255,42,77,.12), rgba(145,70,255,.10));
}
.band h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 12px; }
.band p { color: var(--dim); margin-bottom: 24px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--border); padding: 40px 0; color: var(--mute); }
.foot-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-row .links { margin-inline-start: auto; display: flex; gap: 20px; }
.foot-row a { color: var(--dim); font-size: 14px; }
.foot-row a:hover { color: var(--text); }
.foot-note { margin-top: 14px; font-size: 12.5px; }

/* ---------- forms (support / admin) ---------- */
.page-head { padding: 56px 0 10px; text-align: center; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--dim); margin-bottom: 7px; }
.field .req { color: var(--red); }
.input, .textarea, .select {
  width: 100%; background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--r-sm);
  color: var(--text); font: 15px "Inter", sans-serif; padding: 12px 13px; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.helper { font-size: 12px; color: var(--mute); margin-top: 6px; }
.form-msg { font-size: 14px; padding: 12px 14px; border-radius: var(--r-sm); margin-top: 14px; display: none; }
.form-msg.ok { display: block; background: rgba(70,209,96,.12); border: 1px solid rgba(70,209,96,.4); color: #bff3c8; }
.form-msg.err { display: block; background: var(--red-soft); border: 1px solid rgba(255,42,77,.5); color: #ffc3cd; }

/* ---------- admin tickets ---------- */
.ticket { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; margin-bottom: 12px; }
.ticket .top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.ticket .subj { font-weight: 700; }
.ticket .meta { margin-inline-start: auto; color: var(--mute); font: 12px "JetBrains Mono", monospace; }
.ticket .body { color: var(--dim); font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.tag { font: 600 11px/1 "JetBrains Mono", monospace; padding: 5px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.tag.open { background: rgba(255,176,32,.14); color: var(--amber); }
.tag.resolved { background: rgba(70,209,96,.14); color: var(--green); }
.tag.cat { background: var(--surface-2); color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .col-3, .col-2, .col-4 { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 520px) {
  section { padding: 60px 0; }
  .mock-body { flex-direction: column; }
  .mock-x { width: 60px; height: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
