:root {
  --bg: #0b0709;
  --bg-2: #100a0d;
  --card: #171015;
  --card-2: #1d1419;
  --border: rgba(255,255,255,.09);
  --border-red: rgba(255,67,108,.28);
  --text: #f8f3f5;
  --muted: #b9adb3;
  --muted-2: #8f8188;
  --red: #ee3d68;
  --red-2: #ff6a58;
  --green: #6fd49f;
  --yellow: #e9b965;
  --radius: 20px;
  --container: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -10%, rgba(238,61,104,.11), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  color: black;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11,7,9,.75);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  background: rgba(11,7,9,.94);
  border-bottom-color: var(--border);
}

.site-header.compact {
  position: static;
  border-bottom-color: var(--border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-red);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(0,0,0,.26);
}

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

.brand strong {
  line-height: 1.1;
  font-size: 1rem;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 23px;
}

.site-nav a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: white;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: white;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: grid;
  align-items: center;
  padding: 100px 0;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black 25%, transparent 92%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 420px;
  left: 50%;
  top: -170px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(238,61,104,.18), transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 26px;
  object-fit: cover;
  border-radius: 25px;
  border: 1px solid var(--border-red);
  background: var(--card);
  box-shadow: 0 22px 65px rgba(0,0,0,.45);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff819b;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), var(--red-2));
}

.hero h1,
.section h2,
.legal-main h1,
.error-card h1 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -.042em;
}

.hero h1 {
  margin-top: 19px;
  font-size: clamp(3.1rem, 7vw, 6rem);
}

.hero-lead {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.2rem);
}

.button-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .button-row {
  justify-content: center;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 19px;
  color: white;
  font-size: .91rem;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  background: linear-gradient(135deg, var(--red), #d5295d);
  box-shadow: 0 13px 36px rgba(238,61,104,.22);
}

.button-primary:hover {
  box-shadow: 0 15px 42px rgba(238,61,104,.3);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255,255,255,.035);
}

.button-secondary:hover {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.065);
}

.button-disabled {
  border-color: var(--border);
  background: #241c20;
  color: #786c72;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.button-full { width: 100%; }

.hero-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  color: var(--muted-2);
  font-size: .82rem;
}

.hero-status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 999px;
}

.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(111,212,159,.08);
}

.status-dot.soon {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(233,185,101,.08);
}

.section {
  padding: 105px 0;
}

.section-muted {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006));
}

.section-heading {
  max-width: 770px;
  margin-bottom: 44px;
}

.section h2 {
  margin-top: 14px;
  font-size: clamp(2.15rem, 4vw, 3.55rem);
}

.section-heading p,
.update-layout > div > p {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.feature-card,
.download-card,
.support-card,
.legal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.014));
}

.feature-card {
  min-height: 225px;
  padding: 25px;
}

.feature-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-red);
  border-radius: 11px;
  color: #ff829d;
  background: rgba(238,61,104,.07);
  font-size: .74rem;
  font-weight: 800;
}

.feature-card h3 {
  margin: 23px 0 9px;
  font-size: 1.1rem;
}

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

.small-note {
  margin: 24px 0 0;
  color: var(--muted-2);
  font-size: .83rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.screenshot-card {
  overflow: hidden;
  min-height: 250px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform .22s ease;
}

.screenshot-card:hover img {
  transform: scale(1.015);
}

.screenshot-wide {
  grid-column: 1 / -1;
  min-height: 340px;
}

.screenshot-wide img {
  min-height: 340px;
  object-fit: contain;
  background: #0e0a0c;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 19px;
}

.download-card {
  padding: 29px;
}

.download-card.featured {
  border-color: var(--border-red);
  box-shadow: 0 20px 65px rgba(238,61,104,.07);
}

.download-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.download-icon,
.android-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid var(--border-red);
  border-radius: 14px;
  background: var(--card-2);
}

.download-icon {
  object-fit: cover;
}

.android-icon {
  display: grid;
  place-items: center;
  color: #ff829d;
  font-weight: 900;
  font-size: 1.2rem;
}

.card-label {
  margin: 0;
  color: var(--muted-2);
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.download-card h3 {
  margin: 3px 0 0;
  font-size: 1.42rem;
}

.download-card > p {
  min-height: 52px;
  margin: 21px 0;
  color: var(--muted);
}

.release-meta {
  margin: 0;
  border-top: 1px solid var(--border);
}

.release-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.release-meta dt { color: var(--muted-2); }
.release-meta dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.card-actions {
  margin-top: 23px;
}

.text-link {
  display: inline-block;
  color: #ff849e;
  font-size: .89rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover { color: #ffb3c2; }
.is-hidden { display: none !important; }

.notice {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(233,185,101,.18);
  border-radius: 14px;
  background: rgba(233,185,101,.05);
  color: #d4c3a4;
  font-size: .89rem;
}

.tabs {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.015);
}

.tab-list {
  display: flex;
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.14);
}

.tab-button {
  min-height: 44px;
  flex: 1;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  cursor: pointer;
}

.tab-button.active {
  color: white;
  background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--border);
}

