:root {
  --bg: #060a13;
  --bg-elev: rgba(15, 23, 42, 0.78);
  --bg-card: rgba(17, 24, 39, 0.88);
  --border: rgba(148, 163, 184, 0.16);
  --border-accent: rgba(34, 211, 238, 0.35);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --blue: #38bdf8;
  --amber: #fbbf24;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.14), transparent 36%),
    radial-gradient(circle at 86% 10%, rgba(52, 211, 153, 0.12), transparent 34%),
    radial-gradient(circle at 50% 95%, rgba(59, 130, 246, 0.1), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 10, 19, 0.84);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.badge-version {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

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

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(52, 211, 153, 0.18));
  border: 1px solid var(--border-accent);
  color: var(--text) !important;
  font-weight: 600 !important;
}

.hero {
  padding: 72px 0 44px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--emerald);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 860px;
  margin: 0 auto 18px;
}

.gradient-text {
  background: linear-gradient(125deg, #f8fafc 10%, var(--cyan) 55%, var(--emerald) 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  max-width: 740px;
  margin: 0 auto 30px;
}

.actions-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  color: #03111a;
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.25);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.85);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
}

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

.command-box {
  max-width: 840px;
  margin: 0 auto;
  background: rgba(10, 15, 28, 0.94);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.command-box code {
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
  font-size: 0.88rem;
  color: #e2e8f0;
  word-break: break-all;
  flex: 1;
}

.section {
  padding: 46px 0;
}

.section-title {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 28px;
}

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

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

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

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  color: var(--text);
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul,
.card ol {
  padding-left: 20px;
  margin-top: 8px;
}

.card li + li {
  margin-top: 6px;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 14px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.gallery-card .caption {
  padding: 16px 20px;
}

.gallery-card .caption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.gallery-card .caption span {
  color: var(--muted);
  font-size: 0.9rem;
}

.prose-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.prose-panel h2 {
  font-size: 1.35rem;
  margin: 28px 0 10px;
  color: var(--text);
}

.prose-panel h2:first-child {
  margin-top: 0;
}

.prose-panel p,
.prose-panel li {
  color: #cbd5e1;
  margin-bottom: 10px;
}

.prose-panel ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.perm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  font-size: 0.93rem;
}

.perm-table th,
.perm-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.perm-table th {
  color: var(--cyan);
  font-weight: 700;
  background: rgba(15, 23, 42, 0.65);
}

.perm-table td {
  color: #cbd5e1;
}

.copy-card {
  background: rgba(12, 18, 34, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.copy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.copy-card-head h3 {
  font-size: 1rem;
  color: var(--text);
}

.copy-meta {
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 600;
}

.copy-value {
  background: rgba(6, 10, 19, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border-accent);
  margin-bottom: 24px;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid var(--emerald);
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

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

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