/* Homepage hero demo: a Chrome window whose tabs glide back and forth, autoplay only (2026-11-12, not interactive since 11-13). */
.nd-clip { overflow: visible; }
.nd { position: relative; width: 1040px; margin: 0 auto; transform-origin: top left; }
.nd .media-glow { z-index: 0; }

.nd-win { position: relative; z-index: 2; border-radius: 1.4rem; overflow: hidden; outline: none;
    background: #17151a; border: 1px solid rgba(var(--text-rgb), 0.1);
    box-shadow: 0 45px 100px -40px rgba(0, 0, 0, 0.95), 0 0 60px -20px rgba(124, 58, 237, 0.25);
    user-select: none; -webkit-user-select: none; }
.nd-win.edge { animation: nd-thunk .3s; }
@keyframes nd-thunk { 20% { transform: translateX(-7px); } 50% { transform: translateX(5px); } 80% { transform: translateX(-2px); } }

.nd-top { display: flex; align-items: flex-end; gap: 12px; padding: 10px 12px 0; background: #0f0e12; }
.nd-lights { display: flex; gap: 7px; padding: 0 4px 13px; flex: none; }
.nd-lights span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.nd-lights span:nth-child(2) { background: #febc2e; }
.nd-lights span:nth-child(3) { background: #28c840; }
.nd-strip { position: relative; display: flex; flex: 1; min-width: 0; }
.nd-tab { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px;
    border-radius: 10px 10px 0 0; font-size: 12px; font-weight: 500; color: rgba(var(--text-rgb), 0.5); white-space: nowrap;
    transition: background-color .18s, color .18s, flex-grow .22s cubic-bezier(.22,1,.36,1); }
.nd-tab + .nd-tab::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: rgba(var(--text-rgb), 0.1); }
.nd-tab.on::before, .nd-tab.on + .nd-tab::before { display: none; }
.nd-fav { width: 16px; height: 16px; border-radius: 4px; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }
.nd-title { overflow: hidden; text-overflow: ellipsis; }
.nd-tab.on { background: #17151a; color: var(--text); flex-grow: 3.2; }
.nd-tab.pop .nd-fav { animation: nd-pop .26s; }
@keyframes nd-pop { 40% { transform: scale(1.35); } }
.nd-glider { display: none; position: absolute; top: 0; height: 2px; border-radius: 2px; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--teal), var(--purple) 55%, var(--rose)); box-shadow: 0 0 12px rgba(0, 240, 255, 0.5); }

.nd-bar { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-bottom: 1px solid rgba(var(--text-rgb), 0.07); }
.nd-nav { display: flex; gap: 10px; color: rgba(var(--text-rgb), 0.4); }
.nd-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nd-url { flex: 1; min-width: 0; padding: 7px 14px; border-radius: 999px; background: rgba(var(--text-rgb), 0.06); color: rgba(var(--text-rgb), 0.62);
    font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nd-pages { position: relative; height: 450px; }
.nd-page { position: absolute; inset: 0; padding: 26px 30px; display: none; }
.nd-page.on { display: block; animation: nd-in .22s ease; }
@keyframes nd-in { from { opacity: .35; } }
.nd-h { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.nd-h b { font-size: 21px; letter-spacing: -0.02em; }
.nd-h i { font-style: normal; font-size: 12px; color: rgba(var(--text-rgb), 0.45); margin-left: auto; }
.nd-sk { height: 10px; border-radius: 5px; background: rgba(var(--text-rgb), 0.09); }
.nd-rows { display: grid; gap: 4px; }
.nd-row { display: grid; grid-template-columns: 30px 130px 1fr 54px; gap: 14px; align-items: center; padding: 11px 10px; border-radius: 10px; font-size: 13px; }
.nd-row:first-child { background: rgba(var(--text-rgb), 0.05); }
.nd-row .av { width: 30px; height: 30px; border-radius: 50%; }
.nd-row small { font-size: 11.5px; color: rgba(var(--text-rgb), 0.45); text-align: right; }
.nd-boards { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; height: 270px; }
.nd-boards div { border-radius: 12px; background: rgba(var(--text-rgb), 0.05); padding: 14px; display: grid; align-content: start; gap: 9px; }
.nd-boards div::before { content: ""; height: 90px; border-radius: 8px; background: var(--c); opacity: .8; }
.nd-code { font: 12.5px/1.95 ui-monospace, "SF Mono", Menlo, monospace; border-radius: 12px; background: rgba(0,0,0,.25); padding: 14px 0; }
.nd-code div { padding: 0 18px; white-space: pre; color: rgba(var(--text-rgb), 0.6); }
.nd-code .add { background: rgba(40, 200, 64, 0.12); color: #9be9a8; }
.nd-code .del { background: rgba(255, 95, 87, 0.12); color: #ffa198; }
.nd-doc { max-width: 560px; display: grid; gap: 12px; }
.nd-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.nd-tiles div { border-radius: 12px; background: rgba(var(--text-rgb), 0.05); padding: 14px 16px; }
.nd-tiles small { display: block; font-size: 11.5px; color: rgba(var(--text-rgb), 0.5); }
.nd-tiles b { font-size: 24px; letter-spacing: -0.02em; }
.nd-chart { display: flex; align-items: flex-end; gap: 9px; height: 140px; }
.nd-chart span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--c), transparent 140%); }
.nd-posts { display: grid; gap: 12px; }
.nd-post { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px; border-radius: 12px; background: rgba(var(--text-rgb), 0.04); }
.nd-post .vote { display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: rgba(var(--text-rgb), 0.6); }
.nd-video { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; }
.nd-video .player { aspect-ratio: 16 / 9; border-radius: 12px; background: radial-gradient(circle at 30% 30%, #3a1f4f, #120f18); display: grid; place-items: center; max-width: 100%; }
.nd-video .player::after { content: ""; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 8px; opacity: .9; }
.nd-video .side { display: grid; gap: 12px; align-content: start; }
.nd-video .side div { height: 58px; border-radius: 10px; background: rgba(var(--text-rgb), 0.05); }
.nd-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 270px; }
.nd-cal div { position: relative; border-radius: 10px; background: rgba(var(--text-rgb), 0.04); }
.nd-cal span { position: absolute; left: 6px; right: 6px; border-radius: 7px; background: var(--c); opacity: .75; }
.nd-music { display: grid; grid-template-columns: 200px 1fr; gap: 26px; }
.nd-music .art { aspect-ratio: 1; border-radius: 12px; background: conic-gradient(from 210deg, var(--teal), var(--purple-strong), var(--rose), var(--teal)); max-width: 100%; }
.nd-music .list { display: grid; gap: 14px; align-content: start; }

/* Trackpad sits in the window's bottom-right corner */
.nd-pad { position: absolute; right: 16px; bottom: 16px; z-index: 3; width: 224px; height: 128px; border-radius: 14px; overflow: hidden;
    background: linear-gradient(180deg, rgba(42, 39, 48, 0.96), rgba(30, 28, 35, 0.96)); border: 1px solid rgba(var(--text-rgb), 0.14);
    box-shadow: inset 0 1px 0 rgba(var(--text-rgb), 0.08), 0 16px 34px -12px rgba(0, 0, 0, 0.85); }
.nd-fingers { position: absolute; left: 50%; top: 50%; display: flex; gap: 8px; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.nd-fingers.on { opacity: 1; transition: opacity .12s ease; }   /* quick to land, slower to lift */
.nd-fingers span { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.6), rgba(255,255,255,.2));
    box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 0 12px rgba(0, 240, 255, .35); }
.nd-fingers span:nth-child(2) { transform: translateY(-7px); }
.nd-ripple { position: absolute; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; pointer-events: none;
    border: 2px solid rgba(0, 240, 255, .55); animation: nd-ripple .45s ease-out forwards; }
.nd-ripple.hard { border-color: rgba(255, 107, 157, .8); }
@keyframes nd-ripple { from { transform: scale(.35); opacity: 1; } to { transform: scale(1); opacity: 0; } }

.nd-pad::before { content: ""; position: absolute; inset: 7px; border-radius: 10px; border: 1.5px dashed rgba(var(--text-rgb), 0.16); pointer-events: none; transition: opacity .25s; }
.nd-pad.busy::before { opacity: 0; }
.nd-fav img { width: 16px; height: 16px; border-radius: 4px; display: block; }

@media (prefers-reduced-motion: reduce) {
    .nd *, .nd-ripple { animation: none !important; transition: none !important; }
}
