/* ==========================================================================
   PharmaProof
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #050d14;
  --bg-2: #07131c;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-solid: #0b1a24;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f2f9fc;
  --text-2: #cfdee6;
  --muted: #93aab6;
  --faint: #647c88;

  /* Brand */
  --green: #44e4a4;
  --green-2: #8dffd3;
  --cyan: #4ed7ff;
  --blue: #7c9bff;
  --amber: #ffcf70;
  --red: #ff6f7e;
  --grad: linear-gradient(135deg, var(--green) 0%, var(--cyan) 55%, var(--blue) 100%);
  --grad-text: linear-gradient(95deg, var(--green-2) 0%, var(--cyan) 50%, #a9b8ff 100%);

  /* Type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape & depth */
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(68, 228, 164, 0.25), 0 20px 60px -15px rgba(68, 228, 164, 0.35);

  --max: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient backdrop: aurora glows + fading grid */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(60rem 40rem at 12% -10%, rgba(78, 215, 255, 0.13), transparent 60%),
    radial-gradient(50rem 36rem at 95% 5%, rgba(68, 228, 164, 0.11), transparent 60%),
    radial-gradient(60rem 50rem at 50% 120%, rgba(124, 155, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
}

::selection {
  background: rgba(68, 228, 164, 0.3);
  color: #fff;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--green);
  color: #03140e;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "zero" 1;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(5, 13, 20, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 18px rgba(68, 228, 164, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:not(.btn) {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.nav-links .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons & chips
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--surface-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--btn-bg);
  font-weight: 650;
  font-size: 0.97rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.btn-primary {
  border-color: transparent;
  background: var(--grad);
  color: #03140e;
  box-shadow: 0 10px 30px -10px rgba(68, 228, 164, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 16px 40px -10px rgba(68, 228, 164, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.85;
  transform: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(78, 215, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(78, 215, 255, 0.09), rgba(78, 215, 255, 0.03));
  color: #c4f1ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2s var(--ease) infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 8vw, 100px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

h1 {
  margin: 28px 0 26px;
  font-size: clamp(2.9rem, 6.6vw, 5.9rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

h1 .gradient-text {
  display: inline-block;
  padding-bottom: 0.08em;
}

.lede {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.actions-center {
  justify-content: center;
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.88rem;
}

.assurances li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.assurances .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
  stroke-width: 2.4;
}

/* Proof card ---------------------------------------------------------------- */

.proof-stage {
  position: relative;
  perspective: 1400px;
}

.proof-stage::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 8%;
  border-radius: 40px;
  background: var(--grad);
  filter: blur(70px);
  opacity: 0.22;
  z-index: -1;
}

.proof-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 40%),
    rgba(10, 24, 33, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

/* Sweeping scan line */
.proof-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(68, 228, 164, 0.08) 70%, rgba(68, 228, 164, 0.5) 100%);
  border-bottom: 1px solid rgba(141, 255, 211, 0.55);
  transform: translateY(-100%);
  animation: scan 5.5s var(--ease) 1s infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  55% { transform: translateY(640px); opacity: 1; }
  60%, 100% { transform: translateY(640px); opacity: 0; }
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 9px;
  border: 1px solid rgba(68, 228, 164, 0.3);
  border-radius: 999px;
  background: rgba(68, 228, 164, 0.1);
  color: var(--green-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.verified-badge .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.product-title {
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  margin: 14px 0 4px;
}

.product-sub {
  color: var(--muted);
  font-size: 0.86rem;
}

.qr {
  flex: none;
  width: 76px;
  height: 76px;
  padding: 7px;
  border-radius: 12px;
  background: #eaf7f2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 30px -8px rgba(68, 228, 164, 0.4);
}

.qr svg {
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}

.proof-rows {
  margin: 0;
}

.proof-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.proof-row dt {
  color: var(--muted);
}

.proof-row dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.proof-row .mono {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-2);
}

.ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-2);
}

.ok::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.custody {
  display: flex;
  align-items: center;
  gap: 5px;
}

.custody i {
  width: 16px;
  height: 5px;
  border-radius: 3px;
  background: var(--grad);
  opacity: 0.35;
  animation: custody 3.5s ease-in-out infinite;
}

.custody i:nth-child(2) { animation-delay: 0.15s; }
.custody i:nth-child(3) { animation-delay: 0.3s; }
.custody i:nth-child(4) { animation-delay: 0.45s; }
.custody i:nth-child(5) { animation-delay: 0.6s; }
.custody i:nth-child(6) { animation-delay: 0.75s; }
.custody i:nth-child(7) { animation-delay: 0.9s; }

@keyframes custody {
  0%, 100% { opacity: 0.35; }
  30%, 60% { opacity: 1; }
}

.proof-status {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(68, 228, 164, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(68, 228, 164, 0.1), rgba(78, 215, 255, 0.04));
  color: #cffff0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.proof-status .icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

h2 {
  margin: 16px 0 20px;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

/* Cards with cursor spotlight ---------------------------------------------- */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s ease, transform 0.4s var(--ease), background 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(68, 228, 164, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.035);
}

.card:hover::before {
  opacity: 1;
}

/* Features ----------------------------------------------------------------- */

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

.feature {
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(68, 228, 164, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(68, 228, 164, 0.16), rgba(78, 215, 255, 0.06));
  color: var(--green-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.feature:hover .feature-icon {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 10px 30px -8px rgba(68, 228, 164, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature h3 {
  margin: 40px 0 10px;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.feature p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

/* Architecture pipeline ---------------------------------------------------- */

.pipeline {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(78, 215, 255, 0.07), transparent 70%),
    var(--surface);
  overflow: hidden;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

/* Track + travelling pulse behind the step icons */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-radius: 2px;
}

.steps::before {
  background: linear-gradient(90deg, rgba(68, 228, 164, 0.35), rgba(78, 215, 255, 0.35), rgba(124, 155, 255, 0.35));
}

.steps::after {
  background: linear-gradient(90deg, transparent, var(--green-2), transparent);
  background-size: 30% 100%;
  background-repeat: no-repeat;
  animation: travel 3.2s linear infinite;
  filter: drop-shadow(0 0 6px var(--green));
}

@keyframes travel {
  from { background-position: -40% 0; }
  to { background-position: 140% 0; }
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  counter-increment: step;
}

.step-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface-solid);
  color: var(--cyan);
  box-shadow: 0 0 0 6px var(--bg-2);
}

.step:last-child .step-icon {
  border-color: rgba(68, 228, 164, 0.4);
  color: var(--green-2);
  box-shadow: 0 0 0 6px var(--bg-2), 0 0 30px -4px rgba(68, 228, 164, 0.5);
}

.step h3 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.step h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.step p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.statement {
  max-width: 900px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-2);
}

.statement strong {
  font-weight: 700;
}

/* AI panels ---------------------------------------------------------------- */

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

.panel {
  padding: clamp(24px, 3vw, 34px);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.panel-head .feature-icon {
  margin: 0;
}

.panel h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

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

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.96rem;
  transition: background 0.2s ease;
}

.checklist li:hover {
  background: var(--surface-2);
}

.checklist li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--marker, var(--cyan));
  box-shadow: 0 0 10px var(--marker, var(--cyan));
}

.panel-alert {
  --marker: var(--amber);
}

.panel-alert .feature-icon {
  border-color: rgba(255, 207, 112, 0.28);
  background: linear-gradient(135deg, rgba(255, 207, 112, 0.16), rgba(255, 111, 126, 0.06));
  color: var(--amber);
}

/* Applications ------------------------------------------------------------- */

.apps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.app {
  padding: 22px 20px 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

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

.app-num {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.app h3 {
  margin: 28px 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  color: var(--green-2);
}

.app p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

/* Verify ------------------------------------------------------------------- */

.verify-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.verify-box {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.verify-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.verify-box h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.tag {
  padding: 4px 9px;
  border: 1px solid rgba(255, 207, 112, 0.3);
  border-radius: 999px;
  background: rgba(255, 207, 112, 0.08);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.verify-box > p {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.verify-form {
  display: flex;
  gap: 10px;
}

.field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.field .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
  transition: color 0.2s ease;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(3, 10, 15, 0.7);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: var(--faint);
}

.field input:focus {
  border-color: rgba(78, 215, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(78, 215, 255, 0.12);
}

.field:focus-within .icon {
  color: var(--cyan);
}

.field input.is-invalid {
  border-color: rgba(255, 111, 126, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 111, 126, 0.12);
  animation: shake 0.4s ease;
}

@keyframes shake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(3, 20, 14, 0.25);
  border-top-color: #03140e;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.result {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 10, 15, 0.6);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  overflow: hidden;
}

.result[hidden] {
  display: none;
}

.result-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.74rem;
}

.result-head i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.result-head span {
  margin-left: 6px;
}

.result-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.digest {
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px dashed var(--line);
  color: var(--faint);
  word-break: break-all;
}

.digest b {
  color: var(--cyan);
  font-weight: 500;
}

.check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.check.is-running,
.check.is-done {
  opacity: 1;
}

.check-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
}

.check.is-running .check-state::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 1.5px solid rgba(78, 215, 255, 0.3);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.check.is-done .check-state {
  color: var(--green-2);
}

.check.is-done .check-state::before {
  content: "✓";
  font-weight: 700;
}

.result-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(68, 228, 164, 0.14), rgba(78, 215, 255, 0.05));
  color: #d8fff0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  animation: pop 0.5s var(--ease);
}

.result-summary[hidden] {
  display: none;
}

.result-summary .icon {
  color: var(--green);
  stroke-width: 2.2;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.result-note {
  color: var(--faint);
  font-size: 0.72rem;
}

/* CTA ---------------------------------------------------------------------- */

.cta {
  position: relative;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px);
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(50% 80% at 50% 120%, rgba(68, 228, 164, 0.28), transparent 70%),
    radial-gradient(40% 60% at 90% -10%, rgba(78, 215, 255, 0.14), transparent 70%),
    var(--surface-solid);
}

/* Gradient hairline border */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(141, 255, 211, 0.5), rgba(255, 255, 255, 0.06) 40%, rgba(78, 215, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%);
}

.cta h2 {
  max-width: 820px;
  margin-inline: auto;
}

.cta p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.cta .kicker::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Footer ------------------------------------------------------------------- */

footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

footer a:not(.brand) {
  color: var(--text-2);
  transition: color 0.2s ease;
}

footer a:not(.brand):hover {
  color: var(--green-2);
}

.smartledger {
  font-weight: 700;
}

.legal-note {
  max-width: 920px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Scroll reveal (only when JS is running)
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .apps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .verify-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    overflow-x: clip;
  }

  .proof-stage {
    max-width: 520px;
  }

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

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .steps::before,
  .steps::after {
    top: 28px;
    bottom: 28px;
    left: 28px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .steps::before {
    background: linear-gradient(180deg, rgba(68, 228, 164, 0.35), rgba(124, 155, 255, 0.35));
  }

  .steps::after {
    background: linear-gradient(180deg, transparent, var(--green-2), transparent);
    background-size: 100% 30%;
    background-repeat: no-repeat;
    animation-name: travel-y;
  }

  @keyframes travel-y {
    from { background-position: 0 -40%; }
    to { background-position: 0 140%; }
  }

  .step {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 20px;
    align-items: center;
    text-align: left;
  }

  .step-icon {
    grid-row: span 2;
    margin: 0;
  }

  .step p {
    margin: 0;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line-2);
    border-radius: 18px;
    background: rgba(8, 20, 29, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top;
    transition: opacity 0.2s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.3s var(--ease);
  }

  .nav.is-open {
    background: rgba(5, 13, 20, 0.9);
    border-bottom-color: var(--line);
  }

  .nav-links a:not(.btn) {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .nav-links a.is-active::after {
    left: auto;
    right: 16px;
    top: 50%;
    bottom: auto;
    margin: -2px 0 0;
  }

  .nav-links .btn {
    margin: 8px 0 0;
    min-height: 48px;
    border-radius: 12px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .features,
  .apps {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature,
  .app {
    min-height: 0;
  }

  .feature h3 {
    margin-top: 28px;
  }

  .app h3 {
    margin-top: 14px;
  }

  .actions .btn,
  .verify-form .btn {
    width: 100%;
  }

  .verify-form {
    flex-direction: column;
  }

  .proof-card {
    padding: 20px;
  }

  .qr {
    width: 64px;
    height: 64px;
  }

  .proof-row {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .proof-card::after,
  .steps::after {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
