:root {
  --bg: #05060a;
  --bg-elevated: #0b0d13;
  --accent: #58c4ff;
  --accent-soft: rgba(88,196,255,0.12);
  --accent-strong: #7be9ff;
  --text-main: #f5f7ff;
  --text-muted: #9ca3af;
  --border-subtle: #1f2933;
  --danger: #ff4b81;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 60px rgba(0,0,0,0.7);
  --shadow-subtle: 0 0 0 1px rgba(148,163,184,0.15);
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 52%, #000000 100%);
  color: var(--text-main);
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.site-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 0%, #7be9ff 0, #58c4ff 30%, #111827 70%, #020617 100%);
  box-shadow: 0 0 32px rgba(88,196,255,0.45);
  position: relative;
}

.nav-logo::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.8);
  box-shadow: inset 0 0 16px rgba(15,23,42,0.9);
}

.nav-title {
  font-weight: 650;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #e5e7eb;
}

.nav-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.18s ease-out;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(31,41,55,0.8);
  border-color: rgba(148,163,184,0.38);
}

.nav-link.active {
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(88,196,255,0.16), rgba(37,99,235,0.4));
  border-color: rgba(148,163,184,0.5);
}

.main-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(88,196,255,0.22), rgba(15,23,42,0.85) 40%, #020617 100%);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.2);
  position: relative;
  overflow: hidden;
}

.main-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(circle at 0% 0%, rgba(88,196,255,0.14) 0, transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(59,130,246,0.15) 0, transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(15,23,42,0.9) 0, #020617 60%);
  opacity: 0.95;
  pointer-events: none;
}

.main-card-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .main-card-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148,163,184,0.4);
  color: var(--text-muted);
  background: radial-gradient(circle at top, rgba(15,23,42,0.6), rgba(2,6,23,1));
  backdrop-filter: blur(14px);
}

.badge.accent {
  border-color: rgba(88,196,255,0.7);
  color: var(--accent-strong);
  background: radial-gradient(circle at 0% 0%, rgba(88,196,255,0.22), rgba(15,23,42,0.96));
}

h1 {
  font-size: 1.9rem;
  margin: 0 0 8px;
  letter-spacing: 0.03em;
}

h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 10px;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.hero-lede {
  color: #e5e7eb;
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn-primary, .btn-ghost {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #58c4ff, #3b82f6);
  color: #020617;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(56,189,248,0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(37,99,235,0.7);
}

.btn-ghost {
  background: rgba(15,23,42,0.7);
  border-color: rgba(148,163,184,0.55);
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(15,23,42,0.95);
  color: var(--text-main);
}

.hero-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 0.8rem;
  margin-top: 16px;
}

.meta-card {
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(148,163,184,0.35);
}

.meta-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.meta-value {
  color: #e5e7eb;
  margin-top: 4px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 16px;
  margin-top: 20px;
}

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

.section-card {
  border-radius: 16px;
  padding: 14px 14px 14px;
  background: rgba(10,16,30,0.9);
  border: 1px solid rgba(51,65,85,0.85);
  box-shadow: var(--shadow-subtle);
}

.section-card h2 {
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.section-card ul {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}

.section-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.section-card a {
  color: var(--accent-strong);
  text-decoration: none;
}

.section-card a:hover {
  text-decoration: underline;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pill {
  font-size: 0.75rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(75,85,99,0.9);
  color: var(--text-muted);
}

.footer {
  margin-top: auto;
  padding: 18px 20px 26px;
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.page-header {
  margin-bottom: 16px;
}

.page-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-title {
  font-size: 1.4rem;
  margin: 6px 0;
}

.page-description {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.content-card {
  border-radius: 16px;
  padding: 16px 16px 18px;
  background: rgba(7,11,22,0.96);
  border: 1px solid rgba(51,65,85,0.9);
  box-shadow: var(--shadow-subtle);
}

.content-card h2 {
  margin-top: 10px;
  font-size: 1rem;
}

.content-card h3 {
  margin-top: 12px;
  font-size: 0.96rem;
}

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

.content-card ul {
  padding-left: 18px;
}

.code-block {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  background: #020617;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(30,64,175,0.7);
  overflow-x: auto;
}

.timeline {
  margin-top: 6px;
}

.timeline-item {
  border-left: 2px solid rgba(55,65,81,0.9);
  padding-left: 10px;
  margin-left: 2px;
  margin-bottom: 10px;
}

.callout {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(56,189,248,0.7);
  background: rgba(15,23,42,0.85);
  font-size: 0.85rem;
  margin: 10px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 16px;
}

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

input, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(55,65,81,0.9);
  padding: 8px 10px;
  background: rgba(15,23,42,0.95);
  color: var(--text-main);
  font-size: 0.86rem;
  margin-top: 4px;
}

label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

textarea {
  min-height: 120px;
  resize: vertical;
}
