/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #0B3A6E;
  --color-primary-dark: #082847;
  --color-secondary: #1DA7A1;
  --color-accent: #22D3EE;
  --color-white: #ffffff;
  --color-bg: #f4f8fb;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #dbe4ee;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgb(11 58 110 / 8%);
  --shadow-md: 0 8px 30px rgb(11 58 110 / 12%);
  --container: min(100% - 2.5rem, 1140px);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
}

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

ul {
  padding: 0;
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.section-header h2,
.hero h1,
.cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--color-primary);
}

.section-lead,
.hero-lead {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 60ch;
}

.section-header-center {
  text-align: center;
}

.section-header-center .section-lead {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

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

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn-nav {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
}

.btn-nav:hover {
  background: #178f8a;
  color: var(--color-white);
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header — Flexbox
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 95%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--color-primary);
  text-decoration: none;
}

.logo-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 4rem;
  max-width: min(100%, 14rem);
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.375rem;
  height: 2px;
  margin-inline: auto;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.25rem 1.5rem;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-list a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text);
}

.nav-list a:not(.btn):hover {
  color: var(--color-secondary);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-header {
    position: sticky;
  }

  .site-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Hero — CSS Grid
   -------------------------------------------------------------------------- */
.hero {
  padding: 3rem 0 4rem;
  background: linear-gradient(160deg, var(--color-white) 0%, #e8f4f8 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-lead {
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.hero-stats li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero-stats strong {
  display: block;
  font-size: 1.375rem;
  color: var(--color-primary);
}

@media (min-width: 900px) {
  .hero {
    padding: 5rem 0 6rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Image placeholders
   -------------------------------------------------------------------------- */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  aspect-ratio: 16 / 10;
  padding: 1.5rem;
  background: linear-gradient(145deg, #dce8f2, #eef4f9);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  text-align: center;
}

.img-placeholder svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.5;
}

.img-placeholder span {
  font-size: 0.8125rem;
  font-weight: 600;
}

.img-placeholder-hero {
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  border-style: solid;
  border-color: rgb(11 58 110 / 12%);
  background: linear-gradient(145deg, #e2edf6, var(--color-white));
}

.img-placeholder-sm {
  aspect-ratio: 16 / 9;
  margin-bottom: 1.25rem;
}

.img-placeholder-avatar {
  aspect-ratio: 1;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 1rem;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 1rem;
  background: var(--color-white);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: 4rem 0;
  scroll-margin-top: 6rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Platform — CSS Grid
   -------------------------------------------------------------------------- */
.platform {
  background: var(--color-white);
}

.platform-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.platform-images {
  display: grid;
  gap: 1rem;
}

.check-list {
  margin: 0 0 2rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(34 211 238 / 25%);
}

@media (min-width: 768px) {
  .platform-images {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .platform-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* --------------------------------------------------------------------------
   Features — CSS Grid
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  border-color: rgb(29 167 161 / 40%);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: rgb(34 211 238 / 15%);
  color: var(--color-primary);
}

.feature-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-size: 1.125rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Solutions — CSS Grid
   -------------------------------------------------------------------------- */
.solutions {
  background: var(--color-primary);
  color: var(--color-white);
}

.solutions .section-header h2 {
  color: var(--color-white);
}

.solutions-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.solution-card {
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.solution-card .img-placeholder {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 25%);
  color: rgb(255 255 255 / 70%);
}

.solution-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.solution-card p {
  margin: 0;
  color: rgb(255 255 255 / 80%);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Integrations — Flexbox + Grid
   -------------------------------------------------------------------------- */
.integrations {
  background: var(--color-white);
}

.integrations-inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.integrations-content p {
  color: var(--color-text-muted);
  max-width: 50ch;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag-list li {
  padding: 0.375rem 0.875rem;
  background: rgb(34 211 238 / 12%);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.integrations-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .integrations-inner {
    grid-template-columns: 1fr 1fr;
  }

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

/* --------------------------------------------------------------------------
   CTA / Contact — CSS Grid
   -------------------------------------------------------------------------- */
.cta {
  background: var(--color-primary);
  color: var(--color-white);
}

.cta a{
  color: var(--color-white);
}

.cta-inner {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.cta h2 {
  color: var(--color-white);
}

.cta-content p {
  margin: 0;
  color: rgb(255 255 255 / 80%);
}

@media (min-width: 768px) {
  .cta-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Footer — CSS Grid
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgb(255 255 255 / 85%);
  padding: 3rem 1.25rem 1.25rem;
  font-size: 0.8125rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
