:root {
  color-scheme: dark;
  --accent: #ffa62e;
  --accent-strong: #e8772e;
  --bg: #120d0b;
  --bg-soft: #1a1411;
  --panel: rgba(28, 22, 19, 0.9);
  --panel-strong: rgba(21, 16, 13, 0.96);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 166, 46, 0.12);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f8f2ee;
  --muted: #d0bfb3;
  --title: #ffffff;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f1eb;
  --bg-soft: #fffaf5;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --surface: rgba(26, 18, 14, 0.04);
  --surface-strong: rgba(255, 166, 46, 0.14);
  --border: rgba(26, 18, 14, 0.09);
  --text: #1d120e;
  --muted: #6d574a;
  --title: #130b08;
  --shadow: 0 18px 36px rgba(119, 85, 50, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top right, rgba(255, 166, 46, 0.1), transparent 24%),
    radial-gradient(circle at bottom left, rgba(232, 119, 46, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 166, 46, 0.05), transparent 26%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

body::before,
body::after,
.site-shell::before,
.site-shell::after {
  pointer-events: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(8, 8, 10, 0.96) 0 4%, transparent 4.5%),
    radial-gradient(circle at center, rgba(255, 166, 46, 0.92) 0 13%, rgba(232, 119, 46, 0.94) 13% 23%, transparent 23.5%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 8px),
    radial-gradient(circle at center, rgba(19, 14, 11, 0.98) 0 69%, rgba(31, 24, 20, 0.98) 69% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.22);
  filter: saturate(1.08);
}

body::before {
  width: clamp(180px, 24vw, 300px);
  aspect-ratio: 1;
  top: -70px;
  left: -68px;
  opacity: 0.28;
  animation: spin-vinyl 34s linear infinite;
}

body::after {
  width: clamp(220px, 30vw, 390px);
  aspect-ratio: 1;
  right: -110px;
  bottom: -130px;
  opacity: 0.16;
  animation: spin-vinyl 46s linear infinite reverse;
}

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

button,
summary {
  font: inherit;
}

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

.page {
  padding: 24px;
}

.site-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-shell::before,
.site-shell::after {
  position: fixed;
  z-index: -1;
  white-space: pre;
  font-family: "Bangers", cursive;
  line-height: 1.15;
  letter-spacing: 0.12em;
}

.site-shell::before {
  content: "\266B \00A0 \266A";
  top: 18vh;
  right: 7vw;
  font-size: clamp(1.7rem, 1.4vw + 1.2rem, 3rem);
  color: rgba(255, 166, 46, 0.18);
  text-shadow: 0 0 24px rgba(255, 166, 46, 0.12);
  animation: float-note-cluster 10s ease-in-out infinite;
}

.site-shell::after {
  content: "\266A\00000A\266C";
  bottom: 16vh;
  left: 5vw;
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2.7rem);
  color: rgba(232, 119, 46, 0.15);
  text-shadow: 0 0 20px rgba(232, 119, 46, 0.1);
  animation: float-note-cluster 13s ease-in-out infinite reverse;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0 22px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 88px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 100%;
  height: auto;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--title);
}

.brand-copy span,
.brand-copy small {
  font-size: 0.88rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a,
.theme-toggle,
.lang-summary,
.lang-option,
.text-link,
.ghost-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.nav-links a:hover,
.nav-links a.is-current,
.theme-toggle:hover,
.lang-summary:hover,
.lang-option:hover,
.text-link:hover,
.ghost-link:hover {
  color: var(--title);
  border-color: rgba(255, 166, 46, 0.32);
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.theme-toggle {
  width: 44px;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.theme-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[data-theme-icon] {
  display: none;
}

:root[data-theme="dark"] [data-theme-icon="moon"],
:root[data-theme="light"] [data-theme-icon="sun"] {
  display: block;
}

.lang-menu {
  position: relative;
}

.lang-menu summary {
  list-style: none;
  cursor: pointer;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu[open] .lang-summary {
  color: var(--title);
  border-color: rgba(255, 166, 46, 0.32);
  background: var(--surface-strong);
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 8px;
  display: grid;
  gap: 6px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  z-index: 5;
}

.lang-option {
  justify-content: flex-start;
  border-radius: 14px;
  padding: 0 12px;
}

.lang-option.is-current {
  color: var(--title);
  background: var(--surface-strong);
  pointer-events: none;
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.panel,
.feature-card,
.community-panel,
.legal-teaser,
.download-banner,
.legal-hero,
.legal-section,
.contact-strip {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero {
  display: block;
}

.hero-copy {
  padding: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-title,
.legal-hero h1 {
  margin: 18px 0 12px;
  font-family: "Bangers", cursive;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--title);
}

.title-accent {
  color: var(--accent);
}

.hero-text,
.section-heading p,
.feature-card p,
.community-panel p,
.legal-teaser p,
.download-banner p,
.legal-hero p,
.legal-section p,
.legal-section li,
.contact-strip p,
.footer {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  margin: 0;
  font-size: 1.02rem;
}

.hero-text strong {
  color: var(--title);
}

.hero-text + .hero-text {
  margin-top: 10px;
}

.cta-group,
.button-row,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-group {
  margin-top: 26px;
}

.hero-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.hero-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--title);
  font-size: 0.95rem;
}

.store-button {
  min-width: 214px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.store-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 166, 46, 0.32);
  background: var(--surface-strong);
}

.store-button.is-disabled {
  opacity: 0.86;
  cursor: not-allowed;
}

.store-icon,
.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--title);
  font-size: 0;
  position: relative;
}

.store-icon::before,
.social-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--icon-mask) center / contain no-repeat;
  mask: var(--icon-mask) center / contain no-repeat;
}

