:root {
  --bg: #f6fbfc;
  --bg-soft: #eef7f8;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-strong: #f9fdfe;
  --text: #0f2027;
  --muted: #5b7178;
  --line: rgba(15, 32, 39, 0.08);
  --line-strong: rgba(15, 32, 39, 0.14);
  --accent: #1ebec8;
  --accent-2: #6e65ff;
  --accent-3: #20d2a4;
  --shadow: 0 18px 60px rgba(18, 32, 39, 0.08);
  --shadow-soft: 0 10px 28px rgba(18, 32, 39, 0.05);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
  --focus: 0 0 0 4px rgba(30, 190, 200, 0.18);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 12% 10%, rgba(30, 190, 200, 0.12), transparent 24%),
    radial-gradient(circle at 88% 6%, rgba(110, 101, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfeff 0%, #f6fbfc 50%, #f2f9fa 100%);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.75)),
    radial-gradient(circle at top left, rgba(30, 190, 200, 0.06), transparent 28%),
    radial-gradient(circle at top right, rgba(110, 101, 255, 0.05), transparent 30%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(3rem, 7vw, 5.6rem); max-width: 12ch; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); max-width: 17ch; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 14px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.lede, .section-heading p, .contact-copy p, .why-grid p, .insight-card p, .info-card p, .feature-card li {
  color: var(--muted);
  font-size: 1.04rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--surface-solid);
  color: var(--text);
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { top: 1rem; outline: none; box-shadow: var(--focus), var(--shadow-soft); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(246, 251, 252, 0.78);
  border-bottom: 1px solid rgba(15, 32, 39, 0.05);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: inherit; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  padding: 8px;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(230, 248, 249, 0.9));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-text strong { font-size: 1rem; }
.brand-text span {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.site-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--text); }
.nav-cta {
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(30,190,200,0.16), rgba(110,101,255,0.16));
  border: 1px solid rgba(30,190,200,0.2);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  padding-top: 44px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy .lede {
  max-width: 62ch;
  font-size: 1.16rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.4rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.92rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); color: inherit; }
.button:focus-visible,
.site-nav a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.framework-step:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.button-primary {
  background: linear-gradient(135deg, var(--accent), #47d6df);
  color: #052328;
  box-shadow: 0 12px 24px rgba(30, 190, 200, 0.18);
}
.button-secondary {
  background: rgba(255,255,255,0.9);
  border-color: var(--line-strong);
  color: var(--text);
}
.button-full { width: 100%; }

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}
.hero-notes div {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.hero-notes dt {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero-notes dd { margin: 0; font-weight: 700; }

.hero-visual {
  padding: 18px;
  border: 1px solid rgba(15, 32, 39, 0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245, 250, 251, 0.88)),
    radial-gradient(circle at 30% 20%, rgba(30,190,200,0.12), transparent 28%),
    radial-gradient(circle at 80% 82%, rgba(110,101,255,0.10), transparent 30%);
  box-shadow: var(--shadow);
}
.network-svg {
  width: 100%;
  height: auto;
}
.network-svg .node circle,
.network-svg .node text,
.core-title,
.core-sub { transition: opacity 200ms ease, transform 200ms ease; }
.network-svg .flow-lines path {
  stroke-dasharray: 12 12;
  animation: dash 18s linear infinite;
}
.network-svg .node circle {
  fill: #ffffff;
  stroke: #d2e9ec;
  stroke-width: 2;
}
.network-svg .node text {
  fill: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}
.network-svg .node-group .node:nth-child(odd) circle { fill: #eefbfd; }
.network-svg .node-group .node:nth-child(3) circle,
.network-svg .node-group .node:nth-child(5) circle {
  fill: #f4f0ff;
}
.network-svg .node-group .node:nth-child(2),
.network-svg .node-group .node:nth-child(4),
.network-svg .node-group .node:nth-child(6) {
  animation: floatNode 7s ease-in-out infinite;
}
.network-svg .node-group .node:nth-child(2) { animation-delay: 0.3s; }
.network-svg .node-group .node:nth-child(3) { animation-delay: 0.6s; }
.network-svg .node-group .node:nth-child(4) { animation-delay: 0.9s; }
.network-svg .node-group .node:nth-child(5) { animation-delay: 1.2s; }
.network-svg .node-group .node:nth-child(6) { animation-delay: 1.5s; }
.core-title {
  fill: var(--text);
  font-size: 24px;
  font-weight: 800;
}
.core-sub {
  fill: var(--muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  gap: 1rem;
}
.card-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.info-card,
.feature-card,
.insight-card,
.why-grid article,
.contact-form,
.contact-copy,
.framework-copy,
.application-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.info-card,
.feature-card,
.insight-card,
.why-grid article {
  padding: 1.35rem;
}

.info-card svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--accent);
}
.info-card h3, .feature-card h3, .insight-card h3, .why-grid h3 { margin-bottom: 0.55rem; }
.feature-card .card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(30,190,200,0.12);
  color: var(--accent-2);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.feature-card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
}
.feature-card li + li { margin-top: 0.45rem; }

