@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #070a12;
  --bg-2: #0b1120;
  --ink: #f2f6ff;
  --muted: #8fa1c7;
  --accent: #00f5ff;
  --accent-2: #ff4fd8;
  --accent-3: #d6ff00;
  --panel: rgba(12, 18, 32, 0.82);
  --line: rgba(0, 245, 255, 0.22);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-lg: 28px;
  --heading: "Orbitron", "Space Grotesk", sans-serif;
  --body: "Space Grotesk", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 80% 8%, rgba(255, 79, 216, 0.28), transparent 45%),
    radial-gradient(circle at 12% 88%, rgba(0, 245, 255, 0.22), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(0, 245, 255, 0.05) 70px 71px),
    repeating-linear-gradient(180deg, transparent 0 70px, rgba(0, 245, 255, 0.04) 70px 71px);
  background-attachment: fixed;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.35;
  mix-blend-mode: screen;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

main {
  display: block;
  padding-bottom: 64px;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(6, 10, 20, 0.72);
  border-bottom: 1px solid rgba(0, 245, 255, 0.24);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 245, 255, 0.9), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 79, 216, 0.9), transparent 52%),
    linear-gradient(140deg, rgba(0, 245, 255, 0.4), rgba(255, 79, 216, 0.5));
  border: 1px solid rgba(0, 245, 255, 0.5);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.35), 0 0 18px rgba(255, 79, 216, 0.3);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.68);
  border: 1px solid rgba(0, 245, 255, 0.22);
  font-size: 0.85rem;
}

.user-pill img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.btn {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(120deg, rgba(0, 245, 255, 0.95), rgba(255, 79, 216, 0.95));
  color: #05070e;
  box-shadow: 0 12px 24px rgba(0, 245, 255, 0.3), 0 8px 20px rgba(255, 79, 216, 0.25);
}

.btn-secondary {
  background: rgba(255, 79, 216, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(255, 79, 216, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 79, 216, 0.2);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(0, 245, 255, 0.35);
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-2px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 3.4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
  text-shadow: 0 0 18px rgba(0, 245, 255, 0.3);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 24px;
}

.hero-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 245, 255, 0.24);
  backdrop-filter: blur(18px);
}

.hero-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-family: var(--heading);
}

.hero-stats {
  display: grid;
  gap: 16px;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.2);
  font-size: 0.95rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0 20px;
}

.section-title h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: 1.8rem;
}

.grid {
  display: grid;
  gap: 20px;
}

.feed-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 245, 255, 0.2);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(12px);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 79, 216, 0.5);
  box-shadow: 0 16px 32px rgba(0, 245, 255, 0.18);
}

.card-media {
  position: relative;
  aspect-ratio: 9 / 12;
  background: #05070e;
  overflow: hidden;
}

.card-media video,
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 14px 16px 18px;
  display: grid;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(0, 245, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.panel {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel h3 {
  margin-top: 0;
  font-family: var(--heading);
}

.upload-box {
  border: 2px dashed rgba(0, 245, 255, 0.35);
  border-radius: 22px;
  padding: 26px;
  text-align: center;
  background: rgba(0, 245, 255, 0.06);
}

.upload-box input {
  display: none;
}

.style-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.style-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 255, 0.18);
  padding: 14px;
  display: grid;
  gap: 8px;
  background: rgba(10, 16, 28, 0.78);
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.style-card.active {
  border: 2px solid var(--accent);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.3);
  transform: translateY(-2px);
}

.style-card h4 {
  margin: 0;
  font-size: 1rem;
}

.form-row {
  display: grid;
  gap: 12px;
}

.input,
.select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 255, 0.22);
  background: rgba(6, 10, 20, 0.7);
  font-size: 0.95rem;
  color: var(--ink);
}

.input:focus,
.select:focus {
  outline: none;
  border-color: rgba(0, 245, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.2);
}

.list {
  display: grid;
  gap: 14px;
}

.list-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 255, 0.18);
  background: rgba(12, 18, 32, 0.78);
}

.list-item video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 79, 216, 0.16);
  color: var(--accent-2);
  border: 1px solid rgba(255, 79, 216, 0.3);
}

.footer {
  padding: 48px 0 64px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 5, 12, 0.78);
  z-index: 20;
}

.auth-modal.active {
  display: flex;
}

.auth-card {
  width: min(440px, 100%);
  background: rgba(9, 14, 26, 0.92);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 245, 255, 0.25);
  position: relative;
}

.auth-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: rgba(6, 10, 20, 0.85);
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.auth-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.3);
}

.helper {
  font-size: 0.85rem;
  color: var(--muted);
}

[data-auth="signed-out"] .auth-only {
  display: none;
}

[data-auth="signed-in"] .guest-only {
  display: none;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    padding: 14px 18px;
  }

  .hero-card {
    padding: 22px;
  }

  .panel {
    padding: 18px;
  }
}
