:root {
  --blue: #0A2F8F;
  --blue-dark: #071f62;
  --cyan: #00C2C7;
  --ink: #1E293B;
  --muted: #64748B;
  --soft: #F3F7FB;
  --line: #E2E8F0;
  --white: #FFFFFF;
  --shadow: 0 24px 70px rgba(10, 47, 143, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--ink);
}

body.nav-open {
  overflow: hidden;
}

.page-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 22px auto;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: visible;
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 70px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, padding 0.25s ease;
}

.site-header.scrolled {
  padding-block: 22px;
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 150px;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  color: var(--blue-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-cta,
.button.primary {
  color: white !important;
  background: var(--blue);
  border-color: var(--blue) !important;
}

.nav-cta {
  padding: 14px 22px;
  border-radius: 8px;
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: 740px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 86px 90px 110px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
}

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

h1 {
  color: var(--blue);
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin-bottom: 26px;
}

h1::first-line {
  color: var(--blue);
}

.hero-lead {
  max-width: 540px;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(10, 47, 143, 0.16);
}

.button.secondary {
  background: white;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.large-logo {
  width: min(560px, 100%);
  animation: floatLogo 5s ease-in-out infinite;
}

.large-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.dot-grid {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: 172px;
  height: 132px;
  background-image: radial-gradient(circle, var(--blue) 3px, transparent 4px);
  background-size: 28px 28px;
  opacity: 0.95;
}

.dot-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--cyan) 3px, transparent 4px);
  background-size: 56px 56px;
  animation: pulseDots 3s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  width: 164px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(10, 47, 143, 0.12);
  animation: floatCard 4.5s ease-in-out infinite;
}

.floating-card small {
  color: var(--cyan);
  font-weight: 800;
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  color: var(--blue);
  margin: 8px 0 4px;
}

.floating-card span {
  color: var(--muted);
  font-size: 12px;
}

.card-inbox {
  left: 0;
  top: 10%;
}

.card-stat {
  right: 4%;
  top: 10%;
  animation-delay: 1.2s;
}

.modules-section,
.benefits-section,
.workflow-section {
  padding: 100px 90px;
}

.section-intro {
  max-width: 460px;
  margin-bottom: 54px;
}

.section-intro.centered {
  max-width: 680px;
  text-align: center;
  margin-inline: auto;
}

h2 {
  color: var(--blue);
  font-size: clamp(32px, 3.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.section-intro p,
.workflow-copy p {
  color: var(--muted);
  line-height: 1.75;
}

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

.module-card {
  min-height: 322px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  perspective: 1200px;
  cursor: pointer;
  outline: none;
}

.module-card-inner {
  position: relative;
  width: 100%;
  min-height: 322px;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.module-card.is-flipped .module-card-inner {
  transform: rotateY(180deg);
}

.module-card:focus-visible .module-card-inner {
  box-shadow: 0 0 0 4px rgba(0, 194, 199, 0.24);
  border-radius: 20px;
}

.module-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 322px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 20px 50px rgba(10, 47, 143, 0.07);
  backface-visibility: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.module-back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.module-card:hover .module-face,
.module-card:focus-visible .module-face {
  border-color: rgba(0, 194, 199, 0.45);
  box-shadow: 0 28px 60px rgba(10, 47, 143, 0.14);
}

.module-card:hover .module-card-inner {
  transform: translateY(-8px);
}

.module-card.is-flipped:hover .module-card-inner {
  transform: translateY(-8px) rotateY(180deg);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--blue);
}

.icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-card h3 {
  color: var(--blue);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 12px;
}

.module-card h3 span {
  color: var(--cyan);
}

.module-card h4 {
  color: var(--blue-dark);
  margin: 0 0 14px;
  line-height: 1.35;
  font-size: 16px;
}

.module-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  margin: 0;
}

.module-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 22px;
  padding: 8px 12px;
  color: var(--blue);
  background: rgba(0, 194, 199, 0.1);
  border: 1px solid rgba(0, 194, 199, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.module-label::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 999px;
}

.flip-hint {
  margin-top: auto;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benefits-section {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px;
  text-align: center;
}

.benefit-item span {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 999px;
  font-size: 26px;
}

.benefit-item h3 {
  color: var(--blue);
  margin-bottom: 10px;
}

.benefit-item p {
  color: var(--muted);
  line-height: 1.7;
}

.workflow-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.workflow-steps div {
  padding: 28px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.workflow-steps strong {
  display: block;
  color: var(--cyan);
  font-size: 28px;
  margin-bottom: 14px;
}

.workflow-steps span {
  color: var(--blue);
  font-weight: 800;
}

.cta-section {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 80px 90px;
  color: white;
  background: radial-gradient(circle at 78% 45%, rgba(0, 194, 199, 0.28), transparent 22%), linear-gradient(135deg, var(--blue) 0%, #052071 100%);
}

.cta-section h2 {
  color: white;
  max-width: 600px;
}

.cta-section p {
  max-width: 560px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.button.light {
  margin-top: 16px;
  background: white;
  color: var(--blue);
  border-color: white;
}

.cta-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.65);
  animation: floatLogo 4.8s ease-in-out infinite;
}

.cta-mark img {
  display: block;
  width: 132px;
  height: auto;
}

.dot-grid.bright {
  right: 9%;
  bottom: 18%;
  opacity: 0.7;
  filter: brightness(1.5);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 90px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-brand {
  width: 150px;
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

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

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

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@keyframes pulseDots {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 1100px) {
  .site-header,
  .hero,
  .modules-section,
  .benefits-section,
  .workflow-section,
  .cta-section,
  .site-footer {
    padding-inline: 42px;
  }

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

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

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

@media (max-width: 760px) {
  .page-shell {
    width: min(430px, calc(100% - 20px));
    margin: 10px auto;
    border-radius: 24px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 28px 24px;
  }

  .brand {
    width: 122px;
  }

  .menu-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
  }

  .menu-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    margin: 0 auto;
    background: var(--blue);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding: 54px 24px 72px;
    gap: 40px;
  }

  h1 {
    font-size: 42px;
  }

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

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

  .large-logo {
    width: min(300px, 100%);
  }

  .dot-grid {
    right: 0;
    bottom: 0;
    width: 130px;
    height: 92px;
    background-size: 22px 22px;
  }

  .floating-card {
    display: none;
  }

  .modules-section,
  .benefits-section,
  .workflow-section,
  .cta-section,
  .site-footer {
    padding: 66px 24px;
  }

  .section-intro {
    margin-bottom: 34px;
  }

  .module-grid,
  .benefit-grid,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 0;
  }

  .benefit-grid {
    text-align: left;
    gap: 26px;
  }

  .benefit-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 18px;
  }

  .benefit-item span {
    grid-row: span 2;
    margin: 0;
  }

  .cta-section {
    display: block;
  }

  .cta-mark {
    width: 126px;
    height: 126px;
    margin: 42px 0 0 auto;
  }

  .cta-mark img {
    width: 74px;
  }

  .site-footer {
    display: block;
  }

  .footer-links {
    margin-top: 30px;
    display: grid;
  }
}

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

@media (max-width: 760px) {
  .module-card,
  .module-card-inner,
  .module-face {
    min-height: 300px;
  }
}
