:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-2: #eef1f6;
  --text: #151923;
  --muted: #657083;
  --line: rgba(19, 28, 45, 0.11);
  --accent: #5b5ce2;
  --accent-2: #8586ff;
  --accent-soft: rgba(91, 92, 226, 0.12);
  --success: #0f9f77;
  --warning: #d68514;
  --danger: #df4b55;
  --shadow: 0 24px 70px rgba(26, 31, 44, 0.1);
  --shadow-sm: 0 8px 28px rgba(26, 31, 44, 0.07);
  --radius: 24px;
  --radius-sm: 14px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e14;
  --surface: rgba(22, 25, 34, 0.82);
  --surface-solid: #161922;
  --surface-2: #20242f;
  --text: #f5f7fb;
  --muted: #9ba6b8;
  --line: rgba(255, 255, 255, 0.1);
  --accent-soft: rgba(127, 128, 255, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --shadow-sm: 0 10px 32px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, var(--accent-soft), transparent 34rem),
    radial-gradient(circle at 90% 14%, rgba(39, 181, 160, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  transition: background-color .25s ease, color .25s ease;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 780; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 30%, transparent); }
.brand-mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: .9rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 13px; display: grid; place-items: center; color: var(--text); background: var(--surface); }
.icon-button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.icon-button svg { width: 18px; height: 18px; }
.hero { padding: 66px 0 38px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-weight: 720; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
h1 { margin: 22px auto 16px; max-width: 840px; font-size: clamp(2.4rem, 5vw, 4.35rem); line-height: 1.03; letter-spacing: -.052em; text-wrap: balance; }
.gradient-text { background: linear-gradient(100deg, var(--accent), var(--accent-2)); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-copy { max-width: 660px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); }
.trust-row { margin-top: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.trust-pill { padding: 7px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .78rem; box-shadow: var(--shadow-sm); }
.app-card { margin: 26px auto 56px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(18px); overflow: hidden; }
.app-toolbar { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 72%, transparent); }
.toolbar-label { display: flex; align-items: center; gap: 9px; font-weight: 720; font-size: .9rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 13%, transparent); }
.toolbar-meta { color: var(--muted); font-size: .78rem; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr); min-height: 470px; }
.pane { min-width: 0; padding: clamp(22px, 4vw, 38px); }
.pane + .pane { border-left: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.pane-title { margin: 0 0 5px; font-size: 1.1rem; letter-spacing: -.025em; }
.pane-copy { margin: 0 0 24px; color: var(--muted); font-size: .88rem; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label, .label { color: var(--muted); font-size: .78rem; font-weight: 690; }
input, select, textarea {
  width: 100%;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 13px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
textarea { min-height: 108px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="color"] { min-height: 46px; padding: 5px; }
input[type="range"] { padding: 0; accent-color: var(--accent); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 18px; }
.check { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .83rem; }
.check input { width: auto; accent-color: var(--accent); }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 13px; padding: 12px 17px; font-weight: 760; transition: transform .18s, box-shadow .18s, opacity .18s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn-secondary { color: var(--text); background: var(--surface-solid); border: 1px solid var(--line); }
.btn-ghost { color: var(--accent); background: var(--accent-soft); }
.result-shell { min-height: 100%; display: flex; flex-direction: column; }
.result-empty { margin: auto; text-align: center; color: var(--muted); }
.result-empty-icon { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.6rem; }
.result-box { border: 1px solid var(--line); background: var(--surface-solid); border-radius: 18px; padding: 19px; box-shadow: var(--shadow-sm); }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric { padding: 17px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-solid); }
.metric-label { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.metric-value { margin-top: 4px; font-size: 1.55rem; line-height: 1.1; font-weight: 790; letter-spacing: -.04em; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 760; }
.status-good { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.status-warn { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, transparent); }
.status-bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.segmented { display: flex; gap: 6px; padding: 5px; margin-bottom: 20px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; overflow-x: auto; }
.segmented button { flex: 1; min-width: max-content; border: 0; padding: 9px 11px; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 710; font-size: .8rem; }
.segmented button.active { color: var(--text); background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.range-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.range-value { color: var(--accent); font-weight: 760; }
.code-output { display: grid; place-items: center; min-height: 260px; padding: 24px; border-radius: 18px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); background: white; color: #151923; overflow: auto; }
.code-output canvas, .code-output svg { max-width: 100%; height: auto; }
.copy-output { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); }
.copy-output code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: "SFMono-Regular", Consolas, monospace; font-size: .88rem; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s ease; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { padding: 12px 13px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
.feature-section { padding: 44px 0 84px; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(1.65rem, 3.2vw, 2.35rem); line-height: 1.13; letter-spacing: -.038em; text-wrap: balance; }
.section-head p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 22px; box-shadow: var(--shadow-sm); }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--accent); background: var(--accent-soft); font-weight: 850; }
.feature h3 { margin: 16px 0 7px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .86rem; }
.notice { padding: 13px 15px; border-radius: 13px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--muted); font-size: .8rem; }
.result-list { display: grid; gap: 10px; }
.result-item { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); }
.result-item strong { display: block; margin-bottom: 2px; font-size: .86rem; }
.result-item p { margin: 0; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.result-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; font-size: .78rem; font-weight: 850; }
.footer { border-top: 1px solid var(--line); padding: 30px 0 38px; color: var(--muted); font-size: .82rem; }
.footer-row { display: flex; justify-content: space-between; gap: 22px; align-items: center; }
.footer-links { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; padding: 12px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-solid); box-shadow: var(--shadow); color: var(--text); transform: translateY(16px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }

