:root {
  --bg: #07131f;
  --bg-soft: #0b1b2a;
  --panel: #0f2233;
  --panel-2: #10283b;
  --line: rgba(179, 207, 225, 0.16);
  --text: #eef5f8;
  --muted: #98acb9;
  --orange: #ff8a45;
  --orange-soft: rgba(255, 138, 69, 0.14);
  --cyan: #43c9d7;
  --cyan-soft: rgba(67, 201, 215, 0.13);
  --lime: #b9d66b;
  --warning: #ffd27a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 clamp(20px, 5vw, 76px) 56px;
  background:
    radial-gradient(circle at 78% 0%, rgba(67, 201, 215, 0.11), transparent 31%),
    linear-gradient(135deg, #07131f 0%, #0b1b2a 70%, #0b2330 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
.nav, .hero-grid, main { width: min(1440px, 100%); margin-inline: auto; }
.nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.brand { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: flex; align-items: end; gap: 3px; transform: skew(-12deg); }
.brand-mark i { display: block; width: 9px; border-radius: 1px; background: var(--orange); }
.brand-mark i:nth-child(1) { height: 18px; }
.brand-mark i:nth-child(2) { height: 28px; }
.brand-mark i:nth-child(3) { height: 38px; }
.brand b { font-size: 14px; letter-spacing: .1em; display: block; line-height: 1.15; }
.brand small { color: var(--muted); font-size: 8px; letter-spacing: .16em; display: block; margin-top: 6px; }
.private-badge, .synthetic-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; color: #b8c8d1; font-size: 10px; font-weight: 750; letter-spacing: .13em;
  background: rgba(255,255,255,.025);
}
.private-badge span { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 4px rgba(185,214,107,.12); }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: clamp(40px, 8vw, 120px); align-items: end;
  padding-top: clamp(54px, 8vw, 96px);
}
.eyebrow, .section-number, .micro-label, .card-kicker { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(48px, 6.5vw, 92px); line-height: .96; letter-spacing: -.055em; margin-bottom: 30px; font-weight: 720; }
h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.hero-copy { color: #b4c5cf; font-size: clamp(17px, 2vw, 21px); line-height: 1.6; max-width: 720px; margin: 0; }
.synthetic-note { display: flex; gap: 16px; padding: 22px; border-left: 2px solid var(--orange); background: rgba(255,255,255,.035); box-shadow: var(--shadow); }
.note-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); border: 1px solid rgba(255,138,69,.4); border-radius: 50%; font-size: 10px; font-weight: 900; }
.synthetic-note strong { font-size: 14px; }
.synthetic-note p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

