:root {
  --primary: #f20d18;
  --primary-dark: #b90610;
  --ink: #17181c;
  --muted: #636875;
  --line: #e7e8ec;
  --paper: #ffffff;
  --soft: #f7f7f9;
  --dark: #101114;
  --shadow: 0 18px 50px rgba(20, 20, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(231, 232, 236, 0.84);
  backdrop-filter: blur(16px);
}

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

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

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  gap: 0;
}

.brand-mark strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand-mark span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

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

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  color: #343741;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #fff0f1;
  color: var(--primary-dark);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(242, 13, 24, 0.24);
  background: var(--primary-dark);
}

.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

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

.section {
  padding: 94px 0;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
}

h3 {
  font-size: 24px;
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  max-width: 760px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, rgba(16, 17, 20, 0.92), rgba(74, 6, 10, 0.84));
}

.hero .wrap {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 52px;
  padding: 64px 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .lead {
  color: rgba(255, 255, 255, 0.78);
}

.hero-media {
  position: relative;
  z-index: 1;
}

.hero-media img,
.feature-photo img,
.page-photo img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-media img {
  aspect-ratio: 4 / 5;
}

.insight-panel {
  position: absolute;
  left: -28px;
  bottom: 32px;
  width: min(310px, 78%);
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

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

.panel-row span {
  color: var(--muted);
  font-size: 14px;
}

.panel-row strong {
  font-size: 15px;
}

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

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 44px;
}

.stat-strip div {
  padding: 20px 18px 0 0;
}

.stat-strip strong {
  display: block;
  font-size: 26px;
}

.stat-strip span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-head .lead {
  max-width: 520px;
}

.feature-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: center;
}

.feature-photo img {
  aspect-ratio: 5 / 4;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item,
.legal-card,
.contact-card,
.download-card,
.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px rgba(18, 18, 20, 0.06);
}

.feature-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #fff0f1;
  color: var(--primary-dark);
  font-weight: 900;
}

.feature-item p,
.mini-card p,
.legal-card p,
.download-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  min-height: 220px;
  padding: 26px;
  border-left: 4px solid var(--primary);
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(18, 18, 20, 0.06);
}

.step-number {
  display: block;
  margin-bottom: 28px;
  color: var(--primary);
  font-weight: 900;
  font-size: 34px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mini-card {
  padding: 24px;
}

.mini-card strong {
  display: block;
  margin-top: 14px;
  font-size: 28px;
}

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

.cta-band .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.cta-band .lead {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero {
  padding: 88px 0 70px;
  background: linear-gradient(135deg, #fff5f5, #ffffff 48%, #f3f4f7);
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 48px;
  align-items: center;
}

.page-photo img {
  aspect-ratio: 4 / 3;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.legal-aside {
  position: sticky;
  top: 100px;
  align-self: start;
}

.legal-card {
  padding: 26px;
  margin-bottom: 18px;
}

.legal-card h2,
.legal-card h3 {
  font-size: 24px;
}

.highlight {
  padding: 20px;
  border-radius: 8px;
  background: #fff0f1;
  color: #5c090e;
  border: 1px solid #ffd5d7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: start;
}

.form {
  padding: 30px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: white;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  margin: 16px 0 22px;
}

.check input {
  width: auto;
  margin-top: 6px;
}

.form-status {
  min-height: 28px;
  margin-top: 14px;
  font-weight: 800;
}

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

.download-hero .lead {
  color: rgba(255, 255, 255, 0.72);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.store-btn {
  min-width: 188px;
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.store-btn span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.store-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.download-card {
  padding: 24px;
}

.site-footer {
  padding: 48px 0 26px;
  background: #111216;
  color: white;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.footer-inner .brand-mark span,
.site-footer p {
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.h5-body {
  background: #fff;
}

.h5-about {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 54px;
}

.h5-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.h5-photo {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero .wrap,
  .split,
  .feature-layout,
  .contact-grid,
  .legal-layout,
  .cta-band .wrap {
    grid-template-columns: 1fr;
  }

  .hero .wrap {
    min-height: auto;
  }

  .section-head {
    display: block;
  }

  .workflow,
  .dashboard,
  .values,
  .download-grid,
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .wrap,
  .nav {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 58px 0;
  }

  .hero-actions,
  .store-buttons {
    flex-direction: column;
  }

  .btn,
  .store-btn {
    width: 100%;
  }

  .workflow,
  .dashboard,
  .values,
  .download-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .feature-item {
    grid-template-columns: 1fr;
  }

  .insight-panel {
    position: static;
    width: 100%;
    margin-top: 14px;
  }
}