/* People-first learning content */
.content-section { padding: 34px 0 82px; }
.content-section + .content-section { padding-top: 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .7fr); gap: 24px; align-items: start; }
.content-card { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.content-card h2 { margin: 0 0 13px; font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.16; letter-spacing: -.034em; text-wrap: balance; }
.content-card h3 { margin: 28px 0 8px; font-size: 1.05rem; }
.content-card p, .content-card li { color: var(--muted); }
.content-card li + li { margin-top: 8px; }
.content-card a { color: var(--accent); font-weight: 700; }
.quick-nav { position: sticky; top: 94px; }
.quick-nav h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.quick-nav a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.example-box { margin: 22px 0; padding: 18px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--accent-soft); }
.example-box strong { display: block; margin-bottom: 5px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); padding: 0 16px; }
.faq-list summary { cursor: pointer; padding: 15px 0; font-weight: 750; }
.faq-list details p { margin: 0 0 16px; }
.review-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-card { display: block; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm); }
.related-card strong { display: block; margin-bottom: 5px; }
.related-card span { color: var(--muted); font-size: .84rem; }

@media (max-width: 820px) {
  .content-grid { grid-template-columns: 1fr; }
  .quick-nav { position: static; }
  .related-grid { grid-template-columns: 1fr; }
}


@media (max-width: 820px) {
  .nav-links a { display: none; }
  .hero { padding-top: 48px; }
  .workspace { grid-template-columns: 1fr; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 1180px); }
  .nav { min-height: 62px; }
  .hero { padding: 38px 4px 26px; }
  h1 { font-size: 2.2rem; line-height: 1.06; letter-spacing: -.044em; }
  .app-card { border-radius: 21px; }
  .app-toolbar { padding: 0 15px; }
  .toolbar-meta { display: none; }
  .pane { padding: 20px 16px; }
  .field-row, .metric-grid, .check-grid { grid-template-columns: 1fr; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media print {
  .site-header, .hero, .feature-section, .footer, .app-toolbar, .controls, .toast { display: none !important; }
  body { background: white; color: #111; }
  .shell { width: 100%; }
  .app-card { box-shadow: none; border: 0; margin: 0; }
  .workspace { display: block; }
  .pane { padding: 0; }
  .pane + .pane { border: 0; }
}
