/* GB-Fingerprint landing — brand palette from presentation */
:root {
  --dark: #0f3d6e;
  --brand: #1a6eb5;
  --light: #e8f0f8;
  --accent: #00b4d8;
  --white: #ffffff;
  --ink: #1a2332;
  --muted: #5a6578;
  --green: #1e8e5a;
  --gold: #e6b800;
  --dark-2: #0a2d52;
  --shadow: 0 4px 24px rgba(15, 61, 110, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 61, 110, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1180px;
  --header-h: 72px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

/* ── Header ── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 61, 110, 0.08);
  transition: box-shadow 0.3s;
}

.header.scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
}

.logo__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo__mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav { display: flex; align-items: center; gap: 32px; }

.nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav__link:hover { color: var(--dark); }

.nav__link--active { color: var(--dark); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.35);
}

.btn--primary:hover {
  background: #00a0c0;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(0, 180, 216, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn--dark {
  background: var(--dark);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--dark-2);
  color: var(--white);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-bg.webp") center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 61, 110, 0.88) 0%,
    rgba(15, 61, 110, 0.72) 50%,
    rgba(26, 110, 181, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
  max-width: 720px;
}

.hero__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--light);
  margin: 0 0 40px;
  line-height: 1.5;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat__label {
  font-size: 0.85rem;
  color: rgba(232, 240, 248, 0.8);
  margin-top: 6px;
}

/* ── Sections ── */
.section { padding: 96px 0; }

.section--light { background: var(--white); }
.section--gray { background: var(--light); }
.section--dark {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section--dark .section__label { color: var(--accent); }

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section--dark .section__title { color: var(--white); }

.section__desc {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

.section--dark .section__desc { color: rgba(232, 240, 248, 0.75); }

/* ── Split layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--reverse .split__media { order: -1; }

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Lists ── */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  background: var(--light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a6eb5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.callout {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--light);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

/* ── Cards grid ── */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.card--accent::before { background: var(--accent); }
.card--brand::before { background: var(--brand); }
.card--gold::before { background: var(--gold); }
.card--green::before { background: var(--green); }

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}

.card__text {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.cards--dark .card {
  background: var(--white);
}

.cards--cases {
  grid-template-columns: repeat(4, 1fr);
}

.card--case .card__icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 20px; }

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: var(--white);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* ── Metrics panel ── */
.metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--light);
  border-radius: var(--radius);
}

.metric__code {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
}

.metric__label {
  font-size: 0.9rem;
  color: var(--ink);
}

/* ── Data columns ── */
.data-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.data-col {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-col__head {
  background: var(--brand);
  color: var(--white);
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 700;
}

.data-col__list {
  list-style: none;
  margin: 0;
  padding: 16px 18px;
}

.data-col__list li {
  font-size: 0.88rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid rgba(15, 61, 110, 0.06);
}

.data-col__list li:last-child { border-bottom: none; }

.data-col__list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

/* ── Scoring ── */
.scoring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.score-cards { display: flex; flex-direction: column; gap: 16px; }

.score-card {
  padding: 24px;
  background: var(--light);
  border-radius: var(--radius);
}

.score-card--dark {
  background: var(--dark);
  color: var(--light);
}

.score-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}

.score-card--dark .score-card__title { color: var(--white); }

.score-card__text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.score-card--dark .score-card__text { color: rgba(232, 240, 248, 0.8); }

/* ── Integration ── */
.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.code-block {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--white);
  white-space: pre-wrap;
  word-break: break-all;
}

.code-block--json pre { color: #98d4a0; }

.integration-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

/* ── Deployment rows ── */
.deploy-rows { display: flex; flex-direction: column; gap: 16px; }

.deploy-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}

.deploy-row__badge {
  background: var(--brand);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.deploy-row__desc {
  font-size: 1rem;
  color: var(--ink);
}

.security-note {
  margin-top: 32px;
  padding: 24px;
  background: var(--light);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Benefits ── */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.benefit__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 6px;
}

.benefit__desc {
  font-size: 0.92rem;
  color: rgba(232, 240, 248, 0.8);
  margin: 0;
  padding-left: 24px;
}

/* ── CTA ── */
.cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-bg.webp") center / cover no-repeat;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 61, 110, 0.82);
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 16px;
}

.cta__desc {
  font-size: 1.1rem;
  color: var(--light);
  margin: 0 0 36px;
}

/* ── Footer ── */
.footer {
  background: var(--dark-2);
  color: rgba(232, 240, 248, 0.7);
  padding: 40px 0;
  text-align: center;
  font-size: 0.88rem;
}

.footer__brand {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer a { color: var(--accent); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cards,
  .cards--cases,
  .data-cols { grid-template-columns: repeat(2, 1fr); }

  .split,
  .scoring-grid,
  .integration-grid { grid-template-columns: 1fr; gap: 40px; }

  .split--reverse .split__media { order: 0; }

  .deploy-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav__list,
  .nav .btn--primary { display: none; }

  .nav__toggle { display: flex; }

  .nav.open .nav__list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(15, 61, 110, 0.08);
  }

  .nav.open .nav__list .btn--primary {
    display: inline-flex;
    width: fit-content;
  }

  .cards,
  .cards--cases,
  .data-cols,
  .benefits-grid { grid-template-columns: 1fr; }

  .hero__stats { gap: 24px; }

  .container { width: calc(100% - 32px); }
}
