:root {
  --bg: #0f1117;
  --bg-elevated: #171a23;
  --bg-card: #1d212d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --cookie: #f59e0b;
  --cookie-soft: rgba(245, 158, 11, 0.14);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.16), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.12), transparent 38%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(15, 17, 23, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: 10px;
}

/* Hero */
.hero {
  padding: 72px 0 52px;
  text-align: center;
}

.hero-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  margin-bottom: 22px;
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--cookie-soft);
  color: var(--cookie);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Features Grid */
.section {
  padding: 40px 0 64px;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card-icon {
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.cmd-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cmd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 7px;
  color: #e5e7eb;
}

/* Legal Document Pages */
.legal-wrap {
  padding: 48px 0 72px;
  flex: 1;
}

.legal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.legal-card h2 {
  font-size: 1.2rem;
  margin: 26px 0 10px;
  color: #ffffff;
}

.legal-card p,
.legal-card li {
  color: #d1d5db;
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.legal-card ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

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

@media (max-width: 640px) {
  .nav-links a:not(.btn) {
    display: none;
  }
  .legal-card {
    padding: 24px 18px;
  }
}
