:root {
  --bg: #ffffff;
  --bg-gray: #e7e7e7;
  --bg-footer: #f1f1f1;
  --bg-soft: #f5f5f5;
  --ink: #000000;
  --muted: #585858;
  --indigo: #3e4384;
  --indigo-hsl: hsl(236deg 36% 38%);
  --indigo-light: #676dba;
  --blue-soft: #7ba6ca;
  --line: #ddd;
  --warn-bg: #fff8e8;
  --warn-ink: #7a4a00;
  --ok: #1b5e3b;
  --max: 1140px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease; }
a:hover { color: var(--indigo-light); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; font-weight: 700; line-height: 1.25; color: var(--ink); }
p { margin: 0 0 1em; }

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

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: .65rem 0;
}

.logo img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.btn {
  display: inline-block;
  vertical-align: middle;
  padding: .55rem 1.35rem;
  border-radius: 40px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8125rem;
  letter-spacing: .06em;
  border: 2px solid var(--indigo-hsl);
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  background: #fff;
  color: var(--indigo-hsl);
  font-family: inherit;
}

.btn:hover {
  background: var(--indigo-hsl);
  color: #fff;
  text-decoration: none;
}

.btn-solid {
  background: var(--indigo-hsl);
  color: #fff;
}

.btn-solid:hover {
  background: #2f3368;
  color: #fff;
}

.header-cta { flex-shrink: 0; }

.nav-bar {
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--indigo);
  border-radius: 1px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: wrap;
}

.site-nav > ul > li > a,
.site-nav .nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .7rem .85rem;
  font-size: .875rem;
  font-weight: 600;
  color: #353437;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav > ul > li > a:hover,
.site-nav .nav-sub-toggle:hover,
.site-nav > ul > li.is-active > a {
  color: var(--indigo);
}

.has-sub {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.has-sub > a { padding-right: .25rem; }

.nav-sub-toggle {
  padding-left: .1rem !important;
  padding-right: .7rem !important;
}

.nav-sub-toggle::after {
  content: "";
  width: .35rem;
  height: .35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .75;
}

.subnav {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  padding: .35rem 0;
  z-index: 40;
}

.has-sub.open .subnav,
.has-sub:hover .subnav { display: block; }

.subnav a {
  display: block;
  padding: .55rem 1rem;
  font-size: .84rem;
  color: #353437;
  font-weight: 500;
}

.subnav a:hover {
  background: hsl(236deg 40% 94%);
  color: var(--indigo);
  text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: #1a1c2e;
  overflow: hidden;
}

.hero-track {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  background: #1a1c2e center / cover no-repeat;
}

.hero-slide.is-active { opacity: 1; z-index: 1; }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.35) 55%, rgba(255,255,255,.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 18ch;
  margin-bottom: 1.4rem;
}

.hero-content h1 .accent { color: var(--indigo-hsl); }

