:root {
  --navy: #0e2238;
  --navy-2: #1a3350;
  --green: #2a9d6f;
  --green-dark: #1f7f59;
  --green-soft: #e6f4ee;
  --amber: #9a6400;
  --amber-soft: #fff4e0;
  --cream: #f7f4ee;
  --ink: #1b2a3a;
  --muted: #5b6b7c;
  --line: #e4e8ed;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 34, 56, 0.06), 0 2px 8px rgba(14, 34, 56, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(14, 34, 56, 0.35), 0 8px 24px -12px rgba(14, 34, 56, 0.2);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Plus Jakarta Sans', var(--font-body);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(42, 157, 111, 0.45);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(42, 157, 111, 0.7);
}
.btn-primary:hover {
  background: var(--green-dark);
}
.btn-ghost {
  color: var(--navy);
  border-color: var(--line);
  background: var(--white);
}
.btn-ghost:hover {
  border-color: var(--navy);
}
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
  border-color: var(--white);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 15px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(14, 34, 56, 0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.brand-sub {
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.site-nav a:not(.btn):hover {
  color: var(--navy);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(42, 157, 111, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(14, 34, 56, 0.07), transparent 60%),
    linear-gradient(180deg, var(--white), var(--cream));
  z-index: -1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 180' preserveAspectRatio='none'%3E%3Cpath d='M0 180 L0 120 L140 70 L240 110 L380 30 L520 105 L640 60 L760 115 L900 45 L1040 100 L1200 70 L1200 180 Z' fill='%230e2238' fill-opacity='0.04'/%3E%3Cpath d='M0 180 L0 150 L180 105 L320 140 L470 95 L620 145 L780 100 L960 140 L1100 110 L1200 130 L1200 180 Z' fill='%230e2238' fill-opacity='0.05'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.accent {
  color: var(--green);
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-2);
}
.hero-points li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  vertical-align: middle;
}

/* Portfolio stack */
.hero-visual {
  position: relative;
  padding: 24px 12px 40px;
}
.stack {
  display: grid;
  gap: 18px;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero-visual:hover .stack {
  transform: perspective(1400px) rotateY(0) rotateX(0);
}
.stack-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.stack-live {
  box-shadow: var(--shadow-lg);
}
.stack-next {
  margin-left: 40px;
  background: rgba(255, 255, 255, 0.7);
  border-style: dashed;
  border-color: #cfd6de;
}
.sc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sc-logo {
  height: 30px;
  width: auto;
}
.sc-title {
  margin: 18px 0 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}
.sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  background: #f2f4f7;
  color: var(--navy-2);
}
.sc-meter {
  margin-top: 20px;
}
.sc-meter-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}
.bar {
  height: 8px;
  border-radius: 4px;
  background: #e9edf1;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), #5cc49a);
}
.sc-placeholder {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--muted);
}
.sc-lines {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.line {
  height: 8px;
  border-radius: 4px;
  background: #e9edf1;
}
.w90 { width: 85%; }
.w60 { width: 55%; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-live {
  color: var(--green-dark);
  background: var(--green-soft);
}
.status-dev {
  color: var(--amber);
  background: var(--amber-soft);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

.float-card {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  animation: float 6s ease-in-out infinite;
}
.fc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.fc-value {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}
.float-a {
  left: -18px;
  bottom: 6px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections */
.section {
  padding: 104px 0;
}
.section-tint {
  background: var(--cream);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2,
.cta h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}
.section-head p:last-child {
  color: var(--muted);
  font-size: 18px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 19px;
}
.card p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}

/* Products */
.product {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.product-logo {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
}
.product-tagline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.product-copy > p:not(.product-tagline) {
  color: var(--muted);
}
.product-copy .btn {
  margin-top: 28px;
}
.product-side {
  display: grid;
  align-self: start;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--navy);
}
.stat {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.stat-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
}
.product-side .status-live {
  background: rgba(42, 157, 111, 0.2);
  color: #7fdab4;
}
.product-next {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 48px;
  border: 1.5px dashed #cfd6de;
  border-radius: var(--radius-lg);
}
.product-next h3 {
  margin-top: 12px;
  font-size: 22px;
}
.product-next p {
  margin: 0;
  color: var(--muted);
  max-width: 44em;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  position: relative;
  padding-left: 36px;
  color: var(--muted);
}
.checklist li strong {
  color: var(--navy);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7f59' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* CTA */
.cta {
  padding: 0 0 104px;
}
.cta-inner {
  text-align: center;
  padding: 72px 32px;
  border-radius: 32px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(42, 157, 111, 0.45), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(42, 157, 111, 0.25), transparent 60%),
    var(--navy);
  color: rgba(255, 255, 255, 0.82);
}
.cta h2 {
  color: var(--white);
}
.cta p {
  font-size: 18px;
  max-width: 34em;
  margin: 0 auto 28px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--white);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand .brand {
  margin-bottom: 12px;
}
.footer-brand .brand img {
  width: 34px;
  height: 34px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.footer-nav a:hover {
  color: var(--navy);
}
.footer-legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--muted);
}
.footer-legal p {
  margin: 0;
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .product {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 880px) {
  body {
    font-size: 16px;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(14, 34, 56, 0.25);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav a:not(.btn) {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .btn {
    margin-top: 16px;
    justify-content: center;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 18px;
  }

  .hero {
    padding: 48px 0 72px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .stack {
    transform: none;
  }
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .product {
    padding: 32px;
  }
  .product-next {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 32px;
  }
  .cta {
    padding-bottom: 72px;
  }
  .cta-inner {
    padding: 56px 24px;
    border-radius: 24px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }
  .grid,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn,
  .cta-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .lede {
    font-size: 17px;
  }
  .hero-visual {
    padding: 36px 0 0;
  }
  .stack-next {
    margin-left: 20px;
  }
  .float-a {
    left: 4px;
    bottom: -24px;
  }
  .card {
    padding: 24px;
  }
  .product {
    padding: 24px;
  }
  .product-side {
    padding: 22px;
  }
  .product-logo {
    height: 36px;
  }
  .product-next {
    padding: 24px;
  }
  .cta-actions .btn {
    white-space: normal;
  }
  .footer-legal {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
