:root {
  --primary: #ef1111;
  --primary-dark: #b90808;
  --ink: #151515;
  --muted: #63656d;
  --line: #e7e7eb;
  --paper: #ffffff;
  --soft: #f6f7f9;
  --charcoal: #20242a;
  --teal: #0b8f83;
  --gold: #c9912f;
  --radius: 8px;
  --shadow: 0 20px 50px rgba(16, 18, 24, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(231, 231, 235, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img,
.h5-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #3b3e46;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta,
.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 760;
  white-space: nowrap;
}

.nav-cta,
.primary-cta {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(239, 17, 17, 0.22);
}

.nav-cta {
  padding: 0 16px;
}

.primary-cta,
.secondary-cta {
  padding: 0 20px;
}

.secondary-cta {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 70px 0 54px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.91) 44%, rgba(255, 255, 255, 0.34) 74%),
    url("https://images.unsplash.com/photo-1640340434855-6084b1f4901c?q=80&w=1769&auto=format&fit=crop") center / cover no-repeat;
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy .lead {
  max-width: 640px;
}

.lead {
  color: #3e4149;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 28px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  border: 1px solid rgba(231, 231, 235, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(16, 18, 24, 0.08);
}

.metric {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: var(--soft);
}

.section.dark {
  color: #fff;
  background: var(--charcoal);
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

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

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 18, 24, 0.06);
}

.dark .card {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.card p,
.section-header p,
.split p,
.legal p,
.legal li,
.footer p {
  color: var(--muted);
}

.dark .card p,
.dark .section-header p,
.dark .split p {
  color: rgba(255, 255, 255, 0.72);
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--primary-dark);
  background: #fff0f0;
  font-size: 0.78rem;
  font-weight: 800;
}

.chart-panel {
  min-height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(0deg, transparent 0 45px, rgba(255, 255, 255, 0.08) 46px),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 255, 255, 0.06) 71px);
  box-shadow: var(--shadow);
}

.chart-line {
  height: 180px;
  margin: 42px 0 24px;
  clip-path: polygon(0 72%, 13% 61%, 24% 66%, 35% 42%, 47% 51%, 59% 31%, 72% 39%, 84% 20%, 100% 13%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(239, 17, 17, 0.9), rgba(11, 143, 131, 0.16));
  border-top: 4px solid #fff;
}

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

.ticker {
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
}

.ticker strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: center;
}

.check-list,
.legal ul {
  margin: 0;
  padding-left: 20px;
}

.check-list li,
.legal li {
  margin: 8px 0;
}

.workflow {
  counter-reset: step;
}

.workflow .card {
  position: relative;
  padding-left: 70px;
}

.workflow .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 24px;
  left: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  font-weight: 850;
}

.page-hero {
  padding: 78px 0 54px;
  background: linear-gradient(180deg, #fff, #f7f8fa);
}

.page-hero .lead {
  max-width: 760px;
}

.legal {
  max-width: 860px;
}

.legal h2 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.contact-line {
  display: block;
  margin: 12px 0;
  color: var(--primary-dark);
  font-weight: 780;
}

.form-shell {
  display: grid;
  gap: 14px;
}

.input-like {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--muted);
  background: #fff;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #3d4048;
  font-size: 0.92rem;
  font-weight: 650;
}

.h5-body {
  background: #fff;
}

.h5-main {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.h5-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 24px;
}

.h5-main h1 {
  font-size: clamp(2rem, 9vw, 2.8rem);
  line-height: 1.05;
}

.h5-section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.h5-section h2 {
  font-size: 1.45rem;
}

@media (max-width: 860px) {
  .nav {
    width: min(100% - 28px, 1120px);
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
  }

  .nav,
  .nav-links {
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 42px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
      url("https://images.unsplash.com/photo-1640340434855-6084b1f4901c?q=80&w=1769&auto=format&fit=crop") center / cover no-repeat;
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .grid-3,
  .grid-2,
  .split,
  .contact-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 56px 0;
  }

  .chart-panel {
    min-height: 310px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.55rem;
  }

  .cta-row,
  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .card {
    padding: 20px;
  }

  .workflow .card {
    padding-left: 58px;
  }

  .workflow .card::before {
    left: 18px;
  }
}
