/* Desktop sizes are the 1920px design values multiplied by --u, so the layout scales down as one piece. */
:root {
  --u: min(1px, calc(100vw / 1920));
  --muted: rgba(255, 255, 255, 0.55);
  --violet: #8000ff;
  --violet-gradient: linear-gradient(68.94deg, #4f0074 6.08%, #8000ff 92%);
  --gold-gradient: linear-gradient(90deg, #f6cf81 0%, #fcf2c0 54.5%, #f6cf81 100%);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: #030208;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

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

.box {
  overflow-x: hidden;
}

.container {
  position: relative;
  z-index: 1;
  width: calc(1440 * var(--u));
  margin: 0 auto;
}

/* Header */

.site-header {
  background: #ffffff;
}

.header-inner {
  display: flex;
  height: calc(80 * var(--u));
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: calc(19 * var(--u));
}

.brand-logo {
  width: calc(60 * var(--u));
  height: calc(60 * var(--u));
  border-radius: calc(12.4 * var(--u));
}

.brand-name {
  color: rgba(0, 0, 0, 0.75);
  font-size: calc(24 * var(--u));
  line-height: 1;
}

.nav-links {
  position: absolute;
  left: 50%;
  display: flex;
  gap: calc(40 * var(--u));
  transform: translateX(-50%);
}

.nav-link {
  position: relative;
  color: rgba(0, 0, 0, 0.35);
  font-size: max(14px, calc(20 * var(--u)));
  line-height: calc(24 * var(--u));
  text-transform: capitalize;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-link:hover {
  color: rgba(0, 0, 0, 0.6);
}

.nav-link.active {
  background: linear-gradient(90deg, #4f0074, #8000ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 8.5 * var(--u));
  width: calc(77 * var(--u));
  height: calc(3 * var(--u));
  background: url("../image/home/nav-underline.svg") center / 100% 100% no-repeat;
  transform: translateX(-50%);
}

.nav-cta {
  display: inline-flex;
  width: calc(166 * var(--u));
  height: calc(60 * var(--u));
  align-items: center;
  justify-content: center;
  border-radius: calc(32.5 * var(--u));
  background: var(--violet-gradient);
  color: #ffffff;
  font-size: calc(22 * var(--u));
  white-space: nowrap;
}

/* Shared section pieces */

.eyebrow {
  color: var(--muted);
  font-size: max(14px, calc(22 * var(--u)));
  line-height: calc(32 * var(--u));
  text-transform: uppercase;
}

.eyebrow-plain {
  text-transform: none;
}

.gold-title {
  width: fit-content;
  max-width: 100%;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 1px #1e1e1e);
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: capitalize;
}

.section-title {
  margin-top: calc(22 * var(--u));
  font-size: calc(58 * var(--u));
  line-height: calc(70 * var(--u));
}

.section-text {
  margin-top: calc(22 * var(--u));
  color: var(--muted);
  font-size: max(13px, calc(18 * var(--u)));
  line-height: max(1.25em, calc(22 * var(--u)));
}

.section-art {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.glow {
  position: absolute;
  z-index: 0;
  background: center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Hero */

.hero {
  position: relative;
  height: calc(1000 * var(--u));
  overflow: hidden;
  background: radial-gradient(
    calc(6382.8 * var(--u)) calc(3230.5 * var(--u)) at 50% 100%,
    #010101 19.594%,
    #06010d 20.45%,
    #0c0119 21.306%,
    #160131 23.018%,
    #210049 24.73%,
    #2c0062 26.442%,
    #3a0e70 27.365%,
    #491c7f 28.287%,
    #65399c 30.131%,
    #8255b9 31.975%,
    #9e71d6 33.82%,
    #cc9ee9 38.785%,
    #facbfd 43.75%
  );
}

.hero-copy {
  padding-top: calc(219 * var(--u));
}

.hero-title {
  margin-top: calc(22 * var(--u));
  font-size: calc(88 * var(--u));
  line-height: calc(106 * var(--u));
}

.hero-subtitle {
  max-width: calc(640 * var(--u));
  margin-top: calc(22 * var(--u));
  color: var(--muted);
  font-size: max(14px, calc(22 * var(--u)));
  line-height: max(1.4em, calc(32 * var(--u)));
}

.download-actions {
  display: flex;
  gap: calc(40 * var(--u));
  margin-top: calc(66 * var(--u));
}

.download-button {
  display: flex;
  width: calc(231 * var(--u));
  height: calc(72 * var(--u));
  align-items: center;
  gap: calc(10 * var(--u));
  padding: 0 calc(6 * var(--u));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: calc(36 * var(--u));
  background: rgba(24, 0, 36, 0.5);
  color: #ffffff;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.download-button-primary {
  border-color: transparent;
  background: linear-gradient(-73.46deg, #4f0074 3.76%, #8000ff 95.44%);
}

.download-button:hover {
  box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(128, 0, 255, 0.35);
  transform: translateY(-2px);
}

.download-button:focus-visible,
.nav-cta:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid #c79bff;
  outline-offset: 3px;
}

.download-icon {
  display: grid;
  flex: 0 0 auto;
  width: calc(60 * var(--u));
  height: calc(60 * var(--u));
  place-items: center;
}

.download-icon img[width="36"] {
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
}

.download-icon img[width="60"] {
  width: calc(60 * var(--u));
  height: calc(60 * var(--u));
}

.download-icon img[width="38"] {
  width: calc(38.4 * var(--u));
  height: calc(38.4 * var(--u));
}

.download-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: calc(2 * var(--u));
  min-width: 0;
}

.download-platform {
  font-size: calc(24 * var(--u));
  line-height: 1.2;
  white-space: nowrap;
}

.download-label {
  font-size: calc(18 * var(--u));
  font-weight: 300;
  letter-spacing: calc(0.9 * var(--u));
  line-height: 1.2;
  white-space: nowrap;
}

.hero-stats {
  display: flex;
  gap: calc(83 * var(--u));
  margin-top: calc(44 * var(--u));
  list-style: none;
  text-transform: capitalize;
}

.hero-stats li {
  display: flex;
  min-width: calc(162 * var(--u));
  flex-direction: column;
  gap: calc(8 * var(--u));
}

.hero-stats strong {
  font-size: calc(28 * var(--u));
  letter-spacing: calc(0.56 * var(--u));
  line-height: calc(39 * var(--u));
}

.hero-stats span {
  color: var(--muted);
  font-size: max(13px, calc(20 * var(--u)));
  line-height: max(1.2em, calc(20 * var(--u)));
  white-space: nowrap;
}

.hero-art {
  left: calc(50% + 190 * var(--u));
  top: calc(70 * var(--u));
  width: calc(650 * var(--u));
  height: calc(850 * var(--u));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}

/* About */

.about {
  position: relative;
  min-height: calc(700 * var(--u));
  overflow: hidden;
  background: #030207;
}

.about .section-copy {
  padding-top: calc(144 * var(--u));
  padding-bottom: calc(80 * var(--u));
}

.about .section-title {
  max-width: calc(800 * var(--u));
}

.about .section-text {
  max-width: calc(570 * var(--u));
  text-align: justify;
}

.text-link {
  display: inline-block;
  margin-top: calc(22 * var(--u));
  color: var(--violet);
  font-size: max(16px, calc(24 * var(--u)));
  line-height: calc(22 * var(--u));
  text-decoration: underline;
}

.glow-about {
  left: calc(50% - 768.6 * var(--u));
  top: calc(-764 * var(--u));
  width: calc(1537.2 * var(--u));
  height: calc(1295.6 * var(--u));
  background-image: url("../image/home/glow-about.svg");
}

.about-art {
  left: calc(50% + 140 * var(--u));
  top: 0;
  width: calc(700 * var(--u));
  height: calc(700 * var(--u));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

/* Features */

.features {
  position: relative;
  min-height: calc(956 * var(--u));
  overflow: hidden;
  background: #030208;
}

.glow-features-left {
  left: calc(50% - 1390 * var(--u));
  top: calc(-58 * var(--u));
  width: calc(1232 * var(--u));
  height: calc(1374 * var(--u));
  background-image: url("../image/home/glow-features-left.svg");
}

.glow-features-right {
  left: calc(50% + 156 * var(--u));
  top: calc(-418 * var(--u));
  width: calc(1232 * var(--u));
  height: calc(1374 * var(--u));
  background-image: url("../image/home/glow-features-right.svg");
  transform: rotate(180deg);
}

.features-heading {
  display: flex;
  max-width: calc(879 * var(--u));
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding-top: calc(128 * var(--u));
  text-align: center;
}

.features-heading .section-text {
  max-width: calc(790 * var(--u));
  line-height: max(1.5em, calc(32 * var(--u)));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, calc(321 * var(--u)));
  justify-content: space-between;
  margin-top: calc(72 * var(--u));
  padding-bottom: calc(128 * var(--u));
}

.feature-card {
  position: relative;
  height: calc(348 * var(--u));
  overflow: hidden;
  border-radius: calc(28 * var(--u));
}

.feature-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: lighten;
  object-fit: cover;
}

.feature-number {
  position: absolute;
  top: calc(38 * var(--u));
  right: calc(40 * var(--u));
  color: var(--muted);
  font-size: max(12px, calc(18 * var(--u)));
  line-height: calc(27 * var(--u));
}

.feature-copy {
  position: absolute;
  top: calc(81 * var(--u));
  left: calc(38 * var(--u));
  width: calc(245 * var(--u));
}

.feature-copy h3 {
  font-size: max(14px, calc(22 * var(--u)));
  line-height: max(1.3em, calc(32 * var(--u)));
}

.feature-copy p {
  margin-top: calc(22 * var(--u));
  color: var(--muted);
  font-size: max(12px, calc(18 * var(--u)));
  line-height: max(1.35em, calc(26 * var(--u)));
  text-align: justify;
}

/* Community */

.community {
  position: relative;
  min-height: calc(700 * var(--u));
  overflow: hidden;
  background: #030208;
}

.community .section-copy {
  padding-top: calc(129 * var(--u));
  padding-bottom: calc(80 * var(--u));
}

.community .section-title {
  max-width: calc(680 * var(--u));
}

.community .section-text {
  max-width: calc(640 * var(--u));
  text-align: justify;
}

.check-list {
  margin-top: calc(22 * var(--u));
  list-style: none;
}

.check-list li {
  font-size: max(14px, calc(22 * var(--u)));
  line-height: max(1.5em, calc(34 * var(--u)));
}

.check-list li::before {
  content: "✓ ";
  color: var(--violet);
}

.glow-community {
  left: calc(50% - 768.6 * var(--u));
  top: calc(278.6 * var(--u));
  width: calc(1537.2 * var(--u));
  height: calc(1295.6 * var(--u));
  background-image: url("../image/home/glow-community.svg");
  transform: scaleY(-1);
}

.community-art {
  left: calc(50% + 40 * var(--u));
  top: 0;
  width: calc(920 * var(--u));
  height: calc(700 * var(--u));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 96%, transparent);
}

/* Footer */

.site-footer {
  padding-top: calc(56 * var(--u));
  background: #050014;
}

.signin-card {
  position: relative;
  display: flex;
  min-height: calc(184 * var(--u));
  align-items: center;
  gap: calc(32 * var(--u));
  padding: calc(24 * var(--u)) calc(52 * var(--u)) calc(24 * var(--u)) calc(57 * var(--u));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: calc(40 * var(--u));
  background: linear-gradient(110.04deg, #0b0024 1.08%, #150a2e 100%);
}

.signin-accent {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: calc(49 * var(--u));
  height: calc(100% + 2px);
}

.signin-icon {
  flex: 0 0 auto;
  width: calc(98 * var(--u));
  height: calc(98 * var(--u));
}

.signin-title {
  flex: 0 0 auto;
  font-size: calc(48 * var(--u));
  line-height: 1;
  white-space: nowrap;
}

.signin-text {
  color: var(--muted);
  font-size: max(13px, calc(18 * var(--u)));
  line-height: max(1.3em, calc(22 * var(--u)));
  text-align: justify;
}

.signin-text a,
.footer-contact a {
  color: var(--violet);
  text-decoration: underline;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: calc(137 * var(--u));
}

.footer-brand .brand {
  display: flex;
  gap: calc(11 * var(--u));
}

.footer-brand .brand-logo {
  width: calc(50 * var(--u));
  height: calc(50 * var(--u));
  border-radius: calc(10.3 * var(--u));
}

.footer-brand .brand-name {
  color: #ffffff;
  font-size: max(16px, calc(22 * var(--u)));
  line-height: calc(32 * var(--u));
}

.footer-brand p,
.footer-contact p {
  margin-top: calc(22 * var(--u));
  color: var(--muted);
  font-size: max(13px, calc(18 * var(--u)));
  line-height: max(1.2em, calc(22 * var(--u)));
}

.footer-contact {
  text-align: right;
}

.footer-contact h3 {
  font-size: max(16px, calc(22 * var(--u)));
  line-height: calc(32 * var(--u));
}

.copyright {
  margin-top: calc(55 * var(--u));
  padding: calc(38 * var(--u)) 0 calc(56 * var(--u));
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--muted);
  font-size: max(13px, calc(18 * var(--u)));
  line-height: max(1.3em, calc(22 * var(--u)));
}

/* Tablet and mobile: stack each section and switch to fixed px sizes. */

@media (max-width: 1199px) {
  .container {
    width: min(100% - 40px, 720px);
  }

  .header-inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 12px 0 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 20px;
  }

  .nav-links {
    position: static;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 32px;
    transform: none;
  }

  .nav-link {
    font-size: 15px;
    line-height: 22px;
  }

  .nav-link.active::after {
    top: calc(100% + 3px);
    width: 52px;
    height: 3px;
  }

  .nav-cta {
    width: auto;
    height: 40px;
    padding: 0 18px;
    border-radius: 20px;
    font-size: 15px;
  }

  .eyebrow {
    font-size: 13px;
    line-height: 1.5;
  }

  .section-title,
  .about .section-title,
  .community .section-title {
    max-width: none;
    margin-top: 12px;
    font-size: 30px;
    line-height: 1.25;
  }

  .section-text,
  .about .section-text,
  .community .section-text,
  .features-heading .section-text {
    max-width: none;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
  }

  .features-heading .section-text {
    text-align: center;
  }

  .section-art {
    position: static;
    width: min(100%, 560px);
    height: auto;
    margin: 28px auto 0;
  }

  .hero {
    height: auto;
    padding-top: 40px;
    background: linear-gradient(
      180deg,
      #8255b9 0%,
      #491c7f 8%,
      #2c0062 16%,
      #160131 24%,
      #06010d 33%,
      #010101 42%
    );
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-title {
    margin-top: 12px;
    font-size: 40px;
    line-height: 1.2;
  }

  .hero-subtitle {
    max-width: none;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
  }

  .download-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
  }

  .download-button {
    width: 220px;
    height: 60px;
    gap: 6px;
    padding: 0 12px 0 6px;
    border-radius: 30px;
  }

  .download-icon,
  .download-icon img[width="60"] {
    width: 46px;
    height: 46px;
  }

  .download-icon img[width="36"] {
    width: 28px;
    height: 28px;
  }

  .download-icon img[width="38"] {
    width: 30px;
    height: 30px;
  }

  .download-platform {
    font-size: 18px;
  }

  .download-label {
    font-size: 13px;
    letter-spacing: 0.6px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-top: 28px;
  }

  .hero-stats li {
    min-width: 0;
    gap: 4px;
  }

  .hero-stats strong {
    font-size: 22px;
    line-height: 1.3;
  }

  .hero-stats span {
    font-size: 14px;
  }

  .hero-art {
    width: min(100%, 520px);
    margin-top: 12px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent),
      linear-gradient(to bottom, transparent, #000 22%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent),
      linear-gradient(to bottom, transparent, #000 22%, #000 88%, transparent);
  }

  .about,
  .features,
  .community {
    min-height: 0;
  }

  .about .section-copy,
  .community .section-copy {
    padding: 64px 0 0;
  }

  .about-art,
  .community-art {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent),
      linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent),
      linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    mask-composite: intersect;
  }

  .community-art {
    width: min(100%, 640px);
  }

  .text-link {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.4;
  }

  .features-heading {
    max-width: none;
    padding-top: 64px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-bottom: 64px;
  }

  .feature-card {
    height: auto;
    aspect-ratio: 321 / 348;
    border-radius: 20px;
  }

  .feature-number {
    top: 24px;
    right: 24px;
    font-size: 14px;
    line-height: 1.4;
  }

  .feature-copy {
    top: 56px;
    left: 24px;
    width: auto;
    right: 24px;
  }

  .feature-copy h3 {
    font-size: 18px;
    line-height: 1.35;
  }

  .feature-copy p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
  }

  .check-list {
    margin-top: 16px;
  }

  .check-list li {
    font-size: 15px;
    line-height: 1.7;
  }

  .site-footer {
    padding-top: 40px;
  }

  .signin-card {
    flex-wrap: wrap;
    gap: 14px 16px;
    padding: 24px 24px 24px 36px;
    border-radius: 24px;
  }

  .signin-accent {
    width: 30px;
  }

  .signin-icon {
    width: 56px;
    height: 56px;
  }

  .signin-title {
    font-size: 26px;
  }

  .signin-text {
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: 48px;
  }

  .footer-brand .brand {
    gap: 10px;
  }

  .footer-brand .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .footer-brand .brand-name,
  .footer-contact h3 {
    font-size: 18px;
    line-height: 1.4;
  }

  .footer-brand p,
  .footer-contact p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
  }

  .footer-contact {
    text-align: left;
  }

  .copyright {
    margin-top: 32px;
    padding: 24px 0 32px;
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 36px;
  }

  .download-button {
    width: 100%;
    max-width: 320px;
  }

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

  .feature-card {
    aspect-ratio: auto;
    min-height: 300px;
  }
}

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

  .download-button,
  .nav-link {
    transition: none;
  }
}
