:root {
  --bg: #050505;
  --ink: #f8f8f4;
  --muted: #9b9b95;
  --quiet: #1a1a18;
  --line: rgba(248, 248, 244, 0.16);
  --line-strong: rgba(248, 248, 244, 0.32);
  --paper: #f8f8f4;
  --paper-2: #e8e5d8;
  --acid: #c7ff45;
  --cyan: #8edfff;
  --danger: #ff5a6a;
  --radius: 8px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 72% 18%, rgba(199, 255, 69, 0.14), transparent 28rem),
    radial-gradient(circle at 12% 72%, rgba(142, 223, 255, 0.12), transparent 24rem);
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.84) 100%);
  pointer-events: none;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 24px;
  right: 24px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 12px 14px 12px 20px;
  border: 1px solid rgba(248, 248, 244, 0.1);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(10, 10, 9, 0.68);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.brand,
.nav,
.header-actions,
.hero-actions,
.marquee,
.form-row,
.toggle-row,
.panel-head {
  display: flex;
  align-items: center;
}

.brand {
  gap: 8px;
  width: max-content;
  font-weight: 800;
}

.brand span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  gap: 30px;
  justify-content: center;
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.header-actions {
  gap: 10px;
  justify-content: flex-end;
}

.account-chip {
  display: none;
  min-width: 170px;
  padding: 8px 12px;
  border: 1px solid rgba(248, 248, 244, 0.22);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.42);
  backdrop-filter: blur(14px);
  line-height: 1.15;
}

body.is-authed .account-chip {
  display: grid;
}

