:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #eef3f9;
  --ink: #122033;
  --muted: #5e6b7b;
  --line: #d9e2ee;
  --primary: #3457d5;
  --primary-dark: #223b9b;
  --accent: #16a085;
  --warning: #a85d00;
  --shadow: 0 18px 48px rgba(18, 32, 51, 0.10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
button, input { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217,226,238,.9);
}
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-row { min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg,var(--primary),#6c46da); color: white; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: .75rem; }
nav { display: flex; align-items: center; gap: 22px; }
nav > a { text-decoration: none; color: var(--muted); font-weight: 650; font-size: .93rem; }
nav > a:hover { color: var(--primary); }

.hero { padding: 86px 0 70px; background: radial-gradient(circle at 80% 20%, rgba(52,87,213,.16), transparent 34%), linear-gradient(180deg,#fff,var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--primary); font-size: .77rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.55rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.05em; }
h2 { margin: 0 0 16px; font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { margin-top: 0; }
.hero-copy { max-width: 730px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 36px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--primary); border-radius: 12px; padding: 12px 18px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(52,87,213,.22); background: var(--primary-dark); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-secondary { background: transparent; color: var(--primary); }
.button-small { padding: 8px 13px; }
.button-full { width: 100%; margin-top: 16px; }
.metric-strip { display: flex; gap: 34px; flex-wrap: wrap; }
.metric-strip div { display: grid; }
.metric-strip strong { font-size: 1.45rem; }
.metric-strip span { color: var(--muted); font-size: .83rem; }
.architecture-card { display: grid; gap: 10px; background: #122033; color: white; border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.architecture-card span { padding: 13px 15px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; background: rgba(255,255,255,.07); text-align: center; font-weight: 720; }
.architecture-card i { text-align: center; color: #8ea4ff; font-style: normal; }

.section { padding: 82px 0; }
.section-muted { background: var(--surface-muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.status { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: .88rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa8b8; }
.status.ready .status-dot { background: var(--accent); box-shadow: 0 0 0 5px rgba(22,160,133,.12); }
.status.error .status-dot { background: #c0392b; }
.demo-grid { display: grid; grid-template-columns: 1fr .9fr 1fr; gap: 20px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 12px 32px rgba(18,32,51,.06); }
.panel > p { color: var(--muted); }
.drop-zone { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; border: 2px dashed #b8c6dc; border-radius: 16px; background: #f8faff; cursor: pointer; text-align: center; transition: border-color .16s ease, background .16s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--primary); background: #f0f4ff; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone span:last-child { color: var(--muted); font-size: .82rem; }
.upload-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e6ecff; color: var(--primary); font-size: 1.5rem; }
.sample-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 17px; font-size: .82rem; color: var(--muted); }
.sample-button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 6px 10px; cursor: pointer; color: var(--primary); }
.preview-stage { min-height: 300px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg,#eef2f8,#fafcff); border: 1px solid var(--line); }
.preview-stage img { width: 100%; height: 300px; object-fit: contain; }
.preview-stage p { max-width: 220px; text-align: center; color: var(--muted); }
.message { min-height: 1.6em; margin-bottom: 0; color: #b03a2e; font-size: .88rem; }
.result-panel { background: linear-gradient(160deg,#15243a,#1e3150); color: white; border: 0; }
.result-empty { display: grid; place-items: center; min-height: 330px; padding: 20px; text-align: center; color: #b9c6d8; }
.result-label { color: #a9b9ce; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.result-panel h4 { margin: 5px 0 19px; font-size: 2.2rem; line-height: 1.1; overflow-wrap: anywhere; }
.confidence-line { display: flex; justify-content: space-between; }
.confidence-track { height: 10px; margin: 8px 0 24px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.13); }
.confidence-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#52d6b3,#79a8ff); border-radius: inherit; transition: width .35s ease; }
.result-panel h5 { margin: 0 0 12px; }
.probability-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.probability-item { display: grid; grid-template-columns: minmax(90px,1fr) 2.4fr 55px; align-items: center; gap: 10px; }
.probability-name { overflow-wrap: anywhere; }
.probability-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.probability-track span { display: block; height: 100%; background: #7ba6ff; }
.probability-value { text-align: right; color: #dce6f5; }
.prediction-summary { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.13); color: #c5d1e1; font-size: .9rem; }

.two-column { display: grid; grid-template-columns: 1.1fr .9fr; gap: 58px; align-items: center; }
.two-column p { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 28px; }
.detail-grid div { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { color: var(--muted); font-size: .8rem; }
.workflow-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.workflow-card li { margin-bottom: 10px; }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 30px; border: 1px solid #e6c48f; border-radius: var(--radius); background: #fff8ec; }
.notice-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #f3d39e; color: var(--warning); font-size: 1.4rem; font-weight: 900; }
.notice p:last-child { margin-bottom: 0; color: #6f5631; }
footer { padding: 28px 0; background: #101d2f; color: #aebed2; font-size: .86rem; }

@media (max-width: 950px) {
  nav > a:not(.button) { display: none; }
  .hero-grid, .two-column { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .architecture-card { max-width: 620px; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 24px, 1160px); }
  .hero, .section { padding: 58px 0; }
  .section-heading, .header-row, .footer-row { align-items: flex-start; flex-direction: column; }
  .header-row { padding: 13px 0; }
  nav { width: 100%; }
  .metric-strip { gap: 18px; }
  .detail-grid { grid-template-columns: 1fr; }
  .probability-item { grid-template-columns: minmax(90px,1fr) 1.5fr 52px; }
}
