:root {
  --brand: #0176d3;
  --brand-dark: #0b3d73;
  --ink: #181818;
  --muted: #5f6368;
  --line: #d8dde6;
  --surface: #ffffff;
  --soft: #f3f6fa;
  --success: #2e844a;
  --warning: #b56a00;
  --shadow: 0 18px 45px rgba(24, 24, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f9fb;
  font-family: Inter, Arial, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(135deg, #0176d3 0%, #0b5cab 100%);
  border-radius: 10px;
  font-size: 0;
  box-shadow: 0 8px 18px rgba(1, 118, 211, 0.22);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 15px;
  width: 22px;
  height: 12px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow:
    -4px 3px 0 -1px #ffffff,
    6px -5px 0 1px #ffffff,
    13px 2px 0 -2px #ffffff;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 9px;
  height: 9px;
  border: 2px solid #baf2cf;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:hover,
.login-link:hover {
  color: var(--brand);
}

.login-link {
  padding: 10px 18px;
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 54px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 28px 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.hero-text,
.section p,
.split-section p,
.cta-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 700;
}

.primary-action {
  color: white;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(1, 118, 211, 0.24);
}

.secondary-action {
  color: var(--brand-dark);
  background: white;
  border: 1px solid var(--line);
}

.hero-visual {
  padding: 24px;
  background: linear-gradient(160deg, #eaf4ff, #ffffff 54%, #f1f7f3);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.dashboard-card,
.receipt-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.dashboard-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  padding: 18px;
}

.dashboard-card strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.dashboard-card.wide {
  margin-bottom: 14px;
}

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

.trend {
  padding: 7px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.trend.positive {
  color: var(--success);
  background: #e7f4ec;
}

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

.dashboard-card.alert strong {
  color: var(--warning);
}

.receipt-preview {
  margin-top: 14px;
  padding: 18px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.receipt-line {
  height: 1px;
  margin: 14px 0;
  background: var(--line);
}

.section,
.split-section,
.cta-section {
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 0 28px;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 22px;
}

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

.feature-card {
  min-height: 180px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

.split-section,
.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 36px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

.check-list li {
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 8px;
  font-weight: 600;
}

.cta-section {
  margin-bottom: 60px;
}

.cta-section .primary-action {
  justify-self: end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  color: var(--muted);
  background: white;
  border-top: 1px solid var(--line);
}

@media (max-width: 880px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .split-section,
  .cta-section {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 42px;
  }

  .cta-section .primary-action {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .hero-visual,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    min-height: 92px;
  }

  h1 {
    font-size: 38px;
  }
}
