@font-face {
  font-family: 'WMNST Title';
  src: url('aerial-faster-regular.regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #9a9a9a;
  --dim: #6b6b6b;
  --border: #333333;
  --pill: #1a1a1a;
  --font-body: 'Lora', 'Georgia', serif;
  --font-mono: 'Courier New', Courier, monospace;
  --font-title: 'WMNST Title', 'Courier New', Courier, monospace;
}

.title-dollar {
  font-family: var(--font-body);
  font-style: normal;
}

.nav-logo .title-dollar,
.landing-title .title-dollar,
.buy-title .title-dollar,
.app-title .title-dollar,
.socials-title .title-dollar,
.whiteout-title .title-dollar,
.whiteout-section-title .title-dollar {
  font-family: var(--font-title);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.nav-icon {
  font-size: 0.95rem !important;
  letter-spacing: 0 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  z-index: 102;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

body.nav-menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .site-nav {
    padding: 1rem 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
  }

  .nav-backdrop[hidden] {
    display: none !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 101;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: min(17rem, 82vw);
    height: 100vh;
    height: 100dvh;
    padding: 5rem 1.5rem 2rem;
    background: #0a0a0a;
    border-left: 1px solid #222;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    pointer-events: none;
  }

  .site-nav.is-open .nav-links {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    font-size: 0.78rem;
    border-bottom: 1px solid #1a1a1a;
  }

  .nav-links a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
  }
}

@media (max-width: 600px) {
  .site-nav {
    padding: 1rem 1.25rem;
  }
}

/* ── Landing hero ── */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 4.5rem 0 3rem;
}

.hero-media {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  background: #000;
  line-height: 0;
  aspect-ratio: 32 / 9;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1) contrast(1.12) brightness(1.05);
}

.landing-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 0;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

.landing-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
  font-size: clamp(3rem, 14vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow:
    2px 2px 0 rgba(255, 255, 255, 0.05),
    0 0 60px rgba(255, 255, 255, 0.08);
}

.landing-tagline {
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(100%, 36rem);
  padding: 0.65rem 0.65rem 0.65rem 1rem;
  margin-bottom: 2rem;
  background: var(--pill);
  border: 1px solid #2a2a2a;
  border-radius: 999px;
}

.ca-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  flex-shrink: 0;
}

.ca-address {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 2.5vw, 0.78rem);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: none;
}

.ca-copy {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: #2a2a2a;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.ca-copy:hover {
  background: #3a3a3a;
}

.ca-copy.copied {
  background: #fff;
  color: #000;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
  max-width: 32rem;
}

