:root {
  --demo-bg: #080808;
  --demo-panel: #101010;
  --demo-panel-soft: #151111;
  --demo-line: rgba(255, 255, 255, .15);
  --demo-muted: rgba(255, 255, 255, .6);
  --demo-red: #f04450;
  --demo-red-dark: #d21f2b;
  --demo-red-soft: rgba(240, 68, 80, .13);
}

.pack-demo-page { background: var(--demo-bg); color: #fff; min-height: 100vh; }
.pack-demo-page main { overflow: hidden; }
.pack-demo-page p { color: var(--demo-muted); }
.pack-demo-header, .pack-demo-section, .pack-demo-footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.pack-demo-header { padding: 34px 0 110px; }
.pack-demo-back { color: rgba(255,255,255,.58); text-decoration: none; font-size: 13px; display: inline-block; margin-bottom: 82px; transition: color .2s ease; }
.pack-demo-back:hover { color: #fff; }
.pack-demo-page .eyebrow { color: var(--demo-red); font-size: 11px; letter-spacing: .17em; text-transform: uppercase; font-weight: 700; }
.pack-demo-header h1 { font-size: clamp(3rem, 7vw, 7.4rem); line-height: .92; letter-spacing: -.075em; max-width: 970px; margin: 20px 0 28px; }
.pack-demo-intro { max-width: 610px; font-size: 17px; line-height: 1.7; }
.pack-demo-legend { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 42px; color: rgba(255,255,255,.55); font-size: 12px; }
.pack-demo-legend span { display: inline-flex; align-items: center; gap: 9px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-dot.is-released { background: var(--demo-red); box-shadow: 0 0 12px var(--demo-red); }
.legend-dot.is-adapted { background: #fff; }
.legend-dot.is-preview { border: 1px solid var(--demo-red); }
.pack-demo-section { padding: 90px 0; border-top: 1px solid rgba(255,255,255,.12); }
.pack-demo-section-heading { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 28px; margin-bottom: 54px; }
.demo-index { color: var(--demo-red); font-family: 'DM Serif Display', Georgia, serif; font-size: 35px; line-height: 1; }
.pack-demo-section h2 { font-size: clamp(2rem, 4.5vw, 4.6rem); line-height: .98; letter-spacing: -.06em; max-width: 830px; margin: 13px 0 18px; }
.pack-demo-section-heading p:not(.eyebrow) { max-width: 630px; font-size: 16px; line-height: 1.7; margin: 0; }
.demo-surface { min-height: 300px; border: 1px solid rgba(255,255,255,.18); background: #0e0e0e; padding: 36px; position: relative; overflow: hidden; }
.demo-surface h3, .shadow-card h3, .external-grid-demo h3, .demo-timeline h3, .click-demo h3 { font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: -.04em; margin: 28px 0 12px; }
.demo-surface p, .shadow-card p, .external-grid-demo p, .demo-timeline p, .click-demo p { line-height: 1.7; }
.demo-tag { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--demo-red); font-weight: 700; }
.demo-outline-button { appearance: none; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; padding: 12px 16px; margin-top: 14px; font: inherit; font-size: 12px; cursor: pointer; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.demo-outline-button span { color: var(--demo-red); margin-left: 12px; }
.demo-outline-button:hover { background: var(--demo-red); border-color: var(--demo-red); transform: translateY(-2px); }
.demo-lightbar-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.lightbar-surface::after { content: ''; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); width: 18%; height: 3px; border-radius: 100px; background: linear-gradient(98deg, #ffccd0, var(--demo-red), #ffccd0, #fff); box-shadow: 0 26px 30px rgba(240,68,80,.42), 0 8px 18px rgba(210,31,43,.32); transition: width 1.4s ease; }
.lightbar-surface:hover::after { width: 72%; }
.lightbar-surface--quiet::after { opacity: .58; box-shadow: 0 16px 24px rgba(240,68,80,.22); }
.demo-code { margin-top: 26px; border: 1px solid rgba(255,255,255,.14); background: #0b0b0b; }
.demo-code summary { cursor: pointer; padding: 18px 22px; color: #fff; font-size: 13px; list-style-position: inside; }
.demo-code summary::marker { color: var(--demo-red); }
.demo-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-top: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.12); }
.demo-code-grid--single { grid-template-columns: 1fr; }
.demo-code-grid > div { padding: 24px; background: #0e0e0e; min-width: 0; }
.demo-code-label { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; color: rgba(255,255,255,.6); font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }
.demo-code-label a { color: var(--demo-red); text-decoration: none; white-space: nowrap; }
.demo-code-label a:hover { color: #fff; }
.demo-code pre { overflow: auto; margin: 18px 0 12px; padding: 18px; border: 1px solid rgba(255,255,255,.1); background: #080808; color: #ffdfe2; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.copy-code { border: 1px solid rgba(240,68,80,.45); background: transparent; color: #fff; padding: 9px 13px; font: inherit; font-size: 11px; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.copy-code:hover, .copy-code.is-copied { background: var(--demo-red); border-color: var(--demo-red); }
.text3d-demo-section { padding-bottom: 120px; }
.text3d-demo { position: relative; display: grid; place-items: center; min-height: 260px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: radial-gradient(circle at 50% 100%, rgba(240,68,80,.12), transparent 44%), #0d0d0d; cursor: pointer; mask: linear-gradient(to top, transparent 3%, black 17%, black 88%, transparent 98%); -webkit-mask: linear-gradient(to top, transparent 3%, black 17%, black 88%, transparent 98%); }
.text3d-demo-front, .text3d-demo-back { grid-area: 1 / 1; width: 100%; text-align: center; font-size: clamp(2rem, 6vw, 5.5rem); font-weight: 700; letter-spacing: -.07em; line-height: 1.1; transition: transform 1s ease, opacity 1s ease; }
.text3d-demo-front { transform: translateY(0) perspective(900px) rotateX(0); }
.text3d-demo-back { opacity: 0; color: var(--demo-red); transform: translate(-50%, 50%) perspective(900px) rotateX(100deg); }
.text3d-demo:hover .text3d-demo-front, .text3d-demo:focus-visible .text3d-demo-front { opacity: 0; transform: translateY(-100%) perspective(900px) rotateX(-100deg); }
.text3d-demo:hover .text3d-demo-back, .text3d-demo:focus-visible .text3d-demo-back { opacity: 1; transform: translate(0, 0) perspective(900px) rotateX(0); }
.shadow-stage { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; padding: 30px; background: #0b0b0b; }
.shadow-card { min-height: 250px; padding: 30px; background: #151515; border: 1px solid rgba(255,255,255,.06); }
.shadow-card--raised { box-shadow: inset -2px -2px 4px rgba(24,26,50,.08), inset 3px 3px 3px #fff, 0 12px 35px rgba(20,20,20,.32); }
.shadow-card--inset { box-shadow: inset -2px -2px 4px rgba(24,26,50,.12), inset 3px 3px 3px rgba(255,255,255,.18), inset -14px -14px 34px rgba(0,0,0,.42); }
.shadow-card--red { border-color: rgba(240,68,80,.34); box-shadow: inset -2px -2px 4px rgba(24,26,50,.08), inset 2px 2px 3px rgba(255,255,255,.16), 0 15px 40px rgba(210,31,43,.22); }
.external-grid-demo { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); background: #0b0b0b; border: 1px solid rgba(255,255,255,.15); }
.external-grid-demo::before, .external-grid-demo::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.external-grid-demo::before { background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.15) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.15) 66.66%, transparent calc(66.66% + .5px)); }
.external-grid-demo::after { background: linear-gradient(180deg, transparent calc(50% - .5px), rgba(255,255,255,.15) 50%, transparent calc(50% + .5px)); opacity: .48; }
.external-grid-demo article { min-height: 300px; padding: 34px; position: relative; z-index: 1; border-right: 1px solid rgba(255,255,255,.13); }
.external-grid-demo article:last-of-type { border-right: 0; }
.grid-cross { position: absolute; z-index: 2; color: #fff; font-size: 21px; font-weight: 300; line-height: 1; transform: translate(-50%, -50%); }
.grid-cross--tl { left: 0; top: 0; }.grid-cross--tm { left: 33.33%; top: 0; }.grid-cross--tr { left: 100%; top: 0; }.grid-cross--ml { left: 0; top: 50%; }.grid-cross--mm { left: 33.33%; top: 50%; }.grid-cross--mr { left: 100%; top: 50%; }.grid-cross--bl { left: 0; top: 100%; }.grid-cross--bm { left: 33.33%; top: 100%; }.grid-cross--br { left: 100%; top: 100%; }
.timeline-demo-section { min-height: 980px; }
.demo-timeline { position: relative; max-width: 850px; margin: 0 auto; padding: 30px 0 40px 82px; }
.demo-timeline-track, .demo-timeline-progress { position: absolute; left: 24px; top: 28px; width: 1px; height: calc(100% - 56px); background: rgba(255,255,255,.18); }
.demo-timeline-progress { height: var(--timeline-progress, 0%); background: linear-gradient(var(--demo-red), rgba(240,68,80,.12)); box-shadow: 0 0 13px rgba(240,68,80,.8); }
.demo-timeline-step { min-height: 230px; position: relative; opacity: .48; transform: translateX(0); transition: opacity .4s ease, transform .4s ease; }
.demo-timeline-step.is-active { opacity: 1; transform: translateX(8px); }
.timeline-marker { position: absolute; left: -82px; top: 0; width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: var(--demo-bg); color: rgba(255,255,255,.55); font-size: 12px; transition: border-color .4s ease, background .4s ease, color .4s ease, box-shadow .4s ease; }
.demo-timeline-step.is-active .timeline-marker { background: var(--demo-red); border-color: var(--demo-red); color: #fff; box-shadow: 0 0 0 8px var(--demo-bg), 0 0 23px rgba(240,68,80,.65); }
.click-demo { border: 1px solid rgba(255,255,255,.19); background: #101010; }
.click-demo-tabs { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid rgba(255,255,255,.14); }
.click-demo-tab { border: 0; border-right: 1px solid rgba(255,255,255,.12); background: transparent; color: rgba(255,255,255,.55); padding: 20px; text-align: left; font: inherit; font-size: 13px; cursor: pointer; transition: color .2s ease, background .2s ease; }
.click-demo-tab:last-child { border-right: 0; }.click-demo-tab:hover, .click-demo-tab.is-active { color: #fff; background: var(--demo-red-soft); }
.click-demo-panel { min-height: 270px; padding: 42px; }.click-demo-panel > span { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-size: 56px; color: var(--demo-red); }.click-demo-panel h3 { margin-top: 9px; }
.pack-demo-footer { border-top: 1px solid rgba(255,255,255,.13); padding: 30px 0 60px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }.pack-demo-footer p { margin: 0; }.pack-demo-footer a { color: #fff; text-decoration: none; }.pack-demo-footer a:hover { color: var(--demo-red); }

@media (max-width: 800px) {
  .pack-demo-header { padding-bottom: 80px; }.pack-demo-back { margin-bottom: 56px; }.pack-demo-section { padding: 70px 0; }.pack-demo-section-heading { grid-template-columns: 38px minmax(0, 1fr); gap: 15px; }.demo-index { font-size: 25px; }.demo-lightbar-grid, .shadow-stage, .external-grid-demo { grid-template-columns: 1fr; }.shadow-stage { padding: 16px; }.external-grid-demo::before { background: linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255,255,255,.14) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.14) 66.66%, transparent calc(66.66% + .5px)); }.external-grid-demo::after { display: none; }.external-grid-demo article { min-height: 240px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }.external-grid-demo article:last-of-type { border-bottom: 0; }.grid-cross--tl { left: 0; top: 0; }.grid-cross--tm { left: 100%; top: 0; }.grid-cross--tr, .grid-cross--mr, .grid-cross--br, .grid-cross--ml, .grid-cross--mm, .grid-cross--bl, .grid-cross--bm { display: none; }.grid-cross--bl { left: 0; top: 100%; }.grid-cross--br { left: 100%; top: 100%; }.timeline-demo-section { min-height: 900px; }.demo-timeline { padding-left: 65px; }.demo-timeline-track, .demo-timeline-progress { left: 21px; }.timeline-marker { left: -65px; width: 43px; height: 43px; }.click-demo-tabs { grid-template-columns: 1fr; }.click-demo-tab { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }.click-demo-tab:last-child { border-bottom: 0; }.demo-code-grid { grid-template-columns: 1fr; }.demo-code-grid > div { padding: 18px; }.demo-code-label { flex-direction: column; gap: 6px; }.text3d-demo { min-height: 190px; }.pack-demo-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { .pack-demo-page *, .pack-demo-page *::before, .pack-demo-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
