:root {
  --navy: #0b1e3f;
  --navy-2: #0f2a52;
  --green: #22d3aa;
  --blue: #2f6fed;
  --ink: #101828;
  --muted: #5b6472;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --border: #e6e9f0;
  --radius: 16px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
}

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.main-nav a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  width: 100%;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(34,211,170,0.14), transparent 60%),
    radial-gradient(700px 380px at 5% 0%, rgba(47,111,237,0.10), transparent 60%);
}

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

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

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  margin: 0 0 20px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 620px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11,30,63,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(11,30,63,0.24); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--navy); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 40px; max-width: 620px; }
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card-grid-single { grid-template-columns: 1fr; }
.card-grid-single .card { max-width: 560px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: 0 16px 32px rgba(16,24,40,0.08); transform: translateY(-2px); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.product-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-mark.cpa { background: #eaf1ff; }
.product-mark.rs { background: #fff3e0; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-mark.pipeline { background: #f1eaff; }
.product-mark-logo { background: none; }
.product-mark-logo img { display: block; width: 48px; height: 48px; }

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.badge-live { background: #e8fbf5; color: #0c8a63; }
.badge-pipeline { background: #f1eaff; color: #6c3ce0; }

.card h3 { margin: 0 0 10px; font-size: 20px; color: var(--navy); font-weight: 800; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.pipeline-card p { margin-bottom: 0; }

/* About */
.about-lead {
  font-size: 18px;
  color: var(--ink);
  max-width: 760px;
  margin: 0 0 40px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-item h4 { color: var(--navy); font-size: 16px; margin: 0 0 8px; }
.about-item p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Contact */
.contact-inner { text-align: left; }
.contact-lead { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 0 28px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 28px; width: auto; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--navy); }

/* Responsive */
@media (max-width: 860px) {
  .card-grid, .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
}
