:root {
  --trw-blue: #2F69B1;
  --trw-ink: #050810;
  --trw-green: #00E676;
  --trw-green-dark: #00C853;
  --trw-green-soft: #69F0AE;
  --background: #FBFFFD;
  --foreground: #06080F;
  --primary: #171717;
  --primary-foreground: #FFFFFF;
  --accent: #F4F8F6;
  --accent-foreground: #06080F;
  --ring: #00E676;
}

.dark {
  --background: #050810;
  --foreground: #F7FBFF;
  --card: #141829;
  --card-foreground: #F7FBFF;
  --primary: #00E676;
  --primary-foreground: #050810;
  --secondary: #1A1F3A;
  --secondary-foreground: #F7FBFF;
  --accent: #1A1F3A;
  --accent-foreground: #F7FBFF;
  --border: rgba(255, 255, 255, 0.14);
}

html,
body {
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 14% 10%, rgba(0, 230, 118, 0.055), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(105, 240, 174, 0.06), transparent 28%),
    var(--background);
  color: var(--foreground);
  transition: background-color 180ms ease, color 180ms ease;
}

.dark body {
  background:
    radial-gradient(circle at 16% 10%, rgba(0, 230, 118, 0.1), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(47, 105, 177, 0.16), transparent 32%),
    linear-gradient(180deg, #07111F 0%, #050810 48%, #080D19 100%) !important;
}

.dark header .rounded-2xl,
.dark header .max-w-7xl > div,
.dark header nav,
.dark header button {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.dark header .rounded-2xl,
.dark header .max-w-7xl > div {
  background: rgba(8, 13, 25, 0.78) !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(18px);
}

.dark header a,
.dark header span,
.dark header button:not(.btn-dkw-trigger) {
  color: rgba(247, 251, 255, 0.82) !important;
}

.dark header button[aria-label*="tema" i],
.dark header button[aria-label*="theme" i] {
  background: rgba(20, 24, 41, 0.92) !important;
  color: #F7FBFF !important;
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.18), 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

.dark header button[aria-label*="tema" i]:hover,
.dark header button[aria-label*="theme" i]:hover {
  background: rgba(26, 31, 58, 0.96) !important;
  color: #00E676 !important;
}

a[href="#contato"],
button {
  max-width: 100%;
}

img[src*="trw-system-logo"] {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

header img[src*="trw-system-logo"],
nav img[src*="trw-system-logo"] {
  width: clamp(118px, 9vw, 142px) !important;
  max-height: 50px !important;
}

footer img[src*="trw-system-logo"] {
  width: 150px !important;
  max-height: none !important;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
}

.bg-\[\#00E676\],
.dark\:bg-\[\#00E676\]:is(.dark *),
.\[\&\>div\>div\]\:bg-\[\#00E676\] > div > div {
  background-color: var(--trw-green) !important;
  color: var(--trw-ink) !important;
}

.hover\:bg-\[\#00C853\]:hover {
  background-color: var(--trw-green-dark) !important;
  color: var(--trw-ink) !important;
}

.text-\[\#00E676\],
.dark\:text-\[\#00E676\]:is(.dark *),
.hover\:text-\[\#00E676\]:hover {
  color: var(--trw-green) !important;
}

.border-\[\#00E676\],
.focus-visible\:border-ring:focus-visible {
  border-color: var(--trw-green) !important;
}

.from-\[\#00E676\] {
  --tw-gradient-from: var(--trw-green) var(--tw-gradient-from-position) !important;
  --tw-gradient-to: rgba(0, 230, 118, 0) var(--tw-gradient-to-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.via-\[\#69F0AE\] {
  --tw-gradient-via: var(--trw-green-soft) var(--tw-gradient-via-position) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to) !important;
}

.to-\[\#00E676\] {
  --tw-gradient-to: var(--trw-green) var(--tw-gradient-to-position) !important;
}

.shadow-\[\#00E676\]\/25,
.shadow-\[\#00E676\]\/20 {
  --tw-shadow-color: rgba(0, 230, 118, 0.24) !important;
}

.bg-foreground {
  background-color: var(--trw-ink) !important;
}

.text-foreground {
  color: var(--trw-ink) !important;
}

.dark .text-foreground,
.bg-foreground .text-foreground,
footer .text-foreground {
  color: #F7FBFF !important;
}

.text-muted-foreground {
  color: #64758C !important;
}

footer .text-background\/60,
footer .text-background\/40 {
  color: rgba(247, 251, 255, 0.68) !important;
}

h1 .bg-clip-text,
h2 .bg-clip-text,
h3 .bg-clip-text {
  background-image: linear-gradient(90deg, #00E676 0%, #69F0AE 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.trw-typing-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #00E676;
  box-shadow: 0 0 0 5px rgba(0, 230, 118, 0.12);
  flex: 0 0 auto;
}

.trw-typing-text {
  display: inline-block;
  min-width: min(24ch, calc(100vw - 6rem));
  max-width: calc(100vw - 6rem);
  color: #00D66D;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 160ms ease, transform 160ms ease;
}

.trw-typing-text.is-switching {
  opacity: 0;
  transform: translateY(2px);
}

.trw-typing-caret {
  width: 2px;
  height: 1em;
  background: currentColor;
  animation: trwCaretBlink 0.9s steps(2, start) infinite;
}

@keyframes trwCaretBlink {
  50% {
    opacity: 0;
  }
}

header .max-w-7xl {
  width: min(100%, 78rem) !important;
}

header .rounded-2xl {
  padding-left: clamp(0.85rem, 1.5vw, 1.5rem) !important;
  padding-right: clamp(0.85rem, 1.5vw, 1.5rem) !important;
}

header a,
header button,
header li,
header span {
  white-space: nowrap !important;
}

header ul a {
  min-width: max-content;
}

header img[alt*="Meta Business"] {
  max-width: 118px !important;
}

@media (max-width: 768px) {
  header {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    background: linear-gradient(180deg, rgba(234, 255, 247, 0.98) 0%, rgba(234, 255, 247, 0.92) 74%, rgba(234, 255, 247, 0) 100%) !important;
    backdrop-filter: blur(14px);
  }

  .dark header {
    background: linear-gradient(180deg, rgba(5, 8, 16, 0.98) 0%, rgba(5, 8, 16, 0.92) 74%, rgba(5, 8, 16, 0) 100%) !important;
  }

  header .max-w-7xl {
    width: min(100%, calc(100vw - 14px)) !important;
  }

  header .rounded-2xl {
    min-height: 52px !important;
    padding: 0.34rem 0.48rem !important;
    border-radius: 15px !important;
  }

  header img[src*="trw-system-logo"] {
    width: 126px !important;
    max-height: 44px !important;
  }

  header button {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  header button svg {
    width: 16px !important;
    height: 16px !important;
  }

  main > section:first-of-type {
    min-height: auto !important;
    padding-top: 4.85rem !important;
    padding-bottom: 2.25rem !important;
  }

  main > section:first-of-type > div.relative {
    max-width: 100% !important;
    padding-top: 1.45rem !important;
    padding-bottom: 1rem !important;
  }

  main > section:first-of-type .text-center {
    width: min(100% - 22px, 430px);
    margin-left: auto;
    margin-right: auto;
  }

  main > section:first-of-type h1 {
    max-width: 16ch;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(2rem, 8vw, 2.75rem) !important;
    line-height: 1.08 !important;
  }

  main > section:first-of-type p {
    max-width: 34ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 0.94rem !important;
    line-height: 1.58 !important;
  }

  main > section:first-of-type .mt-8.flex {
    width: min(100%, 310px);
    display: grid !important;
    gap: 0.68rem !important;
    margin: 1.15rem auto 0 !important;
  }

  main > section:first-of-type .mt-8.flex > div {
    justify-content: flex-start !important;
  }

  main > section:first-of-type .mt-10 {
    margin-top: 1.15rem !important;
  }

  main > section:first-of-type .mt-10.flex {
    width: min(100%, 300px);
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 0.65rem !important;
  }

  main > section:first-of-type .mt-10.flex button,
  main > section:first-of-type .mt-10.flex a {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 0.86rem !important;
  }

  main > section:first-of-type .mt-16.grid.grid-cols-3 {
    margin-top: 1.75rem !important;
    gap: 0.55rem !important;
  }
}

.trw-dashboard-preview-section {
  padding: clamp(2.5rem, 5vw, 5rem) 1rem clamp(3rem, 6vw, 6rem);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.03), rgba(255, 255, 255, 0));
  overflow: hidden;
  scroll-margin-top: 120px;
}

.trw-dashboard-wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  border: 1px solid rgba(5, 8, 16, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 30px 100px rgba(7, 28, 54, 0.12);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.trw-browser-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 54px;
  padding: 0 1.4rem;
  background: linear-gradient(90deg, rgba(247, 255, 251, 0.94), rgba(238, 252, 247, 0.9));
  border-bottom: 1px solid rgba(5, 8, 16, 0.08);
}

.trw-window-dots {
  display: inline-flex;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.trw-window-dots span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
}

.trw-window-dots span:nth-child(1) { background: #EF5F67; }
.trw-window-dots span:nth-child(2) { background: #C8D0D5; }
.trw-window-dots span:nth-child(3) { background: #00E676; }

.trw-browser-url {
  color: #53657A;
  font-size: 0.86rem;
  white-space: nowrap;
}

.trw-browser-note {
  margin-left: auto;
  color: #607186;
  font-size: 0.86rem;
  font-style: italic;
  white-space: nowrap;
}

.trw-dashboard-shot {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: 500px;
  background:
    radial-gradient(circle at 78% 18%, rgba(0, 230, 118, 0.055), transparent 30%),
    #F7FAFC;
}

.trw-dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 0.85rem;
  background: linear-gradient(180deg, #FFFFFF, #F5FBF8);
  border-right: 1px solid #E4EAF0;
}

.trw-dash-logo {
  width: 92px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  margin: 0 0 1.1rem 0.2rem;
}

.trw-dash-group {
  margin: 0.8rem 0 0.25rem;
  color: #8A98A8;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.trw-dash-nav {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.7rem;
  border-radius: 10px;
  color: #667487;
  font-size: 0.75rem;
  font-weight: 700;
}

.trw-dash-nav.active {
  color: #00B85F;
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.18), rgba(0, 230, 118, 0.04));
  box-shadow: inset 3px 0 0 #00E676;
}

.trw-dash-main {
  min-width: 0;
  padding: 1.4rem;
}

.trw-dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.trw-dash-top h3 {
  margin: 0;
  color: #142033;
  font-size: 1.25rem;
  font-weight: 900;
}

.trw-dash-top p {
  margin: 0.1rem 0 0;
  color: #667487;
  font-size: 0.78rem;
}

.trw-date-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trw-date-pills span {
  border: 1px solid rgba(0, 230, 118, 0.34);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: #00A956;
  background: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
}

.trw-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.trw-kpi {
  position: relative;
  min-height: 64px;
  padding: 0.85rem 0.85rem 0.75rem 3.2rem;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(10, 20, 35, 0.06);
  overflow: hidden;
}

.trw-kpi::before {
  content: "";
  position: absolute;
  left: 0.82rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  transform: translateY(-50%);
  background: var(--kpi);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--kpi), transparent 55%);
}

.trw-kpi::after {
  content: "";
  position: absolute;
  left: 1.58rem;
  top: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border: 2px solid white;
  border-top: 0;
  border-left: 0;
  transform: translateY(-62%) rotate(45deg);
}

.trw-kpi b {
  display: block;
  color: #111827;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1;
  white-space: nowrap;
}

.trw-kpi span {
  display: block;
  margin-top: 0.24rem;
  color: #667487;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trw-kpi.blue { --kpi: #477DFF; }
.trw-kpi.orange { --kpi: #F59E0B; }
.trw-kpi.green { --kpi: #30C96E; }
.trw-kpi.pink { --kpi: #EC4899; }
.trw-kpi.teal { --kpi: #2CC4B6; }
.trw-kpi.purple { --kpi: #6D6CFF; }
.trw-kpi.cyan { --kpi: #1FBED6; }
.trw-kpi.violet { --kpi: #A855F7; }
.trw-kpi.red { --kpi: #EF4444; }
.trw-kpi.amber { --kpi: #F59E0B; }

.trw-chart-panel {
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(10, 20, 35, 0.05);
  overflow: hidden;
}

.trw-chart-wide {
  padding: 1rem;
  margin-bottom: 1rem;
}

.trw-panel-title {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin-bottom: 0.75rem;
}

.trw-panel-title b {
  color: #142033;
  font-size: 0.9rem;
}

.trw-panel-title span {
  color: #667487;
  font-size: 0.72rem;
}

.trw-chart-wide svg {
  width: 100%;
  height: 220px;
  display: block;
}

.trw-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 1rem;
}

.trw-lower-grid .trw-chart-panel {
  padding: 1rem;
  min-height: 170px;
}

.trw-bars {
  height: 112px;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  align-items: end;
  gap: 0.46rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #E8EEF5;
}

.trw-bars span {
  height: var(--h);
  min-height: 14px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #7C7BFF, #5F63F2);
}

.trw-nps {
  display: flex;
  flex-direction: column;
}

.trw-nps-ring {
  width: 132px;
  height: 132px;
  margin: auto auto 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(#E5EAF2 0 72%, #F8FAFC 72% 100%);
  color: #F59E0B;
  position: relative;
}

.trw-nps-ring::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: inherit;
  background: #FFFFFF;
}

.trw-nps-ring strong,
.trw-nps-ring span {
  position: relative;
  z-index: 1;
}

.trw-nps-ring strong {
  font-size: 1.7rem;
  line-height: 1;
}

.trw-nps-ring span {
  margin-top: 1.8rem;
  color: #667487;
  font-size: 0.62rem;
}

.trw-showcase-shell {
  position: relative;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(0.65rem, 1.8vw, 1.25rem);
}

.trw-showcase-shell::before {
  content: "";
  position: absolute;
  inset: 8% 3% -6%;
  border-radius: 46px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 209, 50, 0.24), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(0, 230, 118, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(45, 107, 185, 0.1), rgba(0, 230, 118, 0.12));
  filter: blur(28px);
  opacity: 0.76;
  pointer-events: none;
}

.trw-product-window {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(5, 8, 16, 0.09);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 28px 80px rgba(24, 47, 74, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.trw-product-screen {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 250px;
  gap: 0;
  min-height: 520px;
  background:
    radial-gradient(circle at 74% 18%, rgba(0, 230, 118, 0.08), transparent 30%),
    linear-gradient(135deg, #FFFFFF 0%, #F7FBFA 44%, #EFF8F5 100%);
}

.trw-app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
  padding: 1.3rem 0.85rem;
  border-right: 1px solid #E3EBEF;
  background: rgba(255, 255, 255, 0.72);
}

.trw-app-logo {
  width: 92px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  margin: 0 auto 1rem;
}

.trw-app-nav {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 0.72rem;
  border-radius: 12px;
  color: #62738A;
  font-size: 0.77rem;
  font-weight: 800;
}

.trw-app-nav.active {
  color: #00A956;
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.17), rgba(0, 230, 118, 0.04));
  box-shadow: inset 3px 0 0 #00E676;
}

.trw-app-main {
  min-width: 0;
  padding: 1.35rem;
}

.trw-app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.trw-app-eyebrow {
  display: block;
  color: #607186;
  font-size: 0.72rem;
  font-weight: 700;
}

.trw-app-toolbar h3 {
  margin: 0.1rem 0 0;
  color: #111827;
  font-size: 1.15rem;
  font-weight: 900;
}

.trw-app-toolbar button {
  min-height: 34px;
  padding: 0 0.9rem;
  border: 1px solid rgba(0, 230, 118, 0.32);
  border-radius: 999px;
  background: #FFFFFF;
  color: #00A956;
  font-size: 0.78rem;
  font-weight: 800;
}

.trw-pipeline-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.trw-pipeline-col {
  min-height: 380px;
  padding: 0.85rem;
  border: 1px solid #DDE7EA;
  border-top: 3px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 34px rgba(16, 34, 53, 0.06);
}

.trw-pipeline-col.green { --line: #00E676; }
.trw-pipeline-col.amber { --line: #FFD132; }
.trw-pipeline-col.blue { --line: #2D6BB9; }

.trw-col-head {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  margin-bottom: 0.75rem;
}

.trw-col-head b {
  color: #111827;
  font-size: 0.76rem;
  line-height: 1.2;
}

.trw-col-head span {
  color: #607186;
  font-size: 0.66rem;
}

.trw-lead-card {
  display: grid;
  gap: 0.42rem;
  min-height: 92px;
  margin-bottom: 0.7rem;
  padding: 0.82rem;
  border: 1px solid #E1E8EC;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 10px 22px rgba(16, 34, 53, 0.055);
}

.trw-lead-card.selected {
  border-color: rgba(0, 230, 118, 0.72);
  box-shadow: 0 16px 30px rgba(0, 200, 83, 0.14);
}

.trw-lead-card strong {
  color: #111827;
  font-size: 0.8rem;
  line-height: 1.2;
}

.trw-lead-card span {
  width: max-content;
  max-width: 100%;
  padding: 0.22rem 0.46rem;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.14);
  color: #00A956;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.trw-lead-card span.yellow {
  background: rgba(255, 209, 50, 0.22);
  color: #9A7800;
}

.trw-lead-card span.blue {
  background: rgba(45, 107, 185, 0.12);
  color: #2D6BB9;
}

.trw-lead-card small {
  color: #607186;
  font-size: 0.66rem;
}

.trw-chat-panel {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  margin: 1.35rem 1.25rem 1.35rem 0;
  padding: 1rem;
  border: 1px solid #DDE7EA;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(16, 34, 53, 0.08);
}

.trw-chat-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #E7EDF1;
}

.trw-chat-head > span {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, #FFFFFF 0 16%, transparent 17%),
    linear-gradient(135deg, #00E676, #2D6BB9);
}

.trw-chat-head b,
.trw-chat-head small {
  display: block;
}

.trw-chat-head b {
  color: #111827;
  font-size: 0.82rem;
}

.trw-chat-head small {
  margin-top: 0.1rem;
  color: #00A956;
  font-size: 0.66rem;
  font-weight: 800;
}

.trw-message {
  max-width: 88%;
  padding: 0.68rem 0.78rem;
  border-radius: 15px;
  color: #26364A;
  font-size: 0.74rem;
  line-height: 1.35;
}

.trw-message.left {
  align-self: flex-start;
  background: #F1F5F7;
  border-bottom-left-radius: 5px;
}

.trw-message.right {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(45, 107, 185, 0.12));
  border-bottom-right-radius: 5px;
}

.trw-chat-input {
  margin-top: auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: #F7FAFC;
  color: #7B8796;
  font-size: 0.7rem;
}

.trw-float-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.1rem;
  min-width: 168px;
  padding: 0.86rem 1rem;
  border: 1px solid rgba(0, 230, 118, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(16, 34, 53, 0.13);
  backdrop-filter: blur(16px);
}

.trw-float-card b {
  color: #2D6BB9;
  font-size: 1.15rem;
  line-height: 1;
}

.trw-float-card span {
  color: #607186;
  font-size: 0.68rem;
  font-weight: 700;
}

.trw-float-left {
  left: 0;
  bottom: 8%;
}

.trw-float-right {
  right: 0.3rem;
  top: 11%;
}

.dark .trw-dashboard-preview-section {
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.055), rgba(5, 8, 16, 0)) !important;
}

.dark .trw-showcase-shell::before {
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 209, 50, 0.12), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(0, 230, 118, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(45, 107, 185, 0.18), rgba(0, 230, 118, 0.12));
  opacity: 0.9;
}

.dark .trw-product-window,
.dark .trw-dashboard-wrap {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(10, 14, 39, 0.88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 230, 118, 0.08) inset;
}

.dark .trw-browser-bar {
  background: linear-gradient(90deg, rgba(15, 22, 42, 0.96), rgba(11, 29, 42, 0.92));
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.dark .trw-browser-url,
.dark .trw-browser-note,
.dark .trw-app-eyebrow,
.dark .trw-col-head span,
.dark .trw-lead-card small,
.dark .trw-chat-input,
.dark .trw-float-card span {
  color: rgba(214, 225, 240, 0.72);
}

.dark .trw-product-screen {
  background:
    radial-gradient(circle at 72% 16%, rgba(0, 230, 118, 0.1), transparent 32%),
    linear-gradient(135deg, #0A0E27 0%, #10172A 52%, #07111F 100%);
}

.dark .trw-app-sidebar {
  border-right-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 12, 24, 0.7);
}

.dark .trw-app-toolbar h3,
.dark .trw-col-head b,
.dark .trw-lead-card strong,
.dark .trw-chat-head b,
.dark .trw-message,
.dark .trw-dash-top h3,
.dark .trw-panel-title b,
.dark .trw-kpi b {
  color: #F7FBFF;
}

.dark .trw-app-nav {
  color: rgba(214, 225, 240, 0.7);
}

.dark .trw-app-nav.active {
  color: #00E676;
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.16), rgba(0, 230, 118, 0.04));
}

.dark .trw-app-toolbar button,
.dark .trw-date-pills span {
  border-color: rgba(0, 230, 118, 0.32);
  background: rgba(10, 14, 39, 0.86);
  color: #69F0AE;
}

.dark .trw-pipeline-col,
.dark .trw-chart-panel,
.dark .trw-kpi,
.dark .trw-chat-panel,
.dark .trw-float-card {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(20, 24, 41, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.dark .trw-lead-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(247, 251, 255, 0.055);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.dark .trw-lead-card.selected {
  border-color: rgba(0, 230, 118, 0.65);
  box-shadow: 0 16px 34px rgba(0, 230, 118, 0.13);
}

.dark .trw-message.left {
  background: rgba(255, 255, 255, 0.07);
}

.dark .trw-message.right {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(47, 105, 177, 0.18));
}

.dark .trw-chat-input {
  background: rgba(255, 255, 255, 0.065);
}

.dark .trw-panel-title span,
.dark .trw-dash-top p,
.dark .trw-kpi span {
  color: rgba(214, 225, 240, 0.7);
}

.trw-real-panel-section {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 7rem) 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(0, 230, 118, 0.12), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(47, 105, 177, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(245, 252, 249, 0.96), rgba(255, 255, 255, 0.98));
}

.trw-real-panel-wrap {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.trw-real-panel-head {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.trw-real-panel-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 1rem;
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.1);
  color: #00A85A;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trw-real-panel-head h2 {
  margin: 1rem 0 0.7rem;
  color: #07142B;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.02;
  font-weight: 900;
}

.trw-real-panel-head p {
  margin: 0;
  color: #5A6B83;
  font-size: 1.05rem;
  line-height: 1.65;
}

.trw-real-panel-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(47, 105, 177, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 34px 86px rgba(22, 45, 68, 0.16);
}

.trw-real-panel-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 230, 118, 0.08);
  z-index: 2;
}

.trw-real-panel-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(47, 105, 177, 0.13);
  background: linear-gradient(90deg, rgba(247, 251, 255, 0.94), rgba(231, 249, 241, 0.88));
}

.trw-real-panel-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.trw-real-panel-bar span:nth-child(1) { background: #FF5F57; }
.trw-real-panel-bar span:nth-child(2) { background: #FFBD2E; }
.trw-real-panel-bar span:nth-child(3) { background: #28C840; }

.trw-real-panel-bar strong {
  margin-left: 0.35rem;
  color: #3F536D;
  font-size: 0.82rem;
  font-weight: 700;
}

.trw-real-panel-viewport {
  overflow: hidden;
  background: #F7FAFD;
}

.trw-real-panel-viewport img {
  display: block;
  width: 100%;
  height: auto;
}

.trw-real-panel-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.trw-real-panel-points article {
  min-height: 112px;
  padding: 1.1rem;
  border: 1px solid rgba(47, 105, 177, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 40px rgba(22, 45, 68, 0.08);
}

.trw-real-panel-points strong,
.trw-real-panel-points span {
  display: block;
}

.trw-real-panel-points strong {
  color: #07142B;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.trw-real-panel-points span {
  color: #62738A;
  font-size: 0.82rem;
  line-height: 1.45;
}

.dark .trw-real-panel-section {
  background:
    radial-gradient(circle at 15% 8%, rgba(0, 230, 118, 0.14), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(84, 162, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #050810, #0A0E27);
}

.dark .trw-real-panel-head h2,
.dark .trw-real-panel-points strong {
  color: #F7FBFF;
}

.dark .trw-real-panel-head p,
.dark .trw-real-panel-points span {
  color: rgba(214, 225, 240, 0.72);
}

.dark .trw-real-panel-frame,
.dark .trw-real-panel-points article {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 39, 0.72);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.36);
}

.dark .trw-real-panel-bar {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(15, 22, 42, 0.96), rgba(11, 29, 42, 0.92));
}

.dark .trw-real-panel-bar strong {
  color: rgba(214, 225, 240, 0.76);
}

.trw-mobile-menu {
  display: none;
}

.dkw-modal {
  --dkw-bg: #0A0E27;
  --dkw-bg-darker: #050810;
  --dkw-surface: #141829;
  --dkw-surface-lt: #1A1F3A;
  --dkw-border: #2A3F5F;
  --dkw-text: #F7FBFF;
  --dkw-text-sec: #A8B2D1;
  --dkw-accent: #00E676;
  --dkw-accent-dk: #00C853;
  --dkw-glow: 0 0 24px rgba(0, 230, 118, 0.18);
}

.btn-dkw-trigger,
.dkw-btn-primary {
  background: linear-gradient(135deg, #00E676 0%, #00C853 100%) !important;
  color: #050810 !important;
  border-color: #00E676 !important;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

section {
  overflow-x: clip;
}

@media (max-width: 1024px) {
  .trw-dashboard-preview-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .trw-real-panel-wrap {
    width: min(100% - 24px, 920px);
  }

  .trw-real-panel-head {
    margin-bottom: 1.5rem;
  }

  .trw-real-panel-points {
    grid-template-columns: 1fr;
  }

  .trw-showcase-shell {
    width: min(100%, 900px);
  }

  .trw-product-screen {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .trw-chat-panel {
    grid-column: 2;
    margin: 0 1.2rem 1.2rem;
  }

  .trw-pipeline-board {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .trw-float-card {
    display: none;
  }

  .trw-dashboard-shot {
    grid-template-columns: 150px minmax(620px, 1fr);
    overflow-x: auto;
  }

  .trw-kpi-grid {
    grid-template-columns: repeat(5, 150px);
  }

  .trw-browser-note {
    display: none;
  }

  header img[src*="trw-system-logo"] {
    width: 126px !important;
    max-height: 48px !important;
  }

  header img[alt*="Meta Business"] {
    display: none !important;
  }

  header .h-5.w-px {
    display: none !important;
  }

  .trw-mobile-menu {
    position: fixed;
    top: 88px;
    left: 1rem;
    right: 1rem;
    z-index: 49;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.85rem;
    border: 1px solid rgba(0, 230, 118, 0.16);
    border-radius: 16px;
    background: rgba(251, 255, 253, 0.95);
    box-shadow: 0 18px 50px rgba(5, 8, 16, 0.12);
    backdrop-filter: blur(18px);
  }

  .trw-mobile-menu[data-open="true"] {
    display: grid;
  }

  .trw-mobile-menu a,
  .trw-mobile-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 0.85rem;
    border-radius: 10px;
    color: var(--trw-ink);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
  }

  .trw-mobile-menu a:hover,
  .trw-mobile-menu button:hover {
    background: rgba(0, 230, 118, 0.08);
  }

  .trw-mobile-menu button {
    margin-top: 0.35rem;
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%) !important;
    color: var(--trw-ink) !important;
    border: 0;
    cursor: pointer;
  }

  nav a,
  header a,
  header button {
    white-space: nowrap;
  }
}

.trw-flow-section {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 0;
  scroll-margin-top: 96px;
  background:
    radial-gradient(circle at 18% 10%, rgba(0, 230, 118, 0.09), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(47, 105, 177, 0.08), transparent 32%);
}

.trw-flow-container {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
}

.trw-flow-heading {
  max-width: 770px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.trw-flow-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(0, 230, 118, 0.34);
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.1);
  color: #00B45D;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 900;
}

.trw-flow-eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #00E676;
}

.trw-flow-heading h2 {
  margin: 1.1rem 0 0;
  color: var(--trw-ink);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.trw-flow-heading p {
  margin: 1rem auto 0;
  color: #64758C;
  font-size: 1.05rem;
  line-height: 1.65;
}

.trw-flow-window {
  position: relative;
  border: 1px solid rgba(7, 16, 31, 0.12);
  border-radius: 20px;
  background: #101A26;
  box-shadow:
    0 32px 90px rgba(10, 32, 50, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
}

.trw-flow-browser {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 46px;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.trw-flow-dots {
  display: flex;
  gap: 0.45rem;
}

.trw-flow-dots span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.trw-flow-dots span:nth-child(1) { background: #FF5F57; }
.trw-flow-dots span:nth-child(2) { background: #FEBC2E; }
.trw-flow-dots span:nth-child(3) { background: #28C840; }

.trw-flow-url {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  padding: 0.45rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
}

.trw-flow-app {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 430px;
}

.trw-flow-sidebar {
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.trw-flow-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.trw-flow-side-head span {
  color: rgba(255, 255, 255, 0.42);
}

.trw-flow-sidebar label {
  display: block;
  margin: 0.9rem 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.34);
  padding: 0.42rem 0.7rem;
  font-size: 0.68rem;
}

.trw-flow-sidebar button {
  width: 100%;
  min-height: 38px !important;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  padding: 0 0.85rem;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.trw-flow-sidebar button:hover {
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.1);
  color: #FFFFFF;
}

.trw-flow-canvas {
  position: relative;
  min-width: 0;
  min-height: calc(430px * var(--flow-scale, 1));
  height: calc(430px * var(--flow-scale, 1));
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 18%, rgba(0, 230, 118, 0.06), transparent 28%),
    radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1px) 0 0 / 18px 18px,
    #202020;
}

.trw-flow-stage {
  position: absolute;
  inset: 0 auto auto 0;
  width: 994px;
  height: 430px;
  transform: scale(var(--flow-scale, 1));
  transform-origin: 0 0;
}

.trw-flow-toolbar {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
  max-width: calc(100% - 2rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.86);
  backdrop-filter: blur(12px);
  padding: 0.38rem;
  color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.trw-flow-toolbar button,
.trw-flow-actions button,
.trw-flow-controls > button,
.trw-flow-controls div button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.trw-flow-toolbar button {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.trw-flow-toolbar strong {
  min-width: 150px;
  text-align: center;
  color: #FFFFFF;
  font-size: 0.72rem;
}

.trw-flow-toolbar span {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 0.7rem;
  white-space: nowrap;
  font-size: 0.65rem;
}

.trw-flow-toolbar .publish {
  width: auto;
  min-height: 25px !important;
  padding: 0 0.9rem;
  background: #00E676;
  color: #041326;
  font-size: 0.64rem;
  font-weight: 900;
}

.trw-flow-event {
  position: absolute;
  top: 64px;
  right: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 245px;
  border: 1px solid rgba(236, 72, 153, 0.28);
  border-radius: 18px;
  background: rgba(38, 24, 34, 0.92);
  color: rgba(255, 255, 255, 0.88);
  padding: 0.8rem;
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.08);
  animation: trwFlowFloat 3s ease-in-out infinite;
}

.trw-flow-event b {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.17);
  color: #EC4899;
  flex: 0 0 auto;
}

.trw-flow-event strong,
.trw-flow-event span {
  display: block;
}

.trw-flow-event strong {
  font-size: 0.74rem;
}

.trw-flow-event span {
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.62rem;
}

.trw-flow-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.trw-flow-lines path {
  fill: none;
  stroke: rgba(125, 146, 158, 0.5);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trw-flow-lines path.active {
  stroke: #00E676;
  stroke-width: 2.1;
  filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.48));
}

.trw-flow-node {
  position: absolute;
  z-index: 2;
  width: 166px;
  min-height: 76px !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(28, 28, 28, 0.9);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.trw-flow-node span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 230, 118, 0.12);
  color: #00E676;
  margin-bottom: 0.45rem;
}

.trw-flow-node strong,
.trw-flow-node small {
  display: block;
}

.trw-flow-node strong {
  color: #FFFFFF;
  font-size: 0.76rem;
  line-height: 1.2;
}

.trw-flow-node small {
  margin-top: 0.28rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.62rem;
  line-height: 1.2;
}

.trw-flow-node em {
  display: inline-flex;
  margin-top: 0.48rem;
  margin-right: 0.3rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  padding: 0.16rem 0.45rem;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
}

.trw-flow-node.active {
  border-color: #00E676;
  background: rgba(9, 68, 43, 0.9);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.1), 0 22px 44px rgba(0, 230, 118, 0.12);
}

.trw-flow-node.done {
  border-color: rgba(0, 230, 118, 0.5);
}

.trw-flow-node.trigger { left: 28px; top: 205px; }
.trw-flow-node.message { left: 230px; top: 165px; }
.trw-flow-node.tag { left: 432px; top: 165px; }
.trw-flow-node.question {
  left: 632px;
  top: 150px;
  border-color: rgba(255, 168, 0, 0.82);
  box-shadow: 0 0 0 5px rgba(255, 168, 0, 0.12), 0 20px 40px rgba(0,0,0,0.16);
}
.trw-flow-node.branch {
  width: 148px;
}

.trw-flow-node.branch.yes { right: 18px; top: 162px; }
.trw-flow-node.branch.no { right: 18px; top: 295px; opacity: 0.74; }

.trw-flow-inspector {
  position: absolute;
  left: 34px;
  bottom: 26px;
  z-index: 3;
  width: 285px;
  border: 1px solid rgba(0, 230, 118, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 36, 0.86);
  color: rgba(255, 255, 255, 0.84);
  padding: 0.9rem;
  backdrop-filter: blur(12px);
}

.trw-flow-inspector span {
  display: block;
  color: #00E676;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trw-flow-inspector strong {
  display: block;
  margin-top: 0.25rem;
  color: #FFFFFF;
  font-size: 0.86rem;
}

.trw-flow-inspector p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  line-height: 1.45;
}

.trw-flow-actions {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(31,31,31,0.84);
  padding: 0.35rem;
}

.trw-flow-actions button {
  min-height: 30px !important;
  border-radius: 999px;
  padding: 0 0.85rem;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.68);
  font-size: 0.65rem;
  font-weight: 900;
}

.trw-flow-actions button:last-child {
  background: #00E676;
  color: #041326;
}

.trw-flow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.trw-flow-controls > button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 230, 118, 0.38);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: #00A957;
  font-size: 1.25rem;
}

.trw-flow-controls div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trw-flow-controls div button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(7, 16, 31, 0.24);
}

.trw-flow-controls div button.active {
  width: 28px;
  background: #00E676;
}

.trw-flow-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.trw-flow-benefits article {
  border: 1px solid rgba(7, 16, 31, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 1.1rem;
}

.trw-flow-benefits span {
  color: #00A957;
  font-size: 0.72rem;
  font-weight: 900;
}

.trw-flow-benefits strong {
  display: block;
  margin-top: 0.18rem;
  color: #07101F;
  font-size: 0.98rem;
}

.trw-flow-benefits p {
  margin: 0.35rem 0 0;
  color: #64758C;
  font-size: 0.84rem;
  line-height: 1.45;
}

.dark .trw-flow-heading h2,
.dark .trw-flow-benefits strong {
  color: #F7FBFF;
}

.dark .trw-flow-heading p,
.dark .trw-flow-benefits p {
  color: rgba(214, 225, 240, 0.72);
}

.dark .trw-flow-controls > button,
.dark .trw-flow-benefits article {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(20, 24, 41, 0.72);
}

@media (max-width: 1120px) and (min-width: 769px) {
  .trw-flow-app {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .trw-flow-sidebar {
    display: none;
  }

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

@keyframes trwFlowDash {
  to { stroke-dashoffset: -36; }
}

@keyframes trwFlowFloat {
  50% { transform: translateY(-4px); }
}

.trw-integrations-section {
  padding: clamp(3.5rem, 6.5vw, 6rem) 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(47, 105, 177, 0.055), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(0, 230, 118, 0.07), transparent 30%),
    #F7FAF9;
  scroll-margin-top: 96px;
}

.trw-integrations-wrap {
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
}

.trw-integrations-head {
  max-width: 760px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.trw-integrations-head span {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  border: 1px solid rgba(0, 230, 118, 0.32);
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.1);
  color: #00A957;
  padding: 0.42rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trw-integrations-head h2 {
  margin: 1rem 0 0;
  color: var(--trw-ink);
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1.04;
}

.trw-integrations-head p {
  margin: 0.9rem auto 0;
  color: #64758C;
  font-size: 1.03rem;
  line-height: 1.6;
}

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

.trw-integration-card {
  --tone: #00E676;
  min-height: 188px;
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
  border: 1px solid rgba(7, 16, 31, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tone) 20%, transparent), transparent 48%);
  padding: 1.45rem 1rem;
  box-shadow: 0 18px 46px rgba(16, 34, 53, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.trw-integration-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tone) 42%, rgba(7, 16, 31, 0.12));
  box-shadow: 0 24px 54px rgba(16, 34, 53, 0.11);
}

.trw-integration-card span {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tone) 14%, #FFFFFF);
  color: var(--tone);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent);
}

.trw-integration-card strong {
  display: block;
  margin-top: 0.95rem;
  color: #142033;
  font-size: 1rem;
  font-weight: 900;
}

.trw-integration-card small {
  display: block;
  margin-top: 0.45rem;
  max-width: 25ch;
  color: #64758C;
  font-size: 0.8rem;
  line-height: 1.45;
}

.trw-integration-card.make { --tone: #7758F6; }
.trw-integration-card.n8n { --tone: #EA4B71; }
.trw-integration-card.api { --tone: #00B8D9; }
.trw-integration-card.webhook { --tone: #2F69B1; }
.trw-integration-card.hubspot { --tone: #FF7A59; }
.trw-integration-card.typebot { --tone: #2B68FF; }

.dark .trw-integrations-section {
  background:
    radial-gradient(circle at 16% 10%, rgba(47, 105, 177, 0.16), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(0, 230, 118, 0.13), transparent 30%),
    #050810;
}

.dark .trw-integrations-head h2,
.dark .trw-integration-card strong {
  color: #F7FBFF;
}

.dark .trw-integrations-head p,
.dark .trw-integration-card small {
  color: rgba(214, 225, 240, 0.72);
}

.dark .trw-integration-card {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(20, 24, 41, 0.94), rgba(12, 17, 32, 0.9)),
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tone) 24%, transparent), transparent 50%);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
}

.trw-testimonials-section {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 230, 118, 0.07), transparent 34%),
    linear-gradient(180deg, #050810 0%, #060B16 100%);
  color: #F7FBFF;
  scroll-margin-top: 96px;
}

.trw-testimonials-head {
  width: min(100% - 32px, 980px);
  margin: 0 auto 3rem;
  text-align: center;
}

.trw-testimonials-head span {
  display: block;
  color: #00E676;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trw-testimonials-head h2 {
  margin: 0.7rem 0 0;
  color: #FFFFFF;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.04;
}

.trw-testimonials-head h2::after {
  content: " dizem";
  color: #00E676;
}

.trw-testimonials-head p {
  margin: 0.9rem auto 0;
  max-width: 680px;
  color: rgba(214, 225, 240, 0.64);
  font-size: 1.02rem;
}

.trw-testimonials-marquee {
  display: grid;
  gap: 1.25rem;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.trw-testimonials-track {
  --testimonial-gap: 1.4rem;
  display: flex;
  width: max-content;
  gap: var(--testimonial-gap);
  padding: 0 var(--testimonial-gap);
  animation: trwTestimonialsLeft 42s linear infinite;
  will-change: transform;
}

.trw-testimonials-track.reverse {
  animation-name: trwTestimonialsRight;
  animation-duration: 48s;
}

.trw-testimonials-marquee:hover .trw-testimonials-track {
  animation-play-state: paused;
}

.trw-testimonial-card {
  flex: 0 0 clamp(300px, 23vw, 390px);
  min-height: 182px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.035)),
    #111827;
  padding: 1.45rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.trw-testimonial-card .trw-stars {
  color: #00E676;
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.trw-testimonial-card p {
  margin: 0.85rem 0 1.2rem;
  color: rgba(247, 251, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.55;
}

.trw-testimonial-card > div:last-child {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 0.75rem;
  align-items: center;
}

.trw-testimonial-card span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.14);
  color: #00E676;
  font-size: 0.74rem;
  font-weight: 900;
}

.trw-testimonial-card strong {
  color: #FFFFFF;
  font-size: 0.9rem;
  line-height: 1.15;
}

.trw-testimonial-card small {
  color: rgba(148, 163, 184, 0.86);
  font-size: 0.75rem;
  line-height: 1.2;
}

@keyframes trwTestimonialsLeft {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (var(--testimonial-gap) / 2))); }
}

@keyframes trwTestimonialsRight {
  from { transform: translateX(calc(-50% - (var(--testimonial-gap) / 2))); }
  to { transform: translateX(0); }
}

.trw-agent-stage {
  width: min(100%, 980px);
  margin: 3.8rem auto 1.6rem;
  padding: 0 1rem;
}

.trw-agent-builder {
  border: 1px solid rgba(7, 16, 31, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 22px 62px rgba(25, 69, 110, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
}

.trw-agent-topbar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(82px, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 0 2rem;
  border-bottom: 1px solid #E4EAF0;
}

.trw-agent-back {
  color: #536881;
  font-size: 0.9rem;
  font-weight: 700;
}

.trw-agent-tabs {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  min-width: 0;
}

.trw-agent-tabs button,
.trw-agent-save,
.trw-agent-section-head button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #536881;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.trw-agent-tabs button {
  min-height: 32px;
  padding: 0 1rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.trw-agent-tabs button.active {
  background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  color: #041326;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 230, 118, 0.2);
}

.trw-agent-save {
  justify-self: end;
  min-height: 32px;
  padding: 0 1.15rem;
  background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  color: #041326;
}

.trw-agent-body {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  min-height: 420px;
}

.trw-agent-sidebar {
  padding: 1.35rem 1.25rem;
  border-right: 1px solid #E4EAF0;
  background:
    linear-gradient(180deg, rgba(0, 230, 118, 0.035), transparent 50%),
    #FBFDFC;
}

.trw-agent-sidebar label {
  display: block;
  margin: 0 0 0.35rem;
  color: #536881;
  font-size: 0.68rem;
  font-weight: 700;
}

.trw-agent-field,
.trw-agent-select {
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0 0.78rem;
  border: 1px solid #DDE6EF;
  border-radius: 10px;
  background: #FFFFFF;
  color: #07101F;
  font-size: 0.78rem;
  font-weight: 700;
}

.trw-agent-field i {
  width: 2px;
  height: 1rem;
  background: #00C853;
  animation: trwCaretBlink 0.9s steps(2, start) infinite;
}

.trw-agent-config {
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid #E4EAF0;
}

.trw-agent-config strong {
  display: block;
  margin-bottom: 0.8rem;
  color: #07101F;
  font-size: 0.78rem;
}

.trw-agent-config div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.55rem;
  color: #536881;
  font-size: 0.68rem;
  font-weight: 700;
}

.trw-agent-config b {
  position: relative;
  width: 32px;
  height: 17px;
  border-radius: 999px;
  background: #C9D2DA;
}

.trw-agent-config b::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
}

.trw-agent-config b.on {
  background: #00E676;
}

.trw-agent-config b.on::after {
  transform: translateX(15px);
}

.trw-agent-panel {
  position: relative;
  min-width: 0;
  padding: 1.35rem;
  background: #FFFFFF;
}

.trw-agent-view {
  position: absolute;
  inset: 1.35rem;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.trw-agent-view.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.trw-agent-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trw-agent-section-head span {
  display: block;
  color: #00A957;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trw-agent-section-head h3 {
  margin: 0.15rem 0 0;
  color: #07101F;
  font-size: 1rem;
  line-height: 1.2;
}

.trw-agent-mode {
  display: flex;
  overflow: hidden;
  border: 1px solid #DDE6EF;
  border-radius: 999px;
  color: #536881;
  font-size: 0.66rem;
  font-weight: 800;
}

.trw-agent-mode b,
.trw-agent-mode span {
  padding: 0.3rem 0.7rem;
}

.trw-agent-mode b {
  background: #F1F5F8;
  color: #07101F;
}

.trw-agent-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.trw-agent-tags span {
  padding: 0.22rem 0.5rem;
  border: 1px solid #DDE6EF;
  border-radius: 7px;
  background: #F7FAFC;
  color: #536881;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.66rem;
}

.trw-agent-code {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid #DDE6EF;
  border-radius: 14px;
  background: #FCFDFE;
  color: #07101F;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.65;
}

.trw-agent-code p {
  margin: 0 0 0.45rem;
}

.trw-agent-code .green {
  color: #00B45D;
  font-weight: 900;
}

.trw-agent-tool,
.trw-agent-files article {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid #DDE6EF;
  border-radius: 14px;
  background: #FFFFFF;
  padding: 0.9rem;
}

.trw-agent-tool > span,
.trw-agent-files b {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.11);
  color: #00B45D;
  flex: 0 0 auto;
}

.trw-agent-tool strong,
.trw-agent-files strong {
  color: #07101F;
  font-size: 0.85rem;
}

.trw-agent-tool small,
.trw-agent-files small {
  display: block;
  color: #66778A;
  font-size: 0.68rem;
}

.trw-agent-tool em {
  margin-left: auto;
  border-radius: 999px;
  background: #F1F5F8;
  color: #536881;
  padding: 0.2rem 0.55rem;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
}

.trw-agent-files {
  display: grid;
  gap: 0.7rem;
}

.trw-agent-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #EEF3F6;
}

.trw-agent-progress span {
  display: block;
  height: 100%;
  width: 74%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00E676, #2F69B1);
  animation: trwAgentProgress 3.2s ease-in-out infinite;
}

.trw-agent-status {
  margin: 0;
  color: #00A957;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.trw-agent-live {
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.12);
  color: #00A957;
  padding: 0.3rem 0.65rem;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.trw-agent-chat {
  display: grid;
  align-content: end;
  gap: 0.55rem;
  min-height: 238px;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid #DDE6EF;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94)),
    radial-gradient(circle at 20% 20%, rgba(0,230,118,0.14), transparent 38%);
}

.trw-agent-chat .trw-message {
  max-width: 78%;
  border-radius: 14px;
  padding: 0.65rem 0.78rem;
  font-size: 0.78rem;
  line-height: 1.35;
  animation: trwAgentMessage 480ms ease both;
}

.trw-agent-chat .customer {
  justify-self: start;
  background: #F1F5F8;
  color: #07101F;
}

.trw-agent-chat .bot {
  justify-self: end;
  background: #00E676;
  color: #041326;
}

.trw-agent-chat .typing {
  display: flex;
  gap: 0.25rem;
  min-width: 68px;
  justify-content: center;
}

.trw-agent-chat .typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #041326;
  animation: trwTypingBounce 900ms ease-in-out infinite;
}

.trw-agent-chat .typing span:nth-child(2) { animation-delay: 120ms; }
.trw-agent-chat .typing span:nth-child(3) { animation-delay: 240ms; }

.trw-agent-input {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #DDE6EF;
  border-radius: 999px;
  background: #FFFFFF;
  padding: 0 0.9rem;
  color: #7B8CA0;
  font-size: 0.78rem;
}

.trw-agent-input b {
  color: #00B45D;
}

.trw-agent-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.trw-agent-metrics article {
  min-height: 92px;
  border: 1px solid #DDE6EF;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 1rem;
}

.trw-agent-metrics strong {
  display: block;
  color: #07101F;
  font-size: 1.35rem;
  line-height: 1;
}

.trw-agent-metrics span {
  display: block;
  margin-top: 0.4rem;
  color: #66778A;
  font-size: 0.72rem;
}

.trw-agent-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 0.55rem;
  height: 152px;
  padding: 1rem;
  border: 1px solid #DDE6EF;
  border-radius: 16px;
  background: #FCFDFE;
}

.trw-agent-bars i {
  display: block;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #00E676, #2F69B1);
  animation: trwAgentBars 2.8s ease-in-out infinite;
}

.trw-agent-bars i:nth-child(even) {
  animation-delay: 220ms;
}

.dark .trw-agent-builder,
.dark .trw-agent-panel,
.dark .trw-agent-tool,
.dark .trw-agent-files article,
.dark .trw-agent-metrics article,
.dark .trw-agent-input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 24, 41, 0.9);
}

.dark .trw-agent-sidebar {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 29, 0.72);
}

