/* Theme tokens copied from src/app/globals.css on the modernization branch. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --radius: 0.5rem;
  --background: hsl(220 29% 6%);
  --foreground: hsl(47 7% 73%);
  --muted-foreground: hsl(220 12% 65%);
  --card: hsl(220 29% 4%);
  --card-foreground: hsl(47 7% 78%);
  --primary: hsl(40 75% 61%);
  --primary-foreground: hsl(40 75% 1%);
  --secondary: hsl(40 30% 25%);
  --secondary-foreground: hsl(40 30% 85%);
  --accent: hsl(220 29% 21%);
  --ring: hsl(40 75% 61%);

  --logo: var(--primary);
  --hero-title-shadow: black;
  --band-top: transparent;
  --blob-a: color-mix(in oklab, var(--primary) 25%, transparent);
  --blob-b: color-mix(in oklab, var(--secondary) 75%, transparent);
  --card-ring: color-mix(in oklab, var(--foreground) 10%, transparent);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background: hsl(210 17% 98%);
    --foreground: hsl(210 5% 38%);
    --muted-foreground: hsl(210 12% 30%);
    --card: hsl(210 17% 96%);
    --card-foreground: hsl(210 5% 33%);
    --primary: hsl(35 100% 60%);
    --primary-foreground: hsl(0 0% 0%);
    --secondary: hsl(35 30% 25%);
    --secondary-foreground: hsl(35 30% 85%);
    --accent: hsl(210 17% 83%);
    --ring: hsl(35 100% 60%);

    --logo: var(--primary-foreground);
    --hero-title-shadow: white;
    --band-top: color-mix(in oklab, var(--primary) 25%, transparent);
    --blob-a: color-mix(in oklab, var(--primary) 25%, transparent);
    --blob-b: color-mix(in oklab, var(--primary) 50%, transparent);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "rlig" 1, "calt" 1;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--ring) 50%, transparent);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--accent);
  background: color-mix(in oklab, var(--background) 25%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--logo);
  font-weight: 700;
  text-decoration: none;
}

.logo svg {
  width: 24px;
  height: 24px;
}

/* Bands */
main {
  flex: 1;
  color: var(--secondary-foreground);
  margin-bottom: 3rem;
}

.band {
  display: grid;
  place-items: center;
  min-height: 50vh;
  padding-block: 6.25vh;
}

.band-hero {
  background: linear-gradient(to bottom, transparent, var(--band-top));
}

.band-features {
  background: linear-gradient(to bottom, var(--band-top), transparent);
}

/* Hero */
.hero {
  position: relative;
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.hero h1 {
  margin: 2rem 0 0;
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--primary);
  filter: drop-shadow(0 0 1rem var(--hero-title-shadow));
}

@media (prefers-color-scheme: dark) {
  .hero h1 {
    background-image: linear-gradient(
      to bottom right,
      var(--primary),
      color-mix(in oklab, var(--secondary-foreground) 50%, transparent)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero .pitch {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--muted-foreground);
}

.launch-note {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 0 0 1px var(--card-ring);
  font-weight: 500;
}

.pulse {
  width: 0.625rem;
  height: 0.625rem;
  flex: none;
  border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 60%, transparent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.blobs {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24rem;
  height: 24rem;
  max-width: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.blobs span {
  position: absolute;
  width: 16rem;
  height: 16rem;
  max-width: 70%;
  filter: blur(64px);
}

.blobs span:first-child {
  top: 0;
  right: 0;
  background: var(--blob-a);
}

.blobs span:last-child {
  bottom: 0;
  left: 0;
  background: var(--blob-b);
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.features-intro {
  max-width: 64rem;
  text-align: center;
}

.features h2 {
  margin: 0;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--secondary-foreground);
}

@media (prefers-color-scheme: light) {
  .features h2 {
    color: var(--secondary);
  }
}

.features h2 span {
  display: block;
  color: var(--primary);
}

.features-intro p {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
}

.cards {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 64rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  height: 100%;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 0 0 1px var(--card-ring);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.card p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3.75rem;
  }
  .hero .pitch {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  .features h2 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  .features-intro p {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .features h2 {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--accent);
  background: var(--background);
  padding: 1rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.site-footer .container {
  display: flex;
  justify-content: center;
  text-align: center;
}

.site-footer a {
  color: var(--primary);
  text-underline-offset: 4px;
}

.site-footer a:hover {
  text-decoration: none;
}

/* Not found page */
.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.not-found p {
  color: var(--muted-foreground);
}

.not-found a {
  color: var(--primary);
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }
}
