*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050713;
  --bg-soft: #0d1023;
  --bg-card: #12152b;
  --border-subtle: #252945;
  --accent: #ffcc33;
  --accent-soft: rgba(255, 204, 51, 0.15);
  --accent-strong: #ffb300;
  --text: #f7f7ff;
  --text-muted: #a3a6c6;
  --ok: #3fd88a;
  --warn: #ffd36b;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 10px 25px rgba(0, 0, 0, 0.25);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: radial-gradient(circle at top, #181b3c 0, #050713 52%, #02030a 100%);
}

body.body-muted {
  background: radial-gradient(circle at top, #141736 0, #050616 52%, #02020a 100%);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 19, 0.95),
    rgba(5, 7, 19, 0.82),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 17px;
}

.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #11131f;
  background: var(--accent);
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* hero */

.hero {
  padding: 52px 0 30px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.2fr);
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 18px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-card {
  background: radial-gradient(circle at top left, #2b315d, #16182a);
  border-radius: var(--radius-lg);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-card h2 {
  font-size: 16px;
  margin: 0 0 10px;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #11121a;
  box-shadow: 0 18px 35px rgba(255, 204, 51, 0.55);
}

.btn.primary:hover {
  box-shadow: 0 14px 30px rgba(255, 204, 51, 0.7);
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn.small {
  padding: 5px 11px;
  font-size: 13px;
}

.btn.full-width {
  width: 100%;
}

/* status-list */

.status-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.status-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 2px 0;
}

.status-list.small li {
  font-size: 13px;
}

.status-footer {
  font-size: 12px;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot-green {
  background: var(--ok);
}

.dot-yellow {
  background: var(--warn);
}

/* features */

.features {
  padding: 8px 0 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  background: rgba(9, 10, 26, 0.96);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-subtle);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* auth */

.auth-main {
  min-height: calc(100vh - 64px - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: rgba(6, 7, 23, 0.96);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.auth-card h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.auth-subtitle {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.field {
  margin-bottom: 12px;
}

.field-label {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 13px;
  color: var(--text-muted);
}

.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 5, 18, 0.95);
  color: var(--text);
  font-size: 14px;
}

.field input:focus {
  outline: none;
  border-color: rgba(255, 204, 51, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 204, 51, 0.45);
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.checkbox input {
  width: 14px;
  height: 14px;
}

.link-small {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.link-small:hover {
  text-decoration: underline;
}

.auth-hint {
  margin-top: 9px;
  font-size: 12px;
  color: var(--text-muted);
}

/* dashboard / status */

.dashboard-main {
  padding: 26px 0 30px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-header h1 {
  margin: 0 0 3px;
  font-size: 22px;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

.muted.small {
  font-size: 12px;
}

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

.card {
  background: rgba(9, 10, 26, 0.96);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-subtle);
}

.card h2 {
  font-size: 15px;
  margin: 0 0 6px;
}

.metric {
  font-size: 24px;
  font-weight: 600;
  margin: 2px 0 4px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table thead th {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.table tbody td {
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.tag-green {
  background: rgba(63, 216, 138, 0.16);
}

.tag-yellow {
  background: rgba(255, 211, 107, 0.16);
}

/* docs */

.docs-main {
  padding: 26px 0 34px;
}

.docs-main .card {
  max-width: 760px;
  margin: 0 auto;
}

.docs-main h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

.docs-main h2 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 16px;
}

.docs-main p,
.docs-main li {
  font-size: 14px;
}

.code-block {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  font-size: 13px;
  overflow-x: auto;
}

/* footer */

.site-footer {
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at bottom, #060818 0, #02020a 55%, #000 100%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.footer-muted {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
}

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

/* misc */

.tag,
.btn,
.nav-link {
  user-select: none;
}

/* responsive */

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 0 8px;
  }
  .nav {
    margin-top: 6px;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
