/*
 * DealNorth institutional site. Colors are the product tokens (design/tokens.css): navy shell,
 * accent blue, light accent on navy. No other palette.
 */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0a1322;
  --navy-2: #101c31;
  --navy-3: #16233a;
  --on-navy: #ffffff;
  --on-navy-muted: #a9b3c4;
  --accent: #1f4bb3;
  --accent-hover: #1a3f98;
  --accent-light: #7fa3f0;
  --accent-subtle: #eef2fb;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #e8eaee;
  --border-strong: #d3d8e0;
  --text: #0a1220;
  --text-2: #475467;
  --muted: #5f6979;
  --success: #15763a;
  --warning-bg: #fff7e6;
  --warning-border: #f2c97d;
  --warning-text: #7a4b00;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 19, 34, 0.06), 0 8px 24px rgba(10, 19, 34, 0.08);
  --shadow-lg: 0 24px 60px rgba(4, 10, 22, 0.45);
  --max: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
}

.skip:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 19, 34, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-navy);
  text-decoration: none;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--on-navy);
}

.brand svg {
  width: 26px;
  height: 26px;
}

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

.nav a {
  color: var(--on-navy-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--on-navy);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu {
  display: none;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  color: var(--on-navy);
  padding: 8px;
  border-radius: 8px;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu[open] .menu-panel {
  display: flex;
}

.menu-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-panel a {
  color: var(--on-navy);
  text-decoration: none;
  padding: 10px 0;
  font-weight: 500;
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}

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

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

.btn-ghost-dark {
  color: var(--on-navy);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost-dark:hover {
  color: var(--on-navy);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: var(--accent-subtle);
  color: var(--navy);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(31, 75, 179, 0.55), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(127, 163, 240, 0.18), transparent 60%),
    var(--navy);
  color: var(--on-navy);
  padding: 88px 0 96px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero .eyebrow,
.page-hero .eyebrow,
.dark .eyebrow {
  color: var(--accent-light);
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--on-navy-muted);
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-navy-muted);
  font-size: 14px;
}

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

.check {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent-light);
}

/* --------------------------------------------------- product mock (hero) */

.mock {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  padding: 14px;
}

.mock-sheet,
.mock-board {
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

.mock-bar strong {
  color: var(--text);
  font-weight: 600;
}

.dots {
  display: inline-flex;
  gap: 5px;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.sheet th,
.sheet td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.sheet th {
  background: #f7f8fa;
  font-weight: 600;
  color: var(--text-2);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.sheet .map {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
}

.mock-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 12.5px;
  color: var(--on-navy-muted);
}

.mock-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--accent-light);
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #f7f8fa;
}

.col h4 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(10, 19, 34, 0.04);
}

.card b {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.card span {
  color: var(--muted);
}

.card .next {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  color: var(--text-2);
  font-size: 11px;
}

.card .next::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.card.won {
  border-color: #bfe3cc;
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section.dark {
  background: var(--navy);
  color: var(--on-navy);
}

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section h2 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  font-size: 18px;
  color: var(--text-2);
}

.dark .section-head p,
.dark p {
  color: var(--on-navy-muted);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(10, 19, 34, 0.04);
}

.section.alt .tile {
  background: var(--bg);
  box-shadow: none;
}

.dark .tile p {
  color: var(--on-navy-muted);
}

.dark .tile {
  background: var(--navy-2);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.tile h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.tile p {
  margin: 0;
  color: var(--text-2);
  font-size: 15.5px;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-subtle);
  color: var(--accent);
}

.dark .icon {
  background: rgba(127, 163, 240, 0.12);
  color: var(--accent-light);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 64px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 26px;
  left: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* Feature rows (product section) */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0;
}

.feature + .feature {
  border-top: 1px solid var(--border);
}

.feature.reverse .feature-copy {
  order: 2;
}

.feature h3 {
  margin: 12px 0 12px;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 17px;
}

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

.bullets li {
  display: flex;
  gap: 10px;
  color: var(--text);
  font-size: 15.5px;
}

.bullets .check {
  margin-top: 4px;
  color: var(--accent);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-body {
  padding: 18px;
}

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

.kpi {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.kpi small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}

.kpi strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.bars {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.bar {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--text-2);
}

.bar i {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--accent-subtle);
  color: var(--accent);
  white-space: nowrap;
}

.pill.late {
  background: #fdecec;
  color: #a1281f;
}

.pill.ok {
  background: #ecfdf3;
  color: var(--success);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-3);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  flex: none;
}

