:root {
  --brand-blue: #295fa8;
  --brand-teal: #3c9393;
  --bg: #ffffff;
  --text: #10253f;
  --muted: #5c6e82;
  --line: #dbe6f2;
  --shadow: 0 20px 45px rgba(29, 67, 113, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.25;
  z-index: -1;
}

.orb-a {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -120px;
  background: var(--brand-teal);
}

.orb-b {
  width: 400px;
  height: 400px;
  left: -200px;
  top: 40%;
  background: var(--brand-blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 34px;
  height: 34px;
  display: block;
}

.wordmark {
  font-weight: 800;
  font-size: clamp(1.2rem, 1.2rem + 0.3vw, 1.45rem);
  color: var(--brand-blue);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.header-nav a:hover {
  color: var(--brand-blue);
}

.btn {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-teal));
  box-shadow: 0 10px 24px rgba(41, 95, 168, 0.25);
}

.btn-soft {
  color: var(--brand-blue);
  background: #edf4ff;
  border-color: #cae0ff;
}

.btn-ghost {
  color: var(--brand-blue);
  border-color: #b7cae6;
}

.hero {
  margin-top: 0;
  padding: 0;
  background: var(--brand-teal);
  border-radius: 0;
  box-shadow: none;
}

.hero-inner {
  padding: clamp(8px, 1.2vw, 14px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
}

.hero-copy {
  padding: 0;
  max-width: 52ch;
}

.eyebrow {
  margin: 0;
  color: var(--brand-teal);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #d7f3f3;
}

.hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.95rem, 3.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.42;
  color: #e7f7f7;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
}

.hero .btn-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-soft:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-media {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
  aspect-ratio: 932 / 870;
  width: 100%;
  justify-self: end;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stats {
  padding: 8px 0 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats article {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 16px 14px;
}

.stats h3 {
  margin: 0;
  color: var(--brand-blue);
  font-size: 1.05rem;
}

.stats p {
  margin: 8px 0 0;
  color: #4c6178;
  line-height: 1.4;
  font-size: 0.94rem;
}

.section {
  padding: 56px 0 10px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
}

.flow-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.flow-card,
.arch-card,
.modules-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(25, 55, 92, 0.05);
}

.flow-card h3,
.arch-card h3,
.modules-grid article h3 {
  margin: 0 0 8px;
  color: var(--brand-blue);
}

.flow-card p,
.arch-card li,
.modules-grid article p {
  margin: 0;
  color: #3d536d;
  line-height: 1.5;
}

.architecture {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.arch-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 9px;
}

.arch-card code {
  color: #133f73;
  font-weight: 700;
}

.modules-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.functions-stack {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.function-card {
  border: 0;
  border-radius: 14px;
  background: var(--brand-teal);
  padding: 14px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.function-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border: 0;
}

.function-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(17, 44, 76, 0.22);
}

.reveal.is-visible .functions-stack .function-card {
  animation: function-card-in 0.6s ease both;
}

.reveal.is-visible .functions-stack .function-card:nth-child(2) {
  animation-delay: 0.12s;
}

.reveal.is-visible .functions-stack .function-card:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes function-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.function-copy h3 {
  margin: 0;
  color: #d7f3f3;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 8px 12px 8px;
}

.function-copy p {
  margin: 0;
  color: #e8f7f7;
  line-height: 1.5;
  font-size: 0.93rem;
  padding: 0 8px 6px 8px;
}

.module-name {
  font-family: inherit;
  font-style: italic;
  font-weight: 700;
  color: #ffffff;
}

.functions-stack .function-card:nth-child(2) .function-copy {
  order: 1;
}

.functions-stack .function-card:nth-child(2) img {
  order: 2;
}

.cta {
  margin-top: 48px;
  margin-bottom: 64px;
  border-radius: 22px;
  border: 1px solid #d0e3ff;
  background: linear-gradient(160deg, #f7fbff 0%, #eef9f7 100%);
  padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
}

.cta p {
  margin: 10px 0 22px;
  color: #3f5670;
  line-height: 1.55;
  max-width: 70ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: #61748a;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 1024px) {
  .header-inner {
    min-height: 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

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

  .architecture {
    grid-template-columns: 1fr;
  }

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

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

  .function-card {
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .header-nav {
    display: none;
  }

  .stats,
  .flow-grid,
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .functions-stack {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}
