/* QuikScan · minisite */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  --ink: #0b1220;
  --ink-soft: #1c2740;
  --muted: #5a657c;
  --surface: #f4f7fc;
  --surface-solid: #ffffff;
  --line: rgba(11, 18, 32, 0.1);
  --brand: #176bff;
  --brand-deep: #0f4fd1;
  --brand-tint: #4589ff;
  --brand-glow: rgba(23, 107, 255, 0.18);
  --radius: 0.75rem;
  --container: 68rem;
  --header-h: 4rem;
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-legal: "Source Serif 4", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --atmosphere:
    radial-gradient(ellipse 100% 80% at 15% -20%, rgba(23, 107, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 10%, rgba(69, 137, 255, 0.1), transparent 50%),
    linear-gradient(180deg, #eef3fb 0%, #f7f9fd 42%, #eef2f8 100%);
}

html.dark {
  --ink: #eef2fa;
  --ink-soft: #c9d2e6;
  --muted: #93a0b8;
  --surface: #0a101c;
  --surface-solid: #121a2a;
  --line: rgba(238, 242, 250, 0.12);
  --brand-glow: rgba(23, 107, 255, 0.28);
  --atmosphere:
    radial-gradient(ellipse 100% 80% at 15% -20%, rgba(23, 107, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 10%, rgba(69, 137, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #070b14 0%, #0a101c 45%, #101828 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--atmosphere);
  background-attachment: fixed;
  line-height: 1.55;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-deep);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.logo img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
}

.nav-desktop {
  display: none;
  gap: 1.35rem;
}

.nav-desktop a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-select,
.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--ink);
  border-radius: 999px;
  height: 2.25rem;
  cursor: pointer;
}

.lang-select {
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.85rem;
}

.theme-toggle,
.menu-toggle {
  width: 2.25rem;
  display: inline-grid;
  place-items: center;
}

html.dark .icon-moon,
html:not(.dark) .icon-sun {
  display: none;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--line);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.65rem 0.25rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--surface) 88%, transparent) 100%),
    radial-gradient(circle at 70% 30%, rgba(23, 107, 255, 0.22), transparent 42%),
    radial-gradient(circle at 20% 70%, rgba(0, 0, 0, 0.06), transparent 40%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 40rem;
}

.hero__brand {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 1rem;
}

.hero__lead {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
  max-width: 28rem;
}

.hero__sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 28rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__scan-frame {
  position: absolute;
  right: max(1rem, calc((100% - var(--container)) / 2));
  top: 18%;
  width: min(38vw, 22rem);
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(23, 107, 255, 0.18), transparent 55%),
    var(--surface-solid);
  box-shadow: 0 0 0 1px rgba(23, 107, 255, 0.08);
  overflow: hidden;
  display: none;
}

.hero__scan-frame::before {
  content: "";
  position: absolute;
  inset: 12% 14%;
  border: 2px solid color-mix(in srgb, var(--brand) 70%, white);
  border-radius: 0.5rem;
  animation: scanPulse 2.8s var(--ease) infinite;
}

.hero__scan-frame::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  height: 2px;
  background: var(--brand);
  top: 20%;
  animation: scanLine 2.8s linear infinite;
  opacity: 0.85;
}

@keyframes scanPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes scanLine {
  0% {
    top: 18%;
  }
  100% {
    top: 78%;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.65rem;
}

.section__sub {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36rem;
}

.pillars {
  display: grid;
  gap: 1.25rem;
}

.pillar {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.pillar h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.pillar p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  margin: 0 0 clamp(3rem, 7vw, 5rem);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand) 55%, var(--brand-tint));
  color: #fff;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  letter-spacing: -0.04em;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  max-width: 32rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-deep);
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* Legal */
.page-legal {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}

.page-legal .legal-head {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.page-legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.045em;
  margin: 0 0 0.5rem;
}

.page-legal .legal-meta {
  color: var(--muted);
  margin: 0;
}

.legal-body {
  max-width: 44rem;
  font-family: var(--font-legal);
  font-size: 1.05rem;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 2rem 0 0.65rem;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

.legal-body ul {
  padding-left: 1.2rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--brand);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 0.7s var(--ease) forwards;
}

.reveal-delay-1 {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.24s;
}

.reveal-delay-3 {
  animation-delay: 0.36s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 840px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero__scan-frame {
    display: block;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .pillar {
    border-top: none;
    border-left: 1px solid var(--line);
    padding: 0 0 0 1.25rem;
  }

  .pillar:first-child {
    border-left: none;
    padding-left: 0;
  }
}
