:root {
  --bg: #ffffff;
  --ink: #050505;
  --muted: #6b6b6b;
  --line: #e7e7e7;
  --panel: #ffffff;
  --soft: #f6f6f6;
  --soft-2: #eeeeee;
  --danger: #8d1616;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(0,0,0,.055), transparent 28rem),
    linear-gradient(#fff, #fbfbfb 42rem, #fff);
  color: var(--ink);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 70px;
  padding: 14px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(20px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0;
}
.brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 8px 26px rgba(0,0,0,.16);
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #202020;
  font-size: 14px;
  font-weight: 750;
}
.nav a:hover,
.nav-cta {
  background: var(--ink);
  color: #fff !important;
}
.nav-separated {
  position: relative;
  margin-left: 10px;
}
.nav-separated::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 1px;
  height: 18px;
  background: var(--line);
  transform: translateY(-50%);
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(34px, 6vw, 92px);
  padding: 72px clamp(18px, 6vw, 96px);
  overflow: hidden;
}
.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(58px, 9vw, 138px);
  line-height: .86;
  letter-spacing: 0;
}
.lead {
  max-width: 660px;
  color: #2f2f2f;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0;
}
.hero-actions,
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.hero-facts span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #333;
  font-size: 13px;
  font-weight: 800;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
.btn.ghost:hover,
.btn.primary:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, #000 42%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 42%, transparent 72%);
}
.hero-logo {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  z-index: 2;
  filter: drop-shadow(0 26px 46px rgba(0,0,0,.26));
  animation: floatLogo 5.2s ease-in-out infinite;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 999px;
  animation: spin 16s linear infinite;
}
.orbit.one {
  width: 320px;
  height: 320px;
}
.orbit.two {
  width: 450px;
  height: 450px;
  animation-duration: 24s;
  animation-direction: reverse;
}
.orbit::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 11%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.motion-card {
  position: absolute;
  z-index: 3;
  width: min(86%, 350px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(0,0,0,.14);
}
.upload-card {
  left: 0;
  bottom: 46px;
  padding: 20px;
  animation: floatPanel 6s ease-in-out infinite;
}
.mini-card {
  right: 8px;
  top: 58px;
  width: 260px;
  padding: 16px;
  animation: floatPanel 6s ease-in-out infinite reverse;
}
.mini-card span,
.mini-card b {
  display: block;
}
.mini-card span { color: var(--muted); font-size: 13px; font-weight: 800; }
.mini-card b { margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}
.progress {
  height: 8px;
  background: var(--soft-2);
  margin: 22px 0;
  overflow: hidden;
  border-radius: 999px;
}
.progress span {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: var(--ink);
}
.progress.animated span {
  width: 0;
  animation: progressFill 1.8s cubic-bezier(.2,.8,.2,1) .35s forwards;
}
.transfer-lines {
  display: grid;
  gap: 7px;
  color: #3a3a3a;
  font-size: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.metrics div {
  padding: 26px clamp(18px, 5vw, 72px);
  border-right: 1px solid var(--line);
}
.metrics div:last-child { border-right: 0; }
.metrics b {
  display: block;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: 0;
}
.metrics span {
  color: var(--muted);
  font-weight: 750;
}

.band {
  padding: 78px clamp(18px, 6vw, 96px);
}
.dark-band {
  background: var(--ink);
  color: #fff;
}
.section-title {
  max-width: 780px;
  margin-bottom: 28px;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: 0;
  line-height: .95;
}
.features,
.pricing,
.stats-grid,
.method-grid,
.two-col,
.resource-grid {
  display: grid;
  gap: 16px;
}
.features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.features article,
.price-card,
.stat,
.panel,
.table-card,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 44px rgba(0,0,0,.045);
}
.features article {
  min-height: 170px;
  transition: transform .18s ease, border-color .18s ease;
}
.features article:hover,
.price-card:hover {
  transform: translateY(-3px);
  border-color: #cfcfcf;
}
.features b,
.price-card b {
  font-size: 18px;
}
.features p,
.price-card p,
.muted,
small {
  color: var(--muted);
}
.pricing {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dark-band .price-card {
  background: #111;
  border-color: #2b2b2b;
  color: #fff;
  box-shadow: none;
}
.dark-band .price-card p,
.dark-band .eyebrow {
  color: #b8b8b8;
}
.plan-name {
  display: block;
  font-weight: 950;
  font-size: 18px;
  margin-bottom: 12px;
}
.price-card strong {
  display: block;
  font-size: 34px;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.workspace {
  padding: 44px clamp(18px, 5vw, 72px) 80px;
}
.workspace.narrow {
  max-width: 860px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: 0;
}
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}
.stat span {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}
.stat b {
  font-size: 25px;
  letter-spacing: 0;
}
.table-card {
  padding: 0;
  overflow: hidden;
  margin-top: 16px;
}
.table-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.table .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.table .row:last-child { border-bottom: 0; }
.table .row.is-muted { opacity: .58; }
code {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #222;
  background: var(--soft);
  padding: 9px 10px;
  border-radius: 10px;
}
.empty {
  padding: 24px;
  color: var(--muted);
}
.mini {
  border: 1px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 13px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}
.mini.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.auth-layout {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 40px 18px;
}
.auth-card {
  width: min(100%, 480px);
}
.auth-card h1 {
  margin: 0 0 22px;
  font-size: 44px;
  letter-spacing: 0;
}
.form {
  display: grid;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 8px;
  font-weight: 850;
}
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}
input[type="file"] {
  padding: 11px;
}
.check-line {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}
.check-line input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
}
.check-line a,
.legal-doc a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-doc .panel {
  display: grid;
  gap: 12px;
  line-height: 1.65;
}
.legal-doc h2 {
  margin: 18px 0 0;
  font-size: 22px;
}
.legal-doc p {
  margin: 0;
}
.legal-doc ul {
  margin: 0;
  padding-left: 22px;
}
.legal-doc li {
  margin: 6px 0;
}
.split,
.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact { margin-top: 16px; }
.download-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  color: #333;
}
.method-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.method-card {
  width: 100%;
  min-height: 120px;
  text-align: left;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 22px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
  font: inherit;
}
.method-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}
.method-card b,
.method-card span {
  display: block;
}
.method-card b {
  font-size: 22px;
  margin-bottom: 12px;
}
.method-card span {
  color: var(--muted);
}
.price-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.price-editor small {
  display: block;
  margin-top: 6px;
}
.resource-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: end;
  margin: 18px 0;
}
.notice-text {
  margin: 8px 0 0;
  color: #333;
}
.error-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: 0;
}

.flash-wrap {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 100;
  display: grid;
  gap: 8px;
}
.flash {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,.14);
}
.flash.error {
  border-color: var(--danger);
  color: var(--danger);
}
.footer {
  border-top: 1px solid var(--line);
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal .62s cubic-bezier(.2,.8,.2,1) forwards;
}
.delay { animation-delay: .14s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}
@keyframes floatPanel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes progressFill {
  from { width: 0; }
  to { width: 72%; }
}

@media (max-width: 980px) {
  .hero,
  .features,
  .pricing,
  .stats-grid,
  .method-grid,
  .two-col,
  .price-editor,
  .resource-grid,
  .metrics {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-visual {
    min-height: 430px;
  }
  .mini-card {
    right: 0;
    top: 26px;
  }
  .upload-card {
    left: 0;
    bottom: 22px;
  }
  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .metrics div:last-child {
    border-bottom: 0;
  }
  .table .row {
    grid-template-columns: 1fr;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