.framework {
  display: grid;
  gap: 1rem;
}
.framework-diagram {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}
.framework-step {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  min-height: 76px;
  padding: 0.95rem 0.8rem;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.framework-step:hover { transform: translateY(-1px); color: var(--text); }
.framework-step.is-active {
  color: #052328;
  background: linear-gradient(135deg, rgba(30,190,200,0.16), rgba(110,101,255,0.12));
  border-color: rgba(30,190,200,0.35);
}
.framework-panel {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245, 250, 251, 0.9)),
    radial-gradient(circle at 20% 15%, rgba(30,190,200,0.08), transparent 24%),
    radial-gradient(circle at 90% 78%, rgba(110,101,255,0.08), transparent 28%);
  border: 1px solid var(--line);
}
.framework-visual {
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.5rem;
}
.framework-copy {
  padding: 1.4rem;
}
.framework-copy p:last-child { margin-bottom: 0; }

.application-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.application-card {
  padding: 1rem 1.1rem;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  min-height: 92px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,251,252,0.92));
}
.application-card:nth-child(odd) { border-color: rgba(30,190,200,0.14); }
.application-card:nth-child(3n) { border-color: rgba(110,101,255,0.14); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.why-grid article h3 { margin-bottom: 0.55rem; }

.insight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 0.8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1rem;
  align-items: start;
}
.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.contact-meta > div {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
}
.meta-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
address {
  font-style: normal;
  color: var(--text);
}
.contact-note {
  margin-top: 1rem;
  color: var(--muted);
}

.contact-form {
  padding: 1.25rem;
}
.field + .field { margin-top: 1rem; }
label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-weight: 700;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  color: var(--text);
  font: inherit;
  padding: 0.95rem 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
input:hover, textarea:hover { border-color: rgba(30,190,200,0.3); }
textarea { resize: vertical; min-height: 160px; }
.field-error, .form-status {
  min-height: 1.2em;
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
}
.field-error { color: #b33d48; }
.form-status { color: var(--accent-2); font-weight: 600; }

.site-footer {
  padding: 46px 0 28px;
  border-top: 1px solid rgba(15,32,39,0.06);
  background: rgba(255,255,255,0.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.95fr 0.9fr;
  gap: 1rem;
  align-items: start;
}
.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}
.footer-contact strong,
.footer-contact address,
.footer-contact a,
.footer-social a,
.footer-nav a { display: block; }
.footer-nav, .footer-social {
  display: grid;
  gap: 0.45rem;
}
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15,32,39,0.06);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.loop-pulse {
  animation: pulse 8s linear infinite;
}
.loop-pulse circle {
  fill: var(--accent);
}

@keyframes dash {
  to { stroke-dashoffset: -240; }
}
@keyframes pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes floatNode {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 1100px) {
  .hero-grid, .contact-grid, .framework-panel, .footer-grid { grid-template-columns: 1fr; }
  .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.four-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.three-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .framework-diagram { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 84px;
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.3rem;
    padding: 0.8rem;
    background: rgba(255,255,255,0.97);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transform-origin: top right;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
  }
  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .site-nav a, .nav-cta { padding: 0.9rem 0.95rem; border-radius: 16px; }
  .menu-toggle { display: inline-block; }
  .hero-notes, .contact-meta, .application-grid, .why-grid,
  .card-grid.four-up, .card-grid.three-up, .framework-diagram { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  h1 { max-width: 100%; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .section { padding: 76px 0; }
}

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