/* ==========================================================================
   Lansare - product launch: the product steps out of the dark as you scroll
   Signature: a pinned scroll stage (script.js writes progress to --p) where the
   product grows, straightens and lights up under a breathing gradient aura;
   keynote-style numbered sections below.
   Palette: --inv-primary, --inv-accent (aura gradient), --inv-bg, --inv-text
   ========================================================================== */

.lansare {
    --ls-panel: color-mix(in srgb, var(--inv-text) 5%, var(--inv-bg));
    --ls-line: color-mix(in srgb, var(--inv-text) 14%, transparent);
    --ls-muted: color-mix(in srgb, var(--inv-text) 62%, var(--inv-bg));
    --ls-grad: linear-gradient(100deg, var(--inv-primary), var(--inv-accent));
    --kit-radius: 14px;
    font-family: var(--inv-font-body);
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--inv-text);
    background: var(--inv-bg);
    overflow-x: clip;
    counter-reset: section;
}
.lansare h1, .lansare h2, .lansare h3 { font-family: var(--inv-font-heading); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.lansare) :is(h1, h2, h3) { margin: 0; }
.ls-kicker { margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; background: var(--ls-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.ls-key { margin: 0 0 6px; color: var(--inv-primary); font-weight: 600; }
.ls-muted { color: var(--ls-muted); margin: 4px 0 0; }
.ls-comment { color: var(--ls-muted); margin: 4px 0 0; }

/* ---------- Navigation ---------- */
.ls-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 16px clamp(16px, 4vw, 44px); display: flex; justify-content: flex-end; }
.ls-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 20px; }
.ls-nav a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ls-muted); padding: 6px 0; }
.ls-nav a:hover, .ls-nav a.is-current { color: var(--inv-text); }
.ls-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-size: 1.1rem; color: var(--inv-text); margin-right: auto; }
.ls-nav.is-stuck { align-items: center; padding: 8px clamp(16px, 4vw, 44px); background: color-mix(in srgb, var(--inv-bg) 82%, transparent); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--ls-line); }
.lansare .kit-to-top { background: var(--ls-grad); color: #fff; }
@media (max-width: 899px) {
    .ls-nav { padding: 10px 12px; }
    .ls-nav .kit-nav-toggle { color: var(--inv-text); font-size: 1.5rem; margin-left: auto; }
    .ls-nav .kit-nav-links { display: none; }
    .ls-nav.is-open .kit-nav-links { display: flex; flex-direction: column; gap: 12px; position: absolute; top: 58px; left: 12px; right: 12px; padding: 20px; background: var(--ls-panel); border: 1px solid var(--ls-line); border-radius: 16px; }
}

/* ---------- Scroll stage ---------- */
.ls-stage { --p: 1; position: relative; height: 200vh; }
.ls-stage.is-static { height: auto; }
.ls-pin { position: sticky; top: 0; height: 100svh; min-height: 600px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 90px 20px 30px; isolation: isolate; }
.ls-stage.is-static .ls-pin { position: relative; }
.ls-aura { position: absolute; left: 50%; top: 55%; width: min(900px, 130vw); aspect-ratio: 1; translate: -50% -50%; z-index: -1; border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--inv-primary) 70%, transparent), transparent 55%), radial-gradient(circle at 62% 60%, color-mix(in srgb, var(--inv-accent) 60%, transparent), transparent 55%);
    filter: blur(60px); opacity: calc(.25 + var(--p) * .6); scale: calc(.7 + var(--p) * .4); animation: ls-breathe 7s ease-in-out infinite alternate; }
