:root {
  color-scheme: dark;
  --bg: #070709;
  --bg2: #0c0c12;
  --surface: #121219;
  --surface2: #1a1a25;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #edeaf5;
  --muted: #9492aa;
  --faint: #62607a;
  --accent: #7c5cff;
  --accent2: #b15cff;
  --cyan: #22d3ee;
  --green: #34d399;
  --display: "Space Grotesk", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.35);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  animation: gridmove 20s linear infinite;
}

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

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 20px -6px var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
}

.brand-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--accent);
}

.nav-links,
.account-actions {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.account-actions {
  gap: 12px;
}

.account-actions form {
  margin: 0;
}

.google-button,
.ghost-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s;
}

.google-button {
  border: 0;
  padding: 10px 16px 10px 13px;
  color: #1f1f1f;
  background: #fff;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
  font-size: 14px;
}

.google-dot {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: conic-gradient(#4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
  font-size: 10px;
}

.ghost-button {
  min-height: 40px;
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.user-pill {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 152px 0 90px;
}

.aurora {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  animation: aurora 18s ease-in-out infinite;
}

.aurora.one {
  top: -120px;
  left: 8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 65%);
}

.aurora.two {
  top: 40px;
  right: 4%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(177, 92, 255, 0.42), transparent 65%);
  animation-duration: 22s;
  animation-direction: reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 7px 14px 7px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 1.6s ease-in-out infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 82px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent2) 60%, var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 510px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18.5px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 46px;
}

.primary-button {
  border: 0;
  padding: 15px 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 36px -10px var(--accent);
  font-size: 15.5px;
}

.primary-button:hover,
.secondary-button:hover,
.google-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  border: 1px solid var(--line2);
  padding: 15px 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  font-size: 15.5px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-line {
  width: 1px;
  background: var(--line);
}

.hero-art {
  position: relative;
  height: 440px;
}

.float-card {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(26, 26, 37, 0.9), rgba(18, 18, 25, 0.9));
  box-shadow: 0 30px 60px -30px #000;
  backdrop-filter: blur(10px);
  animation: float 7s ease-in-out infinite;
}

.mini-card {
  top: 42px;
  right: 18px;
  width: 230px;
  padding: 18px;
  --r: 4deg;
}

.main-card {
  top: 120px;
  left: 0;
  width: 330px;
  padding: 26px;
  border-color: var(--line2);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(28, 24, 46, 0.96), rgba(15, 15, 22, 0.96));
  box-shadow: 0 50px 90px -40px #000, 0 0 0 1px rgba(124, 92, 255, 0.12);
  animation: floatSlow 8s ease-in-out infinite;
}

.side-card {
  right: 42px;
  bottom: 6px;
  width: 188px;
  padding: 15px;
  --r: -5deg;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 28px -8px var(--accent);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.app-title {
  font-family: var(--display);
  font-weight: 700;
}

.app-meta {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
}

.progress {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #26263a;
}

.progress span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #14b8a6);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 10.5px;
}

.tag.hot {
  border-color: rgba(124, 92, 255, 0.25);
  color: var(--accent);
  background: rgba(124, 92, 255, 0.12);
}

.section {
  position: relative;
  z-index: 1;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.catalog {
  padding-top: 60px;
  padding-bottom: 110px;
  border-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.section h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.search-box {
  position: relative;
  width: min(320px, 100%);
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--faint);
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  padding: 13px 16px 13px 40px;
  color: var(--text);
  background: var(--surface);
  font-size: 14.5px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 17px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  font-size: 13.5px;
}

.filter-button.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

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

.program-card,
.feature-card,
.testimonial-card,
.faq details,
.admin-form,
.admin-list,
.auth-panel,
.empty-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(170deg, var(--surface), var(--bg2));
}

.program-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.program-card:hover {
  border-color: var(--line2);
  box-shadow: 0 24px 50px -28px #000, 0 0 0 1px rgba(124, 92, 255, 0.18);
  transform: translateY(-4px);
}

.program-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.38), transparent 70%);
}

.program-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.program-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  color: #0a0a0f;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

.category-pill {
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: 8px;
  padding: 5px 10px;
  color: var(--accent);
  background: rgba(124, 92, 255, 0.1);
  font-family: var(--mono);
  font-size: 11px;
}

.program-card h3 {
  position: relative;
  margin-bottom: 7px;
  font-family: var(--display);
  font-size: 18.5px;
  font-weight: 700;
}

.program-card p {
  position: relative;
  min-height: 40px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.program-meta {
  position: relative;
  display: flex;
  gap: 13px;
  margin-bottom: 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
}

.program-meta .star {
  color: #fbbf24;
}

.download-button {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  font-size: 13.5px;
  transition: border-color 0.2s;
}

.download-button:hover {
  border-color: var(--line2);
}

.empty-card {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 46px;
  text-align: center;
}

.empty-card h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 24px;
}

.empty-card p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-center {
  max-width: 620px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-center p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.feature-card,
.testimonial-card {
  padding: 26px;
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: 12px;
  color: var(--accent);
  background: rgba(124, 92, 255, 0.1);
  font-family: var(--mono);
}

.feature-card h3,
.testimonial-card h3 {
  font-family: var(--display);
}

.feature-card p,
.testimonial-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.stars {
  margin-bottom: 16px;
  color: #fbbf24;
  letter-spacing: 2px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  padding: 22px 24px;
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
}

.faq p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.cta-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 28px;
  padding: 62px 48px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(177, 92, 255, 0.1));
  text-align: center;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: var(--bg2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
}

.footer-title {
  margin-bottom: 16px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 11px;
}

.footer-links a,
.footer-links span,
.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 8, 0.86);
  backdrop-filter: blur(8px);
}

.modal.is-open {
  display: grid;
}

.modal-panel {
  width: min(620px, 100%);
  position: relative;
  border: 1px solid var(--line2);
  border-radius: 22px;
  padding: 30px;
  background: linear-gradient(170deg, var(--surface), var(--bg2));
  box-shadow: 0 30px 80px -40px #000;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.modal-category {
  color: var(--accent);
  font-family: var(--mono);
}

.auth-panel,
.admin-form,
.admin-list {
  padding: 28px;
}

.compact-page {
  padding-top: 100px;
}

.auth-panel {
  width: min(760px, 100%);
  margin: 80px auto;
}

.auth-panel h1,
.admin-form h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  padding: 48px 0;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes aurora {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8%, -6%) scale(1.15); }
  66% { transform: translate(-6%, 8%) scale(0.9); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-18px) rotate(var(--r, 0deg)); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes gridmove {
  from { background-position: 0 0; }
  to { background-position: 60px 60px; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

@media (max-width: 980px) {
  .hero-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    height: 380px;
  }

  .program-grid,
  .feature-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1240px);
  }

  .nav-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .account-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 128px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-art {
    height: 330px;
  }

  .mini-card,
  .side-card {
    display: none;
  }

  .main-card {
    width: min(100%, 330px);
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-stats,
  .section-head,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-line {
    display: none;
  }

  .program-grid,
  .feature-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
