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

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  margin: 0;
  overflow-x: hidden;

  color: var(--text);

  background:
    radial-gradient(
      circle at 15% 7%,
      rgba(14, 148, 154, 0.12),
      transparent 24rem
    ),
    linear-gradient(
      180deg,
      var(--surface-soft) 0,
      var(--page-bg) 34rem,
      var(--page-bg) 100%
    );

  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 999;

  padding: 11px 15px;

  border-radius: 10px;

  background: var(--lux-primary);
  color: var(--lux-quaternary);

  font-weight: 800;
}

.skip-link:focus {
  top: 18px;
}

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 48px;

  padding: 0 20px;

  border: 1px solid transparent;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 800;

  cursor: pointer;

  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.nav-cta,
.button.primary {
  background: var(--primary-button-bg);
  color: var(--primary-button-text);

  box-shadow:
    0 8px 22px rgba(15, 76, 92, 0.18);
}

.nav-cta:hover,
.button.primary:hover {
  background: var(--primary-button-bg-hover);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--secondary-button-border);

  background:
    var(--secondary-button-bg);

  color: var(--secondary-button-text);
}

.button.secondary:hover {
  border-color:
    rgba(14, 148, 154, 0.46);

  background: var(--secondary-button-bg-hover);

  transform: translateY(-1px);
}

.hero {
  position: relative;

  padding:
    80px 0 76px;
}

.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(520px, 1.05fr);

  gap: 68px;

  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  color: var(--lux-secondary-dark);

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;

  border-radius: 999px;

  background: var(--lux-secondary);

  content: "";
}

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

h1 {
  max-width: 760px;

  margin:
    18px 0 22px;

  font-family:
    "Libre Baskerville",
    Georgia,
    serif;

  font-size:
    clamp(
      46px,
      6.3vw,
      82px
    );

  font-weight: 700;

  letter-spacing:
    -0.055em;

  line-height: 0.98;
}

.hero-lead {
  max-width: 650px;

  margin-bottom: 30px;

  color: var(--text-soft);

  font-size:
    clamp(
      18px,
      2vw,
      21px
    );

  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}

.hero-note {
  margin-top: 18px;

  color: var(--text-muted);

  font-size: 12px;
}

.platform-stage {
  position: relative;

  min-height: 570px;
}

.stage-glow {
  position: absolute;

  inset:
    8% 5% 5%;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(14, 148, 154, 0.2),
      rgba(14, 148, 154, 0.02) 48%,
      transparent 70%
    );

  filter: blur(12px);
}

.portal-window {
  position: absolute;

  overflow: hidden;

  border:
    1px solid
    rgba(216, 228, 229, 0.95);

  border-radius: 22px;

  background: var(--surface);

  box-shadow: var(--shadow);
}

.portal-window.admin {
  top: 30px;
  left: 0;

  width: 76%;

  transform:
    rotate(-2.2deg);
}

.portal-window.family {
  right: 0;
  bottom: 25px;

  width: 71%;

  transform:
    rotate(2deg);
}

.window-top {
  display: flex;

  align-items: center;
  justify-content:
    space-between;

  gap: 12px;

  padding:
    11px 14px;

  border-bottom:
    1px solid
    var(--border);

  background:
    var(--surface-soft);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--border-strong);
}

.window-label {
  color: var(--text-muted);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.portal-body {
  display: grid;

  grid-template-columns:
    92px 1fr;

  min-height: 285px;
}

.mini-sidebar {
  padding:
    18px 11px;

  background: var(--lux-primary);
}

.mini-logo {
  width: 34px;
  height: 34px;

  margin-bottom: 22px;

  border:
    1px solid
    rgba(14, 148, 154, 0.5);

  border-radius: 10px;

  background:
    radial-gradient(
      circle at 50% 36%,
      rgba(14, 148, 154, 0.8) 0 3px,
      transparent 4px
    ),
    linear-gradient(
      145deg,
      #0B3D49,
      #0F4C5C
    );
}

.mini-nav {
  display: grid;

  gap: 9px;
}

.mini-nav span {
  display: block;

  height: 7px;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.16);
}

