:root {
  --white: #ffffff;
  --paper: #f7f6f2;
  --ink: #111111;
  --muted: #66645f;
  --line: #dcdad3;
  --orange: #ff7a00;
  --orange-soft: #fff0df;
  --green: #16a765;
  --green-soft: #dff7e9;
  --red: #e8463a;
  --red-soft: #ffe7e3;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
button, a { font: inherit; }
a { color: inherit; }
svg { width: 20px; height: 20px; stroke-width: 2; }

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
}
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-family: Manrope, sans-serif; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: white; border-radius: 6px; font-size: 13px; }
.topbar-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.page-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.sidebar { position: sticky; top: 68px; height: calc(100vh - 68px); padding: 42px 28px; border-right: 1px solid var(--line); background: var(--paper); }
.sidebar-label { margin: 0 0 14px; color: #8b8983; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { padding: 9px 11px; border-left: 3px solid transparent; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-link:hover, .nav-link.active { border-color: var(--orange); background: var(--white); color: var(--ink); }
.sidebar-note { position: absolute; bottom: 28px; left: 28px; right: 28px; display: flex; gap: 10px; padding: 13px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); color: var(--muted); font-size: 12px; }
.sidebar-note svg { color: var(--orange); flex: 0 0 auto; }
.sidebar-note span { display: grid; gap: 2px; }

