:root {
  --bg: #0a0f1c;
  --bg-soft: #10182b;
  --panel: rgba(17, 25, 40, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef4ff;
  --muted: #a9b6cc;
  --primary: #61d0ff;
  --primary-2: #67f0c4;
  --danger: #ff6b6b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #13203d 0%, var(--bg) 45%, #060913 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

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

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 260px;
  height: 260px;
  background: var(--primary);
  top: 100px;
  left: -40px;
}
.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-2);
  right: -80px;
  top: 320px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(7, 12, 22, 0.65);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #06101c;
  font-weight: 800;
}
.brand strong { display: block; font-size: 1rem; }
.brand small { color: var(--muted); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.site-nav a {
  color: var(--muted);
  transition: 0.2s ease;
}
.site-nav a:hover { color: var(--text); }

.hero {
  position: relative;
  z-index: 1;
  padding: 84px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.eyebrow,
.section-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(97, 208, 255, 0.2);
  background: rgba(97, 208, 255, 0.08);
  color: #b7f2ff;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.02;
}
.hero-copy {
  margin: 0;
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.hero-card,
.text-card,
.admin-card {
  padding: 24px;
}
.hero-card h3,
.admin-card h3 { margin-top: 0; }
.feature-list,
.status-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.section {
  position: relative;
  z-index: 1;
  padding: 44px 0;
}
.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.two-col {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: center;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.section-head h2,
.two-col h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.text-card p {
  color: var(--muted);
  line-height: 1.85;
}

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

.card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(97, 208, 255, 0.22);
}
.card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(97, 208, 255, 0.18), rgba(103, 240, 196, 0.08));
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 20px;
}
.card-meta {
  color: #8de7ff;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
}
.card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.guide-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.25s ease;
}
.btn-primary {
  color: #06101c;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 700;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary,
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover,
.btn-secondary:hover { border-color: rgba(255,255,255,0.18); }

.empty-state {
  display: none;
  margin: 10px 0 0;
  color: var(--muted);
  text-align: center;
}
.empty-state.show { display: block; }

.admin-section { padding-bottom: 80px; }
.admin-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.form-grid { margin-top: 22px; }
.full-span { grid-column: 1 / -1; }
.admin-head { margin-bottom: 18px; }
.session-badge {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}
.admin-panel.hidden,
.hidden { display: none; }

.stack-form {
  display: grid;
  gap: 14px;
}
.stack-form label {
  display: grid;
  gap: 8px;
}
.stack-form span {
  font-size: 0.92rem;
  color: #dce7fb;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: rgba(97, 208, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(97, 208, 255, 0.08);
}
textarea { resize: vertical; }
.form-actions,
.dual-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.alert.success {
  background: rgba(103, 240, 196, 0.09);
  border-color: rgba(103, 240, 196, 0.22);
  color: #aaffea;
}
.alert.error {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.22);
  color: #ffc1c1;
}
.muted { color: var(--muted); }
.small-note { font-size: 0.92rem; line-height: 1.7; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .cards-grid,
  .guides-grid,
  .admin-grid,
  .form-grid,
  .dual-inputs {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 54px; }
  .hero-actions,
  .form-actions,
  .footer-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }
}