.mini-nav span:nth-child(2),
.mini-nav span.active {
  background:
    rgba(14, 148, 154, 0.86);
}

.mini-content {
  padding: 21px;

  background: var(--surface-soft);
}

.mini-heading {
  width: 38%;
  height: 13px;

  margin-bottom: 8px;

  border-radius: 999px;

  background:
    var(--lux-primary);
}

.mini-subheading {
  width: 56%;
  height: 7px;

  margin-bottom: 20px;

  border-radius: 999px;

  background: var(--border-strong);
}

.mini-stats {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 8px;

  margin-bottom: 12px;
}

.mini-stat,
.mini-panel {
  border:
    1px solid
    var(--border);

  border-radius: 11px;

  background: var(--surface);
}

.mini-stat {
  height: 57px;

  padding: 10px;
}

.mini-stat::before {
  display: block;

  width: 48%;
  height: 6px;

  margin-bottom: 9px;

  border-radius: 999px;

  background: var(--border-strong);

  content: "";
}

.mini-stat::after {
  display: block;

  width: 26%;
  height: 15px;

  border-radius: 5px;

  background:
    var(--lux-primary-dark);

  content: "";
}

.mini-panel {
  height: 100px;

  padding: 12px;
}

.mini-panel-line {
  height: 7px;

  margin-bottom: 9px;

  border-radius: 999px;

  background: var(--border);
}

.mini-panel-line:nth-child(1) {
  width: 84%;
}

.mini-panel-line:nth-child(2) {
  width: 64%;
}

.mini-panel-line:nth-child(3) {
  width: 72%;
}

.mini-panel-line:nth-child(4) {
  width: 48%;
}

.bridge-badge {
  position: absolute;

  top: 49%;
  left: 50%;

  z-index: 5;

  display: grid;

  width: 112px;
  height: 112px;

  place-items: center;

  border:
    1px solid
    rgba(14, 148, 154, 0.62);

  border-radius: 50%;

  background:
    var(--lux-primary);

  color: var(--lux-quaternary);

  box-shadow:
    0 0 0 11px rgba(247, 250, 250, 0.92),
    0 18px 40px rgba(15, 76, 92, 0.22);

  transform:
    translate(-50%, -50%);
}

.bridge-badge::before,
.bridge-badge::after {
  position: absolute;

  z-index: -2;

  top: 50%;

  width: 105px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(14, 148, 154, 0.8)
    );

  content: "";
}

.bridge-badge::before {
  right: 92px;
}

.bridge-badge::after {
  left: 92px;

  transform:
    rotate(180deg);
}

.bridge-badge strong {
  display: block;

  font-family:
    "Libre Baskerville",
    Georgia,
    serif;

  font-size: 18px;

  text-align: center;
}

.bridge-badge span {
  display: block;

  margin-top: 3px;

  color: #A8E0E2;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-align: center;
  text-transform: uppercase;
}

.section {
  padding:
    92px 0;
}

.section.compact {
  padding-top: 40px;
}

.section-head {
  max-width: 760px;

  margin-bottom: 40px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;

  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

h2 {
  margin:
    13px 0 15px;

  font-family:
    "Libre Baskerville",
    Georgia,
    serif;

  font-size:
    clamp(
      34px,
      4.4vw,
      56px
    );

  letter-spacing:
    -0.045em;

  line-height: 1.06;
}

.section-head h2 .heading-line {
  display: block;
}

.section-head p {
  margin-bottom: 0;

  color:
    var(--text-soft);

  font-size: 17px;

  line-height: 1.7;
}

.portal-pair {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 22px;
}

.portal-card {
  position: relative;

  min-height: 470px;

  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-lg);

  background: var(--surface);

  box-shadow:
    var(--shadow-soft);
}

