:root {
  --bg: #0b0c0b;
  --bg-elevated: #121212;
  --card: rgba(21, 24, 23, 0.72);
  --card-solid: #151817;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(57, 255, 20, 0.28);
  --muted: #8e9592;
  --text: #f5f5f5;
  --text-dim: #a7a7a7;
  --green: #39ff14;
  --green-dim: rgba(57, 255, 20, 0.12);
  --spotify-green: #1db954;
  --glow: rgba(57, 255, 20, 0.35);
  --glow-soft: rgba(57, 255, 20, 0.08);
  --max: 1140px;
  --radius: 20px;
  --radius-lg: 28px;
  --blur: blur(16px);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --font: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ── Ambient background ── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.ambient__glow--1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -80px;
  background: rgba(57, 255, 20, 0.07);
}

.ambient__glow--2 {
  width: 400px;
  height: 400px;
  top: 40%;
  right: -100px;
  background: rgba(29, 185, 84, 0.06);
}

.ambient__diamond {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 700px);
  opacity: 0.04;
}

.page-wrap {
  position: relative;
  z-index: 1;
}

/* ── Glass utility ── */
.glass {
  background: var(--card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--card-border);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--card-border);
}

.site-header .glass {
  background: rgba(11, 12, 11, 0.82);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 20px var(--glow-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a:not(.btn) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

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

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--spotify-green));
  color: #000;
  box-shadow: 0 8px 28px var(--glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px var(--glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Hero ── */
.hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--green-dim);
  border: 1px solid rgba(57, 255, 20, 0.22);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-bottom: 1.25rem;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, #fff 15%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
}

/* Phone showcase */
.phone-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 520px;
}

.phone-frame {
  position: relative;
  width: min(270px, 58vw);
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2e2c, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow), 0 0 60px var(--glow-soft);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone-frame img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.phone-frame--back {
  position: absolute;
  right: 0;
  top: 2.5rem;
  width: min(220px, 48vw);
  opacity: 0.55;
  transform: rotate(8deg) scale(0.92);
  z-index: 0;
  filter: blur(0.5px);
}

.phone-frame--front {
  position: relative;
  z-index: 1;
}

.phone-glow {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Steps ── */
.steps {
  padding: 3rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, transform 0.25s;
}

.step-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--green-dim);
  border: 1px solid rgba(57, 255, 20, 0.25);
  color: var(--green);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 16px var(--glow-soft);
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── Section headers ── */
.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Bento features ── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 1rem;
}

.bento-card {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, var(--glow-soft), transparent 70%);
  pointer-events: none;
}

.bento-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.bento-card__icon {
  font-size: 1.5rem;
  margin-bottom: auto;
  padding-bottom: 1rem;
}

.bento-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.bento-card--span-4 { grid-column: span 4; }

.bento-card--accent {
  border-color: rgba(57, 255, 20, 0.18);
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.06), transparent 60%),
    var(--card);
}

.bento-card--accent h3 {
  color: var(--green);
}

/* ── Screenshots ── */
.gallery-wrap {
  position: relative;
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 240px);
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(57, 255, 20, 0.4) transparent;
}

.gallery::-webkit-scrollbar {
  height: 6px;
}

.gallery::-webkit-scrollbar-thumb {
  background: rgba(57, 255, 20, 0.35);
  border-radius: 999px;
}

.shot {
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  transition: border-color 0.2s, transform 0.2s;
}

.shot:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.shot figcaption {
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--card-solid);
  border-top: 1px solid var(--card-border);
}

/* ── CTA ── */
.cta {
  padding: 2rem 0 5rem;
}

.cta-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.75rem;
  align-items: center;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  border-color: rgba(57, 255, 20, 0.2);
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.07), rgba(29, 185, 84, 0.03)),
    var(--card);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cta-card img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 0 24px var(--glow-soft);
}

.cta-card h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.cta-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 2rem 0 2.5rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

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

/* ── Legal page ── */
.legal {
  padding: 3rem 0 5rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
}

.legal-meta {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.legal-body {
  max-width: 44rem;
}

.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.legal-body p,
.legal-body li {
  color: #d2d6d4;
  margin-bottom: 0.8rem;
  font-size: 0.98rem;
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-tags {
    justify-content: center;
  }

  .phone-showcase {
    min-height: 440px;
    margin-top: 1rem;
  }

  .phone-frame--back {
    right: 5%;
  }

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

  .bento-card--span-4 {
    grid-column: span 12;
  }

  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(11, 12, 11, 0.96);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .site-header.is-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a:not(.btn) {
    padding: 0.65rem 0;
  }

  .site-nav .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .phone-frame--back {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
