:root {
  color-scheme: dark;
  --bg: #07101f;
  --bg-deep: #040916;
  --panel: rgba(15, 27, 51, 0.78);
  --panel-strong: rgba(13, 24, 45, 0.94);
  --line: rgba(151, 177, 225, 0.18);
  --line-strong: rgba(99, 142, 255, 0.52);
  --text: #f4f7ff;
  --muted: #9ba9c4;
  --soft: #c8d2e6;
  --blue: #2f6dff;
  --blue-bright: #6d8fff;
  --indigo: #7762ff;
  --success: #63d6b1;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  font-family: Tahoma, Inter, Arial, system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef3ff;
  --bg-deep: #dce6fb;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --line: rgba(36, 62, 112, 0.17);
  --line-strong: rgba(47, 109, 255, 0.45);
  --text: #0d1c37;
  --muted: #5f6f8a;
  --soft: #334563;
  --shadow: 0 24px 70px rgba(50, 75, 120, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(47, 109, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 84% 38%, rgba(119, 98, 255, 0.13), transparent 32rem),
    linear-gradient(148deg, var(--bg-deep), var(--bg) 56%, var(--bg-deep));
}

button, input { font: inherit; }

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  color: white;
  background: #1f5eff;
}

.skip-link:focus { transform: translateY(0); }

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(138, 164, 218, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 164, 218, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.site-header,
main,
footer {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(120, 153, 255, 0.7);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  box-shadow: 0 0 30px rgba(71, 109, 255, 0.35);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

nav a { text-decoration: none; }
nav a:hover { color: var(--text); }

.nav-sign-in {
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.theme-toggle {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--soft);
  background: var(--panel);
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.72fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  min-height: 650px;
  padding: 5.5rem 0 4rem;
}

.eyebrow,
.step-label {
  margin: 0 0 1.4rem;
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 0.65rem; }
.eyebrow span { width: 28px; height: 1px; background: currentColor; }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.1rem, 6.2vw, 6rem);
  line-height: 0.97;
  letter-spacing: -0.06em;
}

h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(94deg, #89adff, #a99aff 74%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-summary {
  max-width: 610px;
  margin: 2rem 0 1.9rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.72;
}

.hero-proof {
  display: flex;
  gap: 1.4rem;
  margin: 0 0 2rem;
  color: var(--soft);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-proof span { display: inline-flex; gap: 0.42rem; }
.hero-proof b { color: var(--blue-bright); font-size: 0.68rem; }

.text-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--soft);
  font-size: 0.86rem;
  text-underline-offset: 0.3rem;
}

.start-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.card-heading .step-label { margin-bottom: 0.45rem; }
h2 { margin: 0; font-size: 1.28rem; letter-spacing: -0.025em; }

.secure-note {
  padding: 0.36rem 0.55rem;
  border: 1px solid rgba(99, 214, 177, 0.25);
  border-radius: 999px;
  color: var(--success);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.google-button,
.primary-button {
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.google-dot {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #27427a;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.1rem 0;
  color: var(--muted);
  font-size: 0.68rem;
}

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

.drop-zone {
  display: grid;
  min-height: 184px;
  padding: 1.5rem;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  text-align: center;
  background: rgba(34, 66, 129, 0.12);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: #87a6ff;
  background: rgba(47, 109, 255, 0.18);
  outline: none;
  transform: translateY(-2px);
}

.upload-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(129, 160, 255, 0.42);
  border-radius: 10px;
}

.upload-icon::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  top: 10px;
  left: 12px;
  border-top: 2px solid var(--blue-bright);
  border-left: 2px solid var(--blue-bright);
  transform: rotate(45deg);
}

.upload-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 17px;
  top: 10px;
  left: 17px;
  background: var(--blue-bright);
}

.drop-zone strong { font-size: 0.94rem; }
.drop-zone small { margin-top: 0.34rem; color: var(--muted); font-size: 0.7rem; }

.file-input {
  width: min(100%, 250px);
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.file-input::file-selector-button {
  margin-right: 0.7rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel-strong);
  cursor: pointer;
}

.file-choice {
  margin-top: 0.8rem;
  color: var(--blue-bright);
  font-size: 0.72rem;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-inline: 1.1rem;
  border: 0;
  color: #fff;
  background: linear-gradient(100deg, #245eff, #4d74ff);
  box-shadow: 0 12px 28px rgba(35, 88, 255, 0.25);
}

.primary-button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.privacy-note,
.form-status {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.5;
  text-align: center;
}

.form-status { min-height: 1rem; color: var(--soft); }

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-row article {
  display: flex;
  min-height: 132px;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
}

.signal-row article + article { border-left: 1px solid var(--line); }
.signal-number { color: var(--blue-bright); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.05em; }
.signal-row strong,
.signal-row small { display: block; }
.signal-row strong { font-size: 0.82rem; }
.signal-row small { margin-top: 0.3rem; color: var(--muted); font-size: 0.67rem; line-height: 1.45; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(116, 151, 255, 0.62);
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 4rem; }
  .hero-copy { text-align: center; }
  .eyebrow,
  .hero-proof { justify-content: center; }
  .hero-summary { margin-inline: auto; }
  .signal-row { grid-template-columns: 1fr; }
  .signal-row article + article { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 70px; }
  nav { gap: 0.7rem; }
  nav { font-size: 0.7rem; }
  .brand > span:last-child { display: none; }
  .nav-sign-in { padding: 0.52rem 0.8rem; }
  .hero { padding: 3.4rem 0 2.8rem; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .hero-proof { gap: 0.7rem; flex-wrap: wrap; }
  .start-card { border-radius: 15px; }
  footer { gap: 1rem; flex-direction: column; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .start-card { background: var(--panel-strong); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
