/* EmbeddexAI landing page styles (index.html only).
   Loads after site.css, which already imports brand.css (tokens, DM Sans, IBM Plex Mono).
   Owned by the landing agent; do not merge into site.css. */

.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- 1. Hero: copy on the left, terminal over a dim bench ---------- */
.hero-landing{display:grid;grid-template-columns:.95fr 1.05fr;gap:48px;align-items:center;padding-block:40px 48px}
.hero-landing h1{font-size:clamp(2.3rem,3.9vw,3.3rem);line-height:1.12;letter-spacing:-.035em}
.hero-landing h1 span{color:var(--primary)}
.hero-landing .lead{margin-top:22px;max-width:40ch}
.hero-landing .actions{margin-top:26px;display:flex;flex-wrap:wrap;gap:12px}
.hero-landing .github-link{margin-top:14px;font-size:.85rem}

.hero-terminal-stage{position:relative;min-width:0}
.hero-backdrop{position:absolute;inset:-24px -16px -16px;border-radius:24px;object-fit:cover;width:calc(100% + 32px);height:calc(100% + 40px);opacity:.5;filter:saturate(.7);z-index:0}
[data-theme=dark] .hero-backdrop{opacity:.3}
.hero-backdrop::after{content:''} /* no-op, gradient handled by .hero-terminal-stage::before */
.hero-terminal-stage::before{content:'';position:absolute;inset:-24px -16px -16px;border-radius:24px;background:linear-gradient(160deg,rgb(36 30 48 / .72),rgb(23 21 28 / .88));z-index:1}
.hero-terminal-stage>*:not(.hero-backdrop){position:relative;z-index:2}

