:root {
  --bg: #070b11;
  --bg-2: #0b1018;
  --card: rgba(18, 24, 33, 0.82);
  --card-2: rgba(14, 19, 27, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(245, 197, 24, 0.18);
  --text: #e8eef5;
  --muted: #95a2b1;
  --primary: #f5c518;
  --primary-dark: #d6ab11;
  --accent: #153331;
  --accent-2: #1e4a46;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 16px 35px rgba(0, 0, 0, 0.32);
  --glow: 0 0 0 1px rgba(245, 197, 24, 0.05), 0 0 32px rgba(245, 197, 24, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --ui: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--ui);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 197, 24, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(21, 51, 49, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.08));
}

a {
  color: inherit;
}

.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 20px 60px;
}

/* ===== Topbar ===== */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(12, 17, 24, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.brand-block {
  min-width: 0;
}

.brand-mother {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 6px;
}

.brand-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== Hero ===== */

.hero-card,
.feature-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.88), rgba(11, 16, 24, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(245, 197, 24, 0.05),
    transparent 24%,
    transparent 72%,
    rgba(21, 51, 49, 0.12)
  );
}

.hero-card {
  padding: 42px 32px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-lg), var(--glow);
}

.hero-card h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 12px 0 16px;
  max-width: 850px;
}

.hero-card p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.hero-actions,
.cta-row {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Cards ===== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.feature-card {
  padding: 28px;
  margin-bottom: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg), var(--glow);
}

.feature-card h2 {
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 12px 0 14px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.feature-card ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--muted);
}

.feature-card li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* ===== Badges ===== */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 197, 24, 0.18);
  background: rgba(245, 197, 24, 0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 197, 24, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.btn-primary {
  background: linear-gradient(180deg, #f8cf3f, var(--primary));
  color: #111;
  border: none;
  box-shadow: 0 10px 22px rgba(245, 197, 24, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #f9d75e, var(--primary-dark));
  box-shadow: 0 14px 28px rgba(245, 197, 24, 0.24);
}

/* ===== Docs / system rows ===== */

.docs-section {
  margin-top: 16px;
}

.docs-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-key {
  font-weight: 600;
  color: var(--text);
}

.docs-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.code-preview,
.docs-code,
.docs-example {
  background: linear-gradient(180deg, rgba(5, 8, 12, 0.96), rgba(9, 13, 19, 0.98));
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 12px;
  margin-top: 16px;
  color: #9ad1ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  overflow-x: auto;
}

.code-preview pre,
.docs-code pre {
  margin: 0;
}

pre,
code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

/* ===== Footer ===== */

footer.statusbar {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(12, 17, 24, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

footer.statusbar strong {
  color: var(--text);
}

.status-separator {
  opacity: 0.5;
}

/* ===== Utility ===== */

.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.88), rgba(11, 16, 24, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.link-card-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.link-card-text {
  color: var(--muted);
  line-height: 1.7;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .docs-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 20px 14px 40px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
  }

  .hero-card,
  .feature-card {
    padding: 22px 18px;
  }

  .hero-card h1 {
    line-height: 1.02;
  }
}
