:root {
  --bg: #050607;
  --bg-soft: #0a0f10;
  --panel: rgba(12, 16, 18, 0.86);
  --panel-strong: rgba(16, 22, 24, 0.95);
  --line: rgba(124, 255, 107, 0.16);
  --line-strong: rgba(124, 255, 107, 0.32);
  --text: #ecf3ee;
  --muted: rgba(236, 243, 238, 0.72);
  --green: #39ff14;
  --green-soft: #7cff6b;
  --green-deep: #18c83b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(57, 255, 20, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 255, 107, 0.08), transparent 24%),
    linear-gradient(180deg, #070a0b 0%, #050607 100%);
  overflow-x: hidden;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.14;
  mask-image: radial-gradient(circle at center, black 54%, transparent 96%);
}

.glow {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.22;
  pointer-events: none;
}

.glow-left {
  left: -8rem;
  top: 8rem;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.22), transparent 66%);
}

.glow-right {
  right: -8rem;
  top: 18rem;
  background: radial-gradient(circle, rgba(124, 255, 107, 0.16), transparent 68%);
}

.topbar,
.page,
.footer {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
  filter:
    drop-shadow(0 0 10px rgba(57, 255, 20, 0.24))
    drop-shadow(0 0 24px rgba(57, 255, 20, 0.12));
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 18% -10%;
  background: radial-gradient(circle, rgba(124, 255, 107, 0.42), rgba(57, 255, 20, 0.14) 34%, transparent 74%);
  filter: blur(12px);
  opacity: 0.7;
  transform: translateY(4%);
  pointer-events: none;
}

.brand-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(124, 255, 107, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted);
}

.nav-pill a:hover,
.muted-link:hover {
  color: var(--text);
}

.nav-primary {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.searchbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 320px;
  height: 3rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 255, 107, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
}

.searchbar strong {
  color: var(--text);
  font-size: 1.2rem;
}

.icon-btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.icon-btn {
  width: 3rem;
  padding: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
}

.button:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #041006;
  background: linear-gradient(135deg, var(--green-soft), var(--green));
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.22), 0 12px 24px rgba(57, 255, 20, 0.15);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
}

.button-secondary:hover,
.icon-btn:hover,
.searchbar:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(124, 255, 107, 0.12);
}

.page {
  padding: 0.5rem 0 4rem;
}

