:root {
  --bg: #05070d;
  --panel: #0f1322cc;
  --text: #f5f7ff;
  --muted: #a6accf;
  --accent: #6c7dff;
  --accent-2: #37d2ff;
  --line: #ffffff1c;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #12214a 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 100%, #28154e 0%, transparent 60%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
  padding: 1.2rem clamp(1rem, 2vw, 2.2rem) 2rem;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

.bg-glow-1 {
  width: 260px;
  height: 260px;
  top: 8%;
  left: -80px;
  background: #4f7dff;
}

.bg-glow-2 {
  width: 220px;
  height: 220px;
  bottom: 8%;
  right: -40px;
  background: #6c39ff;
}

.header,
.hero,
.section,
.footer {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.2rem 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.welcome-user {
  color: #d5dbff;
  font-size: 0.92rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 1.9rem;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative;
}

.logo-mark::before {
  content: "";
  position: absolute;
  left: 35%;
  top: 27%;
  width: 0;
  height: 0;
  border-top: 0.28rem solid transparent;
  border-bottom: 0.28rem solid transparent;
  border-left: 0.45rem solid #fff;
}

.logo-text {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
}

.cta-btn,
.ghost-btn {
  border: none;
  border-radius: 0.8rem;
  padding: 0.72rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.cta-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 30px #2f57ff40;
}

.ghost-btn {
  background: #ffffff08;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  margin: 0.4rem 0 0.7rem;
  line-height: 1.1;
}

.hero-text p {
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  color: #9ba6ff;
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hero-graphic {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: linear-gradient(160deg, #ffffff14 0%, #ffffff05 100%);
  backdrop-filter: blur(8px);
}

.play-ring {
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), #8a8eff, var(--accent-2), var(--accent));
  display: grid;
  place-items: center;
  animation: spin 14s linear infinite;
}

.play-ring::before {
  content: "";
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: #080d1a;
}

.play-icon {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 1rem solid transparent;
  border-bottom: 1rem solid transparent;
  border-left: 1.55rem solid #fff;
  transform: translateX(0.22rem);
}

.floating-card {
  position: absolute;
  border: 1px solid #ffffff25;
  border-radius: 999px;
  background: #111834cc;
  color: #eaf0ff;
  font-size: 0.82rem;
  padding: 0.3rem 0.65rem;
  backdrop-filter: blur(6px);
}

.card-a {
  top: 16%;
  left: 10%;
}

.card-b {
  top: 20%;
  right: 12%;
}

.card-c {
  bottom: 14%;
  right: 22%;
}

.section {
  margin-top: 2rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.see-all {
  color: #bcc4ff;
  text-decoration: none;
}

.video-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}

.video-card h3 {
  margin: 0.85rem 0.85rem 0.25rem;
  font-size: 1rem;
}

.video-card p {
  margin: 0 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0.5rem;
}

.thumb span {
  background: #000000a9;
  border: 1px solid #ffffff2e;
  border-radius: 0.45rem;
  padding: 0.2rem 0.4rem;
  font-size: 0.76rem;
}

.thumb-1 {
  background: linear-gradient(120deg, #132e68, #2988ff);
}

.thumb-2 {
  background: linear-gradient(120deg, #3a1766, #b450ff);
}

.thumb-3 {
  background: linear-gradient(120deg, #004f52, #22c4a6);
}

.section-soft {
  background: #ffffff05;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.chip-row {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  color: #d6dbf3;
  background: #ffffff08;
  font-size: 0.88rem;
}

.footer {
  margin-top: 1.8rem;
  color: #9aa2cb;
  font-size: 0.9rem;
}

.auth-layout {
  width: min(460px, 100%);
  margin: 2rem auto;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  backdrop-filter: blur(8px);
}

.auth-card h1 {
  margin: 0.95rem 0 0.45rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.auth-copy {
  margin: 0;
  color: var(--muted);
}

.auth-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #d3d8f4;
}

.auth-form input {
  border: 1px solid #ffffff2d;
  background: #0a0f1fb8;
  color: #fff;
  border-radius: 0.7rem;
  padding: 0.7rem 0.75rem;
  font: inherit;
}

.auth-form input:focus {
  outline: 2px solid #7b90ff9b;
  outline-offset: 1px;
}

.auth-status {
  margin: 0.1rem 0 0;
  min-height: 1.15rem;
  font-size: 0.86rem;
}

.auth-status.error {
  color: #ff9696;
}

.auth-status.success {
  color: #93f1bd;
}

.auth-switch {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-switch a {
  color: #d9deff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-graphic {
    min-height: 250px;
  }

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

@media (max-width: 680px) {
  .header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}