.portal-card-copy {
  position: relative;

  z-index: 2;

  padding:
    34px 34px 0;
}

.portal-card-kicker {
  color:
    var(--lux-secondary-dark);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.portal-card h3 {
  margin:
    9px 0 12px;

  font-size: 27px;

  letter-spacing:
    -0.03em;
}

.portal-card p {
  max-width: 520px;

  margin-bottom: 0;

  color:
    var(--text-soft);

  font-size: 15px;

  line-height: 1.68;
}

.portal-card-visual {
  position: absolute;

  right: 24px;
  bottom: -36px;
  left: 24px;

  min-height: 235px;

  padding: 17px;

  border:
    1px solid
    var(--border);

  border-radius:
    18px 18px 0 0;

  background:
    var(--surface-soft);

  box-shadow:
    0 15px 40px
    rgba(15, 76, 92, 0.1);
}

.portal-card-visual.admin-visual {
  background:
    linear-gradient(
      150deg,
      rgba(15, 76, 92, 0.04),
      transparent 42%
    ),
    var(--surface-soft);
}

.visual-toolbar {
  display: flex;

  align-items: center;
  justify-content:
    space-between;

  margin-bottom: 13px;
}

.visual-title {
  width: 29%;
  height: 9px;

  border-radius: 999px;

  background:
    var(--lux-primary);
}

.visual-chip {
  width: 52px;
  height: 19px;

  border-radius: 999px;

  background:
    rgba(14, 148, 154, 0.12);
}

.visual-grid {
  display: grid;

  grid-template-columns:
    0.75fr 1.25fr;

  gap: 10px;
}

.visual-list,
.visual-main {
  min-height: 164px;

  border:
    1px solid
    var(--border);

  border-radius: 13px;

  background: var(--surface);
}

.visual-list {
  padding: 12px;
}

.visual-list span {
  display: block;

  height: 7px;

  margin-bottom: 11px;

  border-radius: 999px;

  background: var(--border);
}

.visual-list span:nth-child(2) {
  width: 83%;

  background:
    rgba(14, 148, 154, 0.65);
}

.visual-list span:nth-child(3) {
  width: 74%;
}

.visual-list span:nth-child(4) {
  width: 91%;
}

.visual-list span:nth-child(5) {
  width: 61%;
}

.visual-main {
  padding: 14px;
}

.visual-row {
  display: grid;

  grid-template-columns:
    1fr auto;

  gap: 10px;

  align-items: center;

  padding:
    10px 0;

  border-bottom:
    1px solid
    var(--border);
}

.visual-row:last-child {
  border-bottom: 0;
}

.visual-row-lines span {
  display: block;

  height: 6px;

  margin-bottom: 5px;

  border-radius: 999px;

  background: var(--border);
}

.visual-row-lines span:first-child {
  width: 105px;

  background: var(--text-muted);
}

.visual-row-lines span:last-child {
  width: 68px;
}

.visual-status {
  width: 44px;
  height: 18px;

  border-radius: 999px;

  background:
    rgba(14, 148, 154, 0.14);
}

.connected-strip {
  margin-top: 22px;

  padding:
    17px 20px;

  border:
    1px solid
    rgba(14, 148, 154, 0.26);

  border-radius: 16px;

  background:
    rgba(14, 148, 154, 0.08);

  color:
    var(--lux-primary-dark);

  font-size: 13px;
  font-weight: 700;

  text-align: center;
}

.workflow-shell {
  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-lg);

  background: var(--surface);

  box-shadow:
    var(--shadow-soft);
}

.workflow-tabs {
  display: flex;

  gap: 7px;

  padding: 12px;

  border-bottom:
    1px solid
    var(--border);

  background:
    var(--surface-soft);
}

.workflow-tab {
  min-height: 42px;

  padding:
    0 17px;

  border:
    1px solid
    transparent;

  border-radius: 999px;

  background: transparent;

  color:
    var(--text-muted);

  font-size: 13px;
  font-weight: 800;

  cursor: pointer;
}