@keyframes ls-breathe { from { rotate: 0deg; } to { rotate: 40deg; } }
.ls-stage-text { text-align: center; translate: 0 calc(var(--p) * -3vh); }
.ls-hero-logo { height: 34px; width: auto; margin: 0 auto 18px; padding: 6px 12px; border-radius: 8px; background: #fff; }
.ls-announce { margin: 0 0 10px; font-size: .82rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ls-muted); }
.ls-title { font-size: clamp(2.8rem, 9vw, 7rem); background: linear-gradient(180deg, var(--inv-text) 40%, color-mix(in srgb, var(--inv-text) 55%, var(--inv-bg))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ls-product { align-self: center; margin: 0; width: min(520px, 80vw, 62vh); max-height: 100%; aspect-ratio: 1;
    transform: translateY(calc((1 - var(--p)) * 8vh)) scale(calc(.72 + var(--p) * .28)) rotate(calc((1 - var(--p)) * -10deg));
    filter: brightness(calc(.35 + var(--p) * .65)) saturate(calc(.4 + var(--p) * .6)) blur(calc((1 - var(--p)) * 3px));
    border-radius: 24px; overflow: hidden; box-shadow: 0 50px 90px -40px color-mix(in srgb, var(--inv-primary) calc(var(--p) * 70%), #000); will-change: transform, filter; }
.ls-product img { width: 100%; height: 100%; object-fit: cover; }
.ls-stage-foot { text-align: center; opacity: clamp(0, (var(--p) - .45) * 3, 1); translate: 0 calc((1 - var(--p)) * 30px); }
.ls-subtitle { max-width: 620px; margin: 0 auto 12px; color: var(--ls-muted); font-size: 1.08rem; }
.ls-when { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0 0 16px; }
.ls-when strong { color: var(--inv-text); }
.ls-when span { color: var(--ls-muted); }
.ls-button { display: inline-block; padding: 13px 28px; border-radius: 999px; background: var(--ls-grad); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 14px 30px -14px var(--inv-primary); }
.ls-scroll-hint { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; margin: 0; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ls-muted); opacity: calc(1 - var(--p) * 3); animation: ls-hint 1.6s ease-in-out infinite; }
@keyframes ls-hint { 50% { translate: -50% 6px; } }
@media (max-width: 760px) { .ls-stage { height: 170vh; } .ls-product { width: 88vw; } }

/* ---------- Sections ---------- */
.ls-section { max-width: 1060px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) 22px; }
.ls-title-block { margin-bottom: 36px; counter-increment: section; }
.ls-title-num::before { content: counter(section, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--inv-font-heading); font-size: .9rem; background: var(--ls-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ls-title-block h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; }
.ls-prose { max-width: 720px; font-size: 1.18rem; line-height: 1.7; color: color-mix(in srgb, var(--inv-text) 85%, var(--inv-bg)); }
.ls-prose p { margin: 0 0 1em; }
.ls-card { padding: 24px 26px; border-radius: 18px; background: var(--ls-panel); border: 1px solid var(--ls-line); }
.ls-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.ls-card p { margin: 0 0 .5em; }

/* Organizer */
.ls-organizer { display: grid; gap: 24px; align-items: center; }
@media (min-width: 760px) { .ls-organizer { grid-template-columns: 220px 1fr; } }
.ls-logo { width: 100%; max-width: 220px; padding: 16px; border-radius: 12px; background: #fff; }

/* Agenda as a keynote run-of-show */
.ls-log { list-style: none; margin: 0; padding: 0; }
.ls-log-line { display: grid; grid-template-columns: 110px auto 1fr; gap: 6px 22px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--ls-line); }
.ls-log-time { font-family: var(--inv-font-heading); font-size: 1.3rem; background: var(--ls-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ls-log-track { font-size: .7rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--ls-line); }
.ls-log-line:not(:has(.ls-log-track)) { grid-template-columns: 110px 1fr; }
.ls-log-body h3 { font-size: 1.25rem; font-weight: 500; }
.ls-log-who { margin: 4px 0 0; color: var(--inv-primary); font-weight: 600; }
@media (max-width: 600px) { .ls-log-line, .ls-log-line:not(:has(.ls-log-track)) { grid-template-columns: 1fr; } }

/* Speakers */
.ls-speakers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ls-speaker { display: grid; gap: 16px; padding: 0 0 22px; overflow: hidden; }
.ls-avatar { aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; background: var(--ls-panel); font-family: var(--inv-font-heading); font-size: 3rem; color: var(--inv-primary); }
.ls-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); transition: filter .4s, transform .6s; }
.ls-speaker:hover .ls-avatar img { filter: none; transform: scale(1.04); }
.ls-speaker > div:last-child { padding: 0 22px; }
.ls-speaker h3 { font-size: 1.2rem; }
.ls-speaker-role { margin: 4px 0 8px; color: var(--ls-muted); }
.ls-speaker-role .ls-key { display: inline; }
.ls-speaker-bio { color: var(--ls-muted); font-size: .95rem; margin: 0; }

/* Venue */
.ls-venues { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ls-venue { position: relative; overflow: hidden; }
.ls-venue::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--ls-grad); }
.ls-venue-time { font-family: var(--inv-font-heading); font-size: 2.6rem; margin: 0 0 6px !important; background: var(--ls-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.ls-venue-place { font-weight: 700; margin-top: 10px !important; }
.lansare .kit-event-actions { justify-content: flex-start; margin-top: 16px; }
.lansare .kit-button { border-radius: 999px; border: 1px solid var(--ls-line); color: var(--inv-text); background: transparent; font-weight: 600; }
.lansare .kit-button:hover { border-color: var(--inv-primary); color: var(--inv-primary); }

/* Countdown */
.ls-countdown { text-align: center; }
.ls-countdown .kit-countdown { gap: clamp(8px, 2vw, 16px); margin-top: 12px; }
.ls-countdown .kit-countdown-unit { flex: 1; max-width: 190px; min-width: 0; padding: 22px 8px; border-radius: 18px; background: var(--ls-panel); border: 1px solid var(--ls-line); }
.ls-countdown .kit-countdown-value { font-size: clamp(2rem, 7vw, 3.6rem); background: var(--ls-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ls-countdown .kit-countdown-label { color: var(--ls-muted); }

/* Gallery */
.ls-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .ls-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } .ls-gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; } }
.ls-gallery-grid a { border-radius: 18px; }

/* RSVP */
.ls-rsvp-card { position: relative; max-width: 720px; margin: 0 auto; padding: clamp(28px, 5vw, 52px); border-radius: 26px; background: var(--ls-panel); border: 1px solid var(--ls-line); box-shadow: 0 40px 80px -50px var(--inv-primary); }
.ls-rsvp-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 27px; background: var(--ls-grad); opacity: .5; filter: blur(14px); }
.lansare .inv-rsvp__field input:not([type=checkbox]):not([type=radio]), .lansare .inv-rsvp__field select, .lansare .inv-rsvp__field textarea { color: var(--inv-text); }
.lansare .inv-rsvp__submit { border-radius: 999px; font-weight: 700; background: var(--ls-grad); color: #fff; }

/* Info & contact */
.ls-info-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.ls-faq { margin-top: 44px; max-width: 760px; }
.ls-faq details { border-top: 1px solid var(--ls-line); padding: 16px 0; }
.ls-faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.ls-faq summary::-webkit-details-marker { display: none; }
.ls-faq summary::after { content: "+"; float: right; color: var(--inv-primary); }
.ls-faq details[open] summary::after { content: "-"; }
.ls-faq details p { margin: 8px 0 0; color: var(--ls-muted); }
.ls-contacts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ls-contact-name { font-family: var(--inv-font-heading); font-size: 1.3rem; margin: 0 0 6px; }
.ls-contacts a { color: var(--inv-primary); font-weight: 600; text-decoration: none; }

/* Footer */
.ls-footer { padding: 70px 22px; text-align: center; border-top: 1px solid var(--ls-line); background: radial-gradient(ellipse 60% 100% at 50% 100%, color-mix(in srgb, var(--inv-primary) 18%, transparent), transparent 70%); }
.ls-footer-title { font-family: var(--inv-font-heading); font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 10px; background: var(--ls-grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.ls-footer p { margin: 0 0 6px; }
