:root {
  --bg: #07111f;
  --surface: #0f1d2f;
  --surface-2: #14263d;
  --paper: #f5f7fb;
  --text: #e9f0fb;
  --ink: #182235;
  --muted: #9caec6;
  --line: rgba(255,255,255,.12);
  --accent: #7ce4c3;
  --accent-2: #8db4ff;
  --warning: #ffd37a;
  --danger: #ff9c9c;
  --success: #83e6a8;
  --shadow: 0 22px 60px rgba(0,0,0,.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { color: var(--text); background: radial-gradient(circle at 15% 10%, rgba(124,228,195,.16), transparent 32%), radial-gradient(circle at 88% 20%, rgba(141,180,255,.22), transparent 38%), var(--bg); padding-bottom: 72px; }
.nav-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); color: var(--bg); font-size: .8rem; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .93rem; }
.hero-grid { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.5fr .8fr; gap: 54px; align-items: center; padding-top: 78px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 800; color: #4d6c85; margin: 0 0 12px; }
.hero .eyebrow { color: var(--accent); }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; margin: 0; max-width: 850px; }
.hero-copy { font-size: 1.12rem; color: var(--muted); max-width: 760px; margin: 28px 0; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 750; text-decoration: none; transition: transform .18s ease, opacity .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; }
.button.primary { background: linear-gradient(135deg,var(--accent),#9fead5); color: #06130f; }
.button.secondary { background: rgba(255,255,255,.08); color: inherit; border: 1px solid rgba(255,255,255,.14); }
.section .button.secondary { color: var(--ink); border-color: #cfd8e5; background: white; }
.hero-card { background: rgba(15,29,47,.78); border: 1px solid var(--line); border-radius: 24px; padding: 28px; backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 8px rgba(255,211,122,.12); }
.status-label { color: var(--muted); margin-bottom: 2px; }
.hero-card strong { font-size: 1.25rem; }
dl { margin: 28px 0 0; }
dl div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); } dd { margin: 0; text-align: right; }
.notice { width: min(1180px, calc(100% - 40px)); margin: -28px auto 0; position: relative; z-index: 2; background: #fff7df; color: #5a4312; border: 1px solid #efd48e; border-radius: 16px; padding: 18px 22px; box-shadow: 0 12px 30px rgba(92,64,7,.08); }
.section { padding: 88px 0; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem,4vw,3.4rem); line-height: 1.05; letter-spacing: -.035em; }
.section-heading p:last-child { color: #5a687d; }
.tabs { display: flex; gap: 8px; padding: 7px; border: 1px solid #dce3ed; background: #edf1f7; border-radius: 15px; width: fit-content; margin-bottom: 24px; }
.tab-button { border: 0; background: transparent; padding: 10px 15px; border-radius: 10px; color: #5b6878; font-weight: 700; }
.tab-button.active { background: white; color: var(--ink); box-shadow: 0 4px 14px rgba(31,49,75,.08); }
.panel { background: white; border: 1px solid #dfe6ef; border-radius: 18px; padding: 24px; box-shadow: 0 8px 26px rgba(23,38,60,.05); }
.workspace-grid { display: grid; grid-template-columns: 1.6fr .8fr; gap: 20px; }
label { display: block; font-weight: 750; margin: 0 0 7px; }
select, textarea { width: 100%; border: 1px solid #cfd8e5; border-radius: 12px; padding: 12px 14px; color: var(--ink); background: white; }
select { margin-bottom: 18px; }
textarea { resize: vertical; min-height: 150px; }
.input-card .button-row { margin-top: 16px; }
.check-list { padding-left: 0; list-style: none; }
.check-list li { margin: 10px 0; padding-left: 24px; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: #008863; font-weight: 900; }
.disclosure { background: #fff7df; border: 1px solid #ecd38f; border-radius: 12px; padding: 14px; font-size: .9rem; }
.run-status { margin-top: 13px; font-size: .9rem; }
.run-status.loading { color: #3863a8; } .run-status.error { color: #a51e28; } .run-status.success { color: #08734f; } .run-status.warning { color: #8a5b00; }
.results { margin-top: 26px; }
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.result-header h3 { margin: 0; font-size: 1.8rem; }
.mode-badge, .tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: .78rem; font-weight: 750; background: #e8f6f1; color: #08745a; }
.tag.subtle { background: #edf1f6; color: #506071; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 18px 0; }
.metric-grid > div { background: var(--surface); color: white; border-radius: 15px; padding: 16px; }
.metric-grid span { color: var(--muted); display: block; font-size: .82rem; }
.metric-grid strong { font-size: 1.4rem; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.analysis-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 18px; margin-top: 18px; }
h4 { margin-top: 0; }
.highlighted { font-size: 1.03rem; }
mark { padding: 2px 4px; border-radius: 4px; }
.edit-replace { background: #fff0a8; } .edit-delete { background: #ffd2d2; text-decoration: line-through; } .edit-insert { background: #c9f2dc; }
.edit-list { list-style: none; padding: 0; margin: 0; }
.edit-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf1f5; }
.edit-op { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #66768b; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.warning-card { margin-top: 18px; border-radius: 14px; padding: 18px; }
.warning-card.active { background: #fff0f0; border: 1px solid #f0b1b1; color: #7c2027; }
.warning-card.clear { background: #ecf8f1; border: 1px solid #bce3cc; color: #155f43; }
.table-wrap { overflow-x: auto; }
.metric-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.metric-table th, .metric-table td { text-align: left; padding: 12px; border-bottom: 1px solid #e4e9f0; vertical-align: top; }
.metric-table th { background: #f0f4f8; color: #4c5d72; white-space: nowrap; }
.status-banner { padding: 15px 18px; border-radius: 12px; margin-bottom: 18px; }
.status-banner.pending { background: #fff7df; border: 1px solid #efd48e; color: #695019; }
.legacy-card { margin-top: 20px; background: white; border: 1px solid #dfe6ef; border-radius: 18px; padding: 22px; }
.muted { color: #66768b; font-size: .9rem; }
.contrast { background: var(--bg); color: var(--text); }
.contrast .eyebrow { color: var(--accent); } .contrast .section-heading p:last-child { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.feature-grid article { background: var(--surface); border: 1px solid var(--line); padding: 22px; border-radius: 17px; }
.feature-grid p { color: var(--muted); }
.pipeline { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.pipeline > div { border-top: 3px solid var(--accent-2); padding-top: 18px; }
.pipeline span { display: grid; place-items: center; width: 32px; height: 32px; background: #e8eefb; color: #3f5f9d; border-radius: 50%; font-weight: 800; }
.pipeline h3 { margin-bottom: 7px; }
.pipeline p { color: #5f6e80; font-size: .92rem; }
footer { background: #050c16; color: white; padding: 36px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; }
.footer-grid p { color: var(--muted); margin: 2px 0; }
@media (max-width: 900px) {
  .hero-grid, .workspace-grid, .analysis-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero-grid { padding-top: 52px; }
  h1 { font-size: 3rem; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab-button { white-space: nowrap; }
  .comparison-grid, .feature-grid, .pipeline, .metric-grid { grid-template-columns: 1fr; }
  .footer-grid { display: block; }
}
