:root {
  --sg-bg: #F4F7FB;
  --sg-bg-deep: #0B1220;
  --sg-bg-elevated: #FFFFFF;
  --sg-ink: #0F172A;
  --sg-ink-soft: #334155;
  --sg-muted: #64748B;
  --sg-line: rgba(148, 163, 184, 0.35);
  --sg-accent: #3B82F6;
  --sg-accent-hover: #2563EB;
  --sg-accent-deep: #1D4ED8;
  --sg-navy: #1A2233;
  --sg-success: #16A34A;
  --sg-danger: #DC2626;
  --sg-radius: 10px;
  --sg-font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --sg-mono: "IBM Plex Mono", ui-monospace, monospace;
  --sg-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --sg-header-h: 72px;
  --sg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sg-max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sg-font);
  color: var(--sg-ink);
  background: var(--sg-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sg-accent-hover);
  text-decoration: none;
}

a:hover {
  color: var(--sg-accent);
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--sg-ink-soft);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--sg-accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(100% - 2.5rem, var(--sg-max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--sg-header-h);
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 251, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--sg-line);
  background: rgba(244, 247, 251, 0.94);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--sg-ink);
}

.brand:hover {
  color: var(--sg-ink);
}

.brand-mark {
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
}

.nav-link {
  color: var(--sg-ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sg-ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sg-line);
  border-radius: 10px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--sg-ink);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--sg-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--sg-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--sg-ink-soft);
  border-color: var(--sg-line);
}

.btn-ghost:hover {
  color: var(--sg-ink);
  border-color: #94A3B8;
}

.btn-on-dark.btn-ghost {
  color: #E2E8F0;
  border-color: rgba(226, 232, 240, 0.35);
}

.btn-on-dark.btn-ghost:hover {
  color: #fff;
  border-color: rgba(226, 232, 240, 0.7);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--sg-header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #F8FAFC;
  background: var(--sg-bg-deep);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 35%, rgba(59, 130, 246, 0.38), transparent 60%),
    radial-gradient(ellipse 50% 45% at 15% 80%, rgba(29, 78, 216, 0.28), transparent 55%),
    linear-gradient(165deg, #0B1220 0%, #121A2B 45%, #0B1220 100%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
}

.hero-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.hero-mesh::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: 8%;
  top: 18%;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(59, 130, 246, 0.05),
    0 0 0 110px rgba(59, 130, 246, 0.03);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5rem;
  max-width: 640px;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  animation: fade-rise 700ms var(--sg-ease) both;
}

.hero-brand .brand-name {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: #fff;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  animation: fade-rise 700ms var(--sg-ease) 80ms both;
}

.hero-lead {
  font-size: 1.125rem;
  color: #CBD5E1;
  max-width: 36rem;
  margin-bottom: 1.75rem;
  animation: fade-rise 700ms var(--sg-ease) 140ms both;
}

.hero .cta-row {
  animation: fade-rise 700ms var(--sg-ease) 200ms both;
}

.page-hero {
  padding: 4rem 0 2.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(59, 130, 246, 0.12), transparent 55%),
    linear-gradient(180deg, #E8EEF8 0%, var(--sg-bg) 100%);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}

.page-hero .lead {
  font-size: 1.1rem;
  max-width: 40rem;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-dark {
  background: var(--sg-navy);
  color: #F8FAFC;
}

.section-dark p,
.section-dark .muted {
  color: #CBD5E1;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.65rem;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.muted {
  color: var(--sg-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--sg-ease), transform 600ms var(--sg-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Editorial feature blocks —— */
.pillar-list {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .pillar-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.pillar h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.pillar p {
  margin: 0;
  font-size: 0.98rem;
}

.feature-catalog {
  display: grid;
  gap: 2.75rem;
}

.feature-group {
  display: grid;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sg-line);
}

@media (min-width: 860px) {
  .feature-group {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
  }
}

.feature-group h2 {
  font-size: 1.25rem;
}

.feature-group .mono-label {
  font-family: var(--sg-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sg-accent-deep);
  margin-bottom: 0.4rem;
}

.feature-items {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .feature-items {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.92rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--sg-line);
  font-family: var(--sg-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sg-muted);
}

.solution-stack {
  display: grid;
  gap: 2.5rem;
}

.solution-block {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--sg-line);
}

.solution-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.solution-block h2 {
  font-size: 1.45rem;
}

.bullet-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--sg-ink-soft);
  font-size: 0.98rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sg-accent);
}

.platform-flow {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .platform-flow {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flow-step {
  padding-top: 1rem;
  border-top: 2px solid var(--sg-accent);
}

.flow-step .step-num {
  font-family: var(--sg-mono);
  font-size: 0.8rem;
  color: var(--sg-accent-deep);
  margin-bottom: 0.5rem;
}

/* —— Pricing —— */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-plan {
  background: var(--sg-bg-elevated);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.price-plan.is-featured {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: var(--sg-shadow);
}

.price-plan h2 {
  font-size: 1.25rem;
  margin: 0;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-amount span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sg-muted);
}

.price-plan .btn {
  margin-top: auto;
  width: 100%;
}

/* —— Contact form —— */
.form-shell {
  max-width: 560px;
  background: var(--sg-bg-elevated);
  border: 1px solid var(--sg-line);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--sg-shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--sg-ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  border-color: var(--sg-accent);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error,
.validation-summary-errors {
  color: var(--sg-danger);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}

.alert-success {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #166534;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.prose h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

.policy-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--sg-muted, #64748b);
}

/* —— CTA band —— */
.cta-band {
  padding: 4rem 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(59, 130, 246, 0.35), transparent 60%),
    var(--sg-bg-deep);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta-band p {
  color: #CBD5E1;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

/* —— Footer —— */
.site-footer {
  background: #0B1220;
  color: #CBD5E1;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #94A3B8;
  max-width: 22rem;
}

.footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  margin-bottom: 0.9rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: #E2E8F0;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #64748B;
}

.footer-bottom p {
  margin: 0;
  color: inherit;
}

/* —— Animations —— */
@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mesh-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1.5%, 1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-mesh,
  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero .cta-row,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Mobile —— */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--sg-header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(244, 247, 251, 0.98);
    border-bottom: 1px solid var(--sg-line);
    box-shadow: var(--sg-shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--sg-line);
  }

  .nav-actions {
    margin: 1rem 0 0;
    flex-direction: column;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .hero-inner {
    padding: 3.5rem 0 4rem;
  }

  .hero-mesh::after {
    width: 260px;
    height: 260px;
    right: -40px;
    top: 10%;
  }
}
