:root {
  --bg: #efede7;
  --card: #fbfaf7;
  --ink: #141414;
  --muted: #6b6a66;
  --line: rgba(20, 20, 20, .09);
  --blue: #1d6fd6;
  --blue-soft: rgba(29, 111, 214, .12);
  --term: #121214;
  --r: 14px;
  --font-title: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* hero */
.hero { padding-top: 56px; padding-bottom: 20px; text-align: center; }
h1 { font-family: var(--font-title); font-weight: 700; font-size: clamp(30px, 6.2vw, 46px); line-height: 1.12; letter-spacing: -.02em; margin: 0 auto 14px; max-width: 780px; }
h2 { font-family: var(--font-title); font-weight: 700; font-size: clamp(26px, 5vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.hl { background: #dce8f6; border-radius: 10px; padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.chip-skills { display: inline-flex; align-items: center; gap: .28em; padding: .02em .32em; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.08); vertical-align: .06em; }
.chip-skills svg { width: .9em; height: .9em; }
.sub { font-size: clamp(16px, 2.4vw, 19px); color: #4a4945; max-width: 640px; margin: 0 auto; }
.social { margin-top: 18px; font-size: 14.5px; color: #4a4945; min-height: 22px; }
.social b { color: var(--blue); font-weight: 600; }

/* form card */
.form-card { position: relative; margin: 26px auto 0; max-width: 760px; background: var(--card); border-radius: 22px; padding: 26px 24px 20px; text-align: left;
  box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 18px 50px rgba(30, 25, 10, .10); }
.form-tag { position: absolute; right: 18px; top: -14px; display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 5px 10px; font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.10); transform: rotate(2deg); }
.form-tag svg { width: 15px; height: 15px; }
.form-card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.field { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); margin-bottom: 12px; outline: none; }
.field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; border: 0; border-radius: var(--r); background: var(--blue); color: #fff;
  font: 600 16px var(--font); cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px rgba(29, 111, 214, .28); transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .6; cursor: default; }
.legal { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.err { display: none; margin: 4px 0 10px; color: #c03a2b; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* section heads */
section { padding: 56px 0 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 5px 11px; font-size: 13px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.07); margin-bottom: 14px; }
.pill svg { width: 15px; height: 15px; }
.lead { color: #4a4945; max-width: 640px; margin: 0 auto 26px; }

/* terminal */
.term { background: var(--term); border-radius: 18px; color: #e9e9ec; font-family: var(--mono); font-size: 14.5px; overflow: hidden; text-align: left; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.term-bar { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid #222226; color: #8b8d95; font-size: 13px; }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.term-bar span { flex: 1; text-align: center; margin-right: 52px; }
.term-body { padding: 18px 18px 8px; }
.welcome { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #d47554; color: #f0f0f2; border-radius: 8px; padding: 8px 14px; margin-bottom: 18px; }
.welcome b { color: #d47554; font-weight: 400; }
.prompt { color: #fff; margin-bottom: 10px; }
.prompt .car { display: inline-block; width: 9px; height: 17px; background: #e9e9ec; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cmds { list-style: none; margin: 0; padding: 0; }
.cmds li { display: grid; grid-template-columns: 190px 1fr; gap: 14px; padding: 7px 10px; border-radius: 8px; opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.cmds li.on { opacity: 1; transform: none; }
.cmds li.sel { background: rgba(212, 117, 84, .14); }
.cmds li b { color: #e8865f; font-weight: 500; }
.cmds li span { color: #a9abb3; font-family: var(--font); font-size: 14px; }
.term-foot { display: flex; justify-content: space-between; padding: 12px 18px; border-top: 1px solid #222226; color: #7d7f87; font-size: 12.5px; margin-top: 10px; }

/* masterclass bullets */
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin: 34px 0 12px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: #3c3b38; }
.checks li svg { width: 22px; height: 22px; margin-top: 1px; }
.checks b { color: var(--ink); }

/* 3 steps */
.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin-top: 30px; }
.step .card { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 5px #fff, 0 16px 34px rgba(0,0,0,.12); }
.step video { width: 100%; height: 100%; object-fit: cover; }
.rec { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.6); color: #fff; font: 600 12px var(--mono); padding: 4px 10px; border-radius: 99px; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; display: block; animation: blink 1s steps(1) infinite; }
.claude-card { padding: 12px; font-size: 12.5px; }
.claude-card .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.claude-card .hd svg { width: 22px; height: 22px; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 34px 52px 1fr; gap: 6px; padding: 5px 2px; font-family: var(--mono); font-size: 11.5px; color: #3c3b38; opacity: 0; transition: opacity .3s ease; }
.log li.on { opacity: 1; }
.log li em { font-style: normal; color: var(--muted); }
.log li b { font-weight: 600; color: var(--blue); }
.done { position: absolute; left: 12px; right: 12px; bottom: 12px; border-radius: 10px; background: #e8f3ea; color: #1f6b35; font-weight: 700; font-size: 13px; padding: 9px 12px; display: flex; justify-content: space-between; opacity: 0; transition: opacity .3s ease; }
.done.on { opacity: 1; }
.step h4 { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; font-size: 16px; }
.step h4 i { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 12px var(--font); font-style: normal; display: inline-flex; align-items: center; justify-content: center; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.arrow { display: none; }

/* footer */
footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 22px 0 90px; font-size: 13.5px; color: var(--muted); }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer nav { display: flex; gap: 16px; margin-top: 10px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.meta-note { text-align: center; margin-top: 22px; font-size: 12.5px; line-height: 1.55; }

/* chat bubble */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 40; text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.chat img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0,0,0,.2); }
.chat span { margin-top: -10px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; box-shadow: 0 4px 10px rgba(29,111,214,.35); }

@media (max-width: 720px) {
  .hero { padding-top: 32px; }
  .form-card { padding: 22px 16px 16px; }
  .cmds li { grid-template-columns: 1fr; gap: 2px; }
  .steps { grid-template-columns: 1fr; gap: 30px; max-width: 250px; margin-left: auto; margin-right: auto; }
  .step .card.claude-card { aspect-ratio: auto; min-height: 300px; }
  .term { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
