:root {
  color-scheme: dark;
  --bg: #090c10;
  --panel: rgba(13, 18, 25, .78);
  --panel-strong: #0d1219;
  --line: rgba(255,255,255,.09);
  --text: #f7f8fa;
  --muted: #8d98a7;
  --accent: #ec3258;
  --accent-soft: rgba(236,50,88,.16);
  --cyan: #7be3ff;
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 0%, rgba(65,95,145,.10), transparent 34rem),
    linear-gradient(180deg, #090c10 0%, #080a0e 100%);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.ambient {
  position: fixed;
  width: 35rem;
  height: 35rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.ambient-a { background: #dc2c50; top: -16rem; right: -10rem; }
.ambient-b { background: #2a8ab8; bottom: -18rem; left: -13rem; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 20px auto 0;
  min-height: 70px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  border: 1px solid var(--line);
  background: rgba(9,12,16,.68);
  backdrop-filter: blur(22px);
  border-radius: 18px;
  position: sticky;
  top: 14px;
  z-index: 30;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}
.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.nav a, .footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color .2s ease;
}
.nav a:hover, .footer-links a:hover { color: var(--text); }

.button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}
.button:not(:disabled):hover { transform: translateY(-2px); }
.button-primary {
  color: white;
  background: linear-gradient(135deg, #ef3158, #c51f45);
  box-shadow: 0 10px 34px rgba(236,50,88,.22);
}
.button-secondary, .button-ghost {
  border-color: var(--line);
  background: rgba(255,255,255,.035);
}
.button:disabled { opacity: .48; cursor: not-allowed; }

main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}
.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
  padding: 86px 0 62px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b6bec9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}
.eyebrow > span {
  width: 26px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(236,50,88,.75);
}
h1 {
  margin: 22px 0 22px;
  font-size: clamp(52px, 7vw, 90px);
  line-height: .98;
  letter-spacing: -.055em;
}
h1 em {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.75);
  font-style: normal;
}
.hero-text {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aab4c0;
  font-size: 13px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(123,227,255,.8);
}