.account-chip span {
  max-width: 180px;
  overflow: hidden;
  color: var(--paper);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip strong {
  color: var(--acid);
  font-size: 11px;
  text-transform: uppercase;
}

.quiet-btn,
.pill-btn,
.line-link,
.google-btn,
.close-btn,
.toggle,
.text-btn {
  border: 0;
  cursor: pointer;
}

.quiet-btn {
  padding: 0;
  color: var(--paper);
  background: transparent;
  font-weight: 800;
  transition: color 160ms ease, transform 160ms ease;
}

.quiet-btn:hover {
  color: var(--acid);
  transform: translateY(-1px);
}

.signout-btn {
  display: none;
}

body.is-authed .signout-btn {
  display: inline;
}

body.is-authed [data-open-auth] {
  display: none;
}

.pill-btn,
.line-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.pill-btn {
  padding: 0 22px;
}

.pill-btn.light {
  color: #050505;
  background: linear-gradient(135deg, var(--paper), #dff7a5);
}

.pill-btn.dark {
  color: var(--paper);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.pill-btn.full {
  width: 100%;
}

.line-link {
  min-height: 36px;
  color: var(--paper);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  transition: color 160ms ease, transform 160ms ease;
}

.pill-btn:hover,
.line-link:hover,
.google-btn:hover,
.toggle:hover {
  transform: translateY(-3px) scale(1.02);
}

.pill-btn:hover {
  box-shadow: 0 18px 42px rgba(199, 255, 69, 0.2);
}

.pill-btn:active,
.mini-plan:active {
  transform: translateY(0) scale(0.99);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 130px 48px 64px;
}

.hero-scene {
  position: absolute;
  inset: 8vh 0 0 42vw;
  opacity: 0.96;
  filter: saturate(0.9) contrast(1.06);
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.kicker {
  margin: 0 0 18px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(58px, 10vw, 142px);
  line-height: 0.86;
  letter-spacing: 0;
  font-weight: 500;
}

h1 span {
  display: block;
  margin-left: clamp(0px, 12vw, 180px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  font-size: 25px;
  letter-spacing: 0;
}

.hero-line {
  max-width: 520px;
  margin-left: 0;
  color: var(--paper-2);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  justify-content: flex-start;
  gap: 18px;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
  margin-top: 34px;
}

.hero-proof span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.hero-proof strong {
  color: var(--paper);
}

.marquee {
  overflow: hidden;
  min-height: 76px;
  gap: 28px;
  padding: 0 32px;
  border-block: 1px solid var(--line);
  white-space: nowrap;
}

.marquee span {
  color: var(--paper-2);
  font-size: clamp(18px, 3vw, 36px);
  font-weight: 500;
}

.pipeline,
.studio,
.plans,
.checkout {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}

.process-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.process-list article {
  display: grid;
  grid-template-columns: 90px 0.42fr 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, padding-inline 180ms ease;
}

.process-list article:hover {
  padding-inline: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.process-list span,
.access-plan .plan-name,
.panel-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.process-list p,
.access-plan p,
.drop-inner p,
.status-copy,
.modal-copy {
  color: var(--muted);
  line-height: 1.7;
}

.studio {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1240px) / 2));
  background:
    radial-gradient(circle at 10% 20%, rgba(199, 255, 69, 0.22), transparent 24rem),
    linear-gradient(135deg, #f8f8f4 0%, #e6eadf 100%);
  color: #050505;
}

.studio .kicker {
  color: #305e00;
}

.studio-intro {
  max-width: 980px;
  margin-bottom: 44px;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: stretch;
}

.dropzone,
.settings-panel,
.access-plan,
.checkout-form,
.modal-card {
  border-radius: var(--radius);
}

.dropzone {
  position: relative;
  display: grid;
  min-height: 520px;
  padding: 24px;
  border: 1px dashed rgba(5, 5, 5, 0.36);
  background:
    radial-gradient(circle at 84% 14%, rgba(199, 255, 69, 0.34), transparent 16rem),
    linear-gradient(135deg, rgba(5, 5, 5, 0.08), transparent),
    #eeeee4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38), 0 28px 80px rgba(5, 5, 5, 0.12);
}

.drop-inner {
  display: grid;
  place-items: center;
  align-self: center;
  text-align: center;
}

.drop-symbol {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--paper);
  background: linear-gradient(135deg, #050505, #273400);
  font-size: 44px;
  font-weight: 300;
}

.download-card {
  border-style: solid;
}

.download-note {
  align-self: end;
  margin: 24px 0 0;
  color: #66665f;
  font-weight: 900;
}

.app-feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-feature-list li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  line-height: 1.45;
}

.file-list {
  display: grid;
  gap: 10px;
  align-self: end;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(5, 5, 5, 0.12);
  color: #050505;
  font-weight: 800;
}

.file-list span {
  color: #66665f;
  font-size: 13px;
  font-weight: 700;
}

.settings-panel {
  display: grid;
  gap: 22px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(199, 255, 69, 0.1), transparent 34%),
    #050505;
  color: var(--paper);
  box-shadow: 0 28px 80px rgba(5, 5, 5, 0.16);
}

.panel-head {
  justify-content: space-between;
}

label {
  display: grid;
  gap: 10px;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 14px;
  outline: none;
}

input:focus {
  border-color: var(--acid);
}

input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--acid);
}

output {
  color: var(--muted);
  font-weight: 800;
}

.toggle-row {
  gap: 8px;
}

.toggle {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
  color: var(--paper);
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 900;
}

.toggle.active {
  color: #050505;
  background: var(--acid);
}

.status-copy {
  min-height: 26px;
  margin: 0;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.access-plan {
  display: grid;
  min-height: 360px;
  align-content: space-between;
  gap: 30px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.access-plan:hover,
.dropzone:hover,
.settings-panel:hover,
.mini-plan:hover {
  border-color: rgba(199, 255, 69, 0.6);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
  transform: translateY(-4px);
}

.access-plan.pro {
  color: #050505;
  background: var(--paper);
}

.access-plan.pro p {
  color: #383832;
}

.price {
  margin: 8px 0 0;
  color: inherit;
  font-size: clamp(64px, 9vw, 116px);
  line-height: 0.9;
  font-weight: 500;
}

.price span {
  font-size: 16px;
  font-weight: 900;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 34px;
  align-items: start;
}

.checkout-copy {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-form,
.modal-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.form-row {
  gap: 12px;
}

.form-message {
  min-height: 23px;
  margin: 0;
  color: var(--acid);
  font-weight: 900;
}

.plan-benefits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.plan-benefits li::before,
.app-feature-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--acid);
}

.trial-link {
  min-height: 34px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.checkout-summary,
.payment-methods,
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-summary {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 12%, rgba(199, 255, 69, 0.18), transparent 12rem),
    rgba(255, 255, 255, 0.06);
}

.checkout-summary span,
.payment-methods span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--paper);
  font-size: 22px;
}