main { background: var(--bg); }
.simulator, .reading { padding: 72px clamp(20px, 5vw, 76px); }
.section-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 30px; }
.section-number { margin: 0 0 10px; }
h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; margin-bottom: 0; }
h3 { letter-spacing: -.02em; }
.view-switch, .edit-switch { display: flex; background: #091926; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.view-switch button, .edit-switch button { border: 0; background: transparent; border-radius: 7px; padding: 10px 16px; color: var(--muted); cursor: pointer; font-weight: 700; font-size: 13px; }
.view-switch button.active, .edit-switch button.active { color: var(--text); background: var(--panel-2); box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.workspace { display: grid; grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--line); background: #0b1a28; box-shadow: var(--shadow); }
.controls-panel { padding: 26px; border-right: 1px solid var(--line); background: #0b1b29; }
.controls-top { display: flex; align-items: start; justify-content: space-between; margin-bottom: 18px; }
.controls-top h3, .chart-header h3 { margin: 5px 0 0; font-size: 22px; }
.reset-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.edit-switch { width: 100%; margin-bottom: 28px; }
.edit-switch button { flex: 1; display: inline-flex; gap: 7px; justify-content: center; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.dfit { background: var(--orange); }
.dot.rapid { background: var(--cyan); }
.control-group { margin-bottom: 24px; }
.control-group label { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; color: #b7c7d0; font-size: 13px; }
.control-group output { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 750; }
.info { display: inline-grid; place-items: center; width: 17px; height: 17px; padding: 0; margin-left: 4px; border-radius: 50%; border: 1px solid rgba(152,172,185,.45); color: var(--muted); background: transparent; font-size: 10px; cursor: help; vertical-align: 1px; }
input[type="range"] { --fill: 40%; width: 100%; height: 18px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--orange) var(--fill), rgba(255,255,255,.14) var(--fill)); border-radius: 999px; }
input[type="range"]::-moz-range-track { height: 3px; background: linear-gradient(90deg, var(--orange) var(--fill), rgba(255,255,255,.14) var(--fill)); border-radius: 999px; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%; border: 3px solid var(--bg-soft); background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--bg-soft); background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.divider { display: flex; align-items: center; gap: 10px; margin: 31px 0 23px; color: #6f8796; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.preset-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
.preset-row button { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 7px; padding: 10px; font-size: 11px; cursor: pointer; color: #bac9d1; }
.preset-row button:hover { border-color: rgba(255,138,69,.5); color: var(--text); }
.validation { min-height: 0; margin-top: 13px; padding: 0; font-size: 11px; line-height: 1.45; border-radius: 6px; color: var(--warning); }
.validation:not(:empty) { padding: 10px; background: rgba(255,210,122,.08); border: 1px solid rgba(255,210,122,.22); }

.chart-panel { min-width: 0; padding: 26px 28px 24px; }
.chart-header { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.legend { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px 18px; color: var(--muted); font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-line { width: 21px; height: 2px; display: inline-block; background: currentColor; }
.legend-line.dfit { color: var(--orange); }
.legend-line.rapid { color: var(--cyan); }
.legend-line.closure { height: 0; color: var(--lime); border-top: 1px dashed currentColor; background: none; }
.chart-wrap { position: relative; margin: 18px 0 6px; min-height: 350px; }
#chart { display: block; width: 100%; height: auto; min-height: 350px; overflow: visible; touch-action: pan-y; }
.chart-tooltip { position: absolute; z-index: 4; pointer-events: none; min-width: 150px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(4,14,23,.96); box-shadow: 0 10px 35px rgba(0,0,0,.35); border-radius: 7px; font-size: 11px; color: var(--muted); }
.chart-tooltip strong { color: var(--text); display: block; margin-bottom: 3px; }
.phase-strip { display: flex; align-items: center; justify-content: center; color: #78909e; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.phase-strip span { white-space: nowrap; }
.phase-strip b { color: var(--orange); }
.phase-strip i { width: 40px; height: 1px; background: var(--line); margin: 0 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 25px; border: 1px solid var(--line); background: var(--line); }
.metric { padding: 17px; background: #0c1d2b; }
.metric span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.metric strong { display: block; margin-top: 7px; font-size: 20px; font-variant-numeric: tabular-nums; }
.metric small { color: #6f8796; display: block; margin-top: 3px; font-size: 10px; }

.reading { border-top: 1px solid var(--line); background: linear-gradient(180deg, #081722, #07131f); }
.section-intro { color: var(--muted); max-width: 510px; line-height: 1.6; margin: 0; }
.reading-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.reading-card { min-height: 300px; padding: 28px; border: 1px solid var(--line); background: #0b1c2a; }
.reading-card h3 { margin: 11px 0 18px; font-size: 23px; }
.reading-card p, .reading-card li { color: #9bb0bc; font-size: 13px; line-height: 1.6; }
.reading-card ul { padding-left: 18px; margin-bottom: 0; }
.reading-card li + li { margin-top: 7px; }
.reading-card .key-line { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.reading-card .key-line:first-child { border-top: 0; padding-top: 0; }
.key-line b { flex: 0 0 auto; color: var(--orange); font-variant-numeric: tabular-nums; }
.key-line span { color: #a7bac4; font-size: 13px; line-height: 1.5; }
.commercial-card { background: linear-gradient(145deg, rgba(67,201,215,.07), #0b1c2a 58%); }
.model-card { background: linear-gradient(145deg, rgba(255,138,69,.06), #0b1c2a 58%); }
.comparison-table-wrap { margin-top: 16px; border: 1px solid var(--line); background: #0b1c2a; }
.table-title { padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.table-title h3 { margin: 5px 0 0; font-size: 21px; }
.synthetic-chip { color: var(--warning); border-color: rgba(255,210,122,.25); }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
th, td { padding: 16px 26px; border-bottom: 1px solid var(--line); font-size: 12px; }
th { color: #7f96a4; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; }
th .dot { margin-right: 7px; }
td { color: #acbdc7; }
td:nth-child(2), td:nth-child(3) { color: var(--text); font-weight: 720; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
.contact-panel { margin-top: 16px; display: grid; grid-template-columns: minmax(0,.8fr) minmax(460px,1.2fr); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(67,201,215,.06), #0b1c2a 52%); }
.contact-copy { padding: 34px; border-right: 1px solid var(--line); }
.contact-copy h3 { margin: 12px 0 15px; font-size: clamp(26px, 3vw, 38px); }
.contact-copy > p { color: #9bb0bc; font-size: 14px; line-height: 1.65; }
.privacy-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.privacy-note strong, .privacy-note span { display: block; }
.privacy-note strong { color: #c5d3da; font-size: 12px; }
.privacy-note span { margin-top: 6px; color: #758d9a; font-size: 11px; line-height: 1.55; }
.contact-form { padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.contact-form label { display: block; color: #a9bbc5; font-size: 12px; font-weight: 700; }
.contact-form label small { color: #708793; font-weight: 500; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; margin-top: 8px; border: 1px solid rgba(179,207,225,.2); border-radius: 7px; background: #081925; color: var(--text); padding: 12px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(67,201,215,.1); }
.contact-form > label:not(.consent) { margin-top: 18px; }
.contact-form .consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: #8ea4af; font-weight: 500; line-height: 1.45; }
.consent input { margin: 2px 0 0; accent-color: var(--orange); }
.submit-button { width: 100%; margin-top: 18px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 7px; padding: 14px 16px; background: var(--orange); color: #07131f; font-weight: 850; cursor: pointer; }
.submit-button:hover { background: #ff9b61; }
.form-provider { margin: 10px 0 0; color: #637b88; font-size: 10px; text-align: center; }
.form-provider a { color: #8299a5; }
.form-success { margin-top: 17px; padding: 12px 14px; border: 1px solid rgba(185,214,107,.35); border-radius: 7px; background: rgba(185,214,107,.08); color: #d7e5ae; font-size: 12px; }
.honey { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
footer { text-align: center; color: #627987; font-size: 10px; padding: 34px 20px 4px; letter-spacing: .04em; }
footer > span { display: block; }
.footer-contact { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.footer-contact a { color: #91a6b2; text-decoration: none; }
.footer-contact a:hover, .footer-contact a:focus-visible { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact i { color: #4f6673; font-style: normal; }
.tip-popover { position: fixed; z-index: 20; max-width: 270px; padding: 10px 12px; background: #132b3d; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; box-shadow: var(--shadow); color: #c0d0d8; font-size: 11px; line-height: 1.45; }

.chart-grid { stroke: rgba(179,207,225,.10); stroke-width: 1; }
.chart-axis { stroke: rgba(179,207,225,.22); stroke-width: 1; }
.chart-label { fill: #718996; font: 11px Inter, system-ui, sans-serif; }
.axis-title { fill: #8ba0ac; font: 700 10px Inter, system-ui, sans-serif; letter-spacing: .08em; }
.path-dfit { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.path-rapid { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.marker-isip { stroke: rgba(238,245,248,.48); stroke-width: 1; stroke-dasharray: 5 5; }
.marker-closure { stroke: var(--lime); stroke-width: 1; stroke-dasharray: 4 5; }
.marker-label { fill: #d5e0e5; font: 700 10px Inter, system-ui, sans-serif; }
.closure-label { fill: var(--lime); }
.marker-dot-dfit { fill: var(--orange); stroke: #07131f; stroke-width: 3; }
.marker-dot-rapid { fill: var(--cyan); stroke: #07131f; stroke-width: 3; }
.hover-line { stroke: rgba(255,255,255,.25); stroke-width: 1; stroke-dasharray: 3 4; }

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 310px minmax(0,1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .reading-grid { grid-template-columns: 1fr 1fr; }
  .model-card { grid-column: 1 / -1; min-height: 0; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-copy { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .synthetic-note { max-width: 620px; }
  .section-head { align-items: start; flex-direction: column; gap: 22px; }
  .workspace { grid-template-columns: 1fr; }
  .controls-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .chart-panel { padding: 24px 18px; }
  .reading-grid { grid-template-columns: 1fr; }
  .model-card { grid-column: auto; }
}
@media (max-width: 560px) {
  .hero { padding-inline: 18px; padding-bottom: 42px; }
  .nav { min-height: 76px; }
  .brand small { display: none; }
  .brand b { max-width: 155px; font-size: 11px; line-height: 1.2; }
  .private-badge { font-size: 8px; padding: 7px 9px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark i { width: 7px; }
  .brand-mark i:nth-child(1) { height: 14px; }
  .brand-mark i:nth-child(2) { height: 22px; }
  .brand-mark i:nth-child(3) { height: 30px; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .simulator, .reading { padding: 52px 14px; }
  .view-switch { width: 100%; }
  .view-switch button { flex: 1; padding-inline: 8px; }
  .controls-panel { padding: 22px 18px; }
  .chart-header { flex-direction: column; }
  .legend { justify-content: start; }
  .chart-wrap { min-height: 290px; margin-inline: -10px; }
  #chart { min-height: 290px; }
  .phase-strip i { width: 10px; margin-inline: 6px; }
  .phase-strip { font-size: 8px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric strong { font-size: 17px; }
  .reading-card { padding: 23px 20px; min-height: 0; }
  .table-title { padding: 20px; align-items: start; gap: 15px; }
  .synthetic-chip { white-space: nowrap; font-size: 8px; }
  .contact-copy, .contact-form { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
