:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #faf7ff;
  background: #110920;
  --ink: #faf7ff;
  --muted: #c6bcd8;
  --lavender: #d2c0ff;
  --border: #d7bcff29;
  --surface: #1b102d;
  --content: 74rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; min-width: 280px; }
body:has(.viewer[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid #e9dfff; outline-offset: 5px; }

.container {
  width: min(calc(100% - 6rem), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  transform: translateY(-200%);
  padding: .75rem 1rem;
  border-radius: .5rem;
  color: #190e2d;
  background: var(--lavender);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: #11091ff2;
  backdrop-filter: blur(18px);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.625rem;
}

.brand, .app-identity {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 720;
  white-space: nowrap;
}

.brand img, .app-identity img {
  flex: none;
  border: 1px solid #dbbfff4a;
  border-radius: .7rem;
}

.brand span span { color: var(--lavender); }

.site-nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2.2rem); }
.site-nav a, .footer-link { color: var(--muted); font-size: .94rem; font-weight: 580; }
.site-nav a:hover, .footer-link:hover { color: var(--ink); }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.4rem;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .76rem;
  font-weight: 720;
  line-height: 1.35;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, translate .18s ease;
}

.button svg { width: 1.2rem; height: 1.2rem; flex: none; }
.button-primary { color: #1c0e32; background: #d7c6ff; box-shadow: 0 5px 22px #b784ff24; }
.button-primary:hover { background: #ecdeff; box-shadow: 0 5px 25px #bc87ff45; }
.button-secondary, .button-small { border-color: #dcc6ff45; background: #d4afff0b; }
.button-secondary:hover, .button-small:hover { background: #d4afff20; border-color: #dcc6ff83; }
.button-small { min-height: 2.65rem; padding-inline: .95rem; font-size: .9rem; white-space: nowrap; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 78% 42%, #591db56a 0%, transparent 53%),
    radial-gradient(ellipse at 97% 90%, #252b7b75 0%, transparent 51%),
    linear-gradient(125deg, #130b23 27%, #200d3c 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  min-height: 40.5rem;
}

.hero-copy { position: relative; z-index: 1; padding-block: 4.5rem; }
.app-identity { margin-bottom: 1.65rem; color: #eee4ff; font-size: 1.12rem; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

h1 {
  font-size: clamp(3.3rem, 6.25vw, 5.85rem);
  font-weight: 760;
  line-height: .99;
  letter-spacing: -.073em;
}

h1 em { display: block; color: var(--lavender); font-style: normal; }

.hero-copy > p {
  max-width: 28rem;
  margin-top: 1.65rem;
  color: #ded1ee;
  font-size: clamp(1.075rem, 1.85vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-art {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 37rem;
  margin-inline: auto;
  aspect-ratio: 1.09;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  inset: 10% 5% 8% 6%;
  border: 1px solid #d7b6ff3d;
  border-radius: 50%;
  background: radial-gradient(ellipse at 42% 65%, #a555f445, transparent 68%);
  box-shadow: 0 0 0 1.3rem #d2a3ff0c, 0 0 0 2.65rem #c77cff0a, 0 0 0 4rem #bd7aff07;
  transform: rotate(-24deg) scaleY(.79);
}

.hero-phone {
  position: absolute;
  width: 39%;
  padding: 1.1%;
  border: 1px solid #d6bcffba;
  border-radius: 12% / 5.4%;
  background: linear-gradient(145deg, #30213f, #100b1a 33%, #100b1a 70%, #44305c);
  box-shadow: 0 2px 0 2px #0e071b, 0 22px 46px #080414a6, 0 0 44px #a964ff32;
}

.hero-phone img {
  width: 100%;
  height: auto;
  border-radius: 9.7% / 4.37%;
  background: #fdfdfd;
}

.hero-phone-transactions {
  top: 1.5%;
  left: 6.5%;
  transform: rotate(-5deg);
}

.hero-phone-insights {
  top: 8.5%;
  right: 6.5%;
  transform: rotate(4deg);
}

.section {
  padding-block: clamp(4rem, 8vw, 7.25rem);
  border-top: 1px solid var(--border);
}

.section-heading { max-width: 43rem; margin-bottom: clamp(1.65rem, 4vw, 2.65rem); }
.section-label { margin-bottom: .7rem; color: var(--lavender); font-size: .94rem; font-weight: 710; }

h2 {
  font-size: clamp(2.15rem, 4.6vw, 3.8rem);
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -.055em;
}

.features { background: linear-gradient(170deg, #140b25, #110920 72%); }
.feature-grid, .gallery-grid { display: grid; gap: 1rem; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature-card {
  min-width: 0;
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--surface);
}

.privacy-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid #d9b8ff48;
  border-radius: 1.1rem;
  background:
    radial-gradient(ellipse at 96% 100%, #6922bc55, transparent 76%),
    var(--surface);
}

.privacy-feature .feature-icon { margin: 0; }
.privacy-feature h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -.035em; line-height: 1.15; }
.privacy-feature p { max-width: 39rem; margin-top: .55rem; color: var(--muted); line-height: 1.6; }
.feature-card h3, .gallery-stories h3 { font-size: 1.32rem; letter-spacing: -.026em; line-height: 1.24; }
.feature-card h3 { text-wrap: initial; }
.feature-card p, .about p:not(.section-label), .contact p:not(.section-label) { color: var(--muted); line-height: 1.65; }
.feature-card p, .contact p:not(.section-label) { margin-top: .6rem; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 1.3rem;
  border-radius: .65rem;
  color: var(--lavender);
  background: #a679ff26;
}

.feature-icon svg { width: 1.32rem; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.mint { color: #a8f1d6; background: #8ceac123; }
.blue { color: #bfd0ff; background: #94a9ff23; }
.pink { color: #ffd0ed; background: #e891cb26; }
.feature-link { display: inline-block; margin-top: .8rem; color: #e2d2ff; font-size: .95rem; font-weight: 660; text-decoration: underline; text-underline-offset: .27em; }
.feature-link:hover { color: #fff; }

.gallery { background: #150b26; }

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-grid-app { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gallery-item {
  display: block;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #1e1130;
  transition: border-color .18s ease, background-color .18s ease, translate .18s ease;
}

.gallery-item:hover { border-color: #dcc4ff87; background: #2a1744; }
.gallery-item img { width: 100%; height: auto; }
.gallery-item span { display: block; padding: .95rem 1rem 1rem; font-weight: 660; }

.gallery-stories { margin-top: 3rem; }
.gallery-stories h3 { margin-bottom: 1.1rem; }

.gallery-grid-stories img {
  aspect-ratio: 1080 / 1424;
  object-fit: contain;
  height: auto;
  background: #10081d;
}

.about { background: radial-gradient(ellipse at 100% 100%, #2d1355, transparent 71%), #170c2a; }
.about-grid { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.about p:not(.section-label) { max-width: 32rem; margin-top: 1.1rem; font-size: 1.1rem; }
.about-grid > img { width: 100%; height: auto; border: 1px solid #d9b8ff45; border-radius: 1.15rem; }

.contact { padding-block: clamp(3.5rem, 7vw, 6rem); }

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding: clamp(1.5rem, 5vw, 3.6rem);
  border: 1px solid #d9b8ff48;
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at 97% 90%, #571aa3af, transparent 71%), #211036;
}

.contact-links {
  display: grid;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: .85rem;
  background: #140b2680;
}

.contact-links dt { color: var(--muted); font-size: .92rem; }
.contact-links dd { margin: .25rem 0 0; overflow-wrap: anywhere; font-weight: 680; }
.contact-links a:hover, .footer-link[aria-current="page"] { color: var(--lavender); }
.contact-links a:hover { text-decoration: underline; text-underline-offset: .2em; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { min-height: 5.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }

.policy-hero {
  padding-block: clamp(2.5rem, 7vw, 5.25rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 88% 90%, #541d9d8c, transparent 65%),
    linear-gradient(120deg, #170d29, #23113d);
}

.policy-hero h1 { font-size: clamp(2.75rem, 6.25vw, 5rem); }
.policy-hero .app-identity { margin-bottom: 1rem; }
.policy-dates { display: flex; flex-wrap: wrap; gap: .45rem 1.6rem; margin-top: 1.3rem; color: var(--muted); }
.policy-dates strong { margin-right: .25rem; color: var(--ink); }

.policy-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 3.2fr);
  align-items: start;
  gap: clamp(1.8rem, 5vw, 4.25rem);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.policy-contents {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.policy-contents h2 { font-size: 1.1rem; letter-spacing: -.02em; }
.policy-contents ul { display: grid; gap: .2rem .9rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.policy-contents a { display: block; padding-block: .32rem; color: var(--muted); font-size: .94rem; line-height: 1.4; }
.policy-contents a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

.policy-copy { max-width: 51rem; color: var(--muted); line-height: 1.65; }
.policy-copy section + section { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.policy-copy h2 { margin-bottom: .65rem; color: var(--ink); font-size: clamp(1.35rem, 2.7vw, 1.75rem); letter-spacing: -.035em; }
.policy-copy strong { color: var(--ink); }
.policy-copy p + p { margin-top: .75rem; }
.policy-copy ul, .policy-copy ol { padding-inline-start: 1.4rem; }
.policy-copy li + li { margin-top: .3rem; }
.policy-copy a { color: var(--lavender); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .18em; }
.policy-copy a:hover { color: var(--ink); }
.policy-summary { padding: clamp(1.1rem, 3vw, 1.65rem); border: 1px solid #d9b8ff48; border-radius: 1rem; background: #24133b; }
.policy-note { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: .94rem; }

.policy-copy table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-block: 1rem;
  background: var(--surface);
  font-size: .94rem;
  line-height: 1.5;
}

.policy-copy thead { background: #2d1a45; color: var(--ink); }
.policy-copy th, .policy-copy td { padding: .65rem; border: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.policy-copy thead th:first-child { width: 32%; }

.viewer {
  width: min(calc(100% - 2rem), 46rem);
  max-height: calc(100dvh - 2rem);
  padding: .85rem;
  overflow: auto;
  border: 1px solid #c9a8ff69;
  border-radius: 1.15rem;
  background: #1b102d;
  box-shadow: 0 18px 70px #0009;
  color: var(--ink);
}

.viewer::backdrop { background: #0a0516de; backdrop-filter: blur(6px); }
.viewer-header, .viewer-controls { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.viewer-header { padding: 0 .25rem .65rem; font-weight: 720; }
.viewer-controls { padding: .65rem .25rem 0; }
.viewer-image { width: 100%; height: min(72dvh, calc(100dvh - 8.5rem)); min-height: 7rem; object-fit: contain; border-radius: .45rem; background: #10081d; }
.viewer-count { color: var(--muted); font-size: .95rem; }

.viewer button, .menu-toggle {
  padding: .5rem .8rem;
  min-height: 2.7rem;
  border: 1px solid #ddc6ff45;
  border-radius: .65rem;
  background: #d8b5ff10;
  cursor: pointer;
}

.viewer button:hover, .menu-toggle:hover { background: #d8b5ff25; }

@media (max-width: 62rem) {
  .container { width: min(calc(100% - 3.5rem), var(--content)); }
  .hero-grid { min-height: 34rem; }
  .header-inner { gap: .75rem; }
  .site-nav, .hero-actions { gap: .65rem; }
  .site-nav a { font-size: .875rem; }
}

@media (max-width: 49rem) {
  .container { width: calc(100% - 2.5rem); }
  .header-inner { flex-wrap: wrap; min-height: 4.25rem; padding-block: .7rem; }
  .header-inner .button-small { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .menu-icon { width: 1rem; height: .64rem; border-block: 1px solid currentColor; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: .25rem .9rem; }
  .site-nav a { display: block; padding-block: .45rem; }
  .menu-toggle:not([hidden])[aria-expanded="false"] + .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; text-align: center; }
  .hero-copy { padding-block: 3.35rem .55rem; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { width: min(90%, 29rem); margin-block: 1.8rem 1.4rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-panel { align-items: flex-start; flex-direction: column; }
  .privacy-feature { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .9rem; }
  .privacy-feature .button { grid-column: 2; justify-self: start; }
  .policy-header-inner .button-small { display: inline-flex; min-height: 2.35rem; padding-inline: .55rem; font-size: .83rem; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-contents { position: static; max-height: none; }
  .policy-contents ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 32rem) {
  .container { width: calc(100% - 2rem); }
  .brand { font-size: .9rem; }
  .brand img { width: 34px; height: 34px; }
  h1 { font-size: clamp(2.2rem, 11.7vw, 3.7rem); }
  .app-identity { margin-bottom: 1.15rem; }
  .hero-copy > p { margin-top: 1.15rem; }
  .hero-actions { margin-top: 1.3rem; }
  .hero-actions .button { width: 100%; max-width: 19rem; }
  .hero-art { margin-top: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { gap: .65rem; }
  .gallery-item span { padding: .65rem .55rem .7rem; font-size: .95rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .8rem; padding-block: 1.2rem; }
  .privacy-feature { grid-template-columns: 1fr; }
  .privacy-feature .button { grid-column: 1; }
  .policy-header-inner .brand { gap: .45rem; font-size: .84rem; }
  .policy-copy thead th:first-child { width: 42%; }
}

@keyframes rise-in {
  from {
    opacity: var(--entrance-opacity, .65);
    translate: 0 var(--entrance-distance, .75rem);
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise-in .48s ease-out; }

  .hero-phone {
    --entrance-opacity: .35;
    --entrance-distance: 1.125rem;
    animation: rise-in .64s cubic-bezier(.2, .65, .3, 1) both;
  }

  .hero-phone-insights { animation-delay: .11s; }

  .viewer[open] {
    --entrance-distance: .4rem;
    animation: rise-in .19s ease-out;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .button:hover { translate: 0 -2px; }
  .button:active { translate: 0 0; }
  .gallery-item:hover { translate: 0 -4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