/* The terminal window: the owner's live-site terminal, restyled to the v4 palette. */
.hero-terminal{position:relative;background:#17151c;border:1px solid #81738f;border-radius:14px;overflow:hidden;box-shadow:0 24px 60px rgb(23 21 28 / .5);font-family:'IBM Plex Mono',monospace;font-size:.8rem;line-height:1.6;margin:8px}
.hero-terminal-bar{display:flex;align-items:center;gap:.45rem;padding:.65rem 1rem;background:#211e29;border-bottom:1px solid #302a3b}
.hero-terminal-dot{width:12px;height:12px;border-radius:50%}
.hero-terminal-dot--red{background:#ff5f57}.hero-terminal-dot--yellow{background:#febc2e}.hero-terminal-dot--green{background:#28c840}
.hero-terminal-title{margin-left:.5rem;font-size:.72rem;color:#b8b0c6;letter-spacing:.02em}
.hero-terminal-tabs{display:flex;background:#17151c;border-bottom:1px solid #302a3b;padding:0 .6rem}
.hero-terminal-tab{appearance:none;background:transparent;border:0;padding:.5rem .85rem;min-height:44px;font-family:'IBM Plex Mono',monospace;font-size:.7rem;color:#b8b0c6;letter-spacing:.04em;text-transform:lowercase;border-bottom:2px solid transparent;cursor:pointer}
.hero-terminal-tab.is-active{color:#bca1ff;border-bottom-color:#bca1ff}
.hero-terminal-body{padding:.9rem 1rem;min-height:300px;max-height:360px;overflow:auto;scrollbar-width:thin;scrollbar-color:#302a3b transparent}
.hero-terminal-body::-webkit-scrollbar{width:4px}.hero-terminal-body::-webkit-scrollbar-thumb{background:#302a3b;border-radius:2px}
.term-line{white-space:pre;min-height:1.6em;color:#b8b0c6}
.term-cmd{color:#f1edf7}
.term-brand{color:#bca1ff;font-size:.38rem;line-height:1.22;letter-spacing:0}
.term-key{color:#adbffc}
.term-active{color:#8bd3a7}
.term-muted{color:#62596f}
.term-out-green{color:#8bd3a7}
.term-cursor{color:#bca1ff;animation:term-blink .9s step-end infinite}
@keyframes term-blink{50%{opacity:0}}

/* ---------- 2. Honest stats bar ---------- */
.stats-bar{border-block:1px solid var(--border);background:var(--surface);margin-block:8px 0}
.stats-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;padding:20px 0}
.stats-inner>div{display:flex;flex-direction:column;min-width:96px}
.stats-inner strong{font-size:1.7rem;letter-spacing:-.03em;color:var(--text)}
.stats-inner span{font-size:.8rem;color:var(--muted)}

/* ---------- 3. Interactive board ---------- */
.board#interactive-board{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:center;gap:12px;max-width:none;margin-inline:0;padding:20px;position:relative;border:1px solid var(--border);border-radius:20px;background:var(--raised)}
.board-stage{position:relative;min-width:0;isolation:isolate}
.board-stage .board-svg{width:100%;height:auto;display:block}
.board-stage .hotspot{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:28px;height:28px;min-height:0;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;cursor:pointer;padding:0;z-index:1;box-shadow:none}
.board-stage .hotspot-dot{width:12px;height:12px;border-radius:50%;background:#e5faff;border:2px solid #075c8c;box-shadow:0 0 0 2px #fff,0 0 12px 4px #38bdf8;transition:transform 140ms ease}
.board-stage .hotspot.is-active .hotspot-dot{background:#ffda72;border-color:#523b00;box-shadow:0 0 0 2px #fff,0 0 14px 5px #ffd15c;transform:scale(1.15)}
.board-stage .hotspot:focus-visible{outline:3px solid #fff;outline-offset:1px;box-shadow:0 0 0 6px #082b5b;z-index:2}
.board .hotspot-card{position:static;min-width:0;max-width:none;align-self:stretch;display:flex;flex-direction:column;justify-content:center;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:22px;box-shadow:none}
.hotspot-card h3{font-size:1.12rem;margin:12px 0 8px;line-height:1.35}
.hotspot-card p{font-size:.88rem;margin:0 0 16px;color:var(--muted);line-height:1.65}
.hotspot-card .label{font-size:.66rem}
.hotspot-card .text-link{font-size:.82rem;line-height:1.6;align-self:start}
.hotspot-card .board-model-note{border-top:1px solid var(--border);padding-top:14px;margin:20px 0 0;font-size:.74rem}
.board-model-note strong{color:var(--text)}
.board-caption{font-size:.76rem;color:var(--muted);line-height:1.6;margin-top:12px}
@media(max-width:1100px){.board#interactive-board{grid-template-columns:minmax(0,1fr) 270px;padding:12px;gap:8px}.board .hotspot-card{padding:18px}}
@media(min-width:761px){.board .hotspot-card{min-height:550px}}
@media(max-width:760px){.board#interactive-board{grid-template-columns:minmax(0,1fr);padding:8px;gap:12px}.board .hotspot-card{padding:18px}.hotspot-card h3{margin-top:8px}}
@media(prefers-reduced-motion:reduce){.board-stage .hotspot-dot,.board-stage .hotspot-dot::after{animation:none!important;transition:none!important}}

/* ---------- 4. Scroll to boot ---------- */
.boot-section{background:var(--raised);padding-block:var(--section);margin-block:var(--section)}
.boot-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:44px;align-items:start;margin-top:12px}
.boot-console{border:1px solid #81738f;background:#17151c;color:#f1edf7;border-radius:14px;overflow:hidden;font-family:'IBM Plex Mono',monospace}
.boot-section.boot-animated .boot-console{position:sticky;top:96px}
.boot-console-bar{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#211e29;border-bottom:1px solid #302a3b;font-size:.72rem;color:#b8b0c6}
.boot-console-bar::before{content:'';width:8px;height:8px;border-radius:50%;background:#8bd3a7}
.boot-log{padding:16px 18px;margin:0;min-height:220px;font-size:.78rem;line-height:1.8;white-space:pre-wrap}
.log-line{color:#b8b0c6}
.log-prefix{color:#bca1ff}
.boot-animated .log-line{opacity:.14;transition:opacity 180ms ease}
.boot-animated .log-line.is-visible{opacity:1}
.log-cursor .cursor{color:#bca1ff;animation:term-blink .9s step-end infinite}
.boot-caption{font-size:.72rem;color:var(--muted);line-height:1.6;margin:14px 0 0}
.boot-stages{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.boot-stage{display:grid;grid-template-columns:44px 1fr;gap:18px;padding:26px 0;border-top:1px solid var(--border)}
.boot-stage:first-child{border-top:0;padding-top:0}
.stage-num{font-family:'IBM Plex Mono',monospace;color:var(--accent);font-size:.9rem;padding-top:4px}
.boot-stage h3{font-size:1.3rem;letter-spacing:-.02em}
.boot-stage p{font-size:.88rem;margin:8px 0;max-width:44ch}
.boot-stage .text-link{font-size:.8rem}
.boot-animated .boot-stage{opacity:.55;transition:opacity 160ms ease}
.boot-animated .boot-stage.is-active{opacity:1}
.boot-animated .boot-stage.is-active .stage-num{color:var(--primary)}

/* ---------- 5. The program: 27 modules grouped by layer ---------- */
.module-layer{margin-bottom:40px}
.module-layer-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.module-layer-head h3{font-size:1.25rem;letter-spacing:-.02em}
.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.module-tile{display:flex;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px;min-height:44px}
.module-tile:hover{border-color:var(--primary)}
.module-thumb{width:64px;height:48px;border-radius:6px;overflow:hidden;flex-shrink:0;background:var(--raised)}
.module-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.module-info{display:flex;flex-direction:column;min-width:0}
.module-code{font-family:'IBM Plex Mono',monospace;font-size:.68rem;color:var(--primary)}
.module-info strong{font-size:.86rem;line-height:1.25;color:var(--text)}
.module-meta{font-size:.72rem;color:var(--muted)}

/* ---------- 6. Career tracks ---------- */
.career-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.career-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.career-card img{width:100%;aspect-ratio:1.55;object-fit:cover}
.career-card-body{padding:20px;display:flex;flex-direction:column;gap:8px;flex:1}
.career-card h3{font-size:1.05rem;letter-spacing:-.02em}
.career-card h3 a{color:var(--text)}
.career-card h3 a:hover{color:var(--primary)}
.career-mods{font-size:.8rem;color:var(--muted)}
.career-meta{font-size:.74rem;color:var(--muted);margin-top:auto}
.career-card .text-link{font-size:.8rem}

/* ---------- 7. Tutorial tracks: featured pair + the rest ---------- */
.tutorial-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:20px}

/* ---------- 8. Exercise lab bench ---------- */
.lab-bench{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:28px}
.lab-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;gap:12px}
.lab-card h3{font-size:1.2rem;letter-spacing:-.02em}
.lab-card h3 a{color:var(--text)}
.lab-card h3 a:hover{color:var(--primary)}
.lab-card p{font-size:.88rem}
.lab-card .lab-meta{margin:0;gap:8px 14px}
.lab-card .button{margin-top:auto}
.lab-card--live{border-top:3px solid var(--success)}
.lab-card--hub{background:var(--raised)}

/* ---------- 9. Community git-log ---------- */
.gitlog{border:1px solid #81738f;background:#17151c;color:#f1edf7;border-radius:14px;overflow:hidden;font-family:'IBM Plex Mono',monospace;margin-top:28px}
.gitlog-bar{display:flex;justify-content:space-between;gap:12px;padding:10px 16px;background:#211e29;border-bottom:1px solid #302a3b;font-size:.72rem;color:#b8b0c6}
.gitlog-body{padding:16px 18px;margin:0;font-size:.78rem;line-height:1.8;overflow:auto}
.gitlog-body .sha{color:#8bd3a7}
.gitlog-body .op{color:#bca1ff}
.gitlog-note{font-size:.72rem;color:var(--muted);line-height:1.6;margin-top:12px}

/* ---------- 10. About the author ---------- */
.about-grid{display:grid;grid-template-columns:auto 1fr;gap:32px;align-items:start}
.owner-photo{width:120px;height:120px;border-radius:50%;object-fit:cover;border:3px solid var(--primary)}
.about-grid h2{font-size:2rem}
.about-grid .lead{max-width:60ch}

/* ---------- Responsive ---------- */
@media(max-width:1200px){
  .module-grid{grid-template-columns:repeat(2,1fr)}
  .career-grid{grid-template-columns:repeat(2,1fr)}
  .tutorial-grid{grid-template-columns:repeat(3,1fr)}
  .lab-bench{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:950px){
  .hero-landing{grid-template-columns:1fr 1fr;gap:28px}
  .hero-landing h1{font-size:2.4rem}
  .boot-layout{gap:28px}
  .tutorial-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .hero-landing{display:flex;flex-direction:column;gap:28px;padding:28px 0}
  .hero-landing h1{font-size:2.3rem;max-width:15ch}
  .hero-landing .lead{font-size:1rem}
  .hero-terminal-body{min-height:250px;max-height:300px;font-size:.72rem}
  .term-brand{font-size:.34rem}
  .stats-inner{gap:12px 28px}
  .stats-inner strong{font-size:1.4rem}
  .boot-layout{grid-template-columns:1fr}
  .boot-section.boot-animated .boot-console{position:static}
  .module-grid{grid-template-columns:1fr 1fr;gap:8px}
  .module-tile{flex-direction:column;align-items:flex-start;gap:8px}
  .module-thumb{width:100%;height:56px}
  .career-grid{grid-template-columns:1fr}
  .tutorial-grid{grid-template-columns:1fr}
  .lab-bench{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr;gap:20px}
  .owner-photo{width:96px;height:96px}
  .gitlog-bar{flex-direction:column;gap:4px}
}
