/* Home page (dark redesign). Owner: Site role. Follows docs/samples/home-dark-concept.src.html; generic mechanics in motion.css.
   Every scene reads at rest (--p 0): that is what JS-off and reduced-motion visitors see. */

/* ---------- Scene 1: through the letters ---------- */
.hero-scene { --ws: clamp(2.6rem, 12.4vw, 11rem); --swl: calc(clamp(.95rem, 2vw, 1.5rem) * 1.6); }
.hero-scene .stage { height: var(--stage-h); overflow: hidden; }
.hero-scene__bg { transform: scale(calc(1.06 - var(--p) * .06)); }
/* QA: the landing glow and the services glow met in a hard horizontal edge; both stages now fade to night at the bottom */
.hero-scene .stage::after, .services-scene .stage::after { content: ""; position: absolute; inset: auto 0 0; height: 16%; background: linear-gradient(rgba(5, 13, 11, 0), var(--night)); pointer-events: none; z-index: 3; }
.hero-scene .stage::after { opacity: var(--b); }
.hero-scene__dim { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 100%, rgba(0, 167, 149, .38), rgba(0, 167, 149, 0) 70%), var(--night); opacity: var(--b); }
.hero-scene__title { position: absolute; inset: 0; margin: 0; font: 500 clamp(.95rem, 2vw, 1.5rem)/1.6 var(--font-display); letter-spacing: .5em; text-transform: uppercase; opacity: calc(1 - var(--a) * 4); pointer-events: none; }
.hero-scene__title > span { position: absolute; left: 0; right: 0; text-align: center; padding-inline: 20px; text-indent: .5em; }
.hero-scene__t1 { bottom: calc(54% + var(--ws) * .5); color: var(--mint); }
/* the SVG draws this word; the text stays real (screen readers, search, selection) but transparent */
.hero-scene__word { top: 46%; transform: translateY(-50%); font: 700 var(--ws)/1 var(--font-display); letter-spacing: -.03em; text-indent: 0 !important; color: transparent; white-space: nowrap; }
.hero-scene__sw { top: calc(46% + var(--ws) * .48); color: var(--ink); }
.hero-scene__t2 { position: absolute; left: 0; right: 0; top: calc(46% + var(--ws) * .48 + var(--swl) + 16px); display: grid; justify-items: center; gap: 16px; text-align: center; padding-inline: 20px; opacity: calc(1 - var(--a) * 4); }
.hero-scene__sub { margin: 0; font: 400 clamp(1rem, 1.6vw, 1.25rem)/1.5 var(--font-body); color: var(--soft); }
.acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-scene__fin { position: absolute; inset: 9% 0 auto; display: grid; justify-items: center; text-align: center; padding-inline: 20px; opacity: var(--b); pointer-events: none; }
.hero-scene__big { font: 700 clamp(2.2rem, 7vw, 5.6rem)/1 var(--font-display); letter-spacing: -.03em; max-width: 14ch; }
.hero-scene__big em { font-style: normal; color: var(--mint); }
.hero-scene__run { margin-top: 18px; white-space: nowrap; font: 600 clamp(.95rem, 2vw, 1.6rem) var(--font-display); color: var(--dim); transform: translateX(calc((1 - var(--b)) * 30%)); }
.hero-scene__run b { color: #fff; font-weight: 600; margin-inline: .6em; }
@media (max-width: 760px) {
    .hero-scene__run { font-size: .9rem; white-space: normal; max-width: 30ch; line-height: 1.9; transform: none; }
    .hero-scene__run b { margin-inline: .35em; }
}

/* ---------- Scene 2: the laptop rises ---------- */
.services-scene .stage { height: var(--stage-h); background: radial-gradient(60% 55% at 50% 100%, rgba(0, 167, 149, .38), rgba(0, 167, 149, 0) 70%), var(--night); }
.services-scene__copy { position: absolute; inset: 8% 0 auto; text-align: center; padding-inline: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; transform: translateY(calc(var(--a) * -30px)) scale(calc(1 - var(--a) * .16)); transform-origin: 50% 0; opacity: calc(1 - var(--b) * 5); z-index: 2; }
.services-scene__link { order: -1; text-decoration: none; }
.services-scene__link:hover { color: var(--ink); }
.services-scene__title { margin: 0; font-size: clamp(2rem, 6vw, 4.8rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; max-width: 16ch; }
.services-scene__text { margin: 0; color: var(--soft); font-size: clamp(1.05rem, 1.8vw, 1.4rem); }
.services-scene__say { position: absolute; inset: 7% 0 auto; margin: 0 auto; padding-inline: 20px; max-width: 1100px; text-align: center; font: 700 clamp(1.35rem, 3.5vw, 2.7rem)/1.14 var(--font-display); letter-spacing: -.02em; opacity: calc((var(--b) - .16) * 4); pointer-events: none; } /* QA: starts once the title has faded (the two overlapped mid-way) */
.services-scene__say span { opacity: clamp(.16, calc((var(--b) - .12 * var(--i)) * 7), 1); }
.services-scene__say span:nth-child(odd) { color: var(--mint); }
.services-scene__mac { position: absolute; left: 50%; bottom: 0; width: min(1040px, 96vw); height: auto; max-width: none; transform: translate(-50%, calc(54% - var(--a) * 40% - var(--b) * 4%)) scale(calc(.8 + var(--a) * .12)); transform-origin: 50% 100%; filter: drop-shadow(0 0 70px rgba(0, 216, 193, .3)); }
@media (max-width: 760px) { .services-scene__mac { width: 128vw; } }
/* without motion the copy is never covered: the laptop sits a little lower */
:root:not(.motion) .services-scene__mac { transform: translate(-50%, 50%) scale(.86); }

/* ---------- The six products as links ---------- */
.product-links { padding-block: clamp(40px, 6vw, 72px) 0; }
.product-links__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(4px, 1vw, 14px); }
.product-links__item { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 14px 6px 6px; border-radius: var(--radius-pill); color: var(--ink); font: 600 1.05rem var(--font-display); transition: background-color .2s ease, color .2s ease; }
.product-links__item:hover, .product-links__item:focus-visible { background: rgba(0, 216, 193, .1); color: var(--mint); }
.product-links__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: #fff; padding: 6px; box-shadow: 0 0 22px rgba(0, 216, 193, .35); }
.product-links__icon img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Statements ---------- */
.words { padding-block: var(--section-y); overflow-x: clip; }
.words .para { margin: 28px 0 0; max-width: 58ch; font: 400 clamp(1.05rem, 1.5vw, 1.25rem)/1.6 var(--font-body); color: var(--soft); text-wrap: pretty; }
.words__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 20px; }
.trio { margin-top: clamp(70px, 10vw, 140px); }
.trio .lit { font-size: clamp(1.4rem, 3.2vw, 2.5rem); max-width: 20ch; }
.shot--crop img { aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }
.play-link { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(5, 13, 11, .55); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6), 0 0 50px rgba(0, 216, 193, .55); transition: transform .25s ease, box-shadow .25s ease; }
.play-link img { width: 60px; height: 60px; }
.play-link:hover, .play-link:focus-visible { transform: scale(1.08); box-shadow: 0 0 0 2px var(--mint), 0 0 70px rgba(0, 216, 193, .7); }
.words--lead { padding-bottom: 40px; }
.words--lead .lit { margin-top: 18px; }

