:root {
  --ink: #111827;
  --navy: #101a33;
  --muted: #5f6f89;
  --line: #d8e2ee;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --blue: #1d4ed8;
  --teal: #0f9f8f;
  --green: #1f9d55;
  --amber: #d97706;
  --rose: #dc466c;
  --slate: #475569;
  --shadow: 0 24px 70px rgba(16, 26, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

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

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

.container {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 76px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 226, 238, 0.85);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.hero-points,
.proof-grid,
.footer-inner,
.demo-benefits {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 720;
}

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

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

.lang-switcher {
  padding: 8px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-switcher:hover {
  border-color: var(--muted);
}

.lang-switcher:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.24);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(86svh - 76px);
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 15, 35, 0.9) 0%, rgba(7, 15, 35, 0.74) 42%, rgba(7, 15, 35, 0.26) 100%),
    linear-gradient(180deg, rgba(7, 15, 35, 0.1) 0%, rgba(7, 15, 35, 0.42) 100%);
}

.hero-content {
  display: grid;
  align-content: center;
  min-height: calc(86svh - 76px);
  padding: clamp(58px, 8vw, 92px) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 8vw, 7.7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 630px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-points,
.demo-benefits {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span,
.demo-benefits span {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 720;
}

.proof-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.proof-grid div {
  min-height: 132px;
  padding: 26px 22px;
  background: #fff;
}

.proof-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 2.15rem;
  line-height: 1;
}

.proof-grid span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.platform-section,
.modules-section,
.accounts-section,
.deployment-section,
.demo-form-section {
  padding: 92px 0;
}

.platform-section,
.demo-form-section {
  background: var(--soft);
}

.platform-grid,
.accounts-grid,
.demo-hero-grid,
.demo-form-grid {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
}

.platform-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 1fr);
  align-items: start;
}

.section-copy,
.section-heading {
  max-width: 770px;
}

.section-copy p,
.section-heading p,
.module-card p,
.insight-list p,
.account-panel p,
.timeline p,
.demo-copy p,
.demo-aside li,
.check-list li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.insight-list {
  display: grid;
  gap: 14px;
}

.insight-list article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  min-height: 124px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 26, 51, 0.06);
}

.mini-icon,
.module-icon {
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
}

.mini-icon {
  width: 44px;
  height: 44px;
  font-size: 0.82rem;
}

.module-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  font-size: 0.8rem;
}

.blue {
  background: var(--blue);
}

.teal {
  background: var(--teal);
}

.green {
  background: var(--green);
}

.amber {
  background: var(--amber);
}

.rose {
  background: var(--rose);
}

.slate {
  background: var(--slate);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.module-card {
  min-height: 232px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 26, 51, 0.05);
}

.accounts-section {
  color: #fff;
  background: var(--navy);
}

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

.account-panel {
  min-height: 430px;
  padding: clamp(30px, 4vw, 46px);
  border-radius: 8px;
}

.account-panel.dark {
  background: #172342;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.account-panel.light {
  color: var(--ink);
  background: #fff;
}

.account-panel.dark h2,
.account-panel.dark h3 {
  color: #fff;
}

.account-panel.dark p,
.account-panel.dark li {
  color: #c9d4e4;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "+";
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline article {
  min-height: 270px;
  padding: 28px;
  background: #fff;
}

.timeline span {
  display: block;
  margin-bottom: 54px;
  color: var(--blue);
  font-weight: 900;
}

.final-cta {
  padding: 76px 0;
  background: var(--soft);
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 250px;
  padding: clamp(34px, 5vw, 54px);
  color: #fff;
  background: #0f766e;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.cta-card .eyebrow {
  color: #d7fffa;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  justify-content: space-between;
  gap: 22px;
  min-height: 86px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-inner span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.demo-page {
  background: #fff;
}

.demo-hero {
  padding: 76px 0;
  color: #fff;
  background: var(--navy);
}

.demo-hero-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  align-items: center;
}

.demo-copy h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 5vw, 5rem);
  line-height: 0.98;
}

.demo-copy p {
  max-width: 660px;
  color: #c9d4e4;
}

.demo-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.demo-preview img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.demo-form-grid {
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1fr);
  align-items: start;
}

.demo-aside {
  position: sticky;
  top: 108px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.demo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(28px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-heading {
  grid-column: 1 / -1;
}

.demo-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 780;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c7d4e4;
  border-radius: 8px;
  font: inherit;
}

.demo-form textarea {
  min-height: 140px;
  resize: vertical;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(29, 78, 216, 0.14);
}

.form-status {
  min-height: 26px;
  margin: 0;
  color: #0f766e;
  font-weight: 850;
}

.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 1040px) {
  .platform-grid,
  .accounts-grid,
  .demo-hero-grid,
  .demo-form-grid {
    grid-template-columns: 1fr;
  }

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

  .demo-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .header-cta {
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 70px 0;
  }

  .hero-image {
    object-position: 70% center;
  }

  h1 {
    font-size: 3.35rem;
  }

  .hero-actions,
  .hero-actions .button,
  .cta-card .button,
  .demo-form .button {
    width: 100%;
  }

  .hero-points,
  .demo-benefits {
    align-items: stretch;
    flex-direction: column;
  }

  .proof-grid,
  .module-grid,
  .timeline,
  .demo-form {
    grid-template-columns: 1fr;
  }

  .platform-section,
  .modules-section,
  .accounts-section,
  .deployment-section,
  .demo-form-section {
    padding: 62px 0;
  }

  .account-panel {
    min-height: auto;
  }

  .timeline article {
    min-height: 220px;
  }

  .timeline span {
    margin-bottom: 36px;
  }

  .cta-card,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta,
  .demo-hero {
    padding: 56px 0;
  }
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 26, 51, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  cursor: default;
}

.modal-content {
  background: var(--paper);
  padding: 40px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(16, 26, 51, 0.25);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Auto-close progress bar */
.modal-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--blue);
  transform-origin: left;
  animation: none;
}

.modal-progress.running {
  animation: shrink 5s linear forwards;
}

@keyframes shrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.modal-content h3 {
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.5rem;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 25px;
}

.modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 28px;
  font-weight: bold;
}

.modal-icon.success {
  background: rgba(15, 159, 143, 0.15);
  color: var(--teal);
}

.modal-icon.error {
  background: rgba(220, 70, 108, 0.15);
  color: var(--rose);
}
