:root {
  --ink: #0b1f3a;
  --ink-2: #213854;
  --muted: #627188;
  --line: #d9e2ec;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --teal: #18b8b1;
  --orange: #ff7a1a;
  --blue: #1764d8;
  --shadow: 0 20px 50px rgba(11, 31, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(217, 226, 236, 0.72);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.18);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--ink-2);
  font-weight: 650;
}

.main-nav a {
  position: relative;
  padding: 0.35rem 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--orange);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem) 3rem;
  background:
    radial-gradient(circle at 14% 20%, rgba(24, 184, 177, 0.16), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 70%);
}

.hero-content {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.17rem;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 16px 30px rgba(11, 31, 58, 0.2);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #123054;
}

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

.button.light {
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.hero-media {
  overflow: hidden;
  border: 1px solid rgba(217, 226, 236, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #eef5f9;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1rem, 4vw, 4rem);
}

.section-heading {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 2rem;
}

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

.product-card,
.step,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.4rem;
  box-shadow: 0 14px 35px rgba(11, 31, 58, 0.06);
}

.product-card p,
.step p {
  color: var(--muted);
}

.product-card ul {
  display: grid;
  gap: 0.45rem;
  margin: auto 0 0;
  padding: 1rem 0 0;
  color: var(--ink-2);
  font-weight: 650;
  list-style: none;
}

.product-card li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.product-card li::before {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  content: "";
  background: var(--teal);
}

.product-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.2rem;
  border-radius: 8px;
}

.product-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.product-icon.orders {
  color: #9b4100;
  background: #fff0e5;
}

.product-icon.reports {
  color: #1552b0;
  background: #eaf2ff;
}

.product-icon.dashboards {
  color: #087b76;
  background: #e8fbf9;
}

.product-icon.automations {
  color: #6b42b8;
  background: #f2ecff;
}

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

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

.step {
  padding: 1.35rem;
}

.step span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 900;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 4vw, 4rem);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.98), rgba(15, 86, 132, 0.95)),
    var(--ink);
}

.cta-section h2 {
  max-width: 48rem;
  margin: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.75fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-panel {
  display: grid;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(11, 31, 58, 0.08);
}

.contact-panel a,
.contact-item {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease;
}

.contact-panel a:last-child,
.contact-item:last-child {
  border-bottom: 0;
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  background: var(--soft);
}

.contact-panel span,
.contact-item span {
  color: var(--muted);
}

.site-footer {
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  color: #dce7f2;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.reveal {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 600ms ease, opacity 600ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1040px) {
  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .hero-media {
    max-width: 760px;
  }
}

@media (max-width: 740px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.85rem 0.9rem;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-actions,
  .cta-section {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .product-grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}
