/* =========================================
   WONDERWISE PRODUCTIONS — 2026 BUILD
   Strategic Visual Communications Partner
   ========================================= */

:root {
    --bg: #060606;
    --bg-elevated: #0d0d0d;
    --text: #f5f5f5;
    --text-dim: #8a8a8a;
    --text-mute: #555;
    --red: #FF2D2D;
    --red-deep: #C81E1E;
    --blue: #1E88E5;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-snappy: cubic-bezier(0.6, 0, 0.1, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

@media (pointer: fine) {
    * { cursor: none; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

strong, b {
    font-family: var(--font-display);
    font-weight: 600;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    color: var(--red);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: #090909;
    border: 1px solid rgba(255,45,45,0.38);
}

.accent-red { color: var(--red); }
.accent-blue { color: var(--blue); }

/* ----- Custom Cursor ----- */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}

.cursor-follower.hovering {
    width: 64px;
    height: 64px;
    border-color: var(--red);
}

@media (pointer: coarse) {
    .cursor, .cursor-follower { display: none; }
    * { cursor: auto !important; }
}

/* ----- Loader ----- */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.loader-text {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--text);
    overflow: hidden;
    line-height: 1;
}
.loader-text span {
    display: block;
    transform: translateY(110%);
}
.loader-bar {
    width: 240px;
    height: 1px;
    background: var(--line);
    position: relative;
    overflow: hidden;
}
.loader-bar-fill {
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
}

/* ----- Scroll Progress ----- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 2px;
    background: var(--red);
    z-index: 200;
    transition: width 0.08s linear;
}

/* ----- Navigation ----- */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 1.75rem 4%;
    z-index: 100;
    transition: padding 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 4%;
    background: rgba(6, 6, 6, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: block;
    transition: transform 0.4s var(--ease);
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
    transition: height 0.55s var(--ease);
}

.navbar.scrolled .logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
    transition: opacity 0.3s;
}

.nav-link:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--red);
    transition: width 0.4s var(--ease);
}

.nav-link:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.85rem 1.6rem;
    border: 1px solid var(--red-deep);
    border-radius: 100px;
    background: var(--red-deep);
    color: var(--text);
    white-space: nowrap;
    transition: all 0.3s var(--ease);
}

.nav-cta:hover {
    background: transparent;
    color: var(--red);
}

/* ----- Hero ----- */
.hero {
    min-height: 100vh;
    position: relative;
    padding: 11rem 4% 6rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black, transparent);
    pointer-events: none;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-meta {
    margin-bottom: 2rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    backdrop-filter: blur(8px);
}
.hero-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 12px var(--red);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 9rem);
    line-height: 0.86;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.05em;
}

.hero-title .word {
    display: inline-block;
}

.hero-title .word.outlined {
    color: transparent;
    -webkit-text-stroke: 2px var(--red);
}

.hero-title .period {
    color: var(--red);
    -webkit-text-stroke: 0;
}

.hero-bottom {
    margin-top: 2.5rem;
    display: flex;
    align-items: flex-end;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 380px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-red {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2rem;
    background: var(--red-deep);
    color: var(--text);
    border-radius: 100px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    border: 1px solid var(--red-deep);
    position: relative;
    overflow: hidden;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
    box-shadow: 0 10px 40px -10px rgba(255,45,45,0.5);
}
.btn-red::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--text);
    transform: translateY(102%);
    transition: transform 0.5s var(--ease);
    z-index: 0;
}
.btn-red:hover::before { transform: translateY(0); }
.btn-red:hover { color: var(--red-deep); }
.btn-red span, .btn-red svg { position: relative; z-index: 1; }
.btn-red svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s var(--ease);
}
.btn-red:hover svg { transform: translateX(6px); }
.btn-red.big { padding: 1.4rem 2.6rem; font-size: 0.88rem; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 0;
    color: var(--text);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    border-bottom: 1px solid var(--text-mute);
    transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.btn-ghost.big { padding: 1.4rem 0; font-size: 0.88rem; }

/* Hero Image */
.hero-image {
    position: relative;
    height: 78vh;
    z-index: 2;
}

.hero-image-frame {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    position: relative;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.02);
    filter: grayscale(100%) contrast(1.05);
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(6,6,6,0.6));
    pointer-events: none;
}