.hero-art {
  position: relative;
  min-height: 490px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: #0a0e14;
  box-shadow: 0 30px 100px rgba(0,0,0,.4);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 55%, rgba(7,10,14,.9)),
    linear-gradient(90deg, rgba(9,12,16,.2), transparent 35%);
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
  transform: scale(1.03);
}
.frame-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -80px 100px rgba(236,50,88,.08);
  z-index: 3;
}
.hero-chip {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(7,10,14,.7);
  backdrop-filter: blur(12px);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.hero-chip-top { top: 18px; left: 18px; }
.hero-chip-bottom { right: 18px; bottom: 18px; color: #d7dce3; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 40px 0 90px;
}
.feature-card {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(80px);
  opacity: .08;
  right: -40px;
  bottom: -40px;
}
.feature-wide {
  grid-column: span 2;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.feature-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.feature-card h2, .download h2, .section-heading h2 {
  margin: 12px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.04em;
}
.feature-card h3 { margin: 32px 0 10px; font-size: 20px; }
.feature-card p, .download p, .faq p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  font-size: 18px;
}

.download {
  margin: 10px 0 90px;
  padding: 36px;
  border: 1px solid rgba(236,50,88,.28);
  border-radius: 28px;
  background: linear-gradient(115deg, rgba(236,50,88,.10), rgba(255,255,255,.025) 45%, rgba(123,227,255,.04));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.download p { max-width: 640px; }

.faq { padding: 10px 0 100px; }
.section-heading { margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-weight: 700;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 22px; max-width: 760px; }

footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 110px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}
.brand-small img { width: 26px; height: 26px; }
.footer-links { justify-self: end; display: flex; gap: 20px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-art { min-height: 410px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .download { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(calc(100% - 24px), var(--max)); }
  .site-header { top: 8px; margin-top: 10px; min-height: 62px; padding: 0 12px; }
  .button-ghost { display: none; }
  .hero { min-height: auto; padding: 54px 0 42px; gap: 34px; }
  h1 { font-size: 48px; }
  .hero-text { font-size: 16px; }
  .hero-art { min-height: 320px; border-radius: 22px; }
  .feature-grid { grid-template-columns: 1fr; padding-bottom: 65px; }
  .feature-wide { grid-column: auto; }
  .feature-card { min-height: 210px; }
  .download { padding: 26px; margin-bottom: 70px; }
  footer { grid-template-columns: 1fr auto; padding: 24px 0; }
  footer p { grid-column: 1 / -1; grid-row: 2; }
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.auth-shell {
  width: min(calc(100% - 32px), 520px);
  padding: 48px 0;
}
.auth-brand { margin-bottom: 22px; }
.auth-card {
  border: 1px solid var(--line);
  background: rgba(9,12,16,.86);
  backdrop-filter: blur(22px);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 30px 100px rgba(0,0,0,.38);
}
.auth-title {
  margin: 20px 0 12px;
  font-size: clamp(38px, 8vw, 54px);
  line-height: 1;
}
.auth-copy,
.auth-note {
  color: var(--muted);
  line-height: 1.65;
}
.auth-note {
  margin: 18px 0 0;
  font-size: 12px;
}
.auth-error {
  min-height: 22px;
  margin-top: 18px;
  color: #ff6b87;
  font-size: 13px;
}
.auth-error:empty { margin-top: 8px; }
.auth-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.auth-form label {
  font-size: 12px;
  color: #c5cbd4;
  font-weight: 700;
}
.auth-form input {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b1119;
  color: var(--text);
  padding: 0 15px;
  font: inherit;
  outline: none;
}
.auth-form input:focus {
  border-color: rgba(236,50,88,.55);
  box-shadow: 0 0 0 3px rgba(236,50,88,.09);
}
.auth-submit {
  margin-top: 6px;
  width: 100%;
}
.account-header { position: static; }
.account-member {
  justify-self: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .06em;
}
.account-header form { margin: 0; }
.account-shell { padding: 74px 0 100px; }
.account-hero { margin-bottom: 34px; }
.account-title {
  margin: 18px 0 12px;
  font-size: clamp(48px, 7vw, 74px);
}
.account-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}
.account-card {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.account-card-main h2 {
  margin: 10px 0 8px;
  font-size: 30px;
}
.account-card-main p {
  margin: 0;
  color: var(--muted);
}
.account-value {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.account-value-small { font-size: 22px; }
.account-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.access-list {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.access-row {
  min-height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.access-row:last-child { border-bottom: 0; }
.access-row span { color: #c9d0d9; }
.access-row strong {
  font-size: 13px;
  color: var(--text);
}
.account-footnote {
  margin: 18px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.legal-shell {
  width: min(calc(100% - 40px), 820px);
  padding: 72px 0;
  margin: 0 auto;
}
.legal-content { padding-top: 60px; }
.legal-title { font-size: 56px; }
.legal-paragraph { margin-top: 20px; }

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-member { display: none; }
  .account-header { grid-template-columns: 1fr auto; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.auth-shell-wide {
  width: min(calc(100% - 32px), 640px);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
}
.field-grid > div {
  display: grid;
  gap: 10px;
}
.turnstile-wrap {
  width: 100%;
  min-height: 70px;
  margin-top: 6px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.turnstile-wrap .cf-turnstile {
  width: 100%;
  max-width: 100%;
  min-height: 65px;
}
.auth-state {
  margin: 8px 0 0;
  color: #ff6b87;
  font-size: 12px;
}
.inline-link {
  color: #f3f6fb;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.code-input {
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
}
.setup-secret {
  margin: 22px 0 12px;
  padding: 16px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1119;
}
.setup-secret span {
  color: var(--muted);
  font-size: 12px;
}
.setup-secret code {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 15px;
}
.auth-open-app {
  width: 100%;
  margin-bottom: 8px;
}
.recovery-grid {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.recovery-grid li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1119;
  text-align: center;
}
.recovery-grid code {
  font-size: 13px;
  letter-spacing: .06em;
}
.community-panel {
  margin: 0 0 90px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 20%, rgba(236,50,88,.12), transparent 18rem),
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
.community-panel h2 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.04em;
}
.community-panel p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}
.community-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
}

@media (max-width: 760px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .recovery-grid {
    grid-template-columns: 1fr;
  }
  .community-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .community-actions {
    width: 100%;
  }
  .header-actions .button-secondary {
    display: none;
  }
}
