:root {
  color-scheme: dark;
  --bg: #0d1110;
  --surface: #151b1a;
  --surface-2: #1b2424;
  --line: #2a3735;
  --text: #eef7f3;
  --muted: #9cafaa;
  --cyan: #38bdf8;
  --green: #86efac;
  --amber: #facc15;
  --danger: #fb7185;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(13, 17, 16, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 5vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: #101818;
  border: 1px solid var(--line);
  color: var(--cyan);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  color: var(--muted);
  padding: 8px 10px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px clamp(18px, 5vw, 56px) 80px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  min-height: calc(100vh - 92px);
}

.eyebrow,
.section-label,
.panel-kicker {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.96;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  margin-bottom: 14px;
}

h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.lead,
.section p,
.tool-panel p,
.footer {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.quiet {
  color: #7f918c;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--cyan);
  color: #071014;
}

.button.secondary {
  background: #111817;
  border-color: var(--line);
  color: var(--text);
}

.button.danger {
  border-color: rgba(251, 113, 133, 0.45);
  color: var(--danger);
}

.button.full {
  width: 100%;
}

.product-preview,
.tool-panel,
.feature-grid article {
  background: rgba(21, 27, 26, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-preview {
  padding: 16px;
}

.preview-window {
  background: #111716;
  border: 1px solid #263231;
  min-height: 410px;
  padding: 22px;
}

.preview-title,
.preview-tabs,
.preview-grid {
  display: flex;
}

.preview-title {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.version-pill {
  color: var(--green);
  font-size: 14px;
}

.preview-tabs {
  gap: 8px;
  margin-bottom: 16px;
}

.preview-tabs span {
  background: #202a29;
  color: var(--muted);
  padding: 8px 14px;
}

.preview-tabs .active {
  background: var(--cyan);
  color: #061116;
  font-weight: 900;
}

.preview-grid {
  gap: 18px;
}

.preview-list {
  display: grid;
  gap: 9px;
  min-width: 180px;
}

.preview-list span {
  align-items: center;
  background: #182120;
  border-left: 4px solid var(--cyan);
  color: var(--text);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 9px 10px;
}

.preview-list em {
  color: var(--green);
  font-style: normal;
}

.preview-panel {
  border: 1px solid #263231;
  flex: 1;
  min-height: 230px;
  padding: 18px;
}

.preview-panel strong {
  color: var(--green);
}

.hud-chip {
  border: 1px solid #34413f;
  border-left: 4px solid var(--cyan);
  display: inline-block;
  margin-top: 48px;
  padding: 12px 16px;
}

.hud-chip span {
  color: var(--muted);
}

.section {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 72px 0;
}

.two-column,
.access-layout {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.tool-panel {
  padding: 22px;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.feature-grid article {
  padding: 22px;
}

.feature-icon {
  display: block;
  height: 5px;
  margin-bottom: 18px;
  width: 64px;
}

.feature-icon.cyan {
  background: var(--cyan);
}

.feature-icon.green {
  background: var(--green);
}

.feature-icon.amber {
  background: var(--amber);
}

label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 16px;
}

input,
select {
  background: #090d0c;
  border: 1px solid #34413f;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  outline: none;
  padding: 0 12px;
}

input:focus,
select:focus {
  border-color: var(--cyan);
}

.form-message {
  font-size: 14px;
  min-height: 22px;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--green);
}

.token-box {
  background: #090d0c;
  border: 1px solid #34413f;
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
}

.token-box span {
  color: var(--muted);
  font-size: 13px;
}

.token-box code {
  color: var(--green);
  overflow-wrap: anywhere;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px clamp(18px, 5vw, 56px);
}

.admin-main {
  max-width: 1380px;
}

.admin-login {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  min-height: calc(100vh - 92px);
}

.admin-header,
.admin-actions,
.row-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.admin-header {
  justify-content: space-between;
  margin-bottom: 22px;
}

.stats-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stats-row div {
  background: rgba(21, 27, 26, 0.86);
  border: 1px solid var(--line);
  padding: 16px;
}

.stats-row span,
.admin-table td span,
.admin-table td small {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.stats-row strong {
  display: block;
  font-size: 26px;
  margin-top: 5px;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 420px) minmax(260px, 1fr);
  margin-bottom: 18px;
}

.table-wrap {
  border: 1px solid var(--line);
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #111817;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.admin-table td {
  background: rgba(21, 27, 26, 0.72);
}

.row-input {
  min-width: 180px;
  width: 100%;
}

.status-pill {
  border: 1px solid currentColor;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.status-pill.active {
  color: var(--green);
}

.status-pill.revoked {
  color: var(--danger);
}

.row-actions {
  flex-wrap: wrap;
}

.row-actions .button {
  min-height: 34px;
  padding: 0 10px;
}

@media (max-width: 860px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .two-column,
  .access-layout,
  .feature-grid,
  .admin-login,
  .admin-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .preview-grid {
    flex-direction: column;
  }
}
