:root {
  --bg: #0b090a;
  --bg-soft: #161112;
  --panel: #1c1517;
  --panel-2: #2a1b1f;
  --text: #fff7f2;
  --muted: #b9aaa4;
  --line: rgba(255, 238, 230, .13);
  --accent: #e63b3f;
  --accent-2: #f0b84b;
  --shadow: 0 22px 60px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  padding: 12px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.menu-toggle span + span {
  margin-top: 5px;
}

.nav-link,
.account-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
}

.nav-link.active,
.nav-link:hover,
.account-link:hover {
  border-color: color-mix(in srgb, var(--accent) 72%, white);
  background: color-mix(in srgb, var(--accent) 22%, var(--panel));
}

.user-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 220px;
}

.hello {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, black);
}

.site-footer__inner {
  min-height: 110px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  margin: 5px 0 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-meta a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.dashboard-shell {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 54px;
  display: grid;
  gap: 18px;
}

.dashboard-hero,
.dash-card,
.dashboard-kpis article {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
}

.dashboard-hero {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  border-radius: 18px;
  padding: clamp(26px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(230, 59, 63, .2), transparent 52%),
    linear-gradient(30deg, rgba(240, 184, 75, .16), transparent 58%),
    color-mix(in srgb, var(--panel) 94%, black);
}

.dashboard-hero h1 {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .95;
}

.dashboard-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dash-btn {
  display: inline-flex;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  text-decoration: none;
  font-weight: 900;
  background: color-mix(in srgb, var(--panel-2) 82%, transparent);
}

.dash-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #8f1f28);
  color: #fff;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-kpis article,
.dash-card {
  border-radius: 14px;
  padding: 16px;
}

.dashboard-kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dashboard-kpis strong {
  display: block;
  margin-top: 7px;
  font-size: 30px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr .9fr;
  gap: 14px;
  align-items: start;
}

.card-title h2 {
  margin: 0 0 12px;
}

.next-list,
.dash-ranking,
.spotify-mini-list {
  display: grid;
  gap: 10px;
}

.next-match,
.spotify-mini-list a,
.dash-ranking li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, .18);
  text-decoration: none;
}

.next-match span,
.next-match small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.next-match strong {
  display: block;
  margin: 6px 0;
}

.dash-ranking {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-ranking li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.dash-ranking span,
.dash-ranking em {
  color: var(--accent-2);
  font-style: normal;
  font-weight: 900;
}

.spotify-mini-list a {
  display: grid;
  grid-template-columns: 52px 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.spotify-mini-list img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.home-shell {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 68px;
  display: grid;
  gap: 18px;
}

.home-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  gap: 18px;
  align-items: stretch;
}

.home-copy,
.home-product,
.home-card,
.home-feature-card,
.home-final-cta {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
}

.home-copy {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(34px, 7vw, 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(120deg, rgba(230, 59, 63, .23), transparent 44%),
    linear-gradient(25deg, rgba(240, 184, 75, .14), transparent 56%),
    color-mix(in srgb, var(--panel) 94%, black);
}

.home-copy::after {
  content: "";
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: clamp(18px, 5vw, 72px);
  width: clamp(160px, 24vw, 310px);
  aspect-ratio: 1;
  border: 34px solid rgba(255, 247, 242, .06);
  border-radius: 999px;
  pointer-events: none;
}

.home-copy > * {
  position: relative;
  z-index: 1;
}

.home-copy h1 {
  max-width: 940px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: .94;
  letter-spacing: -.02em;
}

.home-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.58;
}

.home-actions,
.home-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-actions {
  margin-top: 24px;
}

.home-trust {
  margin-top: 26px;
}

.home-trust span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  background: rgba(0, 0, 0, .16);
  font-size: 12px;
  font-weight: 900;
}

.home-product {
  border-radius: 8px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  background:
    linear-gradient(160deg, rgba(230, 59, 63, .22), transparent 44%),
    color-mix(in srgb, var(--panel-2) 84%, black);
}

.home-product-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.home-product-head span,
.home-match-preview small,
.home-match-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-product-head strong {
  color: var(--accent-2);
}

.home-match-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, .18);
}

.home-match-preview strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.home-score-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.home-score-preview span {
  color: var(--muted);
  font-weight: 800;
}

.home-score-preview strong {
  font-size: 26px;
}

.home-product-link {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--bg);
  background: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.home-section,
.home-data-grid {
  display: grid;
  gap: 14px;
}

.home-section {
  padding-top: 10px;
}

.home-section-head {
  max-width: 860px;
}

.home-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
}

.home-feature-grid,
.home-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-feature-card,
.home-card,
.home-final-cta {
  border-radius: 8px;
  padding: 18px;
}

.home-feature-card span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent-2);
  font-weight: 1000;
  font-size: 13px;
}

.home-feature-card h3,
.home-card h2,
.home-final-cta h2 {
  margin: 0 0 10px;
}

.home-feature-card p,
.home-card p:not(.eyebrow),
.home-final-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-card-head {
  margin-bottom: 12px;
}

.home-list,
.home-spotify {
  display: grid;
  gap: 10px;
}

.home-list a,
.home-spotify a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, .18);
  text-decoration: none;
}

.home-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.home-card-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(145deg, rgba(230, 59, 63, .16), transparent 62%),
    color-mix(in srgb, var(--panel) 92%, transparent);
}

.home-card-cta .dash-btn {
  align-self: flex-start;
}

.home-spotify a {
  display: grid;
  grid-template-columns: 54px 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.home-spotify img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.home-spotify span {
  color: var(--accent-2);
  font-weight: 900;
}

.home-final-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(240, 184, 75, .12), transparent 52%),
    color-mix(in srgb, var(--panel-2) 78%, black);
}

.home-final-cta div {
  max-width: 760px;
}

@media (max-width: 760px) {
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 20px, 1420px);
  }

  .site-header__inner {
    padding: 10px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .brand,
  .user-area {
    min-width: 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    justify-content: stretch;
    overflow: visible;
    padding: 8px 0 0;
  }

  .main-nav.is-open {
    display: grid;
  }

  .nav-link,
  .account-link {
    width: 100%;
    text-align: center;
  }

  .user-area {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-shell,
  .home-shell {
    width: min(100% - 20px, 1420px);
  }

  .dashboard-hero,
  .home-hero,
  .home-feature-grid,
  .home-data-grid,
  .dashboard-grid,
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .home-copy,
  .home-product,
  .home-final-cta {
    padding: 22px;
  }

  .home-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }
}
