﻿:root {
  color-scheme: light;
  --ink: #12201b;
  --muted: #63716c;
  --line: #dce5df;
  --panel: #ffffff;
  --surface: #f5f8f2;
  --surface-strong: #e9f2e8;
  --accent: #146c43;
  --accent-2: #0d8b8b;
  --accent-3: #d57522;
  --danger: #bc3b2a;
  --shadow: 0 24px 70px rgba(18, 32, 27, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 24px;
  background: #10261d;
  color: #f8fff8;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: #d9ff70;
  color: #10261d;
  font-weight: 900;
}


.brand-row {
  display: grid;
  gap: 10px;
}

.developer-credit {
  color: rgba(248, 255, 248, 0.74);
  font-size: 12px;
  line-height: 1.45;
}

.developer-credit a {
  color: #d9ff70;
  text-decoration: none;
}

.developer-credit a:hover {
  text-decoration: underline;
}

.jp-flag {
  display: inline-block;
  position: relative;
  width: 22px;
  height: 15px;
  margin: 0 3px;
  vertical-align: -2px;
  border: 1px solid rgba(16, 38, 29, 0.18);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.jp-flag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #bc002d;
  transform: translate(-50%, -50%);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: rgba(248, 255, 248, 0.68);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: rgba(248, 255, 248, 0.78);
  text-decoration: none;
}

.nav-link span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(217, 255, 112, 0.28);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-link.active span {
  background: #d9ff70;
}

.sidebar-panel {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-panel i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #55e28a;
  box-shadow: 0 0 0 6px rgba(85, 226, 138, 0.14);
}

.sidebar-panel p {
  margin: 6px 0 0;
  color: rgba(248, 255, 248, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.workspace {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar h1 {
  max-width: 760px;
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-actions,
.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.icon-button,
.segmented-control button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 0 16px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.secondary-button {
  padding: 0 16px;
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.icon-button {
  width: 42px;
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 900;
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover,
.segmented-control button:hover {
  transform: translateY(-1px);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  min-height: 430px;
  padding: 34px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(20, 108, 67, 0.94), rgba(13, 139, 139, 0.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520'%3E%3Crect width='900' height='520' fill='%2310261d'/%3E%3Cg fill='none' stroke='%23d9ff70' stroke-opacity='.2'%3E%3Cpath d='M40 410 C180 260 250 340 380 180 S670 110 850 245'/%3E%3Cpath d='M80 120 C220 200 260 80 390 135 S650 370 830 210'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.14'%3E%3Ccircle cx='135' cy='190' r='74'/%3E%3Ccircle cx='730' cy='142' r='94'/%3E%3Ccircle cx='610' cy='402' r='55'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.hero-copy .eyebrow {
  color: #d9ff70;
}

.hero-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.02;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.6;
}

.hero-band .secondary-button {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-visual {
  position: relative;
  min-height: 330px;
}

.signal-card {
  position: absolute;
  right: 0;
  bottom: 22px;
  z-index: 2;
  width: min(320px, 90%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(16, 38, 29, 0.82);
  backdrop-filter: blur(18px);
}

.signal-card span {
  color: #d9ff70;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.signal-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.revenue-map {
  position: absolute;
  inset: 18px 36px 50px 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 42px 42px;
}

.node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d9ff70;
  box-shadow: 0 0 0 10px rgba(217, 255, 112, 0.13);
}

.n1 { left: 18%; top: 18%; }
.n2 { left: 56%; top: 22%; background: #ffffff; }
.n3 { left: 74%; top: 50%; }
.n4 { left: 35%; top: 64%; background: #ffffff; }
.n5 { left: 18%; top: 78%; }
.n6 { left: 84%; top: 18%; background: #d57522; }

.metric-grid,
.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.panel,
.differentiator-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 34px rgba(18, 32, 27, 0.06);
}

.metric-card {
  padding: 18px;
}

.metric-card span,
.metric-card em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  font-size: 34px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.panel {
  padding: 20px;
}

.panel.compact {
  align-self: start;
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h3 {
  margin: 5px 0 0;
  font-size: 22px;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stage {
  min-width: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf7;
}

.stage h4 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  font-size: 14px;
}

.deal-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.deal-card strong {
  font-size: 15px;
}

.deal-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.risk {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecf8ee;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.risk.high {
  background: #fff1ed;
  color: var(--danger);
}

.task-list {
  display: grid;
  gap: 10px;
}

.task {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.task span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.task p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.segmented-control {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf7;
}

.segmented-control button {
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
}

.segmented-control button.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(18, 32, 27, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.health {
  display: inline-flex;
  min-width: 88px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecf8ee;
  color: var(--accent);
  font-weight: 800;
}

.health.watch {
  background: #fff5df;
  color: #9b5a0d;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workflow-step {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf7;
}

.workflow-step span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.workflow-step p,
.differentiator-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.automation-output,
.sync-log {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: #10261d;
  color: #d9ff70;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.module-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-cloud span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf7;
  color: var(--muted);
  font-weight: 700;
}

.sync-state {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff1ed;
  color: var(--danger);
  font-weight: 800;
}

.sync-state.connected {
  background: #ecf8ee;
  color: var(--accent);
}

.integration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.sync-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.mapping-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf7;
}

.mapping-panel h4 {
  margin: 0 0 10px;
}

.mapping-panel ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mapping-panel li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius);
  background: #ffffff;
}

.mapping-panel li span {
  color: var(--muted);
  font-size: 13px;
}

.differentiator-grid article {
  padding: 18px;
}

.differentiator-grid span {
  color: var(--accent-3);
  font-weight: 900;
}

.differentiator-grid h4 {
  margin: 12px 0 8px;
  font-size: 18px;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-band,
  .split-layout,
  .integration-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .workspace,
  .sidebar {
    padding: 16px;
  }

  .topbar,
  .section-heading {
    display: grid;
  }

  .nav-list,
  .metric-grid,
  .workflow,
  .differentiator-grid {
    grid-template-columns: 1fr;
  }

  .hero-band {
    padding: 22px;
  }

  .hero-copy h2 {
    font-size: 34px;
  }

  .hero-visual {
    min-height: 270px;
  }

  .pipeline-board {
    grid-template-columns: repeat(4, 240px);
  }
}