.workflow-tab.active {
  border-color:
    rgba(14, 148, 154, 0.34);

  background: var(--surface);

  color:
    var(--lux-primary);

  box-shadow:
    0 5px 15px
    rgba(15, 76, 92, 0.06);
}

.workflow-content {
  display: grid;

  grid-template-columns:
    0.85fr 1.15fr;

  gap: 52px;

  align-items: center;

  padding: 54px;
}

.workflow-copy h3 {
  margin:
    0 0 13px;

  font-size: 28px;

  letter-spacing:
    -0.03em;
}

.workflow-copy p {
  margin-bottom: 0;

  color:
    var(--text-soft);

  font-size: 16px;

  line-height: 1.72;
}

.workflow-map {
  position: relative;

  display: grid;

  grid-template-columns:
    1fr 85px 1fr 85px 1fr;

  align-items: center;
}

.flow-node {
  position: relative;

  min-height: 142px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 19px;

  border:
    1px solid
    var(--border);

  border-radius: 18px;

  background:
    var(--surface-soft);

  text-align: center;
}

.flow-node.core {
  border-color:
    rgba(14, 148, 154, 0.5);

  background:
    var(--lux-primary);

  color: var(--lux-quaternary);

  box-shadow:
    0 16px 30px
    rgba(15, 76, 92, 0.18);
}

.flow-icon {
  width: 40px;
  height: 40px;

  margin:
    0 auto 11px;

  display: grid;

  place-items: center;

  border-radius: 12px;

  background: var(--surface);

  color:
    var(--lux-primary);

  box-shadow:
    0 5px 14px
    rgba(15, 76, 92, 0.07);
}

.flow-node.core .flow-icon {
  background:
    rgba(255, 255, 255, 0.1);

  color: #A8E0E2;

  box-shadow: none;
}

.flow-node strong {
  display: block;

  font-size: 13px;
}

.flow-node span {
  display: block;

  margin-top: 4px;

  color:
    var(--text-muted);

  font-size: 10px;

  line-height: 1.4;
}

.flow-node.core span {
  color:
    rgba(255, 255, 255, 0.68);
}

.flow-line {
  position: relative;

  height: 2px;

  overflow: hidden;

  background: var(--border);
}

.flow-line::after {
  position: absolute;

  top: 0;
  bottom: 0;

  width: 28px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--lux-secondary),
      transparent
    );

  content: "";

  animation:
    data-flow
    2.4s
    linear
    infinite;
}

.flow-line:nth-child(4)::after {
  animation-delay: 1.2s;
}

@keyframes data-flow {
  from {
    left: -30px;
  }

  to {
    left: 100%;
  }
}

.value-band {
  position: relative;

  overflow: hidden;

  padding:
    76px 0;

  background:
    var(--lux-primary);

  color: var(--lux-quaternary);
}

.value-band::before {
  position: absolute;

  top: -180px;
  right: -140px;

  width: 520px;
  height: 520px;

  border:
    1px solid
    rgba(14, 148, 154, 0.15);

  border-radius: 50%;

  box-shadow:
    0 0 0 70px rgba(14, 148, 154, 0.035),
    0 0 0 140px rgba(14, 148, 154, 0.02);

  content: "";
}

.value-grid {
  position: relative;

  z-index: 1;

  display: grid;

  grid-template-columns:
    0.82fr 1.18fr;

  gap: 70px;

  align-items: center;
}

.value-copy .eyebrow {
  color: #A8E0E2;
}

.value-copy h2 {
  color: var(--lux-quaternary);
}

.value-copy p {
  max-width: 520px;

  margin-bottom: 0;

  color:
    rgba(255, 255, 255, 0.7);

  font-size: 16px;

  line-height: 1.72;
}

.value-list {
  display: grid;

  gap: 12px;
}

.value-item {
  display: grid;

  grid-template-columns:
    44px 1fr;

  gap: 16px;

  align-items: center;

  padding: 17px;

  border:
    1px solid
    rgba(255, 255, 255, 0.11);

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.045);
}