.btn-cta {
  flex: 1 1 12rem;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-cta-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn-cta-primary:hover {
  background: #ddd;
  border-color: #ddd;
}

.btn-cta-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Socials ── */

.socials-section {
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 1px solid #1a1a1a;
}

.socials-title {
  margin: 0 0 2.5rem;
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.socials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 52rem;
  margin: 0 auto;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 8.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.social-card:hover {
  transform: translateY(-3px);
  opacity: 0.92;
}

.social-avatar {
  width: 102px;
  height: 102px;
  padding: 3px;
  border-radius: 50%;
  background: #333;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.2s, transform 0.2s;
}

.social-card:hover .social-avatar {
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.12);
}

.social-card--instagram .social-avatar {
  background: linear-gradient(
    135deg,
    #f9ce34 0%,
    #ee2a7b 50%,
    #6228d7 100%
  );
}

.social-card--x .social-avatar {
  background: #ffffff;
}

.social-card--tiktok .social-avatar {
  background: linear-gradient(135deg, #25f4ee 0%, #fe2c55 100%);
}

.social-avatar img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.social-platform {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.social-handle {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.partner-socials {
  max-width: 56rem;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px dashed var(--border);
}

.partner-socials-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.partner-column {
  padding: 0.25rem 0;
  text-align: left;
  width: min(100%, 240px);
}

.partner-name {
  margin: 0 0 0.8rem;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

.partner-social-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.partner-social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-decoration: none;
  color: var(--text);
  opacity: 0.9;
  transition: transform 0.2s, opacity 0.2s;
}

.partner-social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.partner-social-avatar {
  width: 62px;
  height: 62px;
  padding: 3px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
}

.social-card--instagram .partner-social-avatar {
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
}

.social-card--x .partner-social-avatar {
  background: #ffffff;
}

.social-card--tiktok .partner-social-avatar {
  background: linear-gradient(135deg, #25f4ee 0%, #fe2c55 100%);
}

.partner-social-avatar img {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.partner-social-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.partner-social-platform {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partner-social-handle {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
}

/* ── How to buy ── */

.buy-section {
  border-top: 1px solid #1a1a1a;
  padding: 4rem 1.5rem;
  background: var(--bg);
}

.buy-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.buy-title {
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.buy-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
}

.buy-steps {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.buy-step {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  background: #0a0a0a;
}

.buy-step h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.buy-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.buy-step a {
  color: var(--text);
}

.buy-step code {
  color: var(--text);
  font-family: var(--font-mono);
  word-break: break-all;
}

/* ── App section ── */

.app-section {
  border-top: 1px solid #1a1a1a;
  padding: 4rem 0 5rem;
  background: var(--bg);
}

.app-header {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.app-title {
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.app-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

/* ── Upload zone ── */

.machine {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}

.drop-zone {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 3rem 1.5rem 2.75rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.dragover {
  border-color: #555;
  background: rgba(255, 255, 255, 0.02);
}

.drop-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.skull-icon {
  width: 56px;
  height: 56px;
  color: var(--muted);
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.drop-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.drop-hint {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: var(--dim);
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
}

.drop-preview {
  width: 100%;
}

.drop-preview img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 4px;
  filter: grayscale(0.15) contrast(1.05);
}

.preview-label {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--dim);
  font-style: italic;
}

.hidden {
  display: none !important;
}

/* ── Options ── */

.options-panel {
  text-align: left;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.options-panel summary {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  list-style: none;
  text-align: center;
}

.options-panel summary::-webkit-details-marker {
  display: none;
}

.options-panel[open] summary {
  margin-bottom: 1rem;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field span {
  font-size: 0.88rem;
  color: var(--muted);
}

.dim {
  color: var(--dim);
  font-style: italic;
}

textarea {
  resize: vertical;
  min-height: 72px;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

textarea:focus {
  outline: 1px solid #555;
  outline-offset: 2px;
}

.options {
  border: none;
  margin: 0;
  padding: 0;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
}

.checkbox input {
  margin-top: 0.25rem;
  accent-color: #888;
}

.checkbox strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Buttons ── */

.btn-run {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--text);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.btn-run:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
}

.btn-run:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--border);
  color: var(--dim);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  cursor: pointer;
  margin-top: 0.5rem;
  padding: 0;
}

.btn-ghost:hover {
  color: var(--muted);
  text-decoration: underline;
}

.btn-download {
  margin-top: 1.25rem;
  text-decoration: none;
  text-align: center;
}

/* ── Output ── */

.output {
  margin-top: 2.5rem;
}

.output-state {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.output-text {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1rem;
}

.output-error {
  color: #c4c4c4;
}

.output-caption {
  margin: 0 0 1rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

.result-media {
  width: 100%;
}

.result-media img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 4px;
  filter: grayscale(0.1) contrast(1.05);
}

#result-success.output-state {
  padding-bottom: 1.5rem;
}

/* ── Whiteout Weekend ── */

.whiteout-landing {
  min-height: auto;
  padding-bottom: 2rem;
}

.whiteout-landing .hero-media {
  max-height: min(42vh, 320px);
}

.whiteout-landing .landing-body {
  padding-top: 1.5rem;
}

.whiteout-section {
  border-top: 1px solid #1a1a1a;
  padding: 4rem 0 5rem;
  background: var(--bg);
}

.whiteout-header {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.whiteout-section-title {
  margin: 0 0 1rem;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.whiteout-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.65;
}

.whiteout-steps {
  max-width: 56rem;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.whiteout-step {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  background: #0a0a0a;
}

.whiteout-step h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.whiteout-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.whiteout-step a {
  color: var(--text);
}

.whiteout-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.whiteout-form-panel {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: left;
}

.whiteout-form .field {
  margin-bottom: 1rem;
}

.whiteout-form .field:last-of-type {
  margin-bottom: 0;
}

.whiteout-form .field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.whiteout-form .field input:focus {
  outline: 1px solid #555;
  outline-offset: 2px;
}

.whiteout-form .field input::placeholder {
  color: var(--dim);
  font-style: italic;
}

.whiteout-feedback {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.whiteout-feedback.hidden {
  display: none !important;
}

.whiteout-form .btn-run {
  margin-top: 1.25rem;
}

.whiteout-socials-panel {
  margin-top: 1rem;
}

.whiteout-socials-panel .field:last-child {
  margin-bottom: 0;
}

.whiteout-message {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}

.whiteout-message--error {
  color: #c4c4c4;
}

.whiteout-message--success {
  color: var(--muted);
}

.whiteout-footnote {
  margin: 1.5rem 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.whiteout-footnote a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.whiteout-footnote a:hover {
  color: var(--text);
}
