* {
  box-sizing: border-box;
}

:root {
  --bg: #081321;
  --bg-soft: #102743;
  --text: #101a26;
  --text-light: #f4f7fb;
  --muted: #647486;
  --primary: #1976ff;
  --line: #dbe4ee;
  --accent: #66c3ff;
  --panel: #ffffff;
  --shadow: 0 20px 38px rgba(12, 28, 48, 0.08);
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #f5f8fc;
  line-height: 1.62;
  letter-spacing: 0.01em;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

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

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

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  max-width: 540px;
  line-height: 1.2;
}

nav ul {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #213247;
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

nav a:hover {
  color: #0b5de0;
}

.menu-btn {
  display: none;
}

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(102, 195, 255, 0.2), transparent 40%),
    radial-gradient(circle at 12% 88%, rgba(53, 108, 177, 0.28), transparent 34%),
    linear-gradient(125deg, var(--bg) 0%, var(--bg-soft) 70%);
  color: var(--text-light);
  padding: 6rem 0 4.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 2.3rem;
  align-items: center;
}

.hero-grid-single {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.55px;
  font-size: 0.73rem;
  color: #9eceff;
  margin-bottom: 0.7rem;
  font-weight: 800;
  opacity: 0.95;
}

.hero-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-meta span {
  border: 1px solid rgba(166, 207, 255, 0.45);
  background: rgba(124, 170, 228, 0.16);
  color: #d9ebff;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  font-size: 0.84rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.015em;
}

h3 {
  letter-spacing: -0.01em;
}

.hero-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(156, 196, 255, 0.32);
  border-radius: 14px;
  padding: 1.25rem 1.3rem;
  box-shadow: 0 16px 34px rgba(5, 15, 29, 0.4);
}

.hero-card h3 {
  margin-top: 0;
}

.hero-graphic {
  margin: 0.65rem 0 0.8rem;
  border: 1px solid rgba(150, 194, 247, 0.32);
  border-radius: 12px;
  overflow: hidden;
}

.hero-graphic svg {
  width: 100%;
  display: block;
}

.hero-card ul {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
}

.hero-actions {
  margin: 1.8rem 0 1.05rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.78rem 1.12rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 106, 255, 0.37);
}

.btn-ghost {
  border-color: #8cb4ec;
  color: #d8e6ff;
}

.btn-ghost-dark {
  border-color: #aac5e7;
  color: #1b3550;
}

.fine-print {
  font-size: 0.83rem;
  color: #8fa1b5;
}

.section {
  padding: 4.4rem 0;
}

.section.muted {
  background: #edf3fa;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.15rem;
}

.card {
  background: var(--panel);
  border: 1px solid #dae4ef;
  border-radius: 14px;
  padding: 1.18rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #c5d8ee;
  box-shadow: 0 24px 44px rgba(12, 28, 48, 0.12);
}

.section-intro {
  max-width: 760px;
  color: #30455f;
}

#tms .section-intro {
  margin-bottom: 0.8rem;
}

#services .container,
#process .container,
#insights .container,
#contact .container,
#compliance .container {
  position: relative;
}