.tab-panel { padding: 32px; }

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 15px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.016);
}

.steps li > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(238,61,104,.1);
  color: #ff829d;
  font-weight: 850;
  font-size: .81rem;
}

.steps h3 {
  margin: 2px 0 4px;
  font-size: .98rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
}

.update-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: 74px;
}

.update-box {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0c090a;
  box-shadow: 0 22px 70px rgba(0,0,0,.3);
}

.update-file {
  display: block;
  margin-bottom: 17px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
}

.update-box code {
  color: #dbc9cf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 2;
}

.update-box code strong {
  color: white;
}

.update-box code a {
  color: #ff849e;
}

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

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.016);
}

.faq-list summary {
  position: relative;
  padding: 18px 50px 18px 19px;
  list-style: none;
  cursor: pointer;
  font-weight: 730;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1.25rem;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  margin: 0;
  padding: 0 19px 19px;
  color: var(--muted);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.support-card {
  padding: 34px;
}

.support-card h2 {
  margin: 15px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.support-card p {
  margin: 15px 0 24px;
  color: var(--muted);
}

.discord-card {
  border-color: rgba(112,128,255,.2);
  background:
    radial-gradient(circle at 100% 0, rgba(112,128,255,.11), transparent 18rem),
    linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.014));
}

.site-footer {
  padding: 54px 0 20px;
  border-top: 1px solid var(--border);
  background: #080607;
}

.footer-simple {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
}

.footer-brand { margin-bottom: 14px; }

.footer-simple p {
  margin: 0;
  color: var(--muted-2);
  font-size: .83rem;
}

.footer-links {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
  font-size: .84rem;
  text-decoration: none;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: .74rem;
}

.legal-main {
  min-height: calc(100vh - 150px);
  padding: 88px 0 110px;
}

.legal-container { max-width: 850px; }

.legal-main h1 {
  margin-top: 16px;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
}

.legal-lead {
  margin: 23px 0 32px;
  color: var(--muted);
  font-size: 1.06rem;
}

.legal-card {
  padding: 27px;
  margin-top: 15px;
}

.legal-card h2 {
  margin: 0 0 8px;
  font-size: 1.27rem;
}

.legal-card p {
  margin: 0 0 19px;
  color: var(--muted);
}

.legal-card.subtle p { margin-bottom: 0; }

.legal-updated {
  margin-top: 27px;
  color: var(--muted-2);
  font-size: .79rem;
}

.legal-footer { padding-top: 18px; }

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.error-card {
  width: min(100%, 620px);
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}

.error-code {
  color: var(--red);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .2em;
}

.error-card h1 {
  margin-top: 12px;
  font-size: clamp(2.25rem, 7vw, 3.9rem);
}

.error-card p {
  margin: 16px 0 25px;
  color: var(--muted);
}

.button:focus-visible,
.tab-button:focus-visible,
.menu-toggle:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(238,61,104,.3);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .site-nav { gap: 16px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .update-layout { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 28px), var(--container)); }

  .header-inner { min-height: 68px; }

  .menu-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: none;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(16,10,13,.98);
    box-shadow: 0 22px 70px rgba(0,0,0,.42);
  }

  .site-nav.open { display: grid; }

  .site-nav a {
    padding: 10px 11px;
    border-radius: 9px;
  }

  .site-nav a:hover { background: rgba(255,255,255,.04); }

  .hero {
    min-height: auto;
    padding: 78px 0 84px;
  }

  .hero h1 { font-size: clamp(2.8rem, 13vw, 4.5rem); }

  .section { padding: 80px 0; }

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

  .download-card > p { min-height: 0; }

  .tab-panel { padding: 18px; }

  .footer-simple {
    display: grid;
    gap: 30px;
  }

  .footer-links { justify-items: start; }
}

@media (max-width: 570px) {
  .brand small { display: none; }

  .hero-icon {
    width: 92px;
    height: 92px;
    border-radius: 21px;
  }

  .hero .button-row,
  .support-card .button-row {
    display: grid;
  }

  .hero .button-row .button,
  .support-card .button-row .button {
    width: 100%;
  }

  .hero-status { display: grid; }

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

  .screenshot-wide { grid-column: auto; }

  .screenshot-card,
  .screenshot-card img,
  .screenshot-wide,
  .screenshot-wide img {
    min-height: 210px;
  }

  .download-card,
  .feature-card,
  .support-card,
  .legal-card {
    padding: 22px;
  }

  .tab-list { display: grid; }

  .legal-page .brand strong { font-size: .9rem; }
  .legal-page .brand-logo { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
