:root {
  color-scheme: light;
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #050507;
  --muted: #686871;
  --soft: #f4f2ee;
  --line: #e4e1db;
  --red: #df0713;
  --red-soft: #ffe9e9;
  --amber: #ff8b00;
  --blue: #2478f2;
  --teal: #073f45;
  --shadow: 0 14px 38px rgba(8, 8, 8, 0.05), 0 2px 9px rgba(8, 8, 8, 0.035);
  --page-pad: clamp(18px, 3.75vw, 60px);
  --shell-max: 1600px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  height: 62px;
  padding-inline: max(var(--page-pad), calc((100vw - var(--shell-max)) / 2 + var(--page-pad)));
  border-bottom: 1px solid #ebe8e2;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.55vw, 1.42rem);
  font-weight: 850;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 3.2vw, 44px);
  color: #202024;
  font-size: 0.84rem;
  font-weight: 680;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 20px;
}

.login-link {
  min-height: 42px;
  padding: 13px 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 40px;
  padding: 11px 26px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.button-dark {
  background: #030304;
  box-shadow: 3px 3px 0 rgba(224, 0, 13, 0.96);
  color: var(--white);
}

.button-light {
  border-color: #939399;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
}

.button-text {
  background: transparent;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.page-shell {
  position: relative;
  max-width: var(--shell-max);
  margin: 0 auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 298px;
  padding: 26px var(--page-pad) 0;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image: url("assets/balroc-hero-wave-centered-upscaled.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 300px;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(770px, 60vw);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 3.05vw, 3.25rem);
  font-weight: 780;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 17px 0 0;
  color: #66666d;
  font-size: clamp(0.94rem, 1.08vw, 1.1rem);
  font-weight: 560;
  line-height: 1.38;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  margin-top: 18px;
}

.hero-actions .button {
  min-width: 181px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  color: #56565f;
}

.trust-row strong {
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.avatar-stack {
  display: flex;
  min-width: 96px;
}

.avatar-stack span {
  width: 25px;
  height: 25px;
  margin-right: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #f7f7f2 0 20%, transparent 21%),
    radial-gradient(circle at 50% 77%, #1a1a1e 0 28%, transparent 29%),
    linear-gradient(135deg, #d9dbdc, #73777e);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.avatar-stack span:nth-child(2) {
  background:
    radial-gradient(circle at 50% 34%, #fbf8ef 0 20%, transparent 21%),
    radial-gradient(circle at 50% 77%, #222226 0 28%, transparent 29%),
    linear-gradient(135deg, #e7e2d8, #858990);
}

.avatar-stack span:nth-child(3) {
  background:
    radial-gradient(circle at 50% 34%, #f5f1ec 0 20%, transparent 21%),
    radial-gradient(circle at 50% 77%, #202024 0 28%, transparent 29%),
    linear-gradient(135deg, #c6c9cc, #666b72);
}

.avatar-stack span:nth-child(4) {
  background:
    radial-gradient(circle at 50% 34%, #f9f5ee 0 20%, transparent 21%),
    radial-gradient(circle at 50% 77%, #28282d 0 28%, transparent 29%),
    linear-gradient(135deg, #ded9d0, #777c84);
}

.avatar-stack span:nth-child(5) {
  background:
    radial-gradient(circle at 50% 34%, #f7f5f0 0 20%, transparent 21%),
    radial-gradient(circle at 50% 77%, #17171b 0 28%, transparent 29%),
    linear-gradient(135deg, #d0d4d6, #686e76);
}

.signal-board {
  display: grid;
  grid-template-columns: 1.02fr 1.08fr 0.96fr 1.17fr;
  margin: 0 var(--page-pad) 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.signal-board article {
  height: 166px;
  padding: 12px 20px 10px;
  border-right: 1px solid var(--line);
}

.signal-board article:last-child {
  border-right: 0;
}

.panel-label {
  margin-bottom: 6px;
  color: #2f2f35;
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.score-panel {
  position: relative;
}

.score-line {
  display: flex;
  align-items: end;
  gap: 5px;
}

.score-line strong {
  font-size: 2rem;
  font-weight: 500;
  line-height: 0.9;
}

.score-line span {
  padding-bottom: 2px;
  color: #9a9aa2;
  font-size: 0.72rem;
}

.delta {
  margin: 7px 0 0;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 760;
}

.sparkline {
  position: absolute;
  top: 42px;
  right: 20px;
  width: 148px;
  height: 38px;
}

.sparkline svg {
  width: 100%;
  height: 100%;
}

.sparkline polyline {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.density {
  margin-top: 12px;
}

.density span {
  display: block;
  margin-bottom: 6px;
  color: #313137;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.density-map {
  height: 31px;
  opacity: 0.72;
  background:
    radial-gradient(circle at 18% 58%, rgba(222, 0, 13, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 36% 46%, rgba(222, 0, 13, 0.25) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 64%, rgba(222, 0, 13, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 77% 40%, rgba(222, 0, 13, 0.24) 0 2px, transparent 3px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.07), transparent 22% 31%, rgba(0, 0, 0, 0.06) 43%, transparent 55%, rgba(0, 0, 0, 0.07) 75%, transparent);
  background-size: 50px 30px, 46px 32px, 64px 28px, 54px 30px, 100% 100%;
}

.market-panel th,
.market-panel td {
  padding: 3.8px 6px;
  border-bottom: 1px solid #eeeae5;
  color: #303038;
  font-size: 0.66rem;
  text-align: left;
}

.market-panel th {
  color: #85858d;
  font-size: 0.52rem;
  font-weight: 850;
  text-transform: uppercase;
}

.market-panel th:nth-child(n + 2),
.market-panel td:nth-child(n + 2) {
  text-align: right;
}

.trend-up {
  color: var(--red);
  font-weight: 900;
}

.trend-flat {
  color: #77777f;
  font-weight: 900;
}

.risk-grid {
  display: grid;
  grid-template-columns: 98px 1fr;
  align-items: center;
  gap: 18px;
}

.risk-gauge {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 56%, transparent 57%),
    conic-gradient(var(--red) 0 64%, #eeeeef 64% 100%);
}

.risk-gauge strong {
  font-size: 1.65rem;
  font-weight: 520;
  line-height: 0.9;
}

.risk-gauge span {
  margin-top: -16px;
  color: #777780;
  font-size: 0.48rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.risk-drivers h2 {
  margin: 0 0 7px;
  font-size: 0.74rem;
}

.risk-drivers p {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 70px;
  align-items: center;
  gap: 12px;
  margin: 5px 0;
  color: #55555e;
  font-size: 0.64rem;
}

.risk-drivers i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--red) var(--value), transparent var(--value)),
    #e8e6e2;
}

.small-link {
  display: inline-flex;
  gap: 7px;
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 850;
}

.recent-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.recent-list li {
  display: grid;
  grid-template-columns: 10px minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  color: #4b4b54;
  font-size: 0.64rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red {
  background: var(--red);
}

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

.recent-list b {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--red-soft);
  color: #ef666b;
  font-size: 0.5rem;
  font-weight: 850;
  text-transform: uppercase;
}

.recent-list b.medium {
  background: #fff0dc;
  color: #d47b00;
}

.recent-list time {
  color: #96969e;
  white-space: nowrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 var(--page-pad) 5px;
}

.feature-card {
  position: relative;
  height: 153px;
  padding: 14px 20px 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background-color: var(--white);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: right center;
  box-shadow: var(--shadow);
}

.feature-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0 38%, rgba(255, 255, 255, 0.7) 54%, rgba(255, 255, 255, 0.05));
}

.signal-card {
  background-image: url("assets/visual-card-signal.png");
}

.analytics-card {
  background-image: url("assets/visual-card-network.png");
}

.scenario-card {
  background-image: url("assets/visual-card-scenario.png");
}

.briefing-card {
  background-image: url("assets/visual-card-briefing.png");
}

.feature-card h2,
.feature-card p,
.feature-icon,
.round-link {
  position: relative;
  z-index: 1;
}

.feature-card h2 {
  margin: 10px 0 8px;
  font-size: 0.94rem;
  line-height: 1.05;
}

.feature-card p {
  width: min(175px, 60%);
  margin: 0;
  color: #202026;
  font-size: 0.72rem;
  font-weight: 560;
  line-height: 1.18;
}

.feature-icon {
  display: block;
  width: 27px;
  height: 27px;
}

.cube-icon,
.poly-icon,
.ring-icon,
.document-icon {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 27px 27px;
}

.cube-icon {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23060709' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M14 3 24 8.5v11L14 25 4 19.5v-11L14 3Z'/%3E%3Cpath d='M14 14 4 8.5M14 14l10-5.5M14 14v11'/%3E%3C/svg%3E");
}

.poly-icon {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23060709' stroke-width='1.5'%3E%3Cpath d='M14 2.5 24 8l-2 12-8 5.5L6 20 4 8l10-5.5Z'/%3E%3Cpath d='M4 8l10 5.5L24 8M14 13.5v12M6 20l8-6.5 8 6.5M8 6l6 7.5 6-7.5'/%3E%3C/svg%3E");
}

.ring-icon {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23060709' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='14' cy='14' r='9' stroke-dasharray='1 5'/%3E%3Ccircle cx='14' cy='4' r='1.8' fill='%23060709'/%3E%3Ccircle cx='24' cy='14' r='1.8' fill='%23060709'/%3E%3Ccircle cx='14' cy='24' r='1.8' fill='%23060709'/%3E%3Ccircle cx='4' cy='14' r='1.8' fill='%23060709'/%3E%3C/svg%3E");
}

.document-icon {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23060709' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M8 3h8l5 5v17H8V3Z'/%3E%3Cpath d='M16 3v6h6M4 8h4M4 13h4M4 18h4M12 14h6M12 18h6'/%3E%3C/svg%3E");
}

.round-link {
  position: absolute;
  bottom: 15px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #b9b9bd;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 900;
}

.round-link.light {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr;
  gap: 6px;
  padding: 0 var(--page-pad) 5px;
}

.story-card {
  position: relative;
  min-height: 138px;
  padding: 25px 25px 42px;
  border-radius: 7px;
  overflow: hidden;
  color: #fff;
  background-color: #111;
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: right center;
}

.story-card::before {
  position: absolute;
  inset: 0;
  content: "";
}

.story-red {
  background-image: url("assets/visual-story-red.png");
}

.story-red::before {
  background: linear-gradient(90deg, #9c0009 0 42%, rgba(156, 0, 9, 0.68) 58%, rgba(156, 0, 9, 0.08));
}

.story-amber {
  background-image: url("assets/visual-story-amber.png");
}

.story-amber::before {
  background: linear-gradient(90deg, #211005 0 44%, rgba(33, 16, 5, 0.68) 60%, rgba(33, 16, 5, 0.1));
}

.story-teal {
  background-image: url("assets/visual-story-teal.png");
}

.story-teal::before {
  background: linear-gradient(90deg, #073f45 0 52%, rgba(7, 63, 69, 0.68) 67%, rgba(7, 63, 69, 0.05));
}

.story-card span,
.story-card h2 {
  position: relative;
  z-index: 1;
}

.story-card span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.6rem;
  font-weight: 850;
  text-transform: uppercase;
}

.story-card h2 {
  max-width: 350px;
  margin: 0;
  font-size: 1.24rem;
  font-weight: 620;
  line-height: 1.07;
}

.closing-cta {
  display: grid;
  grid-template-columns: 170px minmax(270px, 0.72fr) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  margin: 0 var(--page-pad) 0;
  padding: 11px 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cta-mark {
  justify-self: end;
  width: 36px;
  height: 36px;
}

.cta-mark svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #111116;
  stroke-width: 3;
  stroke-linecap: round;
}

.cta-mark circle:last-child {
  fill: #111116;
}

.closing-cta h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 620;
  line-height: 1.06;
}

.closing-cta p {
  margin: 0;
  color: #66666f;
  font-size: 0.84rem;
  line-height: 1.28;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 1280px) {
  .signal-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-board article {
    border-top: 1px solid var(--line);
  }

  .signal-board article:nth-child(1),
  .signal-board article:nth-child(2) {
    border-top: 0;
  }

  .signal-board article:nth-child(2n) {
    border-right: 0;
  }

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

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

  .closing-cta {
    grid-template-columns: 56px 1fr;
  }

  .cta-mark {
    justify-self: start;
  }

  .closing-cta p,
  .cta-actions {
    grid-column: 2;
  }

  .cta-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto;
    height: 60px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .header-actions {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 60px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    min-height: 46px;
    padding: 0 12px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-copy {
    width: min(720px, 100%);
  }

  .hero::before {
    background-position: center bottom;
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 16px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .hero {
    min-height: 620px;
    padding-top: 26px;
  }

  .hero h1 {
    font-size: clamp(2.38rem, 12vw, 3.7rem);
  }

  .hero-copy p br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

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

  .trust-row {
    align-items: flex-start;
    gap: 12px;
  }

  .trust-row strong {
    max-width: 220px;
    line-height: 1.35;
  }

  .hero::before {
    background-position: center bottom;
    background-size: auto 300px;
  }

  .signal-board,
  .feature-grid,
  .story-grid,
  .closing-cta {
    margin-inline: var(--page-pad);
  }

  .signal-board {
    grid-template-columns: 1fr;
  }

  .signal-board article,
  .signal-board article:nth-child(2) {
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .signal-board article:first-child {
    border-top: 0;
  }

  .sparkline {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .risk-grid {
    grid-template-columns: 100px 1fr;
  }

  .recent-list li {
    grid-template-columns: 10px minmax(0, 1fr) auto;
  }

  .recent-list time {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .feature-card {
    min-height: 172px;
  }

  .feature-card p {
    width: min(190px, 58%);
  }

  .story-grid {
    padding-inline: 0;
  }

  .story-card h2 {
    font-size: 1.1rem;
  }

  .closing-cta {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .closing-cta p,
  .cta-actions {
    grid-column: 1;
  }
}

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