.dark .trw-agent-topbar {
  border-color: rgba(255, 255, 255, 0.12);
}

.dark .trw-agent-field,
.dark .trw-agent-select,
.dark .trw-agent-code,
.dark .trw-agent-tags span,
.dark .trw-agent-bars,
.dark .trw-agent-mode,
.dark .trw-agent-chat {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 13, 25, 0.74);
  color: #F7FBFF;
}

.dark .trw-agent-section-head h3,
.dark .trw-agent-config strong,
.dark .trw-agent-tool strong,
.dark .trw-agent-files strong,
.dark .trw-agent-metrics strong {
  color: #F7FBFF;
}

.dark .trw-agent-chat .customer {
  background: rgba(255, 255, 255, 0.08);
  color: #F7FBFF;
}

@keyframes trwAgentMessage {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes trwTypingBounce {
  50% { transform: translateY(-3px); opacity: 0.55; }
}

@keyframes trwAgentProgress {
  0%, 100% { width: 58%; }
  50% { width: 96%; }
}

@keyframes trwAgentBars {
  0%, 100% { transform: scaleY(0.82); }
  50% { transform: scaleY(1); }
}

@media (max-width: 768px) {
  .trw-dashboard-preview-section {
    padding-top: 2rem;
  }

  .trw-real-panel-section {
    padding: 3.1rem 0;
    scroll-margin-top: 82px;
  }

  .trw-real-panel-wrap {
    width: min(100% - 18px, 520px);
  }

  .trw-real-panel-head {
    margin-bottom: 1.25rem;
  }

  .trw-real-panel-head span {
    min-height: 30px;
    padding: 0 0.78rem;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
  }

  .trw-real-panel-head h2 {
    font-size: clamp(1.85rem, 9.5vw, 2.55rem);
    line-height: 1.04;
  }

  .trw-real-panel-head p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .trw-real-panel-frame {
    border-radius: 14px;
    box-shadow: 0 22px 52px rgba(22, 45, 68, 0.16);
  }

  .trw-real-panel-bar {
    min-height: 38px;
    padding: 0.48rem 0.65rem;
  }

  .trw-real-panel-bar strong {
    max-width: calc(100% - 58px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
  }

  .trw-real-panel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .trw-real-panel-viewport img {
    width: 900px;
    max-width: none;
  }

  .trw-real-panel-points {
    gap: 0.75rem;
    margin-top: 0.85rem;
  }

  .trw-real-panel-points article {
    min-height: auto;
    padding: 0.92rem;
    border-radius: 12px;
  }

  .trw-flow-section {
    padding: 3rem 0 3.4rem;
    scroll-margin-top: 82px;
  }

  .trw-flow-container {
    width: min(100% - 20px, 1220px);
  }

  .trw-flow-heading {
    margin-bottom: 1.5rem;
  }

  .trw-flow-heading h2 {
    font-size: clamp(1.85rem, 11vw, 2.55rem);
    line-height: 1.05;
  }

  .trw-flow-heading p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .trw-flow-window {
    border-radius: 20px;
  }

  .trw-flow-browser {
    min-height: 46px;
    padding: 0 0.78rem;
    gap: 0.65rem;
  }

  .trw-flow-url {
    font-size: 0.62rem;
    padding: 0.38rem 0.52rem;
  }

  .trw-flow-app {
    display: block;
    min-height: auto;
  }

  .trw-flow-sidebar {
    display: none;
  }

  .trw-flow-canvas {
    display: grid;
    gap: 0.85rem;
    height: auto;
    min-height: auto;
    overflow: hidden;
    padding: 0.72rem;
  }

  .trw-flow-stage {
    position: static;
    width: 100%;
    height: auto;
    display: grid;
    gap: 0.82rem;
    transform: none;
  }

  .trw-flow-toolbar {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    justify-self: center;
    max-width: 100%;
    margin: 0 auto 0.15rem;
    gap: 0.42rem;
    padding: 0.34rem 0.42rem;
  }

  .trw-flow-toolbar strong {
    min-width: 0;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.66rem;
  }

  .trw-flow-toolbar span {
    display: none;
  }

  .trw-flow-toolbar .publish {
    padding: 0 0.7rem;
  }

  .trw-flow-event,
  .trw-flow-node,
  .trw-flow-inspector {
    position: relative;
    inset: auto;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100%;
  }

  .trw-flow-event {
    border-radius: 16px;
    padding: 0.82rem;
    animation: none;
  }

  .trw-flow-lines {
    display: none;
  }

  .trw-flow-node {
    min-height: 76px !important;
    border-radius: 16px;
    padding: 0.82rem 0.82rem;
  }

  .trw-flow-node.branch {
    width: 100%;
  }

  .trw-flow-node span {
    margin-bottom: 0.34rem;
  }

  .trw-flow-node.active {
    transform: translateY(-1px);
  }

  .trw-flow-node.question {
    box-shadow: 0 0 0 3px rgba(255, 168, 0, 0.11), 0 14px 26px rgba(0,0,0,0.12);
  }

  .trw-flow-node.branch.no {
    opacity: 1;
  }

  .trw-flow-inspector {
    border-radius: 16px;
    padding: 0.78rem;
  }

  .trw-flow-actions {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    justify-content: center;
    transform: none;
  }

  .trw-flow-actions button {
    flex: 1 1 0;
    padding: 0 0.55rem;
    white-space: nowrap;
  }

  .trw-flow-controls {
    gap: 0.85rem;
    margin-top: 1rem;
  }

  .trw-flow-controls > button {
    width: 38px;
    height: 38px;
  }

  .trw-flow-benefits {
    grid-template-columns: 1fr;
    margin-top: 1.2rem;
  }

  .trw-testimonials-section {
    padding: 3.2rem 0;
    scroll-margin-top: 82px;
  }

  .trw-testimonials-head {
    width: min(100% - 24px, 980px);
    margin-bottom: 1.6rem;
  }

  .trw-testimonials-head h2 {
    font-size: clamp(1.95rem, 10vw, 2.65rem);
  }

  .trw-testimonials-head p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .trw-testimonials-marquee {
    width: min(100% - 20px, 520px);
    margin: 0 auto;
    gap: 0.85rem;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .trw-testimonials-track,
  .trw-testimonials-track.reverse {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0;
    animation: none;
  }

  .trw-testimonial-card {
    width: 100%;
    min-height: 168px;
    padding: 1.1rem;
  }

  .trw-testimonials-track .trw-testimonial-card:nth-child(n+4),
  .trw-testimonials-track.reverse .trw-testimonial-card:nth-child(n+4) {
    display: none;
  }

  .trw-integrations-section {
    padding: 3.2rem 0;
    scroll-margin-top: 82px;
  }

  .trw-integrations-wrap {
    width: min(100% - 20px, 540px);
  }

  .trw-integrations-head {
    margin-bottom: 1.5rem;
  }

  .trw-integrations-head h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .trw-integrations-head p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .trw-integrations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .trw-integration-card {
    min-height: 150px;
    padding: 1rem 0.72rem;
  }

  .trw-integration-card span {
    width: 44px;
    height: 44px;
    font-size: 0.72rem;
  }

  .trw-integration-card strong {
    margin-top: 0.75rem;
    font-size: 0.88rem;
  }

  .trw-integration-card small {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .trw-showcase-shell {
    width: min(100vw - 16px, 520px);
    padding: 0;
  }

  .trw-agent-stage {
    width: calc(100vw - 16px);
    margin: 2.4rem auto 1rem;
    margin-left: 50%;
    padding: 0;
    transform: translateX(-50%);
  }

  .trw-agent-builder {
    border-radius: 20px;
  }

  .trw-agent-topbar {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 0.9rem;
    gap: 0.75rem;
  }

  .trw-agent-back {
    font-size: 0.82rem;
  }

  .trw-agent-save {
    min-height: 30px !important;
    padding: 0 0.8rem;
    font-size: 0.72rem;
  }

  .trw-agent-tabs {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .trw-agent-tabs button {
    flex: 0 0 auto;
    min-height: 30px !important;
    padding: 0 0.72rem;
    font-size: 0.7rem;
  }

  .trw-agent-body {
    grid-template-columns: 1fr;
    min-height: 418px;
  }

  .trw-agent-sidebar {
    display: none;
  }

  .trw-agent-panel {
    min-height: 418px;
    padding: 1rem;
  }

  .trw-agent-view {
    inset: 1rem;
    gap: 0.72rem;
  }

  .trw-agent-section-head {
    align-items: flex-start;
  }

  .trw-agent-section-head h3 {
    font-size: 0.92rem;
  }

  .trw-agent-section-head button,
  .trw-agent-mode,
  .trw-agent-tool em {
    display: none;
  }

  .trw-agent-code {
    min-height: 178px;
    font-size: 0.64rem;
    line-height: 1.55;
    padding: 0.78rem;
  }

  .trw-agent-tool,
  .trw-agent-files article {
    padding: 0.72rem;
  }

  .trw-agent-chat {
    min-height: 242px;
    padding: 0.72rem;
  }

  .trw-agent-chat .trw-message {
    max-width: 88%;
    font-size: 0.68rem;
  }

  .trw-agent-metrics {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .trw-agent-metrics article {
    min-height: 64px;
    padding: 0.75rem;
  }

  .trw-agent-bars {
    height: 126px;
  }

  .trw-showcase-shell::before {
    inset: 8% 0 -4%;
    border-radius: 28px;
    filter: blur(20px);
  }

  .trw-product-window {
    border-radius: 22px;
  }

  .trw-product-screen {
    grid-template-columns: 1fr;
    min-height: auto;
    overflow: hidden;
  }

  .trw-app-sidebar {
    display: none;
  }

  .trw-app-main {
    padding: 0.95rem;
  }

  .trw-app-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
  }

  .trw-app-toolbar h3 {
    font-size: 1rem;
  }

  .trw-app-toolbar button {
    min-height: 32px !important;
    padding: 0 0.72rem;
    font-size: 0.7rem;
    white-space: nowrap !important;
  }

  .trw-pipeline-board {
    display: flex;
    grid-template-columns: none;
    gap: 0.82rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .trw-pipeline-col {
    flex: 0 0 min(78vw, 285px);
    min-height: 282px;
    border-radius: 17px;
    scroll-snap-align: start;
  }

  .trw-pipeline-col:nth-child(3) {
    display: block;
  }

  .trw-pipeline-col .trw-lead-card:nth-of-type(n+3) {
    display: none;
  }

  .trw-lead-card {
    min-height: 88px;
    margin-bottom: 0.55rem;
  }

  .trw-chat-panel {
    display: none;
  }

  .trw-dashboard-wrap {
    border-radius: 22px;
  }

  .trw-browser-bar {
    min-height: 48px;
    padding: 0 0.9rem;
  }

  .trw-browser-url {
    font-size: 0.78rem;
  }

  .trw-dashboard-shot {
    grid-template-columns: 1fr;
    min-height: auto;
    overflow: hidden;
  }

  .trw-dash-sidebar {
    display: none;
  }

  .trw-dash-logo {
    width: 82px !important;
    max-height: 34px !important;
    margin-bottom: 0.7rem;
  }

  .trw-dash-group {
    font-size: 0.5rem;
  }

  .trw-dash-nav {
    min-height: 28px;
    padding: 0 0.45rem;
    font-size: 0.62rem;
  }

  .trw-dash-main {
    padding: 0.95rem;
  }

  .trw-dash-top {
    align-items: flex-start;
    margin-bottom: 0.8rem;
  }

  .trw-dash-top h3 {
    font-size: 1rem;
  }

  .trw-dash-top p,
  .trw-date-pills span {
    font-size: 0.64rem;
  }

  .trw-date-pills span:nth-child(2) {
    display: none;
  }

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

  .trw-kpi {
    min-height: 58px;
    border-radius: 16px;
    padding: 0.7rem 0.6rem 0.65rem 2.65rem;
  }

  .trw-kpi:nth-child(n+7) {
    display: none;
  }

  .trw-kpi::before {
    left: 0.62rem;
    width: 1.7rem;
    height: 1.7rem;
  }

  .trw-kpi::after {
    left: 1.28rem;
  }

  .trw-kpi b {
    font-size: 1rem;
  }

  .trw-kpi span {
    font-size: 0.48rem;
  }

  .trw-chart-wide {
    padding: 0.8rem;
    border-radius: 16px;
  }

  .trw-chart-wide svg {
    height: 150px;
  }

  .trw-lower-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .trw-lower-grid .trw-chart-panel {
    min-height: 150px;
    padding: 0.8rem;
    border-radius: 16px;
  }

  .trw-nps {
    display: none;
  }

  .trw-bars {
    height: 92px;
    gap: 0.28rem;
  }

  html {
    font-size: 15px;
  }

  body {
    width: 100%;
  }

  h1,
  .text-5xl,
  .text-6xl,
  .text-7xl {
    font-size: clamp(2.15rem, 10vw, 3.35rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  h2,
  .text-4xl,
  .lg\:text-5xl {
    font-size: clamp(1.85rem, 7.6vw, 2.75rem) !important;
    line-height: 1.12 !important;
  }

  p,
  li,
  .text-lg,
  .text-xl {
    overflow-wrap: break-word;
  }

  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl,
  .max-w-4xl {
    max-width: calc(100vw - 24px) !important;
  }

  .rounded-3xl,
  .rounded-2xl,
  .rounded-xl {
    border-radius: 16px !important;
  }

  button,
  .btn-dkw-trigger,
  a[class*="h-14"] {
    min-height: 52px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  footer img[src*="trw-system-logo"] {
    width: 170px !important;
  }
}

@media (max-width: 520px) {
  .trw-browser-bar {
    gap: 0.65rem;
  }

  .trw-window-dots span {
    width: 0.56rem;
    height: 0.56rem;
  }

  .trw-browser-url {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .trw-product-window {
    border-radius: 22px;
  }

  .trw-app-main {
    padding: 0.82rem;
  }

  .trw-pipeline-board {
    gap: 0.72rem;
  }

  .trw-pipeline-col {
    flex-basis: min(82vw, 276px);
    min-height: 278px;
    padding: 0.72rem;
  }

  .trw-col-head b,
  .trw-lead-card strong {
    font-size: 0.69rem;
  }

  .trw-lead-card {
    min-height: 82px;
    padding: 0.72rem;
  }

  .trw-lead-card span,
  .trw-lead-card small,
  .trw-col-head span {
    font-size: 0.58rem;
  }

  .mt-16.grid.grid-cols-3 {
    gap: 0.75rem !important;
    max-width: 100% !important;
  }

  .mt-16.grid.grid-cols-3 .text-2xl,
  .mt-16.grid.grid-cols-3 .sm\:text-3xl {
    font-size: 1.45rem !important;
    line-height: 1.1 !important;
  }

  .mt-16.grid.grid-cols-3 p {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

@media (max-width: 420px) {
  .trw-integrations-grid {
    grid-template-columns: 1fr;
  }

  .trw-real-panel-viewport img {
    width: 820px;
  }

  .trw-integration-card {
    min-height: 132px;
  }

  h1,
  .text-5xl,
  .text-6xl,
  .text-7xl {
    font-size: clamp(1.95rem, 11vw, 2.85rem) !important;
  }

  header img[src*="trw-system-logo"] {
    width: 112px !important;
    max-height: 44px !important;
  }

  .px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