/* ---------- Scene 3: the screens turn ---------- */
.lead-scene .stage { background: radial-gradient(50% 50% at 50% 46%, rgba(0, 167, 149, .3), rgba(0, 167, 149, 0) 72%), var(--night); }
.motion .lead-scene .stage { height: var(--stage-h); }
.motion .lead-scene__hd { position: absolute; inset: 5% 0 auto; text-align: center; padding-inline: 20px; }
.motion .lead-scene .deck-big { margin-top: 4px; }
.motion .lead-scene__deck { position: absolute; left: 0; right: 0; top: 25%; height: 44%; }
.motion .lead-scene__desc { position: absolute; inset: auto 20px 3%; height: 24%; }
.lead-scene__text p { margin: 0; }
.deck-desc a { display: block; margin-top: 6px; color: var(--mint); font: 600 .95rem var(--font-display); text-decoration: none; }
.deck-desc a:hover { color: var(--ink); }
@media (max-width: 760px) {
    .motion .lead-scene__deck { top: 21%; height: 34%; }
    .motion .lead-scene__desc { height: 40%; }
}
/* without motion: a plain grid, one column per screen (title, screen, text); on phones one item after another */
:root:not(.motion) .lead-scene .stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; align-items: start; width: min(1160px, calc(100% - 40px)); margin-inline: auto; padding-block: 40px var(--section-y); background: none; }
:root:not(.motion) .lead-scene__hd, :root:not(.motion) .lead-scene .deck-big, :root:not(.motion) .lead-scene__deck, :root:not(.motion) .lead-scene__desc { display: contents; }
:root:not(.motion) .lead-scene .deck-big > * { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.02em; align-self: end; }
:root:not(.motion) .lead-scene .deck .c img { aspect-ratio: 640 / 420; }
@media (max-width: 760px) {
    :root:not(.motion) .lead-scene .stage { grid-template-columns: minmax(0, 1fr); }
    :root:not(.motion) .lead-scene .deck-big > :nth-child(1) { order: 1; } :root:not(.motion) .lead-scene .deck .c:nth-child(1) { order: 2; } :root:not(.motion) .lead-scene__desc > :nth-child(1) { order: 3; }
    :root:not(.motion) .lead-scene .deck-big > :nth-child(2) { order: 4; margin-top: 24px; } :root:not(.motion) .lead-scene .deck .c:nth-child(2) { order: 5; } :root:not(.motion) .lead-scene__desc > :nth-child(2) { order: 6; }
    :root:not(.motion) .lead-scene .deck-big > :nth-child(3) { order: 7; margin-top: 24px; } :root:not(.motion) .lead-scene .deck .c:nth-child(3) { order: 8; } :root:not(.motion) .lead-scene__desc > :nth-child(3) { order: 9; }
}