/* Sectors */
.sector {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sector h3 {
  margin: 0 0 6px;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 56px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(31, 75, 179, 0.6), transparent 60%), var(--navy);
  color: var(--on-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.cta-band p {
  margin: 0;
  color: var(--on-navy-muted);
  font-size: 17px;
}

/* ---------------------------------------------------------- content pages */

.page-hero {
  background: var(--navy);
  color: var(--on-navy);
  padding: 64px 0 56px;
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 680px;
  color: var(--on-navy-muted);
  font-size: 18px;
}

.prose {
  max-width: 780px;
  padding: 56px 0 96px;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 23px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.prose p,
.prose li {
  color: var(--text-2);
  font-size: 16.5px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose strong {
  color: var(--text);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

.prose th {
  color: var(--text);
  font-weight: 600;
  background: var(--surface);
}

.table-wrap {
  overflow-x: auto;
}

.meta {
  font-size: 14px;
  color: var(--muted);
}

.notice {
  border: 1px solid var(--warning-border);
  background: var(--warning-bg);
  color: var(--warning-text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
}

.notice strong {
  color: var(--warning-text);
}

.pending {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px dashed var(--warning-border);
  background: var(--warning-bg);
  color: var(--warning-text);
  font-size: 0.92em;
  font-weight: 600;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.contact-card h3 {
  margin: 14px 0 6px;
  font-size: 18px;
}

.contact-card p {
  margin: 0 0 14px;
  color: var(--text-2);
}

.contact-card a.mail {
  font-weight: 600;
  word-break: break-all;
}

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 24px;
  margin: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 14.5px;
}

.facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  padding: 64px 0 36px;
  font-size: 14.5px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--on-navy);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--on-navy-muted);
  text-decoration: none;
}

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

.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.site-footer .pending {
  background: rgba(242, 201, 125, 0.12);
  color: #f2c97d;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1020px) {
  .hero .container,
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .feature.reverse .feature-copy {
    order: 0;
  }

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

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

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
  }
}

@media (max-width: 860px) {
  .nav,
  .header-cta .btn-ghost-dark {
    display: none;
  }

  .menu {
    display: block;
  }

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

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .grid-4,
  .footer-grid,
  .kpis {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .board .col:nth-child(3) {
    display: none;
  }

  .sheet th:nth-child(4),
  .sheet td:nth-child(4) {
    display: none;
  }

  .header-cta .btn-primary {
    padding: 0 14px;
  }

  .cta-band {
    padding: 28px;
    border-radius: 18px;
  }

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

  .facts dd {
    margin-bottom: 10px;
  }
}

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

  * {
    transition: none !important;
  }
}

/* ===================================================================== home (v2) */

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

.footer-tag {
  margin: 14px 0 0;
  max-width: 320px;
}

.hero2 {
  position: relative;
  overflow: hidden;
  color: var(--on-navy);
  padding: 96px 0 40px;
  background:
    radial-gradient(1100px 560px at 92% -12%, rgba(31, 75, 179, 0.6), transparent 62%),
    radial-gradient(760px 460px at -12% 105%, rgba(127, 163, 240, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #0c1830 100%);
}

.hero2::before {
  content: "";
  position: absolute;
  inset: 0;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 10%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 10%, #000 25%, transparent 75%);
  pointer-events: none;
}

.hero2-grid {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 56px;
  max-width: 1240px;
}

.hero2-copy {
  max-width: 900px;
  text-align: center;
  display: grid;
  justify-items: center;
}

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

.hero2 h1 {
  margin: 22px 0 22px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.hero2 h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #a9c2f7 0%, var(--accent-light) 55%, #5f86e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero2 .eyebrow {
  color: var(--accent-light);
  padding: 6px 12px;
  border: 1px solid rgba(127, 163, 240, 0.28);
  border-radius: 999px;
  background: rgba(127, 163, 240, 0.08);
  letter-spacing: 0.06em;
  font-size: 12px;
}

.hero2 .lead {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.hero2-visual {
  position: relative;
  width: 100%;
  max-width: 1120px;
  padding: 0 0 24px;
}

.hero2-visual .frame {
  transform: perspective(2400px) rotateX(4deg);
  transform-origin: 50% 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 90px rgba(2, 8, 20, 0.6),
    0 0 120px rgba(31, 75, 179, 0.25);
}

.hero2-note {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(169, 179, 196, 0.75);
}

.frame {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 34px;
  padding: 0 14px;
  background: #f3f4f7;
  border-bottom: 1px solid var(--border);
}

.frame-bar .dots i {
  background: #d3d8e0;
}

.frame-url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  padding: 3px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame img {
  width: 100%;
  height: auto;
}

/* flow strip */

.flow {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-steps li {
  display: flex;
  gap: 18px;
  padding: 40px 32px 40px 0;
}

.flow-steps li + li {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.flow-n {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 3px;
}

.flow-steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.flow-steps p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* features */

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

.feat {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.feat:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feat h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.feat p {
  margin: 0;
  color: var(--text-2);
  font-size: 15.5px;
}

.feat-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-subtle);
  color: var(--accent);
}

.feat-icon svg {
  width: 22px;
  height: 22px;
}

.feat-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  padding: 36px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-subtle) 100%);
}

.feat-wide h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
}

.feat-wide .bullets {
  margin-top: 20px;
}

.feat-shot {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}

.feat-shot img {
  width: 100%;
  height: auto;
}

/* platform showcase */

.showcase {
  margin: 0;
}

.showcase + .showcase-pair,
.showcase-pair {
  margin-top: 28px;
}

.showcase-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.showcase .frame {
  box-shadow:
    0 1px 2px rgba(10, 19, 34, 0.06),
    0 24px 60px rgba(10, 19, 34, 0.12);
}

.showcase figcaption {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 15px;
}

.showcase figcaption strong {
  color: var(--text);
}

.demo-note {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* applications */

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

.use {
  display: flex;
  gap: 18px;
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.use h3 {
  margin: 4px 0 6px;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.use p {
  margin: 0;
  color: var(--text-2);
  font-size: 15.5px;
}

.use .feat-icon {
  flex: none;
}

.teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 14.5px;
}

.teams ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teams li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}

/* security */

#seguranca {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(31, 75, 179, 0.35), transparent 60%), var(--navy);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trust {
  padding: 30px 28px;
  background: var(--navy-2);
}

.trust h3 {
  margin: 16px 0 8px;
  font-size: 17px;
  color: var(--on-navy);
}

.trust p {
  margin: 0;
  font-size: 15px;
}

.trust-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(127, 163, 240, 0.12);
  color: var(--accent-light);
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

/* closing CTA */

.cta2 {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px;
  border-radius: 24px;
  color: var(--on-navy);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(127, 163, 240, 0.35), transparent 65%),
    linear-gradient(120deg, var(--navy) 0%, #12244a 55%, #1a3f98 100%);
}

.cta2 .eyebrow {
  color: var(--accent-light);
}

.cta2 h2 {
  margin: 10px 0 12px;
  max-width: 560px;
}

.cta2 p {
  margin: 0;
  max-width: 560px;
  color: var(--on-navy-muted);
  font-size: 17px;
}

.cta2-actions {
  display: grid;
  justify-items: center;
  gap: 14px;
  flex: none;
}

.cta2-mail {
  color: var(--on-navy-muted);
  font-size: 14.5px;
}

.cta2-mail:hover {
  color: var(--on-navy);
}

/* contact: demonstration request */

.demo-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 40px;
  padding: 28px 32px;
  border-radius: 18px;
  background: var(--accent-subtle);
  border: 1px solid #d9e2f7;
}

.demo-request h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.demo-request p {
  margin: 0;
}

/* motion: entrance on load, reveal on scroll where the browser supports it (no script) */

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

.reveal-load {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reveal-load.delay {
  animation-delay: 0.15s;
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 22%;
  }
}

@media (max-width: 1020px) {
  .hero2-grid {
    gap: 40px;
  }

  .hero2-visual .frame {
    transform: none;
  }

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

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

  .cta2 {
    flex-direction: column;
    align-items: flex-start;
    padding: 44px;
  }

  .cta2-actions {
    justify-items: start;
  }
}

@media (max-width: 860px) {
  .flow-steps,
  .showcase-pair,
  .uses {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-steps li,
  .flow-steps li + li {
    padding: 24px 0;
    border-left: 0;
  }

  .flow-steps li + li {
    border-top: 1px solid var(--border);
  }

  .demo-request {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero2 {
    padding: 56px 0 28px;
  }

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

  .feat,
  .feat-wide,
  .use {
    padding: 22px;
  }

  .use {
    flex-direction: column;
    gap: 12px;
  }

  .hero2-visual {
    padding: 0;
  }

  .cta2 {
    padding: 30px 24px;
    border-radius: 18px;
  }

  .header-cta .btn-primary {
    min-height: 40px;
    font-size: 14px;
    padding: 0 12px;
  }
}

.cta-short {
  display: none;
}

.hero2-sectors {
  margin: 28px 0 0;
  max-width: 620px;
  font-size: 15px;
  color: var(--on-navy-muted);
  text-wrap: balance;
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--accent-subtle);
  border: 1px solid #d9e2f7;
}

.inline-cta p {
  margin: 0;
  color: var(--text-2);
}

.inline-cta strong {
  color: var(--text);
}

@media (max-width: 860px) {
  .inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-pair .showcase:last-child .frame {
    max-width: 380px;
  }
}

@media (max-width: 560px) {
  .cta-long {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .hero2-sectors {
    font-size: 14px;
  }

  .hero2 .hero-actions {
    flex-direction: column;
    align-self: stretch;
  }

  .hero2 .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-load {
    animation: none !important;
  }

  .feat:hover {
    transform: none;
  }
}
