.page.home-page { max-width: 1500px; padding: 0 clamp(22px, 5vw, 80px); overflow: clip; }
html:has(.home-page) { scroll-behavior: smooth; }
.home-page { --home-ease: cubic-bezier(.22, 1, .36, 1); }
.home-hero { min-height: min(840px, calc(100svh - 76px)); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(30px, 5vw, 80px); padding: 88px 0 80px; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .59rem; font-weight: 750; letter-spacing: .17em; color: var(--accent); }
.home-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #88b9ad12; }
.hero-copy h1 { font-size: clamp(2.8rem, 4.65vw, 4.7rem); line-height: 1.11; letter-spacing: -.055em; font-weight: 750; margin: 25px 0 26px; }
.hero-copy h1 > span { display: block; }
.hero-accent { color: var(--accent); }
.hero-description { color: var(--muted); max-width: 440px; font-size: .95rem; line-height: 1.85; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }
.hero-actions .button, .home-closing .button { min-height: 46px; padding-inline: 20px; }
.home-secondary { display: inline-flex; align-items: center; gap: 12px; font-size: .76rem; color: var(--text-soft); }
.home-secondary:hover { text-decoration: none; color: var(--text); }
.home-secondary > span { transition: transform .3s var(--home-ease); }
.home-secondary:hover > span { transform: translate(3px, -3px); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 28px; color: var(--muted); font-size: .65rem; }
.hero-notes > span { display: flex; gap: 6px; align-items: center; }
.hero-notes .icon { width: 13px; height: 13px; color: var(--green); }
.hero-visual { position: relative; min-width: 0; padding-block: 38px; isolation: isolate; }
.visual-orbit { position: absolute; z-index: -1; inset: -12% -20%; background: radial-gradient(ellipse, #7896af18, transparent 65%); pointer-events: none; }
.circuit-window { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg-soft); box-shadow: 0 35px 75px #0004, 0 0 0 7px #7896af05; transform: perspective(1100px) rotateY(-5deg) rotateX(3deg); animation: scene-arrive 1.2s var(--home-ease) both; }
.circuit-window-head, .circuit-window-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; background: var(--chrome); }
.circuit-window-head { border-bottom: 1px solid var(--line); }
.scene-project { display: inline-flex; align-items: center; gap: 8px; font-size: .67rem; color: var(--text-soft); }
.scene-project .icon { width: 15px; height: 15px; color: var(--accent); }
.scene-tag { font-size: .46rem; color: var(--muted); letter-spacing: .12em; border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; }
.circuit-scene { position: relative; background: var(--bg); }
.hero-schematic { width: 100%; height: auto; display: block; }
.scene-grid { color: var(--line-strong); }
.scene-traces { stroke: var(--green); opacity: .65; }
.scene-flow { stroke: #c0ded5; stroke-dasharray: 5 170; animation: circuit-flow 12s linear infinite; }
.scene-flow path:nth-child(2) { stroke-dasharray: 5 140; }
.scene-flow path:nth-child(3) { stroke-dasharray: 5 155; }
.scene-flow path:nth-child(4) { stroke-dasharray: 5 185; }
.scene-node { fill: var(--bg-soft); stroke: var(--line-strong); }
.scene-node .scene-controller { fill: var(--panel-2); stroke: var(--accent-2); }
.scene-symbols { stroke: var(--accent); }
.scene-pins { fill: var(--bg); stroke: var(--green); }
.scene-labels { fill: var(--muted); letter-spacing: .7px; }
.scene-part-id { fill: var(--muted); letter-spacing: .8px; }
.scene-selection { position: absolute; width: 25%; height: 38%; left: 38.5%; top: 30%; border: 1px dashed #a0b9cf44; border-radius: 11px; pointer-events: none; }
.circuit-window-foot { border-top: 1px solid var(--line); font-size: .49rem; color: var(--muted); padding-block: 10px; }
.circuit-window-foot > span:first-child { display: flex; align-items: center; gap: 6px; }
.circuit-window-foot i { width: 4px; height: 4px; background: var(--green); border-radius: 50%; }
.scene-callout { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 30px #0003; animation: callout-float 7s ease-in-out infinite; }
.callout-library { top: 13px; right: -15px; }
.callout-connected { bottom: 10px; left: -22px; animation-delay: -3.5s; }
.callout-icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--accent); background: #7896af18; border-radius: 8px; }
.callout-icon .icon { width: 17px; height: 17px; }
.scene-callout > div { display: grid; gap: 3px; }
.scene-callout strong { color: var(--text-soft); font-size: .64rem; font-weight: 650; }
.scene-callout div > span { font-size: .55rem; color: var(--muted); }
.hero-copy > * { animation: home-arrive .85s var(--home-ease) both; }
.hero-copy h1 { animation-delay: .08s; }
.hero-copy .hero-description { animation-delay: .16s; }
.hero-actions { animation-delay: .24s; }
.hero-notes { animation-delay: .32s; }
.home-divider { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 20px 0; }
.home-divider > span { color: var(--subtle); font-size: .56rem; font-weight: 600; letter-spacing: .16em; }
.home-divider > a { color: var(--accent); width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.home-divider > a:hover { text-decoration: none; background: var(--panel-2); }
.home-workspace { padding: 72px 0 90px; scroll-margin-top: 100px; }
.home-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 35px; }
.home-section-heading h2, .home-closing h2 { font-size: clamp(2rem, 3.2vw, 3.1rem); letter-spacing: -.045em; line-height: 1.15; margin: 17px 0 0; font-weight: 700; }
.home-section-heading > p { max-width: 310px; font-size: .86rem; color: var(--muted); line-height: 1.8; margin: 0; }
.home-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-feature { display: flex; flex-direction: column; align-items: flex-start; padding: 27px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .3s ease, transform .4s var(--home-ease); }
.home-feature:hover { border-color: var(--line-strong); transform: translateY(-5px); }
.feature-number { font-size: .54rem; letter-spacing: .12em; color: var(--muted); }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; background: var(--panel-2); color: var(--accent); border: 1px solid var(--line); border-radius: 10px; margin: 32px 0 24px; }
.feature-icon .icon { width: 22px; height: 22px; }
.home-feature h3 { font-size: 1.05rem; letter-spacing: -.025em; margin: 0 0 13px; }
.home-feature p { font-size: .78rem; line-height: 1.9; color: var(--muted); margin: 0 0 30px; }
.feature-detail { font-size: .49rem; letter-spacing: .08em; color: var(--accent); margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); width: 100%; }
.home-closing { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 46px clamp(24px, 4vw, 56px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(115deg, var(--panel-2), var(--panel)); }
.home-closing p { font-size: .82rem; line-height: 1.8; color: var(--muted); margin: 18px 0 0; }
.home-closing .button { flex-shrink: 0; }
.home-footer { display: flex; align-items: center; gap: 22px; padding: 38px 0; margin-top: 45px; border-top: 1px solid var(--line-soft); }
.home-footer > span { color: var(--subtle); font-size: .67rem; }
.home-footer nav { display: flex; gap: 22px; margin-left: auto; font-size: .7rem; }
.home-page.motion-ready [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--home-ease), transform .7s var(--home-ease); }
.home-page.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.home-page.motion-ready .home-feature.is-visible:hover { transform: translateY(-5px); }
.home-features > :nth-child(2) { transition-delay: .08s; }
.home-features > :nth-child(3) { transition-delay: .16s; }
@keyframes home-arrive { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes scene-arrive { from { opacity: 0; transform: perspective(1100px) rotateY(-9deg) rotateX(5deg) translateY(20px); } to { opacity: 1; transform: perspective(1100px) rotateY(-5deg) rotateX(3deg); } }
@keyframes circuit-flow { to { stroke-dashoffset: -350; } }
@keyframes callout-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 1000px) {
  .home-hero { gap: 30px; padding-block: 65px; min-height: 680px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 4.8vw, 3.6rem); }
  .scene-callout { padding: 10px; }
  .callout-library { right: -7px; }
  .callout-connected { left: -7px; }
  .scene-callout strong { font-size: .58rem; }
  .home-feature { padding: 23px; }
}
@media (max-width: 760px) {
  body:has(.home-page) .topbar { flex-wrap: nowrap; gap: 10px; }
  body:has(.home-page) .topnav { width: auto; flex-wrap: nowrap; margin-left: auto; }
  .home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 50px 0 45px; gap: 35px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 8.7vw, 4.2rem); }
  .hero-description { max-width: 480px; }
  .hero-visual { max-width: 550px; width: 100%; margin-inline: auto; }
  .home-eyebrow { font-size: .51rem; letter-spacing: .12em; }
  .home-section-heading { flex-direction: column; align-items: flex-start; gap: 22px; }
  .home-section-heading > p { max-width: 420px; }
  .home-features { grid-template-columns: minmax(0, 1fr); }
  .home-feature { padding: 25px; }
  .feature-icon { margin: 23px 0 19px; }
  .home-feature p { margin-bottom: 20px; }
  .home-workspace { padding-block: 45px 55px; }
  .home-closing { flex-direction: column; align-items: flex-start; }
  .home-footer { flex-wrap: wrap; gap: 16px; }
  .home-footer nav { width: 100%; margin-left: 0; }
}
@media (max-width: 380px) {
  body:has(.home-page) .topbar { padding-inline: 14px; }
  .hero-copy h1 { font-size: 2.23rem; }
  .hero-actions { gap: 18px; }
  .hero-notes { gap: 10px; font-size: .59rem; }
  .scene-tag { display: none; }
  .scene-callout { gap: 7px; }
  .scene-callout strong { font-size: .52rem; }
  .scene-callout div > span { font-size: .49rem; }
  .home-divider > span { font-size: .48rem; letter-spacing: .09em; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; }
  .home-page.motion-ready [data-reveal] { opacity: 1; transform: none; }
  .circuit-window { transform: none; }
  .scene-flow { display: none; }
}