.value-item-icon {
  width: 44px;
  height: 44px;

  display: grid;

  place-items: center;

  border:
    1px solid
    rgba(14, 148, 154, 0.33);

  border-radius: 12px;

  background:
    rgba(14, 148, 154, 0.08);

  color: #A8E0E2;
}

.value-item strong {
  display: block;

  margin-bottom: 3px;

  font-size: 14px;
}

.value-item span {
  display: block;

  color:
    rgba(255, 255, 255, 0.62);

  font-size: 12px;

  line-height: 1.55;
}

.cta-section {
  padding:
    104px 0;
}

.cta-card {
  position: relative;

  overflow: hidden;

  padding: 62px;

  border:
    1px solid
    var(--border);

  border-radius: 34px;

  background: var(--surface);

  box-shadow:
    var(--shadow-soft);
}

.cta-card::after {
  position: absolute;

  right: -120px;
  bottom: -220px;

  width: 500px;
  height: 500px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(14, 148, 154, 0.2),
      transparent 65%
    );

  content: "";

  pointer-events: none;
}

.cta-inner {
  position: relative;

  z-index: 1;

  display: grid;

  grid-template-columns:
    1fr auto;

  gap: 34px;

  align-items: center;
}

.cta-card h2 {
  max-width: 700px;

  margin-bottom: 11px;
}

.cta-card p {
  max-width: 670px;

  margin-bottom: 0;

  color:
    var(--text-soft);

  font-size: 16px;
}

.reveal {
  opacity: 0;

  transform:
    translateY(20px);

  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.visible {
  opacity: 1;

  transform:
    translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .workflow-content,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 35px;
  }

  .platform-stage {
    width:
      min(
        760px,
        100%
      );

    margin:
      0 auto;
  }

  .workflow-content {
    gap: 34px;
  }

  .value-grid {
    gap: 38px;
  }
}

