:root {
  --navy: #163a6b;
  --navy-deep: #0f2748;
  --green: #2fbf4a;
  --green-deep: #1f8f35;
  --ink: #163a6b;
  --ink-soft: #4a6280;
  --paper: #eef5fb;
  --paper-2: #ffffff;
  --line: rgba(22, 58, 107, 0.12);
  --gold: #e3b23c;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --radius: 6px;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-deep);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 1rem 0;
}

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

.logo {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--green-deep);
}

/* Hero — one vertical stack so brand + copy never collide */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 90% 15%, rgba(47, 191, 74, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 50% at 8% 88%, rgba(22, 58, 107, 0.08), transparent 55%),
    linear-gradient(160deg, #f7fbff 0%, #e8f3fa 45%, #eef8f0 100%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bar {
  position: absolute;
  bottom: 10%;
  width: 2.2rem;
  border-radius: 0.4rem 0.4rem 0 0;
  opacity: 0.18;
  transform-origin: bottom center;
  animation: rise 1.2s ease both;
}

.bar-1 {
  right: 18%;
  height: 4rem;
  background: #e85d4c;
  animation-delay: 0.1s;
}

.bar-2 {
  right: 14.5%;
  height: 5.75rem;
  background: #f0a33a;
  animation-delay: 0.2s;
}

.bar-3 {
  right: 11%;
  height: 7.5rem;
  background: #f2d14a;
  animation-delay: 0.3s;
}

.bar-4 {
  right: 7.5%;
  height: 9.25rem;
  background: #7ed957;
  animation-delay: 0.4s;
}

.bar-5 {
  right: 4%;
  height: 11.5rem;
  background: #4aa3e8;
  animation-delay: 0.5s;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: 7.5rem 0 4rem;
}

.brand {
  margin: 0 0 1.35rem;
  line-height: 0;
  animation: fade-up 0.8s ease both;
}

.brand img {
  display: block;
  width: min(100%, 380px);
  height: auto;
}

.headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  max-width: 22ch;
  animation: fade-up 0.8s ease 0.1s both;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40ch;
  animation: fade-up 0.8s ease 0.18s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fade-up 0.8s ease 0.26s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

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

.btn-primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}

.btn-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(22, 58, 107, 0.28);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(22, 58, 107, 0.04);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.product-copy h2,
.about h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-head p,
.product-copy p,
.about p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.solutions {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.solution-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.solution-list li {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.solution-list li:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.solution-list li:nth-child(even) {
  padding-left: 2rem;
}

.solution-list h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
}

.solution-list p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 34ch;
}

.product {
  background:
    radial-gradient(ellipse 50% 45% at 90% 10%, rgba(47, 191, 74, 0.1), transparent 55%),
    #f4f9fd;
  border-top: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.product-copy p + p {
  margin-top: 1rem;
}

.product-copy .btn {
  margin-top: 1.5rem;
}

.product-panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.product-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.product-panel li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.product-panel span {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.about {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.about-inner {
  max-width: 40rem;
}

/* Footer */
.site-footer {
  background:
    linear-gradient(180deg, #163a6b 0%, #0f2748 100%);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand img {
  width: 200px;
  height: auto;
  margin-bottom: 1rem;
  /* Logo ink is dark — soft light plate so it stays readable on navy */
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.footer-brand p {
  margin: 0;
  max-width: 28ch;
  line-height: 1.55;
}

.footer-brand a,
.footer-col a {
  color: #fff;
  font-weight: 600;
}

.footer-brand a:hover,
.footer-col a:hover {
  color: #b8f0c2;
}

.footer-col h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col p,
.footer-col address {
  margin: 0;
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.55;
}

.footer-col p + address,
.footer-col p + .footer-nav {
  margin-top: 0.85rem;
}

.footer-nav {
  display: grid;
  gap: 0.45rem;
}

.footer-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0 1.4rem;
}

.footer-bar p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    transform: scaleY(0.2);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 0.22;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bar,
  .brand,
  .headline,
  .lede,
  .cta-row {
    animation: none !important;
  }

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

@media (max-width: 900px) {
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bar {
    opacity: 0.12;
  }

  .solution-list {
    grid-template-columns: 1fr;
  }

  .solution-list li:nth-child(odd),
  .solution-list li:nth-child(even) {
    padding: 1.5rem 0;
    border-right: none;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

  .logo img {
    height: 42px;
  }

  .nav {
    gap: 0.85rem;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .hero-copy {
    padding-top: 6.25rem;
  }

  .brand img {
    width: min(100%, 300px);
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-brand img {
    width: 170px;
  }
}