/* Hero stamp */
.hero-stamp {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 130px;
    height: 130px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    z-index: 5;
    border: 4px solid var(--bg);
    box-shadow: 0 20px 60px -10px rgba(255,45,45,0.5);
}
.hero-stamp svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: spin 18s linear infinite;
}
.hero-stamp text {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    fill: var(--text);
    text-transform: uppercase;
}
.hero-stamp-core {
    position: relative;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.8rem;
    z-index: 2;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Hero entrance. Pure CSS so it starts with the first paint, not after the scripts load.
   Timings and easings match the GSAP timeline it replaces. The hidden start state lives only
   in the keyframes (fill-mode: backwards), so without animation everything simply shows.
   The photo is the largest element on screen, so it is visible from the first paint and only settles. */
@keyframes hero-rise { from { transform: translateY(115%); } }
@keyframes hero-up { from { opacity: 0; transform: translateY(20px); } }
@keyframes hero-fade { from { opacity: 0; } }
@keyframes hero-settle { from { transform: scale(1.06); } }
@keyframes hero-pop { from { opacity: 0; transform: scale(0); } }
.hero-title .word { animation: hero-rise 1.4s cubic-bezier(0.23, 1, 0.32, 1) backwards; }
.hero-title .line:nth-child(2) .word { animation-delay: 0.13s; }
.hero-title .line:nth-child(3) .word { animation-delay: 0.26s; }
.hero-meta { animation: hero-up 1s cubic-bezier(0.25, 1, 0.5, 1) 0.46s backwards; }
.hero-subtitle { animation: hero-fade 1s cubic-bezier(0.25, 1, 0.5, 1) 0.76s backwards; }
.hero-ctas > * { animation: hero-up 0.8s cubic-bezier(0.25, 1, 0.5, 1) 1.06s backwards; }
.hero-ctas > * + * { animation-delay: 1.16s; }
.hero-image-frame { animation: hero-settle 1.6s cubic-bezier(0.25, 1, 0.5, 1) backwards; }
.hero-stamp { animation: hero-pop 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.46s backwards; }
@media (prefers-reduced-motion: reduce) {
    .hero-title .word, .hero-meta, .hero-subtitle, .hero-ctas > *, .hero-image-frame, .hero-stamp { animation: none; }
}

/* Hero marquee bottom */
.hero-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
    background: var(--bg);
    z-index: 3;
}
.hero-marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    animation: marquee 32s linear infinite;
    width: max-content;
    font-family: var(--font-display);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
}
.hero-marquee-track .bullet {
    color: var(--red);
    font-size: 0.6rem;
}
@keyframes marquee {
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ----- ABOUT ----- */
.about {
    padding: 16vh 4% 14vh;
    position: relative;
}
.about-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 6rem;
    align-items: center;
}
.about-left h2 {
    font-size: clamp(2rem, 4.2vw, 4.6rem);
    line-height: 1.05;
    font-weight: 500;
    color: var(--text);
}
.about-left h2 em {
    font-style: italic;
    color: var(--text-dim);
    font-weight: 400;
}

/* About right shape stack */
.about-right {
    display: flex;
    justify-content: center;
    align-items: center;
}
.shape-stack {
    width: 100%;
    aspect-ratio: 1;
    max-width: 440px;
    position: relative;
}
.shape {
    position: absolute;
    width: 48%;
    aspect-ratio: 0.866;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55));
}
.shape-red {
    top: 8%;
    left: 6%;
    background: conic-gradient(
        from 60deg,
        #b81414 0deg 120deg,
        #5a0606 120deg 240deg,
        #ff5b5b 240deg 360deg
    );
    animation: floatA 9s ease-in-out infinite alternate;
    z-index: 4;
}
.shape-blue {
    bottom: 8%;
    right: 6%;
    background: conic-gradient(
        from 60deg,
        #0d5cb6 0deg 120deg,
        #052a5e 120deg 240deg,
        #4ea3f7 240deg 360deg
    );
    animation: floatB 11s ease-in-out infinite alternate;
    z-index: 4;
}
.shape-grid {
    position: absolute;
    inset: 0;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 44px 44px;
    z-index: 2;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    overflow: hidden;
}
.shape-label {
    position: absolute;
    bottom: 1.4rem;
    left: 1.4rem;
    z-index: 3;
    font-family: var(--font-body);
}
.shape-label span {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}
.shape-label strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
@keyframes floatA {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(14px, 22px); }
}
@keyframes floatB {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-14px, -22px); }
}

/* ----- PILLARS ----- */
.pillars {
    padding: 12vh 4%;
    border-top: 1px solid var(--line);
}
.pillars-header {
    max-width: 1600px;
    margin: 0 auto 5rem;
}
.pillars-header h2 {
    font-size: clamp(2rem, 4vw, 4rem);
}
.pillars-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.pillar {
    padding: 2.5rem 1.6rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background 0.4s var(--ease);
    position: relative;
}
.pillar:hover {
    background: var(--bg-elevated);
}
.pillar-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--red);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.pillar:nth-child(even) .pillar-num { color: var(--blue); }
.pillar h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    min-height: 2.6rem;
}
.pillar p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ----- SERVICES ----- */
.services {
    padding: 14vh 4%;
    border-top: 1px solid var(--line);
}
.services-header {
    max-width: 1600px;
    margin: 0 auto 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    align-items: end;
    gap: 3rem 5rem;
}
.services-title {
    max-width: 720px;
}
.services-title .eyebrow {
    margin-bottom: 1.25rem;
}
.services-header h2 {
    font-size: clamp(2.5rem, 5vw, 5.6rem);
    line-height: 0.96;
}
.services-sub {
    color: var(--text-dim);
    max-width: 500px;
    line-height: 1.65;
    font-size: 1rem;
    align-self: end;
    margin-bottom: 0.45rem;
}
.services-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.service-card {
    padding: 2.5rem 2rem;
    border-radius: 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 240px;
    transition: transform 0.5s var(--ease), border-color 0.4s;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, var(--red), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.service-card.alt::before {
    background: radial-gradient(circle at 50% 100%, var(--blue), transparent 70%);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--red);
}
.service-card.alt:hover {
    border-color: var(--blue);
}
.service-card:hover::before {
    opacity: 0.22;
}
.service-num {
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: 1;
    color: var(--red);
    font-weight: 600;
    position: relative;
    letter-spacing: -0.04em;
}
.service-card.alt .service-num { color: var(--blue); }
.service-card h3 {
    font-size: 1.55rem;
    line-height: 1.1;
    margin-top: auto;
    position: relative;
    font-weight: 500;
}
.service-tag {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-dim);
    position: relative;
}