main { min-width: 0; background: var(--white); }
.intro { min-height: 610px; display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; padding: 72px clamp(32px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 14px; color: var(--orange); font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Manrope, sans-serif; letter-spacing: 0; }
h1 { max-width: 700px; font-size: clamp(44px, 5.5vw, 78px); line-height: 1.02; }
.lead { max-width: 660px; margin: 24px 0 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.intro-actions { display: flex; gap: 18px; align-items: center; margin-top: 32px; color: var(--muted); font-size: 13px; }
.primary-action { display: inline-flex; gap: 9px; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 6px; background: var(--orange); color: var(--ink); font-weight: 800; text-decoration: none; }

.automation-visual { position: relative; display: grid; gap: 10px; padding: 24px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 10px 10px 0 var(--ink); }
.visual-heading { display: grid; gap: 4px; padding-bottom: 8px; }
.visual-heading span { color: var(--orange); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.visual-heading strong { font-family: Manrope, sans-serif; font-size: 18px; }
.flow-step { position: relative; display: grid; grid-template-columns: 34px 44px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 88px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.flow-step .step-badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; font-weight: 800; }
.step-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; }
.step-icon svg { width: 23px; height: 23px; }
.step-copy { display: grid; gap: 5px; min-width: 0; }
.step-copy small { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.step-copy strong { font-size: 14px; line-height: 1.35; }
.request-step { border-left: 5px solid var(--orange); }
.request-step .step-icon { background: var(--orange-soft); color: var(--orange); }
.navigate-step { border-left: 5px solid var(--green); }
.navigate-step .step-icon { background: var(--green-soft); color: var(--green); }
.result-step { border-left: 5px solid var(--red); }
.result-step .step-icon { background: var(--red-soft); color: var(--red); }
.flow-connector { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.flow-connector svg { width: 16px; height: 16px; }

.content-section { padding: 76px clamp(32px, 7vw, 104px); border-bottom: 1px solid var(--line); scroll-margin-top: 68px; }
.section-heading { display: flex; gap: 20px; align-items: flex-start; }
.section-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; color: white; font-family: Manrope; font-weight: 800; }
.section-number.orange { background: var(--orange); color: var(--ink); }
.section-number.green { background: var(--green); }
.section-number.red { background: var(--red); }
.section-heading h2, .summary-section h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.section-heading .kicker { margin-bottom: 6px; }
.section-intro { max-width: 760px; margin: 24px 0 34px 64px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-left: 64px; }
.comparison-panel { padding: 26px; border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: var(--radius); }
.playwright-panel { border-top-color: var(--green); }
.panel-icon, .summary-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; }
.orange-bg { background: var(--orange-soft); color: var(--orange); }
.green-bg { background: var(--green-soft); color: var(--green); }
.panel-tag { margin: 20px 0 7px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.comparison-panel h3 { font-size: 22px; }
.check-list { display: grid; gap: 11px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); }
.check-list li { display: flex; gap: 9px; align-items: center; }
.check-list svg { width: 17px; color: var(--green); }

.external-card { display: flex; gap: 14px; align-items: center; max-width: 760px; margin: 0 0 20px 64px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.external-card:hover { border-color: var(--orange); }
.external-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: var(--orange-soft); color: var(--orange); }
.external-card div:nth-child(2) { display: grid; flex: 1; gap: 3px; }
.external-card small { color: var(--muted); }
.prompt-block, .command-block, .notice, .verify-strip { max-width: 760px; margin-left: 64px; }
.prompt-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prompt-label, .command-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 700; }
pre { margin: 0; padding: 22px; white-space: pre-wrap; color: var(--ink); font: 500 14px/1.65 ui-monospace, monospace; }
.copy-button { display: inline-flex; gap: 6px; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; }
.copy-button svg { width: 15px; }
.verify-strip { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 16px; background: var(--green-soft); color: #14633c; border-radius: var(--radius); }
.verify-strip svg { flex: 0 0 auto; }
.command-block { overflow: hidden; border: 1px solid #222; border-radius: var(--radius); background: var(--ink); }
.command-top { border-color: #383838; background: #1e1e1e; color: #bdbdbd; }
.dark-copy { border-color: #4a4a4a; background: #2a2a2a; color: white; }
.command-block code { display: block; overflow-x: auto; padding: 26px 22px; color: #baf5d3; font: 600 15px ui-monospace, monospace; }
.notice { display: flex; gap: 14px; margin-top: 18px; padding: 18px; border-radius: var(--radius); }
.notice svg { flex: 0 0 auto; }
.notice strong { display: block; margin-bottom: 5px; }
.notice p { margin: 0; line-height: 1.5; }
.warning-notice { background: var(--red-soft); color: #7e2b24; }
.permission-notice { background: var(--orange-soft); color: #7c4513; }
.featured-prompt { border: 2px solid var(--red); }

.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0 0 64px; }
.example-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.example-card svg { color: var(--orange); }
.example-card:nth-child(3n+2) svg { color: var(--green); }
.example-card:nth-child(3n+3) svg { color: var(--red); }
.example-card h3 { margin-top: 22px; font-size: 18px; }
.example-card p { margin: 9px 0 0; color: var(--muted); line-height: 1.55; }

.summary-section { margin: 64px clamp(32px, 7vw, 104px); padding: 44px; background: var(--ink); color: white; border-radius: var(--radius); scroll-margin-top: 90px; }
.summary-lines { display: grid; gap: 14px; margin-top: 30px; }
.summary-lines > div { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid #383838; border-radius: 6px; }
.summary-lines p { margin: 0; color: #d2d2d2; }
.summary-lines strong { color: white; }
footer { display: flex; justify-content: space-between; padding: 28px clamp(32px, 7vw, 104px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer div { display: flex; gap: 18px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; transform: translateY(20px); opacity: 0; padding: 12px 16px; border-radius: 6px; background: var(--ink); color: white; font-weight: 700; transition: .2s ease; pointer-events: none; }
.toast.visible { transform: translateY(0); opacity: 1; }

@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .intro { grid-template-columns: 1fr; }
  .automation-visual { max-width: 620px; }
}
@media (max-width: 700px) {
  .topbar { height: 60px; padding: 0 16px; }
  .topbar-meta { font-size: 11px; }
  .intro, .content-section { padding: 48px 18px; }
  .intro { min-height: 0; gap: 38px; }
  h1 { font-size: 42px; }
  .lead { font-size: 17px; }
  .intro-actions { align-items: flex-start; flex-direction: column; }
  .automation-visual { padding: 16px; box-shadow: 6px 6px 0 var(--ink); }
  .section-intro, .comparison-grid, .external-card, .prompt-block, .command-block, .notice, .verify-strip, .examples-grid { margin-left: 0; }
  .comparison-grid, .examples-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 12px; }
  .section-number { width: 38px; height: 38px; flex: 0 0 auto; }
  .summary-section { margin: 36px 10px; padding: 30px 20px; }
  footer { align-items: flex-start; flex-direction: column; gap: 14px; padding: 24px 18px; }
}
