:root {
  --brand-blue: #0867d8;
  --brand-blue-dark: #0b255a;
  --brand-cyan: #21b7ef;
  --brand-pink: #e8008f;
  --brand-purple: #7548f5;
  --text: #111827;
  --muted: #5f6b7e;
  --surface: #ffffff;
  --surface-soft: #f4f9ff;
  --line: rgba(28, 111, 218, 0.18);
  --shadow: 0 24px 60px rgba(16, 72, 144, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: #ffffff;
  overflow-x: hidden;
}

button,
input,
label {
  font: inherit;
}

svg {
  display: block;
}

.scanner-page {
  min-height: 100vh;
}

.hero-section {
  position: relative;
  isolation: isolate;
  padding: 70px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(91, 178, 255, 0.22), transparent 28%),
    radial-gradient(circle at 15% 35%, rgba(97, 181, 255, 0.15), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 52%, #f5f9ff 100%);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(30, 117, 217, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 117, 217, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: -1;
  animation: floatOrb 10s ease-in-out infinite;
}

.hero-orb-one {
  width: 260px;
  height: 260px;
  background: rgba(15, 150, 255, 0.11);
  top: 120px;
  left: -80px;
}

.hero-orb-two {
  width: 320px;
  height: 320px;
  background: rgba(232, 0, 143, 0.07);
  top: 90px;
  right: -130px;
  animation-delay: -3s;
}

.hero-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(31, 111, 220, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(27, 105, 209, 0.08);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-purple));
  box-shadow: 0 0 0 5px rgba(33, 183, 239, 0.12);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue) 55%, var(--brand-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 540px;
  margin: 0 0 26px;
  color: #4f596b;
  font-size: 18px;
  line-height: 1.7;
}

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

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #25314b;
}

.check-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 13px;
  background: linear-gradient(145deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 6px 14px rgba(17, 113, 218, 0.24);
}

.hero-visual {
  position: relative;
  min-height: 455px;
  display: grid;
  place-items: center;
}

.visual-glow {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 151, 255, 0.24), rgba(38, 151, 255, 0) 70%);
  filter: blur(3px);
}

.document-device {
  position: relative;
  width: min(350px, 72vw);
  aspect-ratio: 0.78;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(155deg, #0d234e 0%, #153f7f 52%, #071836 100%);
  border: 6px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 42px 70px rgba(7, 33, 78, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: perspective(900px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.hero-visual:hover .document-device {
  transform: perspective(900px) rotateY(-3deg) rotateX(0deg) translateY(-5px);
  box-shadow: 0 50px 80px rgba(7, 33, 78, 0.3);
}

.device-topbar {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 70px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
}

.policy-paper {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 42px 30px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(100, 195, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #ffffff, #f4f9ff);
}

.policy-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.6) 48%, transparent 60%);
  transform: translateX(-130%);
  animation: paperShine 5.5s ease-in-out infinite;
}

.paper-heading {
  margin-bottom: 22px;
  color: #17458f;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  line-height: 1.05;
}

.paper-heading strong {
  font-size: 29px;
}

.paper-shield {
  width: 46px;
  height: 46px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--brand-blue);
  background: #eaf5ff;
}

.paper-shield svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.paper-line {
  display: block;
  width: 76%;
  height: 7px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c5d9f1, #e7f1fb);
}

.line-long { width: 88%; }
.line-mid { width: 64%; }
.line-short { width: 44%; }

.signature {
  position: absolute;
  right: 30px;
  bottom: 28px;
  color: #2f6fc2;
  font-family: cursive;
  font-size: 15px;
  transform: rotate(-8deg);
}

.ai-chip {
  position: absolute;
  left: -38px;
  top: 48%;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #ffffff;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(145deg, var(--brand-blue), var(--brand-purple));
  border: 7px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 22px 40px rgba(70, 75, 215, 0.33);
}

.scan-status {
  position: absolute;
  right: 8%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(32, 121, 217, 0.14);
  box-shadow: 0 18px 45px rgba(15, 64, 132, 0.16);
  color: #354055;
  font-size: 12px;
  animation: floatCard 4.8s ease-in-out infinite;
}

.status-check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #20b26b;
  font-weight: 800;
}

.floating-icon {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(24, 109, 213, 0.12);
  box-shadow: 0 18px 40px rgba(24, 85, 156, 0.13);
  animation: floatCard 5s ease-in-out infinite;
}

.floating-icon svg {
  width: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-icon-brain {
  width: 72px;
  height: 72px;
  top: 13%;
  left: 9%;
  color: var(--brand-blue);
}

.floating-icon-brain svg {
  width: 42px;
}

.floating-icon-shield {
  width: 66px;
  height: 66px;
  top: 17%;
  right: 5%;
  color: #2572dc;
  animation-delay: -1.5s;
}

.floating-icon-doc {
  width: 58px;
  height: 58px;
  right: 7%;
  bottom: 11%;
  color: #206eda;
  animation-delay: -2.8s;
}

.upload-shell {
  position: relative;
  margin-top: -14px;
}

.upload-shell::before {
  content: "";
  position: absolute;
  inset: -20px 12%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(48, 132, 238, 0.12);
  filter: blur(45px);
}

.upload-card {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(24, 111, 219, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.drop-zone {
  position: relative;
  min-height: 330px;
  padding: 48px 24px 26px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  border: 2px dashed rgba(23, 110, 221, 0.26);
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% 0%, rgba(120, 82, 245, 0.09), transparent 35%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.96), rgba(247, 251, 255, 0.98));
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: rgba(69, 94, 235, 0.6);
  transform: translateY(-2px);
  background:
    radial-gradient(circle at 50% 0%, rgba(120, 82, 245, 0.13), transparent 35%),
    linear-gradient(180deg, #ffffff, #f4f9ff);
}

.upload-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, var(--brand-blue), var(--brand-purple));
  box-shadow: 0 18px 35px rgba(68, 74, 224, 0.28);
  transition: transform 0.25s ease;
}