/* ----- PRODUCTS ----- */
.products {
    padding: 14vh 4%;
    border-top: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.products::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: radial-gradient(ellipse 70% 70% at 78% 45%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 78% 45%, black, transparent);
    opacity: 0.45;
    pointer-events: none;
}
.products-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.products-copy h2 {
    font-size: clamp(2.3rem, 4.6vw, 5rem);
    max-width: 720px;
}
.products-copy p {
    color: var(--text-dim);
    font-size: 1.06rem;
    line-height: 1.7;
    max-width: 620px;
    margin: 1.8rem 0 2rem;
}
.product-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.product-points span,
.product-status,
.module-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 0.68rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.product-card {
    min-height: 500px;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255,45,45,0.14), transparent 42%),
        linear-gradient(315deg, rgba(30,136,229,0.16), transparent 48%),
        var(--bg-elevated);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
    pointer-events: none;
}
.product-card::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -70px;
    top: 70px;
    background: radial-gradient(circle, rgba(255,45,45,0.35), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--red);
    box-shadow: 0 30px 90px -45px rgba(255,45,45,0.55);
}
.product-card-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.product-kicker {
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.68rem;
    font-weight: 600;
}
.product-status {
    color: var(--text);
    border-color: rgba(255,45,45,0.45);
    background: rgba(255,45,45,0.1);
}
.product-logo-full {
    width: min(420px, 82%);
    margin: auto 0 2.2rem;
    position: relative;
    z-index: 2;
}
.product-logo-full img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.product-card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 620px;
    margin: 1.1rem 0 2rem;
    position: relative;
    z-index: 2;
}
.product-link {
    color: var(--text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    font-weight: 600;
    border-bottom: 1px solid var(--red);
    width: max-content;
    padding-bottom: 0.45rem;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* ----- RESMAN PRODUCT PAGE ----- */
.product-page {
    background: #050505;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.product-page .navbar {
    background: rgba(5, 5, 5, 0.74);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.mobile-demo-bar {
    display: none;
}
.resman-hero {
    min-height: 92vh;
    padding: 8.4rem 4% 4.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.resman-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: radial-gradient(ellipse 75% 70% at 30% 30%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 30% 30%, black, transparent);
    opacity: 0.5;
    pointer-events: none;
}
.resman-hero-copy,
.resman-visual,
.resman-section-inner {
    position: relative;
    z-index: 2;
}
.resman-logo {
    width: min(320px, 80vw);
    margin-bottom: 2.4rem;
}
.resman-logo-hero {
    display: block;
    width: min(430px, 78vw);
    margin: 0 0 1.45rem;
}
.resman-seo-headline {
    font-size: clamp(2.15rem, 4.5vw, 4.8rem);
    line-height: 1;
    max-width: 720px;
    font-weight: 600;
}
.resman-hero-lead {
    color: var(--text-dim);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.58;
    max-width: 610px;
    margin: 1.45rem 0 2.1rem;
}
.resman-actions {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.resman-visual {
    min-height: 560px;
    border-radius: 20px;
    background: transparent;
    overflow: hidden;
    padding: 0;
}
.resman-ui {
    height: 100%;
    min-height: 530px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255,45,45,0.08), rgba(30,136,229,0.06)),
        #080808;
    display: grid;
    grid-template-columns: 86px 1fr;
    overflow: hidden;
    box-shadow: 0 30px 120px -70px rgba(255,45,45,0.7);
}
.resman-rail {
    border-right: 1px solid var(--line);
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.resman-rail span {
    height: 44px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}
.resman-rail span:first-child {
    background: var(--red);
    border-color: var(--red);
}
.resman-rail-brand {
    display: grid;
    place-items: center;
    background: #090909 !important;
    border-color: rgba(255,45,45,0.45) !important;
}
.resman-rail-brand img {
    width: 62%;
    height: 62%;
    object-fit: contain;
}
.resman-screen {
    padding: 1.4rem;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 1.2rem;
}
.resman-screen-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.resman-screen-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}
.resman-screen-title img {
    width: 122px;
    height: auto;
    flex-shrink: 0;
}
.resman-screen-title span {
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    white-space: nowrap;
}
.resman-screen-date {
    color: var(--text-dim);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.resman-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}
.resman-kpi {
    min-height: 112px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
}
.resman-kpi span {
    display: block;
    color: var(--text-dim);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 1.4rem;
}
.resman-kpi strong {
    font-size: 1.5rem;
}
.resman-panels {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0.8rem;
    min-height: 0;
}
.resman-panel {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255,255,255,0.025);
    padding: 1rem;
    overflow: hidden;
}
.resman-chart {
    height: 210px;
    display: flex;
    align-items: end;
    gap: 0.55rem;
    padding-top: 2rem;
}
.resman-chart i {
    flex: 1;
    min-width: 10px;
    background: linear-gradient(to top, var(--red), #ff7777);
    border-radius: 999px 999px 0 0;
    opacity: 0.9;
}
.resman-chart i:nth-child(even) {
    background: linear-gradient(to top, var(--blue), #6ab2f2);
}
.resman-list {
    display: grid;
    gap: 0.8rem;
}
.resman-list span {
    display: block;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
}
.resman-section {
    padding: 10vh 4%;
    border-top: 1px solid var(--line);
}
.resman-section-inner {
    max-width: 1600px;
    margin: 0 auto;
}
.resman-section-head {
    max-width: 920px;
    margin-bottom: 3rem;
}
.resman-section-head h2 {
    font-size: clamp(2rem, 4.1vw, 4.2rem);
    line-height: 1;
}
.resman-section-head p {
    color: var(--text-dim);
    font-size: 1.06rem;
    line-height: 1.7;
    max-width: 700px;
    margin-top: 1.3rem;
}
.module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.website-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.module-card,
.website-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-elevated);
    padding: 2rem;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.35s, transform 0.35s var(--ease);
}
.module-card {
    --module-accent: var(--red);
    --module-accent-rgb: 235,65,53;
    background:
        radial-gradient(circle at 18% 14%, rgba(var(--module-accent-rgb),0.18), transparent 34%),
        var(--bg-elevated);
}
.module-support-row {
    margin-top: 1.1rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}
.module-support-row div {
    display: grid;
    gap: 0.45rem;
}
.module-support-row span {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}
.module-support-row p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 620px;
}
.module-restaurant {
    --module-accent: #EB4135;
    --module-accent-rgb: 235,65,53;
}
.module-hotel {
    --module-accent: #16a34a;
    --module-accent-rgb: 22,163,74;
}
.module-retail {
    --module-accent: #2563EB;
    --module-accent-rgb: 37,99,235;
}
.module-services {
    --module-accent: #7c3aed;
    --module-accent-rgb: 124,58,237;
}
.module-business {
    --module-accent: #475569;
    --module-accent-rgb: 71,85,105;
}
.module-card:hover,
.website-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
}
.module-card:hover {
    border-color: var(--module-accent);
    box-shadow: 0 24px 70px -52px rgba(var(--module-accent-rgb),0.85);
}
.module-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
.module-card-head .module-pill,
.platform-card-head .module-pill {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.module-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(var(--module-accent-rgb),0.12);
    border: 1px solid rgba(var(--module-accent-rgb),0.34);
}
.module-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.module-card h3,
.website-card h3 {
    font-size: 1.55rem;
    line-height: 1.1;
    margin-top: auto;
}
.module-card p,
.website-card p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}
.module-pill {
    width: max-content;
    color: var(--module-accent, var(--red));
    border-color: rgba(var(--module-accent-rgb, 255,45,45),0.35);
    background: rgba(var(--module-accent-rgb, 255,45,45),0.08);
}
.website-card {
    min-height: 240px;
    background:
        linear-gradient(135deg, rgba(30,136,229,0.11), transparent 58%),
        var(--bg-elevated);
}
.platform-layer {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), transparent),
        #070707;
}
.platform-layer-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
    gap: 4rem;
    align-items: start;
}
.platform-layer-copy h2 {
    font-size: clamp(2.1rem, 4.5vw, 4.8rem);
}
.platform-layer-copy p {
    color: var(--text-dim);
    font-size: 1.04rem;
    line-height: 1.7;
    max-width: 650px;
    margin-top: 1.4rem;
}
.platform-grid {
    display: grid;
    gap: 1rem;
}
.platform-card {
    --module-accent: #475569;
    --module-accent-rgb: 71,85,105;
    min-height: 210px;
    padding: 1.6rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    background:
        linear-gradient(90deg, rgba(var(--module-accent-rgb),0.22), transparent 42%),
        var(--bg-elevated);
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 1.5rem;
    align-items: center;
}
.platform-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.platform-card h3 {
    font-size: 1.45rem;
    line-height: 1.1;
}
.platform-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}
.resman-build {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 5rem;
    align-items: center;
}
.build-copy h2 {
    font-size: clamp(2.2rem, 5vw, 5.2rem);
}
.build-copy p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 1.5rem 0 2rem;
}
.build-list {
    display: grid;
    gap: 0.9rem;
}
.build-list li {
    color: var(--text-dim);
    padding-left: 1.2rem;
    position: relative;
}
.build-list li::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--red);
    position: absolute;
    left: 0;
    top: 0.55rem;
    transform: rotate(45deg);
}
.build-mark {
    aspect-ratio: 1;
    border-radius: 24px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 40%, rgba(255,45,45,0.28), transparent 48%),
        radial-gradient(circle at 70% 72%, rgba(30,136,229,0.22), transparent 44%),
        var(--bg-elevated);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.build-mark img {
    width: 48%;
    filter: drop-shadow(0 22px 50px rgba(255,45,45,0.35));
}