#services .container::before,
#process .container::before {
  content: "";
  position: absolute;
  inset: -20px -14px auto;
  height: 120px;
  background: radial-gradient(circle at 8% 0%, rgba(104, 176, 255, 0.17), transparent 58%);
  pointer-events: none;
  z-index: -1;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.pill-row span {
  background: #fff;
  border: 1px solid #d3deea;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #203145;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  background: var(--panel);
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  padding: 1.08rem;
  box-shadow: 0 12px 26px rgba(20, 29, 42, 0.06);
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.checklist {
  margin: 0;
  padding-left: 1rem;
}

.checklist li {
  margin-bottom: 0.5rem;
}

.note {
  background: var(--panel);
  border: 1px solid #d4deea;
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.tms-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
}

.tms-visual {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d2dfed;
  box-shadow: 0 20px 38px rgba(17, 35, 56, 0.14);
}

.tms-visual svg {
  width: 100%;
  display: block;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.contact-form {
  background: var(--panel);
  border: 1px solid #d9e3ee;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #28394d;
}

input,
textarea {
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #c9d6e4;
  border-radius: 10px;
  padding: 0.66rem 0.7rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid #8ec0ff;
  border-color: #80b5f5;
}

.compliance-box {
  background: var(--panel);
  border: 1px solid #d6e1ec;
  border-radius: 14px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.form-msg {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: #2b4f85;
}

.site-footer {
  background: linear-gradient(140deg, #0d1724, #12263c);
  color: #d6e0eb;
  padding: 1.55rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.portal-body {
  min-height: 100vh;
  background: linear-gradient(170deg, #eef5fc 0%, #f7fafd 55%, #edf4fb 100%);
}

.portal-main {
  padding: 3.6rem 0;
}

.portal-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d6e2ee;
  border-radius: 16px;
  box-shadow: 0 24px 42px rgba(13, 31, 51, 0.12);
  padding: 1.4rem;
}

.portal-card h1 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 0.6rem;
}

.portal-meta {
  color: #4c6179;
  margin-bottom: 1rem;
}

.portal-note {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: #60758e;
}

.demo-creds {
  margin-bottom: 1rem;
  padding: 0.72rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #d4e0ec;
  background: #f3f8fd;
  color: #25405b;
  font-size: 0.9rem;
}

.demo-creds p {
  margin: 0.1rem 0;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.dashboard-head h1 {
  margin-bottom: 0.2rem;
}

.dashboard-subtitle {
  margin: 0;
  color: #5f748c;
  font-size: 0.9rem;
}

.filters-panel {
  padding: 0.9rem 1rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.filters-grid label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #2a4058;
}

.filters-grid select {
  margin-top: 0.34rem;
  width: 100%;
  border: 1px solid #c8d8ea;
  background: #f9fbff;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font: inherit;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.kpi {
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: 0 12px 26px rgba(16, 32, 50, 0.08);
}

.kpi .label {
  font-size: 0.82rem;
  color: #60758c;
}

.kpi .value {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.panel {
  background: #fff;
  border: 1px solid #d7e2ee;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(18, 36, 56, 0.07);
}

.panel h3 {
  margin-top: 0;
}

.source-breakdown {
  display: grid;
  gap: 0.62rem;
}

.source-item {
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #f9fbff;
  overflow: hidden;
}

.source-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.72rem 0.85rem;
  font-weight: 700;
  color: #1f3449;
}

.source-item summary::-webkit-details-marker {
  display: none;
}

.source-item summary em {
  font-style: normal;
  font-weight: 600;
  margin-left: 0.45rem;
  font-size: 0.8rem;
  color: #59718a;
}

.source-accounts {
  background: #fff;
  border-top: 1px solid #e4ecf5;
}

.source-account-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.62rem 0.85rem;
  border-top: 1px solid #edf2f8;
  font-size: 0.9rem;
  color: #274059;
}

.source-account-row:first-child {
  border-top: 0;
}

.source-account-row small {
  color: #64798f;
  margin-left: 0.4rem;
}

.chart-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2ebf5;
}

.chart-wrap svg {
  width: 100%;
  display: block;
}

.exposure-list {
  display: grid;
  gap: 0.38rem;
}

.exp-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #2a3e55;
}

.exp-bar {
  height: 8px;
  border-radius: 999px;
  background: #e8eff8;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.exp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2f91ff, #79c8ff);
}

.alloc-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 0.9rem;
}

.alloc-donut svg {
  width: 100%;
  max-width: 210px;
  display: block;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.mini-table th,
.mini-table td {
  text-align: left;
  padding: 0.52rem 0.3rem;
  border-bottom: 1px solid #e7edf4;
}

.tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
}

.tag.warn {
  background: #fff2d7;
  color: #885900;
}

.tag.ok {
  background: #e7f8ea;
  color: #1d6a2f;
}

@media (max-width: 860px) {
  .hero-grid,
  .two-col,
  .contact-wrap,
  .tms-showcase,
  .dashboard-panels,
  .alloc-grid {
    grid-template-columns: 1fr;
  }

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

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

  .menu-btn {
    display: inline-block;
    background: #fff;
    border: 1px solid #ccd8e5;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    font-weight: 600;
  }

  nav ul {
    display: none;
    position: absolute;
    right: 4%;
    top: 65px;
    background: #fff;
    border: 1px solid #d6e1ed;
    border-radius: 8px;
    padding: 0.8rem;
    width: 220px;
    flex-direction: column;
    box-shadow: 0 16px 36px rgba(16, 30, 44, 0.16);
  }

  nav ul.open {
    display: flex;
  }
}
