:root {
  color-scheme: dark;
  --bg: #050000;
  --panel: #111010;
  --panel-soft: rgba(18, 14, 15, 0.86);
  --line: rgba(255, 255, 255, 0.12);
  --line-blue: rgba(255, 25, 58, 0.34);
  --text: #ffffff;
  --muted: #cbb8bd;
  --dim: #8f6f76;
  --blue: #ff2b45;
  --cyan: #ff5a68;
  --aqua: #ff1744;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 50% 4%, rgba(255, 23, 68, 0.16), transparent 20rem), var(--bg);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(62, 5, 13, 0.42), transparent 34rem),
    linear-gradient(180deg, rgba(21, 0, 4, 0.82), rgba(0, 0, 0, 0.94) 34rem, #000 100%);
}

#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255, 43, 69, 0.16); background: rgba(5, 0, 0, 0.82); backdrop-filter: blur(16px); }
.nav-shell { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; width: min(1370px, calc(100% - 44px)); min-height: 60px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: var(--text); font-size: 20px; font-weight: 900; text-decoration: none; }
.brand-mark { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(255, 43, 69, 0.78); border-radius: 8px; background: linear-gradient(145deg, rgba(255, 23, 68, 0.22), rgba(80, 0, 14, 0.14)); color: var(--cyan); font-family: "JetBrains Mono", monospace; font-weight: 900; transform: skew(-12deg); box-shadow: 0 0 18px rgba(255, 23, 68, 0.34); }
nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 40px); }
nav a { color: #e8e8e8; font-size: 16px; font-weight: 500; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--cyan); outline: none; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.login-btn { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(255, 43, 69, 0.32); border-radius: 999px; background: rgba(255, 23, 68, 0.045); text-decoration: none; }
.login-btn { color: var(--text); font-size: 12px; padding: 0 24px; }

main { position: relative; }
.hero { min-height: 710px; display: grid; align-content: center; padding: 92px 0 42px; text-align: center; }
.hero-inner { max-width: 980px; margin: 0 auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0 0 34px; color: var(--blue); font-size: clamp(64px, 12vw, 124px); font-weight: 900; line-height: 0.85; letter-spacing: -0.075em; text-shadow: 0 0 34px rgba(255, 43, 69, 0.36), 0 0 80px rgba(135, 0, 20, 0.24); }
.hero-subtitle { margin: 0 auto 58px; color: #d6d6d6; font-size: clamp(21px, 3vw, 27px); font-weight: 500; letter-spacing: 0.01em; }
.hero-subtitle span { color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.button { display: inline-flex; min-width: 166px; min-height: 42px; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255, 43, 69, 0.22); border-radius: 999px; font-size: 16px; font-weight: 800; text-decoration: none; padding: 0 25px; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); outline: none; }
.button.primary { border-color: transparent; background: linear-gradient(135deg, #ff2b45, #8f0018); color: #fff; box-shadow: 0 0 28px rgba(255, 23, 68, 0.3); }
.button.secondary { background: rgba(255, 23, 68, 0.045); color: var(--text); }
.store { padding: 36px 0 70px; }
.section-line { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.section-line h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.045em; }
.section-line p:last-child { max-width: 410px; margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.product-card { overflow: hidden; border: 1px solid rgba(255, 43, 69, 0.15); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 23, 68, 0.045), rgba(255, 255, 255, 0.015)), #0d0b0c; box-shadow: var(--shadow); transition: transform 180ms ease, border-color 180ms ease; }
.product-card:hover { transform: translateY(-4px); border-color: rgba(255, 43, 69, 0.42); }
.product-art { position: relative; display: grid; height: 166px; place-items: center; overflow: hidden; background: linear-gradient(180deg, #3b3b3b, #151515); }
.product-art:before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.22), transparent 32%), linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5)); }
.product-art span { position: relative; font-size: 40px; font-weight: 900; letter-spacing: -0.08em; text-shadow: 0 8px 24px rgba(0, 0, 0, 0.7); }
.basic-art { background: radial-gradient(circle at 50% 34%, rgba(255, 23, 68, 0.38), transparent 36%), linear-gradient(135deg, #2a0710, #101010); }
.pro-art { background: radial-gradient(circle at 50% 34%, rgba(255, 43, 69, 0.45), transparent 34%), linear-gradient(135deg, #32000d, #101010); }
.free-art { background: radial-gradient(circle at 50% 34%, rgba(120, 24, 36, 0.32), transparent 34%), linear-gradient(135deg, #2a1114, #101010); }
.product-body { padding: 20px 18px 22px; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.product-price strong { font-size: 34px; line-height: 1; letter-spacing: -0.055em; }
.product-price span { color: var(--muted); font-size: 14px; }
.product-body p { min-height: 44px; margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.product-body ul { display: grid; gap: 13px; min-height: 126px; margin: 0 0 28px; padding: 0; list-style: none; }
.product-body li { position: relative; color: var(--text); font-size: 14px; padding-left: 18px; }
.product-body li:before { content: ""; position: absolute; top: 0.62em; left: 0; width: 6px; height: 6px; border-radius: 999px; background: var(--blue); }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 22px; }
.product-footer:before { content: ""; }
.product-footer a { color: var(--text); font-size: 12px; font-weight: 900; text-decoration: none; }

.seller-grid { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 22px; align-items: stretch; }
.seller-profile { min-height: 214px; }
.seller-empty { display: grid; min-height: 214px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 18px; background: rgba(16, 17, 18, 0.82); color: var(--muted); }
.seller-copy { display: grid; align-content: center; justify-items: start; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 18px; background: rgba(16, 17, 18, 0.72); padding: clamp(22px, 4vw, 34px); }
.seller-copy h3 { margin-bottom: 10px; color: var(--blue); font-size: clamp(28px, 5vw, 52px); letter-spacing: -0.06em; }
.seller-copy p { color: var(--muted); line-height: 1.55; }
.seller-copy code { color: var(--cyan); }
.roster-card { width: min(100%, 360px); border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 18px; background: rgba(7, 7, 10, 0.65); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.roster-card--discord { display: block; padding: 0; overflow: hidden; background-size: 100% 100%; background-repeat: no-repeat; }
.discord-profile-banner { position: relative; height: 96px; background: transparent; }
.discord-profile-banner__img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; mix-blend-mode: screen; }
.discord-profile-main { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem 0.85rem; }
.roster-avatar { width: 72px; height: 72px; flex: 0 0 auto; margin-top: -36px; border: 3px solid rgba(7, 7, 10, 0.88); border-radius: 18px; background: #1a1b1f; object-fit: cover; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45); }
.roster-details { display: flex; min-width: 0; flex-direction: column; gap: 0.35rem; }
.roster-name { overflow: hidden; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 1rem; letter-spacing: 0.04rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.roster-handle { color: var(--muted); font-size: 0.85rem; }
.roster-meta { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--cyan); font-size: 0.75rem; letter-spacing: 0.14rem; text-transform: uppercase; }
.discord-profile-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.45rem; }
.discord-profile-badges--banner { position: absolute; right: 0.7rem; bottom: -1rem; justify-content: flex-end; padding: 0; }
.discord-badge { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #d9deea; font-size: 0.67rem; letter-spacing: 0.05rem; padding: 0.2rem 0.55rem; text-transform: uppercase; }

.modal-open { overflow: hidden; }
.contact-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.contact-modal.open { opacity: 1; pointer-events: auto; }
.contact-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(12px); }
.contact-dialog { position: relative; width: min(850px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: auto; border: 1px solid rgba(255, 43, 69, 0.18); border-radius: 24px; background: linear-gradient(180deg, rgba(255, 23, 68, 0.055), rgba(255,255,255,0.015)), rgba(8, 7, 8, 0.96); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 30px); transform: translateY(16px) scale(0.98); transition: transform 180ms ease; }
.contact-modal.open .contact-dialog { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer; }
.section-line.compact { padding-right: 44px; }
.modal-grid { margin-top: 18px; }

.usage-section { padding: 40px 0 70px; }
.usage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric, .traffic-card, .setup-card { border: 1px solid rgba(255, 43, 69, 0.13); border-radius: 18px; background: rgba(16, 12, 13, 0.82); box-shadow: var(--shadow); }
.metric { padding: 18px; }
.metric strong { display: block; color: var(--blue); font-size: clamp(21px, 3vw, 30px); letter-spacing: -0.05em; }
.metric span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.metric small { display: block; margin-top: 4px; color: var(--dim); font-size: 11px; }
.metric-cost button { display: block; width: 100%; border: 0; background: transparent; color: var(--blue); font: inherit; font-size: clamp(21px, 3vw, 30px); font-weight: 900; letter-spacing: -0.05em; text-align: left; cursor: pointer; padding: 0; overflow-wrap: anywhere; }
.traffic-card { overflow: hidden; }
.traffic-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: var(--muted); padding: 14px 16px; }
.traffic-list { display: grid; gap: 1px; }
.traffic-item { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.025); padding: 13px 16px; }
.traffic-item strong { display: block; }
.traffic-item span { color: var(--muted); font-size: 13px; }
.traffic-cost { display: block; margin-top: 3px; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: 0.02em; }
.traffic-item em { color: var(--cyan); font-style: normal; font-weight: 900; }
.traffic-flag { display: grid; width: 50px; height: 42px; place-items: center; color: var(--muted); font-size: 34px; line-height: 1; }
.empty-state { color: var(--muted); padding: 18px; }

.setup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 20px 0 86px; }
.setup-card { padding: 25px; }
.setup-card i { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 16px; border: 1px solid rgba(255, 43, 69, 0.35); border-radius: 999px; color: var(--cyan); background: rgba(255, 23, 68, 0.08); }
.setup-card h3 { margin-bottom: 8px; }
.setup-card p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
footer { border-top: 1px solid rgba(255, 255, 255, 0.12); color: var(--dim); padding: 24px 0 34px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: min(420px, calc(100vw - 44px)); transform: translateY(140%); border: 1px solid var(--line-blue); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 23, 68, 0.1), rgba(9, 6, 7, 0.96)); color: var(--text); box-shadow: var(--shadow), 0 0 28px rgba(255, 23, 68, 0.16); padding: 14px 16px; font-weight: 800; transition: transform 180ms ease; }
.toast.visible { transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms ease, transform 560ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.activation { padding: 56px 0; }
.activation .hero-copy { max-width: 980px; margin: 0 auto; border: 1px solid rgba(255, 43, 69, 0.18); border-radius: 28px; background: radial-gradient(circle at 50% 0, rgba(255, 23, 68, 0.12), transparent 23rem), rgba(10, 7, 8, 0.72); box-shadow: 0 30px 110px rgba(0, 0, 0, 0.48); padding: clamp(28px, 6vw, 56px); text-align: center; backdrop-filter: blur(18px); }
.activation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; text-align: left; }
.activation-grid label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.activation-grid input { width: 100%; border: 1px solid rgba(255, 43, 69, 0.18); border-radius: 14px; background: rgba(255, 255, 255, 0.035); color: var(--text); font: inherit; padding: 14px 15px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.activation-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 22px; }
.activation-actions .button { width: 100%; }
.activation-modal { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.activation-modal.open { opacity: 1; pointer-events: auto; }
.activation-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.68); backdrop-filter: blur(16px); }
.activation-modal-dialog { position: relative; width: min(760px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: auto; border: 1px solid rgba(255, 43, 69, 0.2); border-radius: 26px; background: radial-gradient(circle at 50% 0, rgba(255, 23, 68, 0.08), transparent 18rem), rgba(10, 7, 8, 0.94); box-shadow: 0 34px 120px rgba(0, 0, 0, 0.62); padding: clamp(22px, 4vw, 34px); text-align: left; transform: translateY(16px) scale(0.98); transition: transform 180ms ease; }
.activation-modal.open .activation-modal-dialog { transform: translateY(0) scale(1); }
.activation-modal-dialog h2 { margin: 0 44px 14px 0; color: var(--text); font-size: clamp(24px, 4vw, 36px); letter-spacing: -0.045em; }
.modal-note { color: var(--muted); line-height: 1.55; }
.setup-code { overflow: auto; border: 1px solid rgba(255, 43, 69, 0.18); border-radius: 18px; background: rgba(255, 23, 68, 0.035); color: var(--text); padding: 16px; line-height: 1.55; }
#fetch-models-button { display: none; }
.models-fetched-at { margin: 2px 0 12px; color: var(--muted); font-size: 13px; }
.models-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.models-list code { display: inline-flex; border: 1px solid rgba(255, 43, 69, 0.16); border-radius: 999px; background: rgba(255, 23, 68, 0.04); color: var(--cyan); padding: 8px 11px; overflow-wrap: anywhere; }
.endpoint-grid.compact { margin-bottom: 14px; }
.activation-usage-card { margin: 20px 0 24px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; background: rgba(255, 255, 255, 0.025); padding: 20px; text-align: left; }
.activation-usage-card h2 { margin-bottom: 14px; color: var(--text); font-size: clamp(22px, 4vw, 34px); letter-spacing: -0.045em; }
.usage-list { display: grid; gap: 8px; overflow: visible; border: 0; border-radius: 0; }
.usage-row { display: grid; grid-template-columns: minmax(130px, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 16px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; background: rgba(255, 255, 255, 0.025); padding: 13px 15px; }
.usage-row + .usage-row { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.usage-row span { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.usage-row span small { display: block; margin-top: 4px; color: var(--dim); font-size: 10px; letter-spacing: 0; text-transform: none; }
.usage-row strong, .usage-row button { overflow-wrap: anywhere; color: var(--blue); font: inherit; font-size: clamp(18px, 3vw, 25px); font-weight: 900; text-align: right; }
.usage-row button { border: 0; background: transparent; cursor: pointer; padding: 0; }
.endpoint-list { margin: 24px 0; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 12px; background: rgba(255, 255, 255, 0.025); padding: 20px; text-align: left; }
.endpoint-list h2 { margin-bottom: 8px; color: var(--text); font-size: clamp(22px, 4vw, 34px); letter-spacing: -0.045em; }
.endpoint-list p { color: var(--muted); line-height: 1.55; }
.endpoint-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.endpoint-grid code { display: block; border: 1px solid rgba(255, 43, 69, 0.22); border-radius: 8px; background: rgba(255, 23, 68, 0.055); color: var(--cyan); padding: 12px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: auto; padding-top: 82px; }
  .hero-actions { margin-bottom: 54px; }
  .product-grid, .seller-grid, .usage-grid, .setup, .activation-grid, .activation-actions, .endpoint-grid, .models-list { grid-template-columns: 1fr; }
  .usage-row { grid-template-columns: 1fr; gap: 6px; }
  .usage-row strong, .usage-row button { text-align: left; }
  .roster-card { width: 100%; }
  .section-line { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .wrap, .nav-shell { width: min(100% - 24px, 1180px); }
  .login-btn { display: none; }
  .hero-subtitle { margin-bottom: 34px; font-size: 19px; }
  .button { width: 100%; }
  .hero-actions { gap: 12px; }
}
