* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #eef2ff;
  --bg-soft: #f8fafc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --primary: #0f172a;
  --primary-2: #334155;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --success: #0f766e;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 48%, #e2e8f0 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.22;
  pointer-events: none;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.65;
}

.orb-one {
  width: 260px;
  height: 260px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0));
}

.orb-two {
  width: 320px;
  height: 320px;
  top: 18%;
  right: -140px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22), rgba(6, 182, 212, 0));
}

.orb-three {
  width: 200px;
  height: 200px;
  bottom: 8%;
  left: 12%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0));
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 8px 4px;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 0.92rem;
}

.top-links a,
.footer-links a {
  color: var(--primary-2);
  font-weight: 600;
}

.top-links a:hover,
.footer-links a:hover,
.button-link:hover {
  color: var(--accent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand span {
  display: block;
  font-size: 0.82rem;
  color: var(--soft);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.topbar-note {
  color: var(--soft);
  font-size: 0.95rem;
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero,
.card,
.info-grid article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card {
  order: 1;
}

.hero {
  order: 2;
}

.info-grid {
  order: 3;
}

.faq {
  order: 4;
}

.hero {
  padding: 26px 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.76));
}

.eyebrow,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.card h2 {
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  margin-bottom: 14px;
}

.subtitle {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.7vw, 1.12rem);
  line-height: 1.7;
}

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

.hero-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--primary-2);
  font-size: 0.92rem;
  font-weight: 600;
}

.trust-row {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.trust-row div {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.trust-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.trust-row span {
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.card-header {
  margin-bottom: 18px;
}

.card h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
}

form {
  display: grid;
  gap: 16px;
}

.drop-zone {
  position: relative;
  padding: 18px;
  border-radius: 24px;
  border: 1.5px dashed rgba(37, 99, 235, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.drop-zone:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.08);
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(224, 242, 254, 0.88));
}

.drop-zone-content {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.12));
  color: var(--accent);
}

.icon svg {
  width: 38px;
  height: 38px;
}

#dropText {
  color: var(--primary-2);
  font-size: 1rem;
  line-height: 1.5;
}

.browse {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.file-info {
  min-height: 1.4em;
  color: var(--success);
  font-size: 0.92rem;
  font-weight: 700;
}

button {
  width: 100%;
  padding: 0.98rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.22);
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.status {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 16px 0;
  color: var(--accent);
  font-weight: 700;
}

.status-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.status-copy p {
  font-size: 0.96rem;
}

.status-copy strong {
  min-width: 3.5ch;
  text-align: right;
  font-size: 0.98rem;
  color: var(--primary);
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 180ms ease;
}

.spinner {
  width: 1.15rem;
  height: 1.15rem;
  border: 3px solid rgba(37, 99, 235, 0.18);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.error {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(254, 242, 242, 0.92);
  border: 1px solid rgba(239, 68, 68, 0.16);
  color: #b91c1c;
  font-weight: 600;
}

.hidden {
  display: none;
}

.info-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.info-grid article {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.info-grid h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.info-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 4px 6px;
  color: var(--soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.info-grid,
.faq,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}

.content-page {
  width: min(860px, calc(100% - 24px));
}

.content-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.content-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.content-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.content-copy p + p {
  margin-top: 14px;
}

.content-copy a {
  color: var(--accent);
  font-weight: 700;
}

.page-actions {
  margin-top: 20px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--primary);
  font-weight: 700;
}

.faq {
  margin-top: 18px;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.faq-head {
  margin-bottom: 16px;
}

.faq-head h2 {
  margin-top: 6px;
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  letter-spacing: -0.04em;
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.faq-grid article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.faq-grid h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.faq-grid p {
  color: var(--muted);
  line-height: 1.65;
}

@media (min-width: 860px) {
  .layout {
    display: grid;
  }

  .card,
  .hero,
  .info-grid,
  .faq {
    order: initial;
  }

  .page-shell {
    padding: 24px 0 40px;
  }

  .layout {
    grid-template-columns: 1.15fr 0.95fr;
    align-items: start;
    gap: 24px;
  }

  .hero {
    padding: 38px;
    min-height: 100%;
  }

  .card {
    padding: 30px;
  }

  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1120px);
    padding-top: 8px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 10px;
    gap: 8px;
  }

  .top-links {
    justify-content: flex-start;
    gap: 10px;
    font-size: 0.85rem;
  }

  .hero,
  .card {
    border-radius: 24px;
  }

  .hero {
    padding: 18px 16px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    margin-bottom: 10px;
  }

  .subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-pills {
    display: none;
  }

  .trust-row {
    gap: 10px;
    margin-top: 14px;
  }

  .trust-row div {
    padding: 12px 13px;
  }

  .card {
    padding: 16px;
  }

  .card-header {
    margin-bottom: 12px;
  }

  .card-kicker,
  .eyebrow {
    margin-bottom: 10px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .card h2 {
    font-size: 1.22rem;
  }

  form {
    gap: 12px;
  }

  .drop-zone {
    padding: 12px;
    border-radius: 20px;
  }

  .icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .icon svg {
    width: 28px;
    height: 28px;
  }

  #dropText {
    font-size: 0.95rem;
  }

  button {
    padding: 0.86rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .status {
    padding-top: 8px;
  }

  .status-copy p,
  .status-copy strong {
    font-size: 0.88rem;
  }

  .info-grid,
  .faq {
    margin-top: 14px;
  }

  .info-grid article,
  .faq {
    padding: 16px;
  }

  .faq-grid {
    gap: 10px;
  }

  .faq-grid article {
    padding: 14px;
  }

  .content-card {
    padding: 18px;
  }

  .content-page {
    width: min(100% - 18px, 860px);
  }

  .hero h1 {
    max-width: 100%;
  }
}