.hero-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-prev,
.hero-next {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(62, 67, 132, .75);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hero-prev { left: .75rem; }
.hero-next { right: .75rem; }

.hero-prev:hover,
.hero-next:hover { background: var(--indigo); }

/* ===== Home sections ===== */
.welcome-part {
  background: var(--bg-gray);
  padding: 4.5rem 0;
  color: #000;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.welcome-part h2,
.welcome-part .w-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.welcome-part p {
  font-size: 1.05rem;
  margin-top: 1.4rem;
  margin-bottom: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.support-sec {
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.talk-card {
  background: var(--bg-soft);
  border: 1px solid #e0e0e0;
  padding: 1.75rem 1.5rem 1.5rem;
}

.talk-card h3 {
  font-size: 1.35rem;
  color: var(--indigo);
  margin-bottom: .15rem;
}

.talk-card .talk-lead {
  display: block;
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: .95rem;
}

.trading-content { margin-top: 1.5rem; }

.trading-content h2 {
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.trading-content p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.presence-sec {
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  margin-bottom: 4rem;
  padding-top: 2.2rem;
}

.presence-sec .p-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
}

.presence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.presence-part img {
  margin: 0 auto 1rem;
  max-height: 72px;
  width: auto;
}

.presence-part .stat {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: .25rem;
}

.presence-part .label {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ===== Forms ===== */
.form-grid {
  display: grid;
  gap: .85rem;
}

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

.form-group label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.form-control {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid #ccc;
  border-radius: 2px;
  font: inherit;
  background: #fff;
  color: #222;
}

.form-control:focus {
  outline: 2px solid var(--indigo-light);
  outline-offset: 1px;
  border-color: var(--indigo);
}

textarea.form-control { min-height: 96px; resize: vertical; }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid #f0d9a8;
  font-size: .92rem;
}

.form-status.is-visible { display: block; }

/* ===== Inner pages ===== */
.inner-banner {
  position: relative;
  min-height: 220px;
  background: #2a2d4a center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.inner-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 40, .25);
}

.inner-banner-title {
  position: relative;
  z-index: 1;
  margin: 0 0 12% 0;
  background-image: linear-gradient(42deg, #3e4384 20%, #7ba6ca 75%);
  color: #fff;
  padding: 1rem 1.35rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0;
  width: fit-content;
  max-width: min(100% - 2rem, 36rem);
}

.inner-content {
  padding: 3rem 0 4rem;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.page-grid.full { grid-template-columns: 1fr; }

.split-list {
  columns: 2;
  column-gap: 2rem;
  margin: 1rem 0 1.5rem;
}

.split-list li {
  list-style: disc;
  margin-left: 1.1rem;
  margin-bottom: .4rem;
  break-inside: avoid;
  font-size: 1rem;
}

.feature-list li,
.key-feature li,
.digital-list li {
  list-style: disc;
  margin-left: 1.15rem;
  margin-bottom: .45rem;
}

.digital-list { margin: 1rem 0 1.5rem; }

.w-hrding h2,
.w-hrding h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.w-hrding h5 {
  font-size: 1.05rem;
  border-bottom: 2px solid var(--indigo);
  padding-bottom: .55rem;
  margin: 1rem 0;
  display: inline-block;
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.25rem 0 1.75rem;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.icon-card {
  text-align: center;
  padding: .75rem .5rem;
}

.icon-card img {
  margin: 0 auto .75rem;
  max-height: 64px;
  width: auto;
}

.icon-card h4 {
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
  color: #353437;
}

.icon-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.25rem 0 1.75rem;
}

.tag-row span {
  background: hsl(236deg 40% 94%);
  color: var(--indigo);
  padding: .45rem .9rem;
  font-weight: 600;
  font-size: .9rem;
}

.integrations {
  margin-top: 2.5rem;
  text-align: center;
}

.integrations h2,
.integrations h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.integrations-grid img { max-height: 72px; width: auto; }

.integrations-names {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
  margin-top: .5rem;
}

.integrations-names span {
  border: 1px solid var(--line);
  padding: .45rem .9rem;
  font-weight: 600;
  color: var(--indigo);
  background: #fff;
}

.key-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.key-cols h3 {
  font-size: 1.1rem;
  color: var(--indigo);
  margin-bottom: .75rem;
}

.prose-block p { font-size: 1.02rem; }
.prose-block h2 { font-size: 1.6rem; color: var(--indigo); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.address-details {
  background: var(--bg-soft);
  padding: 1.75rem 1.5rem;
  border: 1px solid #e0e0e0;
}

.address-details p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.address-details p:last-child { margin-bottom: 0; }

.address-details strong { color: var(--indigo); }

.dual-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-footer);
  padding: 3rem 0 1rem;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.site-footer h4 {
  color: #353437;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer .menu-list a {
  display: block;
  color: var(--muted);
  padding: .28rem 0;
  font-size: .875rem;
}

.site-footer .menu-list a:hover { color: var(--indigo); }

.footer-copy {
  border-top: 1px solid #d8d8d8;
  margin-top: 2rem;
  padding: 1.1rem 0 0;
  text-align: center;
  color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .welcome-grid,
  .support-grid,
  .page-grid,
  .contact-layout,
  .dual-media,
  .key-cols,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .presence-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split-list { columns: 1; }
  .hero-track,
  .hero-content { min-height: 420px; }
  .trading-content { margin-top: 0; }
  .header-cta .btn { padding: .45rem 1rem; font-size: .75rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem;
    z-index: 60;
  }

  .site-nav.is-open { display: block; }

  .nav-bar { position: relative; }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav > ul > li > a,
  .site-nav .nav-sub-toggle {
    width: 100%;
    justify-content: space-between;
    padding: .85rem .4rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .has-sub { flex-wrap: wrap; width: 100%; }

  .subnav {
    position: static;
    display: none;
    border: 0;
    min-width: 0;
    width: 100%;
    padding: 0 0 .4rem .75rem;
    box-shadow: none;
  }

  .has-sub.open .subnav { display: block; }
  .has-sub:hover .subnav { display: none; }
  .has-sub.open:hover .subnav { display: block; }

  .form-grid.two { grid-template-columns: 1fr; }
  .icon-grid-3 { grid-template-columns: 1fr; }
  .header-top { min-height: 64px; }
  .logo img { height: 40px; }
}

@media (max-width: 480px) {
  .hero-track,
  .hero-content { min-height: 380px; }
  .welcome-part { padding: 2.75rem 0; }
  .inner-banner { min-height: 180px; }
  .cta-row .btn,
  .demo-row .btn { width: 100%; }
}