.subnav {
  display: flex;
  gap: 1.2rem;
  padding: 0.9rem 0 1rem;
  border-bottom: 1px solid rgba(236, 243, 238, 0.18);
  color: var(--muted);
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav::-webkit-scrollbar {
  display: none;
}

.subnav a {
  white-space: nowrap;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.8rem;
  padding: 3.6rem 0 2.2rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--green-soft);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.lede {
  max-width: 60ch;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-stats div,
.feature-card,
.model-card,
.promo-card,
.spotlight-card,
.side-panel,
.idea-card,
.upload-card,
.timeline article {
  border: 1px solid rgba(124, 255, 107, 0.14);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stats div {
  padding: 1rem;
  border-radius: 1.2rem;
}

.hero-stats strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.hero-stats span,
.feature-card p,
.model-card p,
.promo-card p,
.spotlight-copy p,
.side-panel p,
.idea-card p,
.upload-card p,
.timeline p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-feature {
  display: grid;
  gap: 1rem;
}

.feature-grid,
.card-grid,
.idea-grid,
.timeline {
  display: grid;
  gap: 1rem;
}

.feature-card {
  border-radius: 1.35rem;
  padding: 1.15rem;
}

.feature-main {
  min-height: 15rem;
  background:
    radial-gradient(circle at top right, rgba(57, 255, 20, 0.14), transparent 38%),
    var(--panel);
}

.pill,
.promo-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(57, 255, 20, 0.08);
  color: var(--green-soft);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 2rem 0;
}

.section-title {
  margin-bottom: 1.2rem;
}

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

.section-title h2 {
  margin-bottom: 0;
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.muted-link {
  color: rgba(236, 243, 238, 0.65);
  white-space: nowrap;
}

.featured-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr;
  gap: 1rem;
}

.spotlight-card,
.promo-card {
  border-radius: 1.35rem;
  overflow: hidden;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  min-height: 24rem;
}

.spotlight-visual {
  display: grid;
  place-items: end start;
  min-height: 100%;
  padding: 1rem;
  background:
    radial-gradient(circle at 28% 28%, rgba(57, 255, 20, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, #101417, #0a0d0f);
}

.spotlight-large span {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 0.8rem;
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(20, 25, 27, 0.98), rgba(10, 13, 15, 0.98));
}

.spotlight-copy h3,
.promo-card h3,
.side-panel h2,
.upload-card h2,
.timeline h3 {
  margin: 0.65rem 0 0.45rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.spotlight-copy a {
  margin-top: 1rem;
  width: fit-content;
  color: var(--green-soft);
}

.promo-card {
  min-height: 24rem;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    radial-gradient(circle at top left, rgba(124, 255, 107, 0.12), transparent 42%),
    var(--panel);
}

.promo-a {
  background:
    radial-gradient(circle at top left, rgba(124, 255, 107, 0.16), transparent 42%),
    var(--panel);
}

.promo-b {
  background:
    radial-gradient(circle at top left, rgba(57, 255, 20, 0.13), transparent 42%),
    var(--panel);
}

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

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

.model-card {
  position: relative;
  border-radius: 1.25rem;
  padding: 1rem;
  min-height: 17rem;
}

.model-card.compact {
  min-height: 15rem;
}

.rank {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(236, 243, 238, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(236, 243, 238, 0.16);
  font-size: 0.78rem;
}

.model-thumb {
  height: 11.4rem;
  border-radius: 1rem;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(236, 243, 238, 0.12);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.thumb-a {
  background-image: linear-gradient(135deg, #11181a, #3a4f5a 52%, #8ec5d5);
}

.thumb-b {
  background-image: linear-gradient(135deg, #d8d8d8, #b0b6c0 44%, #f4a340);
}

.thumb-c {
  background-image: linear-gradient(135deg, #2b3e53, #11161f 60%, #7c2ee6);
}

.thumb-d {
  background-image: linear-gradient(135deg, #e7ecef, #d1dbe4 45%, #6a84b2);
}

.thumb-e {
  background-image: linear-gradient(135deg, #0f1112, #22292f 55%, #8fd4dd);
}

.thumb-f {
  background-image: linear-gradient(135deg, #f7d5e8, #9f74da 48%, #3b205d);
}

.thumb-g {
  background-image: linear-gradient(135deg, #191919, #ffb260 55%, #f5f0c9);
}

.thumb-h {
  background-image: linear-gradient(135deg, #202122, #e9edf1 52%, #84b8ff);
}

.model-card h3 {
  margin: 0.1rem 0 0.35rem;
  font-size: 1.02rem;
}

.section-split {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.side-panel {
  border-radius: 1.35rem;
  padding: 1.15rem;
  position: sticky;
  top: 6rem;
}

.checklist {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 0 0 10px rgba(124, 255, 107, 0.8);
}

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

.idea-card {
  border-radius: 1.25rem;
  padding: 1rem;
  min-height: 12rem;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.auth-card,
.profile-card {
  border: 1px solid rgba(124, 255, 107, 0.14);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card {
  border-radius: 1.35rem;
  padding: 1.15rem;
}

.auth-tabs {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(124, 255, 107, 0.12);
  margin-bottom: 1rem;
}

.auth-tab {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.auth-tab.is-active {
  background: linear-gradient(135deg, var(--green-soft), var(--green));
  color: #041006;
  font-weight: 700;
}

.auth-panel {
  display: grid;
  gap: 0.85rem;
}

.auth-panel[hidden] {
  display: none;
}

.auth-panel label {
  display: grid;
  gap: 0.45rem;
}

.auth-panel span {
  color: rgba(236, 243, 238, 0.84);
  font-size: 0.94rem;
}

.auth-panel input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(124, 255, 107, 0.16);
  background: rgba(4, 6, 7, 0.7);
  color: var(--text);
  font: inherit;
  outline: none;
}

.auth-panel input:focus {
  border-color: rgba(124, 255, 107, 0.4);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.12);
}

.auth-submit,
.auth-google {
  width: 100%;
}

.auth-note {
  margin: 0.3rem 0 0;
  color: rgba(236, 243, 238, 0.65);
  line-height: 1.6;
  font-size: 0.93rem;
}

.profile-card {
  border-radius: 1.35rem;
  padding: 1.15rem;
  display: grid;
  gap: 1rem;
}

.profile-hero h3 {
  margin-bottom: 0.35rem;
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-meta div,
.profile-stack article {
  padding: 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(124, 255, 107, 0.12);
}

.profile-meta strong,
.profile-stack strong {
  display: block;
  margin-bottom: 0.25rem;
}

.profile-meta span,
.profile-stack p {
  color: var(--muted);
  margin: 0;
}

.profile-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-stack span {
  color: var(--green-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
}

.upload-card {
  border-radius: 1.35rem;
  padding: 1.15rem;
}

.upload-card.soft {
  background:
    radial-gradient(circle at top right, rgba(124, 255, 107, 0.12), transparent 38%),
    var(--panel-strong);
}

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

.timeline article {
  border-radius: 1.25rem;
  padding: 1.15rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .topbar {
    flex-wrap: wrap;
  }

  .hero,
  .featured-layout,
  .section-split,
  .upload-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .card-grid-4,
  .card-grid-3,
  .idea-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-pill,
  .nav-actions {
    width: 100%;
  }

  .nav-pill {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .searchbar {
    min-width: 0;
    width: 100%;
  }

  .hero-stats,
  .card-grid-4,
  .card-grid-3,
  .idea-grid,
  .timeline,
  .profile-meta,
  .profile-stack {
    grid-template-columns: 1fr;
  }

  .row-between {
    align-items: start;
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }
}
