:root {
  --bg: #f5f8fc;
  --bg2: #ffffff;
  --panel: rgba(18,38,66,0.095);
  --panel2: rgba(129, 140, 248, 0.10);
  --line: rgba(18,38,66,0.160);
  --text: #16243a;
  --muted: #3d4e6e;
  --soft: #8797ad;
  --indigo: #818cf8;
  --indigo2: #4338ca;
  --orange: #c2570c;
  --green: #34d399;
  --red: #ef4444;
  --gold: #b8860b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 5%, rgba(129, 140, 248, 0.18), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.10), transparent 30%),
    linear-gradient(180deg, #f5f8fc, #ffffff 52%, #f5f8fc);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.ot-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.ot-hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid rgba(18,38,66,0.120);
}

.ot-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 38px;
  align-items: center;
}

.ot-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.13);
  border: 1px solid rgba(129, 140, 248, 0.32);
  color: var(--indigo2);
  font-size: 0.84rem;
  font-weight: 850;
  margin-bottom: 18px;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #1d4ed8;
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.24);
  font-size: 0.9rem;
  font-weight: 760;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin: 0 0 22px;
}

.ot-lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 780px;
  margin: 0 0 28px;
}

.ot-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.ot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 13px;
  padding: 13px 19px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.ot-btn.primary { background: linear-gradient(135deg, var(--indigo), var(--indigo2)); color: #09111f; }
.ot-btn.gold { background: linear-gradient(135deg, #b8860b, #b8860b); color: #111827; }
.ot-btn.ghost { background: rgba(18,38,66,0.085); color: #fff; border-color: var(--line); }
.ot-btn.danger { background: rgba(239,68,68,.12); color: #b91c1c; border-color: rgba(239,68,68,.32); }

.ot-demo-card {
  border: 1px solid rgba(129, 140, 248, 0.26);
  background: rgba(18,38,66,0.085);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 28px 90px rgba(255,255,255,.85);
}

.mini-map {
  position: relative;
  height: 330px;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(129,140,248,.15), rgba(18,38,66,0.075));
  border: 1px solid rgba(18,38,66,0.120);
  overflow: hidden;
}

.mini-node {
  position: absolute;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 18px 50px rgba(255,255,255,.85);
}

.mini-node.person { width: 78px; height: 78px; border-radius: 999px; background: var(--indigo); left: 42%; top: 32%; }
.mini-node.saas { width: 66px; height: 66px; border-radius: 16px; background: var(--orange); left: 14%; top: 16%; }
.mini-node.doc { width: 62px; height: 62px; transform: rotate(45deg); background: var(--green); right: 16%; bottom: 18%; }
.mini-node.doc span { transform: rotate(-45deg); }
.mini-line { position: absolute; height: 2px; background: rgba(165,180,252,.35); transform-origin: left center; }
.l1 { left: 28%; top: 31%; width: 145px; transform: rotate(18deg); }
.l2 { left: 54%; top: 55%; width: 130px; transform: rotate(24deg); }
.l3 { left: 34%; top: 62%; width: 150px; transform: rotate(-22deg); }

.section {
  padding: 72px 0;
  border-bottom: 1px solid rgba(18,38,66,0.120);
}

.section h2 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}

.section-lead {
  color: var(--muted);
  max-width: 820px;
  margin: 0 0 30px;
}

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

.why-card,
.score-card,
.form-card,
.impact-panel,
.cta-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.why-card { padding: 22px; }
.why-card .icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.why-card h3 { margin: 0 0 8px; }
.why-card p { margin: 0; color: var(--muted); }

.builder {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.form-card { padding: 22px; }
.step-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.step-tab {
  border: 1px solid var(--line);
  background: rgba(18,38,66,0.080);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 850;
  cursor: pointer;
}
.step-tab.active { color: var(--indigo2); border-color: rgba(129,140,248,.38); background: rgba(129,140,248,.12); }
.step { display: none; }
.step.active { display: block; }

.asset-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.asset-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(18,38,66,0.130);
  border-radius: 16px;
  background: rgba(18,38,66,0.075);
}

.asset-row .row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.remove {
  border: 1px solid rgba(239,68,68,.24);
  background: rgba(239,68,68,.10);
  color: #b91c1c;
  border-radius: 999px;
  padding: 4px 8px;
  cursor: pointer;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label { display: grid; gap: 6px; color: #1d4ed8; font-size: .86rem; font-weight: 780; }
input,
select {
  width: 100%;
  border: 1px solid rgba(129, 140, 248, 0.24);
  background: #0f1b2d;
  color: #16243a;
  border-radius: 12px;
  padding: 10px 11px;
  font: inherit;
}
input[type="range"] { accent-color: var(--indigo); padding: 0; }
.checkline { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.checkline input { width: auto; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.graph-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: 18px;
  align-items: stretch;
}

.graph-panel,
.impact-panel {
  min-height: 520px;
  background: rgba(18,38,66,0.085);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.graph-panel { position: relative; }
.graph-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(18,38,66,0.120);
}
.graph-toolbar span { color: var(--muted); font-size: .9rem; }
#twinGraph { width: 100%; min-height: 470px; display: block; }

.impact-panel {
  padding: 22px;
}
.impact-panel h3 { margin: 0 0 10px; }
.impact-panel .hint { color: var(--muted); margin: 0 0 18px; }
.impact-result {
  display: grid;
  gap: 12px;
}
.impact-result .headline {
  color: #b91c1c;
  font-weight: 950;
  font-size: 1.05rem;
}
.impact-result ul {
  margin: 0;
  padding-left: 20px;
  color: #51617a;
}
.impact-result .recommendation {
  padding: 13px;
  border-radius: 14px;
  background: rgba(52,211,153,.10);
  border: 1px solid rgba(52,211,153,.25);
  color: #047857;
}

.critical-pulse {
  animation: pulseCritical 1.25s ease-in-out infinite;
}
@keyframes pulseCritical {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(239,68,68,.0)); }
  50% { filter: drop-shadow(0 0 16px rgba(239,68,68,.75)); }
}

.tremor {
  animation: tremor .8s ease-in-out;
}
@keyframes tremor {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(4px,-3px); }
  40% { transform: translate(-5px,3px); }
  60% { transform: translate(3px,4px); }
  80% { transform: translate(-3px,-2px); }
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.score-card {
  padding: 22px;
}
.gauge {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: conic-gradient(var(--color) calc(var(--value) * 1%), rgba(18,38,66,0.120) 0);
}
.gauge span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
}
.score-card h3 { margin: 0 0 8px; }
.score-card p { margin: 0; color: var(--muted); }

.cta-panel {
  padding: 28px;
  text-align: center;
}
.cta-panel h2 { margin-bottom: 8px; }
.cta-panel p { color: var(--muted); max-width: 760px; margin: 0 auto 20px; }

.node-label {
  fill: #33415e;
  font-size: 12px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(7,16,31,.9);
  stroke-width: 4px;
}
.link-line { stroke: rgba(165,180,252,.33); stroke-width: 1.6; }
.node-shape { cursor: pointer; transition: opacity .2s ease; }
.node-dim { opacity: .25; }
.node-impact { filter: drop-shadow(0 0 14px rgba(239,68,68,.8)); }

@media (max-width: 980px) {
  .ot-hero-grid,
  .builder,
  .graph-stage,
  .score-grid,
  .why-grid { grid-template-columns: 1fr; }
  .graph-panel, .impact-panel { min-height: auto; }
  #twinGraph { min-height: 420px; }
}

@media (max-width: 560px) {
  .ot-wrap { width: min(100% - 24px, 1180px); }
  .ot-hero { padding: 54px 0 48px; }
  .field-grid { grid-template-columns: 1fr; }
  .ot-btn { width: 100%; }
  h1 { font-size: clamp(2.3rem, 14vw, 4rem); }
}

/* light-polish (Fable 12/06) */
body{background:
  radial-gradient(1000px 520px at 88% -120px, rgba(37,99,235,.09), transparent 60%),
  radial-gradient(760px 460px at -8% 28%, rgba(184,134,11,.07), transparent 55%),
  linear-gradient(180deg,#fcfdff 0%,#f3f7fd 48%,#eef3fb 100%) !important;
  background-attachment: fixed !important;}
h1{background:linear-gradient(115deg,#16243a 30%,#1d4ed8 75%,#b8860b 110%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}
.card{transition:transform .18s ease, box-shadow .18s ease;border-top:3px solid #2563eb;}
.card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(22,36,63,.10);}