.demo-guide {
    background:
        linear-gradient(135deg, rgba(255,45,45,0.08), transparent 45%),
        linear-gradient(315deg, rgba(30,136,229,0.08), transparent 48%);
}
.demo-guide-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    gap: 4rem;
    align-items: start;
}
.demo-guide-copy h2 {
    font-size: clamp(2.2rem, 5vw, 5.2rem);
}
.demo-guide-copy p {
    color: var(--text-dim);
    font-size: 1.04rem;
    line-height: 1.7;
    max-width: 680px;
    margin: 1.5rem 0 1.5rem;
}
.demo-security-note {
    border: 1px solid rgba(255,45,45,0.28);
    border-radius: 16px;
    background: rgba(255,45,45,0.08);
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.4rem;
    max-width: 680px;
    margin: 0 0 2rem;
}
.demo-security-note strong {
    color: var(--text);
    font-size: 0.88rem;
}
.demo-security-note span {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.55;
}
.demo-guide-actions {
    margin-top: 0;
}
.demo-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.demo-steps article {
    min-height: 220px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(13,13,13,0.82);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.demo-steps span {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}
.demo-steps h3 {
    margin-top: auto;
    font-size: 1.25rem;
}
.demo-steps p {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ----- CLIENTS ----- */
.clients-section {
    padding: 14vh 0 12vh;
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.clients-header {
    max-width: 1600px;
    margin: 0 auto 5rem;
    padding: 0 4%;
}
.clients-header h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
}
.clients-marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 6rem;
    animation: marquee 32s linear infinite;
    width: max-content;
}
.marquee-track img {
    height: 130px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) invert(1) opacity(0.55);
    transition: filter 0.4s, transform 0.4s;
    flex-shrink: 0;
}
.marquee-track img:hover {
    filter: none;
    transform: scale(1.06);
}

