:root {
  --bg: #000;
  --card: #0b0b0b;
  --card-2: #101010;
  --line: #1c1c1c;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --silver: #d7d7d7;
  --ok: #3ddc8a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #000;
  min-height: 100%;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2a #000;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border: 2px solid #000;
  border-radius: 12px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f3f;
}

::-webkit-scrollbar-corner {
  background: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 88% 12%, rgba(255, 255, 255, 0.08), transparent 58%),
    radial-gradient(ellipse 60% 50% at 8% 88%, rgba(255, 255, 255, 0.04), transparent 52%),
    linear-gradient(180deg, #0c0c0c 0%, #000 48%, #000 100%);
}

body.home {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 72%);
}

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

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

button,
summary {
  font-family: inherit;
}

.wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home .wrap {
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-shrink: 0;
}

.nav__logo {
  height: 56px;
  width: auto;
  mix-blend-mode: lighten;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0f0f0f;
  border: 1px solid var(--line);
  color: #fff;
}

.icon-btn:hover {
  background: #161616;
}

.btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}

.btn--white {
  background: #fff;
  color: #000;
}

.btn--white:hover {
  background: #eaeaea;
}

.btn--ghost {
  background: #0f0f0f;
  color: #fff;
  border: 1px solid var(--line);
}

.btn--lg {
  height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 32px;
  align-items: center;
  flex: 1;
  min-height: 0;
  padding: 20px 0 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(180deg, #fff 20%, #9a9a9a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 520px;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 17px;
}

.hero__price {
  max-width: 520px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.hero__visual {
  position: relative;
  z-index: 2;
  min-height: 0;
}

.hero__glow {
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.12), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  transform: perspective(1000px) rotateY(-18deg) rotateX(6deg);
  transform-origin: center center;
  transition: transform 0.45s ease;
}

.hero__visual:hover .hero__stage {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero__overlay {
  width: 100%;
  height: auto;
  max-height: 52vh;
  object-fit: contain;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

.footer {
  padding: 16px 0 28px;
  margin-top: auto;
  flex-shrink: 0;
}

.footer__powered {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.footer__powered a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer__powered img {
  height: 28px;
  width: 28px;
}

.footer__note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.footer__row nav {
  display: flex;
  gap: 16px;
}

.footer__row a:hover {
  color: #fff;
}

.legal {
  max-width: 760px;
  padding: 40px 0 80px;
}

.legal h1 {
  font-size: 48px;
  letter-spacing: -0.05em;
  margin: 0 0 12px;
}

.legal h2 {
  margin: 32px 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal .legal__updated {
  color: var(--muted);
  margin: 0 0 28px;
}

.legal ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.legal li {
  margin: 6px 0;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--block {
  width: 100%;
}

.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.auth-wrap {
  min-height: 100vh;
}

.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px 32px;
  text-align: center;
}

.auth-card__logo {
  height: 56px;
  width: auto;
  margin: 0 auto 8px;
  mix-blend-mode: lighten;
}

.auth-card h1 {
  margin: 8px 0 6px;
  font-size: 32px;
  letter-spacing: -0.05em;
}

.auth-card__price {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.auth-card__meta {
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.auth-back {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.auth-back:hover {
  color: #fff;
}

.field {
  display: block;
  text-align: left;
  margin: 0 0 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.field input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: #fff;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
}

.field input:focus {
  outline: 1px solid #fff;
  border-color: #fff;
}

.form-msg {
  margin: 14px 0 0;
  font-size: 13px;
}

.form-msg--error {
  color: #ff8a8a;
}

.form-msg--ok {
  color: var(--ok);
}

.form-msg a {
  text-decoration: underline;
}

.dash {
  width: 100%;
  max-width: none;
  padding: 28px 0 80px;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dash h1 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.06em;
}

.dash-head .dash-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.2fr) minmax(240px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.dash-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px 18px;
  min-width: 0;
}

.dash-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-profile__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #161616;
  flex-shrink: 0;
}

.dash-profile__label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-profile h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.dash-profile__handle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.dash-row:last-child {
  border-bottom: 0;
}

.dash-row span {
  color: var(--muted);
  font-size: 13px;
}

.dash-row strong {
  font-size: 15px;
  font-weight: 600;
}

.dash-row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.dash-row--stack strong,
.key {
  word-break: break-all;
}

.dash-row--key {
  align-items: center;
}

.dash-row--key > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.key-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  font-family: inherit;
}

.linkish:hover {
  color: #fff;
}

.status-ok {
  color: var(--ok);
}

.dash-empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 28px;
}

.dash-empty h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.dash-empty p {
  margin: 0 0 22px;
  color: var(--muted);
}

.dash-stats .dash-row:first-child {
  border-bottom: 1px solid var(--line);
}

.btn--block svg {
  flex-shrink: 0;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.modal__card {
  width: min(420px, 100%);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}

.modal__card h2 {
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}

.modal__card p {
  margin: 0;
  color: var(--muted);
}

.modal__card .dash-actions {
  margin-top: 20px;
}

.download-hero {
  padding: 64px 0 24px;
}

.download-hero h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 88px);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.download-hero p {
  color: var(--muted);
  margin: 14px 0 0;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 36px 0 90px;
  max-width: 560px;
}

.download-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}

.download-card span {
  display: inline-block;
  font-size: 12px;
  color: #111;
  background: #fff;
  border-radius: 99px;
  padding: 4px 8px;
  font-weight: 600;
  margin-bottom: 14px;
}

.download-card h2 {
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}

.download-card p {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dash-profile {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body.home {
    height: auto;
    overflow: auto;
  }

  .home .wrap {
    height: auto;
    overflow: visible;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .hero__overlay {
    max-height: none;
  }

  .hero__stage {
    width: 100%;
    transform: perspective(1000px) rotateY(-12deg) rotateX(4deg);
  }

  .hero__visual:hover .hero__stage {
    transform: none;
  }

  .nav__logo {
    height: 44px;
  }

  .dash-head {
    flex-wrap: wrap;
  }

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

  .dash-profile {
    grid-column: auto;
  }
}
