:root {
  --bg: #07111f;
  --bg-soft: #0b172b;
  --panel: rgba(10, 21, 39, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f6f8fb;
  --muted: rgba(246, 248, 251, 0.68);
  --accent: #89d8ff;
  --accent-2: #c7bcff;
  --success: #7cf0bb;
  --warning: #ffd479;
  --danger: #ff8c9d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(95, 104, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(104, 216, 255, 0.11), transparent 24%),
    linear-gradient(180deg, #040914 0%, #07111f 40%, #091429 100%);
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

code {
  font-size: 0.92em;
  color: var(--text);
}

.bg-grid,
.bg-spot {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.bg-grid {
  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: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 95%);
  opacity: 0.26;
}

.bg-spot {
  border-radius: 999px;
  filter: blur(100px);
}

.spot-a {
  inset: auto auto 62% -100px;
  width: 340px;
  height: 340px;
  background: rgba(116, 127, 255, 0.22);
}

.spot-b {
  inset: 50px -110px auto auto;
  width: 320px;
  height: 320px;
  background: rgba(121, 226, 255, 0.16);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar,
.modal-card {
  position: relative;
  background: rgba(10, 21, 39, 0.68);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-shell,
.form-card,
.status-card,
.panel,
.info-card,
.warning-card,
.feature-card,
.hero-panel {
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topbar {
  z-index: 2;
  margin-bottom: 28px;
  padding: 14px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  width: min(100%, 920px);
  padding: 8px 0 0;
  overflow: visible;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 38%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 216, 255, 0.12), transparent 72%);
  filter: blur(14px);
}

.hero-shell::after {
  content: none;
}

.hero-copy,
.hero-aside {
  position: relative;
  z-index: 1;
}

.eyebrow,
.mini-badge,
.section-kicker,
.info-label,
.hero-metric-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow,
.mini-badge,
.info-label,
.hero-metric-label {
  color: var(--accent);
}

.section-kicker {
  color: rgba(246, 248, 251, 0.7);
  margin-bottom: 12px;
}

.hero-copy h1 {
  max-width: 10ch;
  margin: 18px 0 18px;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.hero-text,
.status-text,
.modal-text,
.form-head p,
.form-helper,
.warning-card p,
.info-card p,
.feature-card p,
.hero-panel p,
.empty-state,
.footer-note p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 56ch;
  font-size: 1.02rem;
  margin: 0;
}

.hero-actions,
.action-row,
.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 32px;
}

.hero-button {
  min-width: 190px;
}

.primary-button,
.secondary-button,
.soft-button {
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.primary-button {
  color: #08111f;
  background: linear-gradient(135deg, #8edcff 0%, #cbbcff 100%);
}

.primary-button:hover,
.secondary-button:hover,
.soft-button:hover {
  transform: translateY(-1px);
}

.secondary-button,
.soft-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.secondary-button:hover,
.soft-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

button.primary-button,
button.secondary-button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.hero-metrics {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hero-metric,
.metric-card,
.table-wrap,
.downloads,
.stack-item,
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-metric {
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
}

.hero-metric strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1rem;
}

.hero-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-panel {
  height: 100%;
  border-radius: 28px;
  padding: 24px;
}

.hero-panel h2 {
  margin: 18px 0 10px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.stack-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.stack-item {
  padding: 16px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.stack-item strong {
  display: block;
  margin-bottom: 4px;
}

.stack-item p {
  margin: 0;
}

.stack-step {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #08111f;
  font-weight: 800;
  background: linear-gradient(135deg, #8edcff, #cbbcff);
}

.hero-pills {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
}

.section-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 42px;
  align-items: start;
}

.form-card,
.status-card,
.panel,
.info-card,
.warning-card,
.feature-card {
  border-radius: 0;
}

.form-card {
  padding: 0;
}

.form-head h2,
.status-head h2,
.panel-head h2 {
  margin: 0;
  font-size: 1.56rem;
  letter-spacing: -0.03em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field span {
  font-size: 0.94rem;
  font-weight: 600;
}

.field + .field {
  margin-top: 16px;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 16px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field input::placeholder {
  color: rgba(246, 248, 251, 0.34);
}

.field input:focus,
.field select:focus {
  border-color: rgba(137, 216, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(137, 216, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.inline-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
}

.action-row {
  margin-top: 22px;
}

.form-helper {
  margin: 16px 0 0;
  font-size: 0.94rem;
}

.side-stack {
  display: grid;
  gap: 28px;
  padding-top: 8px;
}

.compact {
  padding: 0 0 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card strong,
.feature-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1.15rem;
}

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

.feature-list li {
  padding-left: 18px;
  position: relative;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.warning-card {
  background: transparent;
}

.warning-card strong:first-child {
  display: block;
  margin-bottom: 12px;
}

.warning-signature {
  margin-top: 16px;
}

.status-card,
.panel {
  margin-top: 48px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-head,
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  font-weight: 700;
}

.badge.idle {
  color: var(--warning);
}

.badge.running {
  color: var(--accent);
}

.badge.success {
  color: var(--success);
}

.badge.error {
  color: var(--danger);
}

.metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 16px;
  border-radius: 20px;
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.83rem;
  color: var(--muted);
}

.metric-value {
  display: block;
  font-size: 1.18rem;
  word-break: break-word;
}

.table-wrap,
.downloads {
  margin-top: 14px;
  min-height: 84px;
  padding: 16px;
  border-radius: 20px;
  overflow: auto;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.92rem;
}

.preview-table th,
.preview-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.preview-table th {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.preview-table td {
  color: rgba(246, 248, 251, 0.88);
}

.downloads {
  display: grid;
  gap: 10px;
}

.download-link {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.download-link:hover {
  background: rgba(255, 255, 255, 0.07);
}

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

.hidden {
  display: none !important;
}

.modal-card {
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 28px;
  text-align: center;
}

.modal-card h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

.progress-shell {
  width: 100%;
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.progress-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.modal-actions {
  margin-top: 22px;
  justify-content: center;
}

.footer-note {
  margin-top: 42px;
  padding: 20px 0 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero-shell,
  .section-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .side-stack {
    padding-top: 0;
  }

  .compact {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
  }
}

@media (max-width: 820px) {
  .topbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .nav-links {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .topbar,
  .modal-card {
    padding: 18px;
  }

  .hero-shell,
  .form-card,
  .status-card,
  .panel {
    padding: 0;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 2.8rem;
  }

  .hero-actions,
  .action-row,
  .modal-actions {
    flex-direction: column;
  }

  .hero-button,
  .primary-button,
  .secondary-button,
  .soft-button {
    width: 100%;
  }

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

  .status-head,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-table {
    min-width: 640px;
  }
}


/* --- Landing refresh inspired by floating dark SaaS heroes --- */
.page {
  width: min(1220px, calc(100% - 40px));
  padding-top: 14px;
}

.topbar {
  margin-bottom: 40px;
  padding: 16px 22px;
  background: rgba(8, 17, 31, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.hero-shell {
  width: 100%;
  padding: 22px 0 0;
  justify-items: center;
}

.hero-shell::before {
  inset: 34px auto auto 50%;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(108, 165, 255, 0.2), rgba(99, 219, 255, 0.08) 35%, transparent 72%);
  filter: blur(14px);
}

.hero-copy-centered {
  max-width: 920px;
  text-align: center;
}

.hero-copy-centered .eyebrow {
  margin: 0 auto;
}

.hero-copy-centered h1 {
  max-width: 11ch;
  margin: 22px auto 18px;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  line-height: 0.9;
}

.hero-copy-centered .hero-text {
  margin: 0 auto;
  max-width: 64ch;
  font-size: 1.07rem;
}

.hero-actions {
  justify-content: center;
  margin-top: 34px;
}

.hero-button {
  min-width: 208px;
}

.hero-trust {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(246, 248, 251, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-stage {
  position: relative;
  width: min(100%, 1080px);
  min-height: 250px;
  margin-top: 34px;
}

.hero-stage-glow {
  position: absolute;
  inset: 34px 26% auto;
  height: 170px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(194, 113, 255, 0.26), transparent 42%),
    radial-gradient(circle at center, rgba(71, 181, 255, 0.22), transparent 65%);
  filter: blur(24px);
  opacity: 0.95;
}

.hero-stage::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.hero-float {
  position: absolute;
  width: min(290px, 100%);
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(17, 28, 49, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-float strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.hero-float p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.hero-float-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-float--top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.hero-float--left {
  left: 6%;
  bottom: 8px;
}

.hero-float--right {
  right: 6%;
  bottom: 18px;
}

.hero-metrics {
  width: 100%;
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 250px));
  justify-content: center;
  gap: 18px;
}

.hero-metric {
  min-height: 170px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-metric strong {
  margin-top: 14px;
}

.section-grid {
  margin-top: 74px;
  gap: 56px;
}

.form-card {
  max-width: 760px;
}

.form-head p,
.form-helper {
  max-width: 60ch;
}

.action-row {
  align-items: center;
}

.side-stack {
  gap: 22px;
  padding-top: 10px;
}

.compact {
  padding: 0;
  border-left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.info-card strong,
.warning-card strong:first-child {
  font-size: 1.2rem;
}

.status-card,
.panel {
  margin-top: 62px;
  padding-top: 26px;
}

.footer-note {
  margin-top: 56px;
  padding-top: 24px;
}

@media (max-width: 1080px) {
  .hero-stage {
    min-height: 430px;
  }

  .hero-float--left,
  .hero-float--right {
    bottom: 0;
  }

  .hero-float--left {
    left: 0;
  }

  .hero-float--right {
    right: 0;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-grid {
    gap: 44px;
  }
}

@media (max-width: 820px) {
  .hero-copy-centered h1 {
    max-width: 12ch;
  }

  .hero-stage {
    min-height: auto;
    margin-top: 26px;
    display: grid;
    gap: 14px;
  }

  .hero-stage-glow,
  .hero-stage::after {
    display: none;
  }

  .hero-float {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    text-align: left;
  }

  .hero-float--top {
    text-align: center;
  }

  .hero-metrics {
    margin-top: 24px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1220px);
  }

  .topbar {
    margin-bottom: 28px;
  }

  .hero-copy-centered h1 {
    font-size: 2.95rem;
  }

  .hero-trust {
    justify-content: flex-start;
  }

  .hero-trust span {
    width: 100%;
    justify-content: center;
  }

  .hero-stage {
    gap: 12px;
  }

  .hero-float,
  .hero-metric {
    border-radius: 20px;
  }

  .action-row {
    align-items: stretch;
  }
}