/* ----- CASES ----- */
.cases {
    padding: 14vh 4%;
    border-top: 1px solid var(--line);
}
.cases-header {
    max-width: 1600px;
    margin: 0 auto 4.5rem;
}
.cases-header h2 {
    font-size: clamp(2rem, 4vw, 4rem);
}
.cases-sub {
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 520px;
}
.cases-list {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.case {
    border-top: 1px solid var(--line);
    position: relative;
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case-toggle {
    width: 100%;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    display: grid;
    grid-template-columns: 0.8fr 1.1fr 2.6fr 0.25fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    transition: padding 0.5s var(--ease), background 0.4s;
    position: relative;
}
.case-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,45,45,0.06), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.case-toggle:hover::after { opacity: 1; }
.case-toggle:hover {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.case-meta {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.case-num {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--red);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
}
.case-cat {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    line-height: 1.5;
}
.case-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    min-height: 100px;
}
.case-logo img {
    max-width: 100%;
    max-height: 108px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.4) contrast(0.95);
    opacity: 0.85;
    transition: filter 0.4s, opacity 0.4s;
}
.case-toggle:hover .case-logo img,
.case[data-open="true"] .case-logo img {
    filter: grayscale(0%) brightness(1) contrast(1);
    opacity: 1;
}
.case-head {
    min-width: 0;
}
.case h3 {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    margin-bottom: 0.6rem;
    transition: color 0.4s;
    line-height: 1.1;
}
.case-tease {
    color: var(--text-dim);
    font-size: 0.98rem;
    max-width: 620px;
    line-height: 1.55;
}
.case-arrow {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dim);
    text-align: right;
    transition: transform 0.5s var(--ease), color 0.4s;
    line-height: 1;
}
.case-toggle:hover .case-arrow { color: var(--red); }
.case[data-open="true"] .case-arrow {
    transform: rotate(45deg);
    color: var(--red);
}

/* Expand panel */
.case-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--ease);
}
.case[data-open="true"] .case-expand {
    max-height: 1200px;
}
.case-expand-inner {
    padding: 0 0 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease 0.1s, transform 0.45s ease 0.1s, padding 0.5s var(--ease);
}
.case[data-open="true"] .case-expand-inner {
    opacity: 1;
    transform: none;
    padding: 0 0 3.5rem;
}
.case-lead {
    color: var(--text);
    font-size: 1.05rem;
    max-width: 760px;
    line-height: 1.6;
    margin: 0 0 1.75rem;
}
.case-work {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem 2rem;
    max-width: 760px;
}
.case-work li {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.5;
    padding-left: 1.1rem;
    position: relative;
}
.case-work li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--red);
    transform: rotate(45deg);
}
.case-impact {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    max-width: 760px;
}
.case-impact span {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.case-impact strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
}
.case-impact em {
    font-style: normal;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}

/* ----- CTA ----- */
.cta {
    padding: 20vh 4% 18vh;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line);
}
.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,45,45,0.22), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(30,136,229,0.18), transparent 45%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}
.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}
.cta-headline {
    font-size: clamp(2.5rem, 7vw, 7.5rem);
    line-height: 0.95;
    margin: 1rem 0 2rem;
    font-weight: 600;
    text-transform: uppercase;
}
.cta-sub {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 3rem;
}
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ----- FOOTER ----- */
footer {
    border-top: 1px solid var(--line);
    padding: 6rem 4% 2rem;
}
.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}
.footer-col h2 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--red);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.footer-col p,
.footer-col a {
    display: block;
    color: var(--text-dim);
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--text); }
.footer-mail { color: var(--text) !important; font-size: 1.1rem !important; }
.studio-list {
    display: grid;
    gap: 1.15rem;
    max-width: 390px;
}
.studio-office {
    display: block;
    font-style: normal;
    padding-left: 1rem;
    border-left: 1px solid var(--line-strong);
}
.studio-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text);
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.studio-lines {
    display: block;
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.65;
}

