:root {
  --ink: #111;
  --paper: #fff;
  --surface: #f3fbfa;
  --coral: #ff6b50;
  --coral-dark: #ff5436;
  --mint: #66e3d2;
  --mint-light: #8aeedd;
  --muted: #555b59;
  --line: #c9cfcd;
  --shell: 1180px;
  --shadow-sm: 0 2px 8px rgb(0, 0, 0, 8%);
  --shadow-md: 0 4px 16px rgb(0, 0, 0, 12%);
  --shadow-lg: 0 8px 32px rgb(0, 0, 0, 16%);
  --shadow-coral: 0 4px 20px rgb(255, 107, 80, 30%);
  --shadow-mint: 0 4px 20px rgb(102, 227, 210, 30%);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
a {
  font: inherit;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

address {
  color: var(--muted);
  line-height: 1.75;
  font-style: normal;
}

/* Base image styles for all contexts */
.brand img,
.player-preview img {
  transition: all var(--transition-smooth);
}

.shell {
  width: min(100% - 56px, var(--shell));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(255, 255, 255, 80%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(201, 207, 205, 40%);
  transition: all var(--transition-smooth);
}

.site-header:hover {
  background: rgb(255, 255, 255, 95%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

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

.brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 2px 8px rgb(102, 227, 210, 30%));
}

.brand:hover img {
  filter: drop-shadow(0 4px 12px rgb(102, 227, 210, 50%));
  transform: rotate(-5deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  padding: 8px 4px;
  transition: color var(--transition-fast);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--mint));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-smooth);
}

.primary-nav a:hover {
  color: var(--coral);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f3fbfa 0%, #e8f5f3 50%, #f3fbfa 100%);
  border-block: 1px solid var(--line);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgb(102, 227, 210, 15%) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgb(255, 107, 80, 12%) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero__layout {
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  gap: 32px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: inline-block;
  padding: 4px 12px 8px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  border-radius: 8px;
  box-shadow: var(--shadow-coral);
  color: var(--paper);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: var(--shadow-coral);
  }

  50% {
    box-shadow: 0 6px 30px rgb(255, 107, 80, 50%);
  }
}

.hero-product {
  min-height: 520px;
  position: relative;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__copy > p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__copy .store-buttons {
  margin-top: 28px;
}

.store-button {
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--paper);
  background: linear-gradient(135deg, var(--ink) 0%, #2d2d2d 100%);
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.store-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(255, 255, 255, 10%), transparent);
  transition: left 0.5s;
}

.store-button:hover::before {
  left: 100%;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral);
}

.store-button--light {
  color: var(--ink);
  background: linear-gradient(135deg, var(--paper) 0%, #f5f5f5 100%);
  border-color: var(--line);
}

.store-button--light:hover {
  background: linear-gradient(135deg, var(--paper) 0%, #e8e8e8 100%);
  border-color: var(--mint);
}

.store-button[aria-disabled="true"] {
  opacity: 1;
  cursor: not-allowed;
}

.player-preview {
  width: min(230px, 48%);
  margin: 0;
  overflow: hidden;
  border: 8px solid var(--ink);
  border-radius: 32px;
  background: var(--ink);
  box-shadow: 16px 18px 0 var(--mint), 0 20px 40px rgb(0, 0, 0, 15%);
  transition: all var(--transition-smooth);
}

.player-preview:hover {
  transform: translateY(-8px);
  box-shadow: 20px 22px 0 var(--mint), 0 30px 60px rgb(0, 0, 0, 20%);
}

.player-preview img {
  width: 100%;
  aspect-ratio: 10 / 13;
  object-fit: cover;
}

.player-preview:hover img {
  transform: scale(1.05);
}

.player-preview figcaption {
  min-height: 88px;
  padding: 20px 14px;
  color: var(--paper);
  font-weight: 700;
  background: linear-gradient(180deg, rgb(0, 0, 0, 0%) 0%, rgb(0, 0, 0, 30%) 100%);
}

.player-preview--library {
  position: absolute;
  right: 0;
  bottom: 0;
  box-shadow: 14px 16px 0 var(--coral), 0 20px 40px rgb(0, 0, 0, 15%);
}

.player-preview--library:hover {
  box-shadow: 18px 20px 0 var(--coral), 0 30px 60px rgb(0, 0, 0, 20%);
}

.features {
  padding-block: 100px 95px;
}

.features > h2 {
  max-width: 650px;
  margin: 0 0 48px;
  font-size: 2.8125rem;
  line-height: 1.08;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--ink);
  gap: 1px;
  background: var(--line);
}

.feature-grid article {
  min-height: 260px;
  padding: 32px 28px;
  background: var(--paper);
  transition: all var(--transition-smooth);
  position: relative;
}

.feature-grid article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.feature-grid article:hover {
  background: var(--surface);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.feature-grid article:hover::before {
  transform: scaleX(1);
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-grid article > span {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.feature-grid h3 {
  margin: 55px 0 12px;
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--ink);
}

.privacy-band {
  padding-block: 94px;
  color: var(--paper);
  background: linear-gradient(135deg, #1a1a1a 0%, var(--ink) 50%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.privacy-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgb(102, 227, 210, 10%) 0%, transparent 50%);
  pointer-events: none;
}

.privacy-band__layout {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 60px;
  align-items: center;
}

.privacy-band h2 {
  margin: 0;
  font-size: 3.125rem;
  line-height: 1.02;
}

.privacy-band h2 span {
  color: var(--mint);
}

.privacy-band ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #555;
}

.privacy-band li {
  padding: 19px 0;
  border-bottom: 1px solid #555;
}

.download-band {
  padding: 100px 28px;
  text-align: center;
  background: var(--coral);
}

.download-band h2 {
  margin: 0 0 18px;
  font-size: 3.25rem;
}

.download-band .store-buttons {
  justify-content: center;
  margin-top: 27px;
}

.site-footer {
  padding-block: 42px 28px;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  color: var(--ink);
}

.legal-page {
  padding-block: 72px 100px;
}

.legal-page__layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 760px);
  gap: 72px;
}

.legal-content h2 {
  margin-top: 42px;
  font-size: 1.5rem;
}

.legal-content li {
  color: var(--muted);
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--ink);
}

.contact-grid section {
  min-height: 220px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.contact-grid section:last-child {
  border-right: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

@media (width <= 800px) {
  .shell {
    width: min(100% - 36px, var(--shell));
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: fixed;
    inset: 78px 0 0;
    padding: 48px 24px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
  }

  .primary-nav[data-open="true"] {
    display: flex;
  }

  .menu-open {
    overflow: hidden;
  }

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

  .hero h1 {
    font-size: 2.875rem;
  }

  .hero-product {
    min-height: 440px;
  }

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

  .privacy-band__layout,
  .legal-page__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .contact-grid section {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-grid section:last-child {
    border-bottom: 0;
  }
}

@media (width <= 480px) {
  .hero h1 {
    font-size: 2.375rem;
  }

  .hero-product {
    min-height: 390px;
  }

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

  .feature-grid article {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .privacy-band h2,
  .download-band h2 {
    font-size: 2.375rem;
  }

  .store-button {
    flex: 1 1 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
