:root {
  --blue-950: #0f2044;
  --blue-900: #162b56;
  --blue-800: #203b6f;
  --green-500: #00c48c;
  --green-600: #00a978;
  --gray-950: #162033;
  --gray-700: #4d5b71;
  --gray-500: #748095;
  --gray-200: #e7ebf1;
  --gray-100: #f5f7fa;
  --white: #ffffff;
  --error: #d83b46;
  --warning: #f2b84b;
  --shadow: 0 20px 50px rgba(15, 32, 68, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  color: var(--gray-950);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

h1,
h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.55rem, 12vw, 4.75rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 8vw, 3.25rem);
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

p {
  color: var(--gray-700);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(15, 32, 68, 0.12);
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue-950);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--blue-950);
  background: var(--green-500);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.nav-links {
  display: none;
}

.nav-links a {
  color: var(--gray-700);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-950);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: var(--blue-950);
  background: var(--green-500);
  box-shadow: 0 16px 30px rgba(0, 196, 140, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-600);
}

.btn-secondary {
  color: var(--blue-950);
  background: var(--white);
  border-color: var(--gray-200);
}

.btn-outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  border-color: var(--green-500);
}

.btn-small {
  min-height: 40px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
}

.btn-large {
  width: 100%;
  min-height: 54px;
  padding: 1rem 1.2rem;
}

.btn-full {
  width: 100%;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: var(--blue-950);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(15, 32, 68, 0), rgba(15, 32, 68, 0.85));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding-block: 5.5rem 3.5rem;
}

.hero h1,
.hero .hero-subtitle {
  max-width: 760px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.hero-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-note {
  margin-top: 1rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--green-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-on-dark {
  color: var(--green-500);
}

.hero-panel {
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.panel-topline,
.file-row,
.panel-metrics {
  display: flex;
  align-items: center;
}

.panel-topline {
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 6px rgba(0, 196, 140, 0.15);
}

.file-preview {
  display: grid;
  gap: 0.75rem;
}

.file-row {
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
}

.file-row span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.file-row strong {
  font-size: 0.82rem;
}

.file-row.success strong {
  color: var(--green-500);
}

.file-row.warning strong {
  color: var(--warning);
}

.panel-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.panel-metrics div {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--white);
}

.panel-metrics strong,
.panel-metrics span {
  display: block;
}

.panel-metrics strong {
  color: var(--blue-950);
}

.panel-metrics span {
  color: var(--gray-700);
  font-size: 0.86rem;
}

/* Sections and cards */
.section {
  padding-block: 4.5rem;
}

.section-light {
  background: var(--gray-100);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading p {
  font-size: 1rem;
}

.section-lead {
  max-width: 620px;
  font-size: 1.05rem;
}

.on-dark {
  color: rgba(255, 255, 255, 0.78);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.feature-card,
.price-card,
.credibility-grid article,
.pillar {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(15, 32, 68, 0.04);
}

.feature-card {
  min-height: 210px;
  padding: 1.25rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  border-color: rgba(0, 196, 140, 0.46);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-card p,
.pillar p {
  margin-bottom: 0;
}

.card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: var(--radius);
  color: var(--blue-950);
  background: rgba(0, 196, 140, 0.14);
  font-size: 0.68rem;
  font-weight: 900;
}

.split-section {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.pillar-list {
  display: grid;
  gap: 1rem;
}

.pillar {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
}

.pillar .card-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

/* API */
.api-section {
  color: var(--white);
  background: var(--blue-950);
}

.api-section h2 {
  color: var(--white);
}

.api-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 1.7rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.84);
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-list span {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  border-radius: 50%;
  background: var(--green-500);
}

.check-list span::after {
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid var(--blue-950);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.code-block {
  overflow-x: auto;
  margin: 0;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #d8f8ee;
  background: #07142c;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.26);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1rem;
}

.price-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.25rem;
}

.price-card-featured {
  border-color: var(--green-500);
  box-shadow: var(--shadow);
}

.popular-label {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--blue-950);
  background: rgba(0, 196, 140, 0.16);
  font-size: 0.75rem;
  font-weight: 900;
}

.price {
  margin-bottom: 1rem;
  color: var(--blue-950);
  font-size: 2rem;
  font-weight: 900;
}

.price span {
  color: var(--gray-500);
  font-size: 0.95rem;
  font-weight: 700;
}

.price-card ul {
  display: grid;
  flex: 1;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--gray-700);
}

/* Form */
.lead-section {
  color: var(--white);
  background: var(--blue-950);
}

.form-shell {
  display: grid;
  gap: 2rem;
}

.form-intro h2 {
  color: var(--white);
}

.form-intro p {
  color: rgba(255, 255, 255, 0.75);
}

.form-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-950);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.lead-form {
  display: grid;
  gap: 1rem;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.lead-form.is-submitting {
  opacity: 0.72;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span,
.choice-group legend {
  color: var(--gray-950);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-950);
  background: var(--white);
  padding: 0.8rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(0, 196, 140, 0.14);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.choice-group.has-error {
  border-color: var(--error);
}

.field-error {
  min-height: 1rem;
  color: var(--error);
  font-size: 0.82rem;
  font-weight: 700;
}

.choice-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.choice-group legend {
  padding-inline: 0.2rem;
}

.choice-group label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--gray-700);
}

.choice-group input {
  width: auto;
  min-height: auto;
  margin-top: 0.25rem;
  accent-color: var(--green-500);
}

.form-feedback {
  display: none;
  padding: 0.9rem;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-feedback.is-error {
  display: block;
  color: #7c1f27;
  background: #fdecee;
}

.form-feedback.is-info {
  display: block;
  color: var(--blue-950);
  background: rgba(0, 196, 140, 0.12);
}

.success-message {
  padding: 2rem 1rem;
  text-align: center;
}

.success-message p {
  margin-bottom: 0;
}

.success-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-950);
  background: var(--green-500);
  font-weight: 900;
}

/* Credibility and FAQ */
.credibility-grid {
  display: grid;
  gap: 1rem;
}

.credibility-grid article {
  padding: 1.2rem;
}

.credibility-grid h3 {
  margin-bottom: 0;
}

.faq-container {
  max-width: 880px;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  color: var(--blue-950);
  background: transparent;
  padding: 1rem;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.faq-toggle {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 196, 140, 0.14);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 1rem 1rem;
}

.faq-item.is-open .faq-toggle {
  background: var(--green-500);
}

/* Footer */
.site-footer {
  padding-block: 2.5rem;
  color: rgba(255, 255, 255, 0.78);
  background: #07142c;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  margin-bottom: 0.9rem;
  color: var(--white);
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.footer-actions {
  display: grid;
  gap: 0.9rem;
}

.footer-actions a {
  color: var(--green-500);
  font-weight: 900;
}

/* Motion */
.fade-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@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;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .navbar {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: flex;
    justify-content: center;
    gap: 1.6rem;
  }

  .btn-large {
    width: auto;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

  .panel-metrics,
  .form-grid,
  .credibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .choice-group legend,
  .choice-group .field-error {
    grid-column: 1 / -1;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .section {
    padding-block: 6rem;
  }

  .hero-grid {
    padding-block: 6.5rem 5rem;
  }

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

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

  .split-section,
  .api-grid,
  .form-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

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

@media (max-width: 420px) {
  .navbar {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    font-size: 0.95rem;
  }

  .navbar .btn {
    max-width: 154px;
    padding-inline: 0.65rem;
  }
}
