:root {
  --charcoal: #1f2937;
  --charcoal-2: #111827;
  --orange: #f97316;
  --green: #22c55e;
  --white: #f8fafc;
  --surface: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 8px;
  --max-width: 1180px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

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

h1,
h2,
h3 {
  color: var(--charcoal-2);
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--max-width));
  min-height: var(--header-height);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  object-fit: cover;
}

.brand img.primary-logo {
  width: auto;
  height: calc(var(--header-height) - 10px);
  max-height: calc(var(--header-height) - 10px);
  border-radius: 0;
  object-fit: contain;
}

.footer-brand img.primary-logo {
  width: auto;
  height: 50px;
  max-height: 50px;
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  color: var(--charcoal-2);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu > a:not(.button) {
  color: #475569;
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.nav-menu > a:hover,
.nav-menu > a:focus-visible {
  color: var(--orange);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: #ea580c;
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.3);
}

.button-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: var(--charcoal);
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--charcoal);
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.section-offset {
  scroll-margin-top: var(--header-height);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 56px;
  width: min(100% - 40px, var(--max-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-height) + 42px) 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18% auto auto -10%;
  width: 38%;
  height: 58%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(249, 115, 22, 0.08));
  filter: blur(18px);
  z-index: -1;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 660px;
  margin-top: 22px;
  color: #475569;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.trust-row {
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  min-width: 70px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-image {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(100%, 470px);
  height: 315px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.ecosystem-card {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.primary-panel {
  position: absolute;
  inset: 210px 0 auto auto;
  width: min(92%, 390px);
  min-height: 285px;
  padding: 30px;
  overflow: hidden;
}

.primary-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border: 34px solid rgba(34, 197, 94, 0.12);
  border-radius: 50%;
}

.primary-panel > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-panel p {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 800;
}

.primary-panel > strong {
  display: block;
  margin-top: 34px;
  color: var(--charcoal-2);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1.05;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.14);
}

.metric-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.metric-grid span {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 7px;
  width: 178px;
  padding: 18px;
}

.floating-card span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
}

.floating-card strong {
  color: var(--charcoal-2);
  font-size: 1rem;
  line-height: 1.25;
}

.card-ai {
  top: 22px;
  right: 240px;
}

.card-pos {
  right: 16px;
  bottom: 10px;
}

.visual-beam {
  position: absolute;
  right: 46px;
  top: 44px;
  width: 7px;
  height: 410px;
  border-radius: 999px;
  background: linear-gradient(var(--orange), var(--green));
  opacity: 0.82;
}

.section-image {
  margin: -10px 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.section-image img {
  width: 100%;
  height: clamp(260px, 36vw, 430px);
  object-fit: cover;
}

.section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 96px 0;
  scroll-margin-top: var(--header-height);
}

.section-band {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max-width)) / 2));
  padding-left: max(20px, calc((100% - var(--max-width)) / 2));
  background: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.four-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.service-list article,
.why-grid article,
.proof-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.feature-card {
  min-height: 275px;
  padding: 24px;
}

.feature-card:hover,
.service-list article:hover,
.why-grid article:hover,
.proof-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.44);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 36px;
  border-radius: var(--radius);
  background: rgba(249, 115, 22, 0.11);
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 900;
}

.feature-card p,
.service-list p,
.why-grid p,
.proof-grid p {
  margin-top: 12px;
}

.compact-card {
  min-height: 245px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-list article {
  min-height: 185px;
  padding: 28px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  padding-top: 6px;
}

.about-copy p {
  color: #475569;
  font-size: 1.08rem;
}

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

.why-grid article {
  min-height: 210px;
  padding: 24px;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.stack-grid span:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.proof-section {
  padding-top: 72px;
}

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

.proof-grid article {
  min-height: 215px;
  padding: 24px;
}

.proof-grid strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  font-size: 0.86rem;
}

.contact-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(100% - 40px, var(--max-width));
  margin: 96px auto;
  padding: 44px;
  border-radius: var(--radius);
  background: var(--charcoal-2);
  box-shadow: var(--shadow);
}

.contact-cta h2 {
  max-width: 720px;
  color: #fff;
}

.contact-cta p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 14px;
  color: #cbd5e1;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  outline: none;
  padding: 12px 14px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.contact-form select option {
  color: var(--charcoal);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.contact-form .full-field,
.contact-form .button {
  grid-column: 1 / -1;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) auto;
  gap: 36px;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 430px;
  margin-top: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: flex-end;
  gap: 18px 26px;
  color: #475569;
  font-weight: 800;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--orange);
}

.copyright {
  grid-column: 1 / -1;
  color: #94a3b8;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-height) 20px auto;
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu > a {
    padding: 12px;
  }

  .nav-menu .button {
    margin-top: 8px;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    min-height: auto;
    padding-top: calc(var(--header-height) + 56px);
  }

  .hero-visual {
    min-height: 520px;
  }

  .primary-panel {
    left: 0;
    right: auto;
  }

  .card-ai {
    left: 28px;
    right: auto;
  }

  .hero-image {
    left: 0;
    right: auto;
  }

  .four-columns,
  .why-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 60px;
  }

  .nav-shell,
  .hero,
  .section,
  .contact-cta,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .brand small {
    display: none;
  }

  .brand img.primary-logo {
    width: auto;
    height: 40px;
    max-height: 40px;
  }

  .hero {
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

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

  .button {
    width: 100%;
  }

  .trust-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trust-row span {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-image {
    width: 100%;
    height: 245px;
  }

  .primary-panel {
    inset: 210px 0 auto;
    width: 100%;
    min-height: 270px;
    padding: 22px;
  }

  .primary-panel > strong {
    margin-top: 34px;
    font-size: 1.85rem;
  }

  .metric-grid {
    margin-top: 24px;
  }

  .floating-card {
    width: 148px;
    padding: 14px;
  }

  .card-ai {
    top: 0;
    left: 14px;
  }

  .card-pos {
    right: 14px;
    bottom: 0;
  }

  .visual-beam {
    right: 24px;
    height: 320px;
  }

  .section {
    padding: 68px 0;
  }

  .section-band {
    padding-right: 14px;
    padding-left: 14px;
  }

  .four-columns,
  .service-list,
  .why-grid,
  .proof-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .service-list article,
  .why-grid article,
  .proof-grid article {
    min-height: auto;
  }

  .split-section {
    gap: 24px;
  }

  .contact-cta {
    display: grid;
    margin: 68px auto;
    padding: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