.drop-zone:hover .upload-icon {
  transform: translateY(-3px) scale(1.03);
}

.upload-icon svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-title {
  color: #1f2b42;
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 700;
  line-height: 1.35;
}

.upload-title strong {
  display: block;
  color: var(--brand-blue);
  font-weight: 800;
}

.upload-meta,
.file-note {
  color: #7b879b;
  font-size: 13px;
}

.upload-meta {
  margin-top: 10px;
}

.browse-button {
  min-width: 230px;
  margin: 22px 0 10px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand-blue), #2448d8);
  box-shadow: 0 14px 28px rgba(20, 91, 204, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.browse-button:hover,
.browse-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(20, 91, 204, 0.3);
}

.browse-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.file-note.is-error {
  color: #c6284f;
  font-weight: 700;
}

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

.info-card {
  min-height: 155px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-radius: 18px;
  border: 1px solid rgba(24, 111, 219, 0.17);
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(20, 74, 142, 0.09);
}

.info-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  border-radius: 18px;
}

.info-icon-blue {
  color: #146edb;
  background: #eaf5ff;
}

.info-icon-pink {
  color: var(--brand-pink);
  background: #fff0f8;
}

.info-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-card h2 {
  margin: 1px 0 8px;
  color: #1f2d49;
  font-size: 16px;
}

.info-card p {
  margin: 0;
  color: #657086;
  font-size: 13px;
  line-height: 1.7;
}

.security-line {
  margin: 16px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7a8798;
  font-size: 12px;
}

.security-line svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.results-section {
  margin-top: 30px;
  padding: 30px 18px 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(20, 106, 211, 0.13);
  box-shadow: 0 18px 50px rgba(16, 72, 144, 0.09);
}

.results-heading {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #101c32;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
}

.results-heading strong {
  color: var(--brand-blue);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.result-card {
  position: relative;
  padding: 10px 24px 24px;
  text-align: center;
  transition: transform 0.25s ease;
}

.result-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 0;
  width: 1px;
  height: calc(100% - 10px);
  background: linear-gradient(to bottom, transparent, rgba(18, 106, 216, 0.18), transparent);
}

.result-card:hover {
  transform: translateY(-4px);
}

.result-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(145deg, #1b8ae8, #3552e2);
  box-shadow: 0 14px 24px rgba(38, 91, 213, 0.25);
  transition: transform 0.25s ease;
}

.result-card:hover .result-icon {
  transform: scale(1.05);
}

.result-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-card h3 {
  margin: 0 0 7px;
  color: #18243b;
  font-size: 14px;
}

.result-card p {
  margin: 0;
  color: #6d7788;
  font-size: 12px;
  line-height: 1.55;
}

.reveal {
  animation: revealUp 0.75s ease both;
}

.reveal-delay {
  animation-delay: 0.14s;
}

.reveal-delay-two {
  animation-delay: 0.25s;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -18px, 0); }
}

@keyframes paperShine {
  0%, 55% { transform: translateX(-130%); }
  75%, 100% { transform: translateX(130%); }
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-list {
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
  }

  .hero-visual {
    min-height: 430px;
  }

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

  .result-card:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero-section {
    padding: 50px 0 60px;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .document-device {
    width: min(285px, 70vw);
  }

  .ai-chip {
    width: 72px;
    height: 72px;
    left: -24px;
    font-size: 32px;
  }

  .scan-status {
    right: 0;
    top: 56%;
    padding: 11px 12px;
    font-size: 10px;
  }

  .floating-icon-brain {
    left: 0;
  }

  .floating-icon-shield {
    right: 0;
  }

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

  .drop-zone {
    min-height: 310px;
    padding: 38px 18px 24px;
  }

  .upload-card {
    border-radius: 22px;
  }

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

  .result-card:last-child {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .eyebrow {
    font-size: 11px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .document-device {
    width: 235px;
    border-width: 4px;
  }

  .paper-heading {
    font-size: 14px;
  }

  .paper-heading strong {
    font-size: 21px;
  }

  .paper-line {
    height: 5px;
    margin-bottom: 9px;
  }

  .floating-icon {
    transform: scale(0.82);
  }

  .floating-icon-brain {
    top: 8%;
  }

  .floating-icon-doc {
    bottom: 6%;
  }

  .scan-status {
    display: none;
  }

  .info-card {
    padding: 20px;
    gap: 14px;
  }

  .info-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .security-line {
    align-items: flex-start;
    text-align: center;
  }

  .results-section {
    padding-inline: 10px;
  }

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

  .result-card:last-child {
    grid-column: auto;
  }
}

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