.footer-bottom {
    max-width: 1600px;
    margin: 5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

/* ----- Responsive ----- */
/* ===== Tablet & below ===== */
@media (max-width: 1100px) {
    .navbar { padding: 1.4rem 5%; }
    .navbar.scrolled { padding: 0.9rem 5%; }
    .nav-links { gap: 1.4rem; }
    .nav-link { font-size: 0.76rem; }
    .nav-cta { padding: 0.75rem 1.3rem; font-size: 0.76rem; }

    .hero {
        grid-template-columns: 1fr;
        padding: 8.5rem 5% 7rem;
        gap: 2.5rem;
        min-height: auto;
    }
    .hero-title { font-size: clamp(3rem, 11vw, 6rem); }
    .hero-image {
        height: 55vh;
        margin-top: 1rem;
    }
    .hero-bottom { gap: 2rem; }

    .about { padding: 12vh 5% 11vh; }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .shape-stack { max-width: 380px; }

    .pillars { padding: 10vh 5%; }
    .pillars-header { margin-bottom: 3.5rem; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .pillar { padding: 2.2rem 1.4rem; }

    .services { padding: 11vh 5%; }
    .services-header {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
        gap: 2.5rem 3rem;
        margin-bottom: 3.5rem;
    }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card { padding: 2.2rem 1.6rem; min-height: 220px; }
    .service-num { font-size: 2.8rem; }
    .service-card h3 { font-size: 1.35rem; }

    .products { padding: 11vh 5%; }
    .products-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .product-card { min-height: 420px; }

    .resman-hero {
        grid-template-columns: 1fr;
        padding: 8.5rem 5% 5rem;
        gap: 3rem;
        min-height: auto;
    }
    .resman-visual { min-height: 520px; }
    .resman-ui { min-height: 490px; }
    .module-grid,
    .website-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .resman-build {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .platform-layer-inner {
        grid-template-columns: 1fr;
        gap: 2.6rem;
    }
    .platform-card {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .demo-guide-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .demo-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-section { padding: 11vh 0 10vh; }
    .clients-header { margin-bottom: 3.5rem; }
    .marquee-track { gap: 4.5rem; }
    .marquee-track img { height: 100px; }

    .cases { padding: 11vh 5%; }
    .cases-header { margin-bottom: 3rem; }
    .case-toggle {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "meta logo arrow"
            "head head head";
        gap: 1.5rem 1.2rem;
        padding: 2.2rem 0;
        align-items: center;
    }
    .case-toggle:hover { padding-left: 0; padding-right: 0; }
    .case-meta { grid-area: meta; gap: 0.6rem; }
    .case-num { font-size: 2.2rem; }
    .case-logo {
        grid-area: logo;
        justify-content: flex-end;
        padding: 0;
        min-height: 0;
    }
    .case-logo img { max-height: 78px; }
    .case-head { grid-area: head; margin-top: 0.4rem; }
    .case h3 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
    .case-tease { font-size: 0.92rem; }
    .case-arrow { grid-area: arrow; font-size: 1.6rem; align-self: center; }
    .case-work { grid-template-columns: 1fr; gap: 0.6rem; }
    .case-impact { gap: 1.8rem; }
    .case[data-open="true"] .case-expand-inner { padding-bottom: 2.5rem; }

    .cta { padding: 14vh 5% 13vh; }
    .cta-headline { font-size: clamp(2.5rem, 9vw, 5rem); }

    footer { padding: 5rem 5% 2rem; }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
        margin-top: 4rem;
    }

}

/* ===== Phone ===== */
@media (max-width: 700px) {
    html, body { font-size: 15px; }

    .navbar { padding: 1.2rem 5%; }
    .navbar.scrolled { padding: 0.8rem 5%; }
    .nav-links { gap: 1rem; }
    .nav-links li:not(:last-child) { display: none; }
    .logo img { height: 32px; }
    .navbar.scrolled .logo img { height: 28px; }
    .nav-cta { padding: 0.7rem 1.1rem; font-size: 0.7rem; white-space: nowrap; }

    .hero {
        padding: 7.5rem 5% 6rem;
        gap: 2rem;
    }
    .hero-title { font-size: clamp(2.8rem, 13vw, 4.6rem); line-height: 0.9; }
    .hero-meta { margin-bottom: 1.4rem; }
    .hero-tag { font-size: 0.66rem; padding: 0.5rem 0.95rem; }
    .hero-bottom { margin-top: 1.8rem; gap: 1.5rem; flex-direction: column; align-items: flex-start; }
    .hero-subtitle { font-size: 0.98rem; max-width: none; }
    .hero-ctas { gap: 1rem; width: 100%; }
    .hero-ctas .btn-red,
    .hero-ctas .btn-ghost { width: 100%; justify-content: center; }
    .hero-ctas .btn-ghost { border-bottom: 0; padding: 1rem 0; }
    .hero-image { height: 60vw; min-height: 280px; max-height: 440px; }
    .hero-image-frame { border-radius: 12px; }
    .hero-stamp { width: 92px; height: 92px; bottom: -22px; left: -18px; border-width: 3px; }
    .hero-stamp text { font-size: 13px; }
    .hero-stamp-core { font-size: 1.25rem; }
    .hero-marquee { padding: 1rem 0; }
    .hero-marquee-track { font-size: 0.95rem; gap: 1.6rem; }

    .about { padding: 10vh 5% 9vh; }
    .about-left h2 { font-size: clamp(1.75rem, 7vw, 2.4rem); }
    .about-grid { gap: 3rem; }
    .shape-stack { max-width: 320px; }
    .shape-label { bottom: 1rem; left: 1rem; }
    .shape-label strong { font-size: 0.92rem; }

    .pillars { padding: 9vh 5%; }
    .pillars-header { margin-bottom: 2.8rem; }
    .pillars-header h2 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
    .pillars-grid { grid-template-columns: 1fr; }
    .pillar { padding: 2rem 1.4rem; }
    .pillar h3 { min-height: 0; font-size: 1.1rem; }

    .services { padding: 10vh 5%; }
    .services-header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    .services-title .eyebrow { margin-bottom: 1rem; }
    .services-header h2 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.02; }
    .services-sub {
        font-size: 0.94rem;
        line-height: 1.55;
        max-width: none;
        margin: 0;
    }
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }
    .service-card {
        padding: 1.25rem 1rem;
        min-height: 158px;
        border-radius: 14px;
        gap: 0.75rem;
    }
    .service-num { font-size: 2.1rem; }
    .service-card h3 { font-size: 1.02rem; line-height: 1.08; }
    .service-tag { font-size: 0.56rem; letter-spacing: 1.1px; }

    .products { padding: 10vh 5%; }
    .products-copy h2 { font-size: clamp(2rem, 8vw, 3rem); }
    .products-copy p { font-size: 0.98rem; }
    .product-card {
        min-height: 380px;
        padding: 1.6rem;
        border-radius: 14px;
    }
    .product-logo-full {
        width: min(270px, 82%);
        margin-bottom: 1.4rem;
    }
    .product-card p { font-size: 0.92rem; }

    .product-page {
        padding-bottom: 76px;
    }
    .product-page .navbar {
        padding: 0.85rem 5%;
    }
    .product-page .navbar.scrolled {
        padding: 0.7rem 5%;
    }
    .product-page .nav-links {
        display: none;
    }
    .mobile-demo-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 180;
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 8px;
        padding: 8px;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        background: rgba(8,8,8,0.9);
        backdrop-filter: blur(18px) saturate(170%);
        -webkit-backdrop-filter: blur(18px) saturate(170%);
        box-shadow: 0 16px 50px -28px rgba(0,0,0,0.9);
    }
    .mobile-demo-bar a {
        min-height: 44px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 1.3px;
        text-transform: uppercase;
        color: var(--text);
        background: rgba(255,255,255,0.06);
    }
    .mobile-demo-bar a:first-child {
        background: var(--red);
        box-shadow: 0 10px 30px -16px rgba(255,45,45,0.8);
    }
    .resman-hero {
        padding: 5.8rem 5% 2.2rem;
        gap: 1.25rem;
    }
    .resman-logo {
        width: min(250px, 76vw);
        margin-bottom: 1.4rem;
    }
    .resman-logo-hero {
        width: min(214px, 70vw);
        margin-bottom: 0.8rem;
    }
    .resman-seo-headline {
        font-size: clamp(1.72rem, 8vw, 2.35rem);
        line-height: 1.06;
    }
    .resman-hero-lead {
        font-size: 0.91rem;
        line-height: 1.54;
        margin: 0.85rem 0 1.1rem;
    }
    .resman-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .resman-actions .btn-red,
    .resman-actions .btn-ghost {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding-top: 0.95rem;
        padding-bottom: 0.95rem;
    }
    .resman-actions .btn-ghost {
        border-bottom: 0;
        background: rgba(255,255,255,0.045);
        border-radius: 999px;
    }
    .resman-visual {
        min-height: auto;
        padding: 0;
        border-radius: 14px;
    }
    .resman-ui {
        min-height: 292px;
        grid-template-columns: 1fr;
        border-radius: 11px;
    }
    .resman-rail {
        display: none;
    }
    .resman-screen {
        padding: 0.75rem;
        gap: 0.65rem;
    }
    .resman-screen-head {
        align-items: center;
        flex-direction: row;
    }
    .resman-screen-title {
        gap: 0.55rem;
        flex-wrap: nowrap;
    }
    .resman-screen-title img {
        width: 92px;
    }
    .resman-screen-title span {
        font-size: 0.56rem;
    }
    .resman-screen-date { display: none; }
    .resman-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }
    .resman-kpi {
        min-height: 62px;
        padding: 0.55rem;
        border-radius: 10px;
    }
    .resman-kpi span {
        margin-bottom: 0.48rem;
        font-size: 0.5rem;
        letter-spacing: 1px;
    }
    .resman-kpi strong {
        font-size: clamp(0.72rem, 3vw, 0.95rem);
        letter-spacing: -0.01em;
    }
    .resman-panels {
        grid-template-columns: 1fr;
    }
    .resman-panel {
        padding: 0.7rem;
        border-radius: 11px;
    }
    .resman-panels .resman-panel:nth-child(2) { display: none; }
    .resman-chart {
        height: 96px;
        padding-top: 0.75rem;
        gap: 0.4rem;
    }
    .resman-chart i { min-width: 7px; }
    .resman-list { display: none; }
    .resman-section { padding: 6.8vh 5%; }
    .resman-section-head {
        margin-bottom: 1.7rem;
    }
    .resman-section-head h2,
    .build-copy h2 {
        font-size: clamp(1.85rem, 7.6vw, 2.55rem);
        line-height: 1.05;
    }
    .resman-section-head p,
    .build-copy p {
        font-size: 0.94rem;
        line-height: 1.62;
    }
    .module-grid,
    .website-grid {
        grid-template-columns: 1fr;
    }
    .module-support-row {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        margin-top: 0.9rem;
        padding-top: 1rem;
    }
    .module-support-row span {
        font-size: 0.98rem;
    }
    .module-support-row p {
        font-size: 0.86rem;
    }
    .module-card,
    .website-card {
        min-height: 178px;
        padding: 1.25rem;
        border-radius: 14px;
    }
    .module-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }
    .module-icon img {
        width: 35px;
        height: 35px;
    }
    .module-card-head {
        gap: 0.75rem;
    }
    .module-card-head .module-pill,
    .platform-card-head .module-pill {
        font-size: 0.78rem;
        letter-spacing: 1px;
    }
    .module-card h3,
    .website-card h3 {
        font-size: 1.18rem;
    }
    .module-card p,
    .website-card p {
        font-size: 0.88rem;
    }
    .module-pill {
        min-height: 30px;
        padding: 0.45rem 0.75rem;
        font-size: 0.58rem;
    }
    .platform-layer-inner {
        grid-template-columns: 1fr;
        gap: 1.7rem;
    }
    .platform-layer-copy h2 {
        font-size: clamp(1.85rem, 7.6vw, 2.55rem);
        line-height: 1.05;
    }
    .platform-layer-copy p {
        font-size: 0.94rem;
        line-height: 1.62;
    }
    .platform-card {
        min-height: 170px;
        padding: 1.2rem;
        grid-template-columns: 1fr;
        gap: 1rem;
        border-radius: 14px;
    }
    .platform-card h3 {
        font-size: 1.14rem;
    }
    .platform-card p {
        font-size: 0.88rem;
    }
    .build-mark {
        border-radius: 18px;
    }
    .demo-guide-inner {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
    .demo-guide-copy h2 {
        font-size: clamp(1.85rem, 7.6vw, 2.55rem);
        line-height: 1.05;
    }
    .demo-guide-copy p {
        font-size: 0.94rem;
        line-height: 1.62;
    }
    .demo-security-note {
        border-radius: 14px;
        padding: 0.9rem;
        margin-bottom: 1.3rem;
    }
    .demo-steps {
        grid-template-columns: 1fr;
    }
    .demo-steps article {
        min-height: 150px;
        padding: 1.15rem;
        border-radius: 14px;
    }
    .demo-steps span {
        font-size: 1.7rem;
    }
    .demo-steps h3 {
        font-size: 1.08rem;
    }
    .demo-steps p {
        font-size: 0.86rem;
    }

    .clients-section { padding: 9vh 0 8vh; }
    .clients-header { margin-bottom: 2.8rem; }
    .clients-header h2 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
    .marquee-track { gap: 3rem; animation-duration: 26s; }
    .marquee-track img { height: 72px; }

    .cases { padding: 10vh 5%; }
    .cases-header { margin-bottom: 2.5rem; }
    .cases-header h2 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
    .cases-sub { font-size: 0.92rem; }
    .case-toggle {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "meta logo arrow"
            "head head head";
        gap: 1.2rem 1rem;
        padding: 1.8rem 0;
    }
    .case-num { font-size: 1.8rem; }
    .case-cat { font-size: 0.6rem; letter-spacing: 1.5px; }
    .case-logo {
        min-width: 92px;
    }
    .case-logo img {
        max-width: 92px;
        max-height: 82px;
    }
    .case h3 { font-size: 1.35rem; }
    .case-tease { font-size: 0.88rem; line-height: 1.5; }
    .case-arrow { font-size: 1.4rem; }
    .case-lead { font-size: 0.96rem; }
    .case-work li { font-size: 0.88rem; }
    .case-impact { gap: 1.4rem 2rem; padding-top: 1.2rem; }
    .case-impact strong { font-size: 1.3rem; }
    .case[data-open="true"] .case-expand-inner { padding-bottom: 2rem; }

    .cta { padding: 12vh 5% 11vh; }
    .cta-headline { font-size: clamp(2.2rem, 11vw, 3.6rem); margin: 0.8rem 0 1.6rem; }
    .cta-sub { font-size: 1rem; margin-bottom: 2.2rem; }
    .cta-buttons { flex-direction: column; gap: 1rem; width: 100%; }
    .cta-buttons .btn-red,
    .cta-buttons .btn-ghost { width: 100%; justify-content: center; }
    .cta-buttons .btn-ghost { border-bottom: 0; }

    footer { padding: 4rem 5% 2rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-mail { font-size: 1rem !important; word-break: break-word; }
    .footer-bottom { margin-top: 3rem; font-size: 0.72rem; }

}

/* ===== Tiny phones ===== */
@media (max-width: 380px) {
    .hero { padding: 7rem 5% 5.5rem; }
    .hero-title { font-size: clamp(2.4rem, 13vw, 3.6rem); }
    .hero-stamp { width: 80px; height: 80px; left: -14px; bottom: -18px; }
    .hero-stamp text { font-size: 12px; }
    .hero-stamp-core { font-size: 1.1rem; }
    .case-toggle {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "meta arrow"
            "logo arrow"
            "head head";
        gap: 1rem;
    }
    .case-logo { justify-content: flex-start; }
    .case-impact { gap: 1.2rem; }
    .marquee-track img { height: 60px; }
}

/* ----- PRODUCTS: scrollable track ----- */
.products-inner { grid-template-columns: 1fr; gap: 3rem; }
.products-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.5rem;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--red) transparent;
}
.products-track .product-card {
    flex: 0 0 min(520px, 86vw);
    min-height: 460px;
    scroll-snap-align: start;
}
.products-track .product-card p { margin-bottom: 0; }
.products-track .product-link { margin-top: 2rem; }