/* ---------- Strengths ---------- */
.rows { padding-block: clamp(70px, 10vw, 130px); }
.row__n { display: block; margin-bottom: 6px; font: 600 .9rem/1 var(--font-display); letter-spacing: .2em; color: var(--soft); }
.rows__more { margin-top: 28px; }

/* ---------- Proof ---------- */
.proof { position: relative; overflow: hidden; background-image: var(--proof-bg); background-image: var(--proof-bg-set, var(--proof-bg)); background-size: cover; background-position: center right; }
.proof::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night), rgba(5, 13, 11, .5) 20%, rgba(5, 13, 11, .5) 80%, var(--night)); } /* QA: soft top and bottom edges */
.proof::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 13, 11, .96) 30%, rgba(5, 13, 11, .4)); }
.proof__inner { position: relative; z-index: 1; padding-block: var(--section-y); }
.proof__num { font: 700 clamp(5rem, 19vw, 15rem)/.86 var(--font-display); letter-spacing: -.05em; color: var(--mint); font-variant-numeric: tabular-nums; text-shadow: 0 0 80px rgba(0, 216, 193, .4); }
.proof__cap { margin: 14px 0 0; font: 600 clamp(.95rem, 1.7vw, 1.3rem)/1.4 var(--font-display); letter-spacing: .14em; }
.proof__text { margin: 14px 0 0; max-width: 44ch; font: 400 clamp(1.05rem, 1.5vw, 1.2rem)/1.6 var(--font-body); color: var(--soft); }

/* ---------- Talk to Sales ---------- */
.talk { padding-block: var(--section-y); }
.talk__inner { display: grid; gap: 22px; justify-items: start; }
.talk .lit { max-width: 18ch; font-size: clamp(2rem, 6vw, 4.6rem); font-weight: 700; }
.talk__text { margin: 0; color: var(--soft); font-size: var(--text-lead); }