.store-button[data-store-link="ios"] .store-icon {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.54 3.1c.8-.97 1.35-2.3 1.2-3.1-1.17.08-2.53.8-3.37 1.77-.76.87-1.4 2.18-1.22 3.45 1.3.1 2.58-.66 3.39-2.12ZM20.5 17.1c-.56 1.26-.82 1.82-1.54 2.95-1 1.56-2.4 3.51-4.14 3.53-1.55.02-1.95-1.01-4.05-1-2.1.01-2.54 1.02-4.09.99-1.74-.03-3.06-1.78-4.05-3.34C-.06 16.38-.4 11.8 1.1 9.5c1.08-1.67 2.8-2.64 4.4-2.64 1.64 0 2.68 1.09 4.04 1.09 1.32 0 2.13-1.1 4.03-1.1 1.42 0 2.92.77 4 2.1-3.52 1.93-2.95 7.01.93 8.15Z'/%3E%3C/svg%3E");
}

.store-button[data-store-link="android"] .store-icon {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 3.5v17l14-8.5L4 3.5Zm2.2 3.95 7.98 4.55-7.98 4.55V7.45Z'/%3E%3C/svg%3E");
}

.social-pill[data-social-link="instagram"] .social-icon {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7Zm5 3.25A4.75 4.75 0 1 1 7.25 12 4.76 4.76 0 0 1 12 7.25Zm0 2A2.75 2.75 0 1 0 14.75 12 2.75 2.75 0 0 0 12 9.25Zm5-3.12a1.13 1.13 0 1 1-1.13 1.12A1.13 1.13 0 0 1 17 6.13Z'/%3E%3C/svg%3E");
}

.social-pill[data-social-link="tiktok"] .social-icon {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 3h3.1A5.1 5.1 0 0 0 21 8.1V11a8.1 8.1 0 0 1-5-1.73v6.07a6.34 6.34 0 1 1-6.34-6.34c.5 0 1.01.07 1.34.14v3.23a3.62 3.62 0 1 0 2 3.25V3Z'/%3E%3C/svg%3E");
}

.social-pill[data-social-link="email"] .social-icon {
  --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm1 2v.54l8 5.34 8-5.34V7H4Zm16 10V9.96l-7.45 4.97a1 1 0 0 1-1.1 0L4 9.96V17h16Z'/%3E%3C/svg%3E");
}

.store-copy,
.social-pill > span:last-child {
  display: grid;
  gap: 2px;
}

.store-copy strong,
.social-pill strong {
  color: var(--title);
  font-size: 0.98rem;
}

.store-copy small,
.social-pill span:last-child span {
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  margin-top: 40px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  color: var(--title);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
}

.section-heading p {
  margin: 0;
  max-width: 50ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 22px;
}

.feature-index,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
}

.feature-card h3,
.community-panel h3,
.legal-teaser h3,
.contact-strip h3 {
  margin: 14px 0 8px;
  color: var(--title);
  font-size: 1.18rem;
  font-weight: 800;
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
}

.community-panel,
.legal-teaser,
.download-banner,
.legal-hero,
.legal-section,
.contact-strip {
  padding: 26px;
}

.social-list {
  display: grid;
  gap: 10px;
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.social-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 166, 46, 0.32);
  background: var(--surface-strong);
}

.download-banner {
  margin-top: 16px;
}

.download-banner h3 {
  margin: 0 0 8px;
  color: var(--title);
  font-size: 1.28rem;
  font-weight: 800;
}

.text-link {
  background: var(--surface-strong);
  color: var(--title);
}

.ghost-link {
  background: transparent;
}

.legal-main {
  padding-bottom: 24px;
}

.legal-hero {
  margin-bottom: 14px;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.legal-article {
  display: grid;
  gap: 14px;
}

.legal-section h2 {
  margin: 0 0 10px;
  color: var(--title);
  font-size: 1.15rem;
  font-weight: 800;
}

.legal-section p {
  margin: 0;
}

.legal-stack {
  display: grid;
  gap: 10px;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
}

.legal-list li + li {
  margin-top: 8px;
}

.button-row,
.legal-links {
  margin-top: 16px;
}

.footer {
  margin-top: 28px;
  padding: 20px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.footer-copy {
  display: grid;
  gap: 4px;
}

.footer-copy p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.is-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes spin-vinyl {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float-note-cluster {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
    opacity: 0.38;
  }

  50% {
    transform: translate3d(0, -16px, 0) rotate(4deg);
    opacity: 0.72;
  }
}

@media (max-width: 900px) {
  body::before {
    top: -88px;
    left: -92px;
    opacity: 0.2;
  }

  body::after {
    right: -140px;
    bottom: -160px;
  }

  .site-shell::before {
    top: 16vh;
    right: 4vw;
  }

  .site-shell::after {
    bottom: 13vh;
    left: 3vw;
  }

  .topbar,
  .section-heading,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid,
  .community-grid,
  .hero-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell::before,
  .site-shell::after {
    font-size: 1.5rem;
  }

  .site-shell::after {
    opacity: 0.6;
  }

  .page {
    padding: 18px;
  }

  .hero-copy,
  .feature-card,
  .community-panel,
  .legal-teaser,
  .download-banner,
  .legal-hero,
  .legal-section,
  .contact-strip {
    padding: 20px;
  }

  .cta-group,
  .button-row,
  .legal-links {
    flex-direction: column;
  }

  .store-button,
  .text-link,
  .ghost-link {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  body::before,
  body::after,
  .site-shell::before,
  .site-shell::after {
    animation: none !important;
  }
}