/* ----- Tech link + homepage band ----- */
@media (max-width: 700px) {
    .nav-links li.nav-keep { display: list-item; margin-left: 0.9rem; }
}
.nav-link.active { color: var(--red); }
.tech-band {
    margin: 3rem auto 0;
    max-width: 1600px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.4rem 1.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(30,136,229,0.12), transparent 60%), var(--bg-elevated);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.tech-band:hover { border-color: var(--blue); transform: translateY(-3px); }
.tech-band-kicker {
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}
.tech-band-copy { flex: 1; font-size: 1.05rem; }
.tech-band svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
@media (max-width: 700px) {
    .tech-band { flex-wrap: wrap; gap: 0.5rem; padding: 1.2rem; }
    .tech-band-copy { flex-basis: 100%; font-size: 0.98rem; }
}
.tech-proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tech-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tech-proof-grid { grid-template-columns: 1fr; } }

/* ----- Tech page product sections ----- */
.tech-product-logo { height: 46px; width: auto; display: block; margin-bottom: 1.6rem; }
.tech-product-wordmark { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 0 0 1.4rem; color: var(--text); }
.tech-product .resman-section-head h2 { margin-top: 0.6rem; }
.module-grid.tech-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-grid.tech-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.module-vreg { --module-accent: #06aa63; --module-accent-rgb: 6,170,99; }
.module-percepta { --module-accent: #C4A35C; --module-accent-rgb: 196,163,92; }
.tech-page .module-card { min-height: 230px; }
@media (max-width: 1100px) { .module-grid.tech-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .module-grid.tech-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .module-grid.tech-grid-5 { grid-template-columns: 1fr; } .module-grid.tech-grid-3 { grid-template-columns: 1fr; } }