@media (max-width: 820px) {
  .portal-pair {
    grid-template-columns: 1fr;
  }

  .workflow-map {
    grid-template-columns: 1fr;

    gap: 0;
  }

  .flow-line {
    width: 2px;
    height: 48px;

    margin:
      0 auto;
  }

  .flow-line::after {
    top: -20px;
    left: 0;

    width: 2px;
    height: 20px;

    background:
      linear-gradient(
        180deg,
        transparent,
        var(--lux-secondary),
        transparent
      );

    animation:
      data-flow-vertical
      2.4s
      linear
      infinite;
  }

  @keyframes data-flow-vertical {
    from {
      top: -22px;
    }

    to {
      top: 100%;
    }
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner .button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .container {
    width:
      min(
        100% - 30px,
        var(--max-width)
      );
  }

  .hero {
    padding:
      58px 0 54px;
  }

  h1 {
    font-size:
      clamp(
        42px,
        13vw,
        58px
      );
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

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

  .platform-stage {
    min-height: 430px;
  }

  .portal-window.admin {
    width: 91%;
  }

  .portal-window.family {
    width: 88%;
  }

  .portal-body {
    grid-template-columns:
      72px 1fr;

    min-height: 220px;
  }

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

  .mini-stats .mini-stat:last-child {
    display: none;
  }

  .bridge-badge {
    width: 86px;
    height: 86px;
  }

  .bridge-badge strong {
    font-size: 14px;
  }

  .bridge-badge::before,
  .bridge-badge::after {
    width: 60px;
  }

  .bridge-badge::before {
    right: 70px;
  }

  .bridge-badge::after {
    left: 70px;
  }

  .section {
    padding:
      70px 0;
  }

  .portal-card {
    min-height: 430px;
  }

  .portal-card-copy {
    padding:
      28px 25px 0;
  }

  .portal-card-visual {
    right: 14px;
    left: 14px;
  }

  .workflow-tabs {
    overflow-x: auto;
  }

  .workflow-tab {
    flex:
      0 0 auto;
  }

  .workflow-content {
    padding:
      30px 22px;
  }

  .cta-card {
    padding:
      38px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:
      0.001ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.001ms !important;
  }

  .reveal {
    opacity: 1;

    transform: none;
  }
}

/* =========================================================
   Theme-aware homepage surfaces
   ========================================================= */

h1,
h2,
h3 {
  color: var(--heading);
}

.portal-window,
.portal-card,
.workflow-shell,
.cta-card,
.visual-list,
.visual-main,
.mini-stat,
.mini-panel {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.window-top,
.portal-card-visual,
.workflow-tabs,
.flow-node,
.mini-content {
  background: var(--surface-soft);
}

.hero-lead,
.hero-note,
.section-head p,
.portal-card p,
.workflow-copy p,
.cta-card p,
.window-label,
.flow-node span {
  color: var(--text-soft);
}

.connected-strip {
  color: var(--link);
}

.workflow-tab {
  color: var(--text-muted);
}

.workflow-tab.active {
  color: var(--lux-primary);
  background: var(--surface);
}

.flow-icon {
  background: var(--surface);
}

.value-band {
  background: var(--lux-primary);
  color: var(--lux-quaternary);
}

.value-band h2,
.value-band h3,
.value-band strong,
.flow-node.core strong,
.bridge-badge strong {
  color: var(--lux-quaternary);
}


/* =========================================================
   Dark-mode workflow contrast
   ========================================================= */

:root[data-theme="dark"] .workflow-tab.active {
  color: var(--lux-secondary-light);
  background: var(--surface-strong);
  border-color: rgba(99, 199, 203, 0.42);
}

:root[data-theme="dark"] .flow-node {
  color: var(--text);
  background: var(--surface-soft);
}

:root[data-theme="dark"] .flow-node strong {
  color: var(--text);
}

:root[data-theme="dark"] .flow-node span {
  color: var(--text-soft);
}

:root[data-theme="dark"] .flow-icon {
  color: var(--lux-secondary-light);
  background: var(--surface-strong);
}

:root[data-theme="dark"] .flow-node.core {
  color: var(--lux-quaternary);
  background: var(--lux-primary);
}

:root[data-theme="dark"] .flow-node.core strong {
  color: var(--lux-quaternary);
}

:root[data-theme="dark"] .flow-node.core span {
  color: rgba(247, 250, 250, 0.72);
}

:root[data-theme="dark"] .flow-node.core .flow-icon {
  color: #A8E0E2;
  background: rgba(255, 255, 255, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .workflow-tab.active {
    color: var(--lux-secondary-light);
    background: var(--surface-strong);
    border-color: rgba(99, 199, 203, 0.42);
  }

  :root:not([data-theme]) .flow-node {
    color: var(--text);
    background: var(--surface-soft);
  }

  :root:not([data-theme]) .flow-node strong {
    color: var(--text);
  }

  :root:not([data-theme]) .flow-node span {
    color: var(--text-soft);
  }

  :root:not([data-theme]) .flow-icon {
    color: var(--lux-secondary-light);
    background: var(--surface-strong);
  }

  :root:not([data-theme]) .flow-node.core {
    color: var(--lux-quaternary);
    background: var(--lux-primary);
  }

  :root:not([data-theme]) .flow-node.core strong {
    color: var(--lux-quaternary);
  }

  :root:not([data-theme]) .flow-node.core span {
    color: rgba(247, 250, 250, 0.72);
  }

  :root:not([data-theme]) .flow-node.core .flow-icon {
    color: #A8E0E2;
    background: rgba(255, 255, 255, 0.10);
  }
}

:root[data-theme="dark"] .bridge-badge {
  box-shadow:
    0 0 0 11px rgba(38, 52, 61, 0.92),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .bridge-badge {
    box-shadow:
0 0 0 11px rgba(38, 52, 61, 0.92),
0 18px 40px rgba(0, 0, 0, 0.24);
  }
}