.checkout-summary p {
  margin: 0;
  color: var(--paper);
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
}

.checkout-summary p span {
  color: var(--muted);
  font-size: 13px;
}

.payment-methods {
  flex-wrap: wrap;
}

.payment-methods span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.payment-methods span:hover {
  color: var(--paper);
  border-color: rgba(199, 255, 69, 0.5);
  background: rgba(199, 255, 69, 0.08);
}

.trust-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.trust-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.trust-row span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--acid);
}

.auth-modal {
  width: min(440px, calc(100% - 28px));
  border: 0;
  padding: 0;
  color: var(--paper);
  background: transparent;
}

.plan-modal {
  width: min(760px, calc(100% - 28px));
  border: 0;
  padding: 0;
  color: var(--paper);
  background: transparent;
}

.auth-modal::backdrop,
.plan-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.auth-modal[open],
.plan-modal[open] {
  animation: modalIn 180ms ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #0c0c0b;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.45);
}

.modal-card h2 {
  font-size: 34px;
  line-height: 1;
}

.plan-modal-card h2 {
  font-size: clamp(34px, 6vw, 58px);
}

.mini-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-plan {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mini-plan strong {
  font-size: 38px;
}

.mini-plan small {
  color: var(--muted);
  line-height: 1.5;
}

.pro-mini {
  color: #050505;
  background: var(--paper);
}

.pro-mini small {
  color: #4b4b45;
}

.confirm-field {
  display: none;
}

.auth-modal[data-mode="create"] .confirm-field {
  display: grid;
}

.text-btn {
  min-height: 32px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-modal[data-mode="create"] #resetPasswordBtn {
  display: none;
}

.auth-switch {
  display: inline-flex;
  justify-content: center;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.close-btn:hover {
  color: #050505;
  background: var(--acid);
  transform: rotate(90deg) scale(1.04);
}

.google-btn {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  background: transparent;
  font-weight: 900;
}

.google-btn span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #050505;
  background: var(--paper);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
    left: 14px;
    right: 14px;
    padding: 12px 14px;
  }

  .nav {
    display: none;
  }

  .hero {
    align-items: end;
  }

  .hero-scene {
    inset: 5vh -12vw 34vh 18vw;
    opacity: 0.78;
  }

  .hero-line,
  .hero-actions {
    margin-left: 0;
    justify-content: flex-start;
  }

  .section-title,
  .studio-grid,
  .checkout {
    grid-template-columns: 1fr;
  }

  .process-list article {
    grid-template-columns: 60px 1fr;
  }

  .process-list p {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
  }

  .brand span:last-child,
  .quiet-btn {
    display: none;
  }

  .pill-btn {
    min-height: 40px;
    padding-inline: 16px;
  }

  .hero {
    min-height: 820px;
    padding-inline: 20px;
    padding-top: 118px;
  }

  h1 {
    font-size: clamp(56px, 18vw, 88px);
  }

  h1 span {
    margin-left: 0;
  }

  .hero-scene {
    inset: 9vh -54vw 38vh 4vw;
  }

  .hero-actions,
  .form-row,
  .toggle-row {
    flex-direction: column;
    align-items: stretch;
  }

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

  .account-chip {
    min-width: 0;
    max-width: 160px;
  }

  .mini-plan-grid {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    align-items: stretch;
    flex-direction: column;
  }
}
