/* ===== Preloader ===== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #1A2A42;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.preloader-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo-img {
    height: 200px;
    width: auto;
    position: relative;
    z-index: 1;
    filter: brightness(1.5) saturate(1.2);
    animation: preloaderPulse 2s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

.preloader-glow {
    position: absolute;
    width: 360px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(79, 195, 224, 0.4) 0%, rgba(31, 111, 165, 0.25) 40%, transparent 70%);
    filter: blur(20px);
    animation: preloaderGlow 2s ease-in-out infinite;
}

@keyframes preloaderGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}

.preloader-bar {
    width: 120px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(90deg, #1F6FA5, #4FC3E0);
    transition: width 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0A0F1A;
    --bg-elevated: #0F1624;
    --bg-card: #121A2A;
    --text: #EAF6FF;
    --text-secondary: #9FB7C9;
    --text-muted: #5A7A8F;
    --accent: #1F6FA5;
    --accent-muted: #123E63;
    --accent-bright: #4FC3E0;
    --accent-soft: #7FDDE6;
    --deep-navy: #0F2A44;
    --border: #1E3148;
    --border-light: #182A3E;
    --radius: 12px;
    --radius-lg: 20px;
    --font-sans: 'Neue Haas Grotesk Display Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --gradient-brand: linear-gradient(135deg, #123E63, #1F6FA5, #4FC3E0);
    --gradient-highlight: linear-gradient(135deg, #1F6FA5, #7FDDE6);
    --gradient-glow: rgba(79, 195, 224, 0.4);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

em {
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--gradient-highlight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Liquid Glass ===== */
.liquid-glass {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
        rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
        rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.95);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    line-height: 0;
    position: relative;
    isolation: isolate;
}

.nav-logo::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 190px;
    height: 95px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.2) 35%, rgba(255, 255, 255, 0.03) 65%, rgba(255, 255, 255, 0) 100%);
    filter: blur(14px);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

.logo-image {
    display: block;
    position: relative;
    z-index: 1;
    height: 122px;
    width: auto;
    transition: height 0.3s ease, filter 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.25));
}

.navbar.scrolled .logo-image {
    height: 72px;
    filter: brightness(0) saturate(100%) invert(93%) sepia(10%) saturate(291%) hue-rotate(173deg) brightness(104%) contrast(103%);
}

.navbar.scrolled .nav-logo::before {
    opacity: 0.35;
}

.footer-logo-image {
    height: 110px;
    filter: brightness(0) saturate(100%) invert(97%) sepia(4%) saturate(331%) hue-rotate(178deg) brightness(114%) contrast(100%);
}

.footer-brand .nav-logo {
    display: inline-flex;
}

.footer-brand .nav-logo::before {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 110px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    background: var(--text);
    color: var(--bg);
    border-radius: 8px;
    transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.85; }

.nav-mobile-brand,
.nav-mobile-cta,
.nav-mobile-partners {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Sections ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(31, 111, 165, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(31, 111, 165, 0.03) 0%, transparent 60%);
}

.hero-text-parallax {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin-top: 4rem;
    will-change: transform, opacity;
}

/* Hero Pill */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.pill-badge {
    background: var(--accent);
    color: var(--text);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
}

.pill-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #edf1f7;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trustline {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== Hero Fullscreen Video ===== */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

/* Hero Demo Video (replaces dashboard in hero) */
.hero-demo-parallax {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 0 1rem;
    will-change: transform;
}

.hero-demo-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    opacity: 0.8;
}

.hero-demo-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 520px;
}

/* Dashboard relocated below Why Fördelab grid */
.dashboard-section {
    max-width: 1000px;
    margin: 4rem auto 0;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
    z-index: 4;
}

/* ===== Logo Marquee ===== */
.logo-marquee-section {
    padding: 4.5rem 0 2.5rem;
    overflow: hidden;
}

.marquee-header {
    margin-bottom: 2rem;
}

.logo-marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee-track {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    height: 56px;
    padding: 0 1rem;
}

.logo-item img {
    max-height: 40px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.45;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.logo-item:hover img {
    opacity: 0.8;
}

/* SVG logos reveal original color on hover */
.logo-item-svg:hover img {
    filter: none;
    opacity: 1;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== Offer Section ===== */
.offer-section {
    padding-top: 5rem;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.offer-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.offer-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.offer-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.offer-card li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
    padding-left: 1rem;
}

.offer-card li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: 0.58em;
}

/* ===== Updated Partner Showcase ===== */
.partner-showcase {
    padding-top: 6rem;
}

.partner-person-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    max-width: 980px;
    margin: 0 auto 1.5rem;
}

.partner-row-right {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
}

.partner-portrait {
    max-width: 240px;
    justify-self: center;
}

.partner-portrait img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    opacity: 0.92;
}

.partner-header-with-url {
    align-items: flex-start;
}

.partner-url {
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.partner-showcase .partner-card {
    max-width: none;
}

/* ===== Founder Section ===== */
.founders-section {
    background: var(--bg-elevated);
}

.founder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto;
}

.founder-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.founder-media img {
    width: 120px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.founder-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.founder-role {
    font-size: 0.82rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.founder-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.founder-combo {
    text-align: center;
    max-width: 820px;
    margin: 2rem auto 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== Partner Cards ===== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.partner-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    perspective: 800px;
}

.partner-card.partner-jh.reveal.revealed:hover {
    transform: translateY(-6px) rotateX(8deg) rotateY(-6deg);
}

.partner-card.partner-visitfy.reveal.revealed:hover {
    transform: translateY(-6px) rotateX(8deg) rotateY(6deg);
}

.partner-card-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    z-index: 0;
    pointer-events: none;
}

.partner-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.partner-card:hover .partner-card-glow {
    opacity: 1;
}

.partner-card-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* — JH Identity: Dark navy + pink/purple/blue gradient — */
.partner-jh .partner-card-inner {
    background: rgba(11, 15, 26, 0.55);
    border: 1px solid rgba(192, 132, 252, 0.15);
}

.partner-jh .partner-card-glow {
    box-shadow: 0 0 40px rgba(192, 132, 252, 0.25), 0 0 80px rgba(255, 77, 141, 0.15), inset 0 1px 0 rgba(192, 132, 252, 0.2);
}

.partner-card.partner-jh:hover {
    box-shadow: 0 8px 40px rgba(192, 132, 252, 0.3), 0 0 60px rgba(255, 77, 141, 0.15);
}

.partner-icon-jh {
    background: linear-gradient(135deg, #FF4D8D, #C084FC, #6C8CFF);
    color: #fff;
}

.partner-jh .partner-features li::before {
    background: linear-gradient(135deg, #FF4D8D, #C084FC);
}

.partner-link-jh {
    color: #C084FC;
}

.partner-link-jh:hover {
    color: #FF4D8D;
}

/* — Visitfy Identity: Deep black + monochrome, no accent color — */
.partner-visitfy .partner-card-inner {
    background: rgba(5, 5, 5, 0.7);
    border: 1px solid #3A3B42;
}

.partner-visitfy .partner-card-glow {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08), 0 0 80px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.partner-card.partner-visitfy:hover {
    box-shadow: 0 8px 40px rgba(255, 255, 255, 0.12), 0 0 60px rgba(255, 255, 255, 0.06);
}

.partner-icon-visitfy {
    background: #F4F4F4;
    color: #050505;
}

.partner-visitfy .partner-features li::before {
    background: #F4F4F4;
}

.partner-link-visitfy {
    color: #F4F4F4;
}

.partner-link-visitfy:hover {
    color: #A7A7AD;
}

/* — Shared partner card styles — */
.partner-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.partner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.partner-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.partner-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #F4F4F4;
    background: rgba(244, 244, 244, 0.08);
    border: 1px solid rgba(244, 244, 244, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
}

.partner-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.partner-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.partner-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.partner-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.partner-link {
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-rounded { border-radius: 100px; }

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px) scale(1.02);
}

.btn-primary:active { transform: scale(0.98); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-1px) scale(1.02);
}

.btn-outline:active { transform: scale(0.98); }

/* ===== Glassmorphism Dashboard ===== */
.dashboard {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(40px) saturate(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(1.2);
}

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-dots {
    display: flex;
    gap: 5px;
}

.dash-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.dash-title {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    margin-left: 0.5rem;
}

.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-filter {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.dash-export {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 111, 165, 0.15);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.7rem;
}

.dash-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.dash-stat {
    padding: 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.dash-stat-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.dash-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.02em;
}

.dash-stat-change {
    font-size: 0.7rem;
    font-weight: 500;
}

.dash-stat-change.up { color: #4FC3E0; }
.dash-stat-change.down { color: #f87171; }

.dash-chart-card {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.dash-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.dash-chart-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}

.dash-chart-sub {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
}

.dash-chart-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.dot.accent { background: var(--accent); }
.dot.muted { background: rgba(255, 255, 255, 0.2); }
.dot.green { background: rgba(79, 195, 224, 0.6); }
.dot.amber { background: rgba(15, 42, 68, 0.8); }

.dash-chart {
    width: 100%;
    height: auto;
    display: block;
}

/* Chart draw-in animation */
.chart-line,
.chart-baseline {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 3s ease-out;
}

.chart-area {
    opacity: 0;
    transition: opacity 2.5s ease-out 0.8s;
}

.chart-dot {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    transform-box: fill-box;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chart-baseline-fill {
    opacity: 0;
    transition: opacity 2s ease-out 0.5s;
}

/* Activated state */
.dashboard.dash-animated .chart-line,
.dashboard.dash-animated .chart-baseline {
    stroke-dashoffset: 0;
}

.dashboard.dash-animated .chart-area,
.dashboard.dash-animated .chart-baseline-fill {
    opacity: 1;
}

.dashboard.dash-animated .chart-dot:nth-child(6) { opacity: 0.8; transform: scale(1); transition-delay: 0.6s; }
.dashboard.dash-animated .chart-dot:nth-child(7) { opacity: 0.8; transform: scale(1); transition-delay: 1.0s; }
.dashboard.dash-animated .chart-dot:nth-child(8) { opacity: 0.8; transform: scale(1); transition-delay: 1.4s; }
.dashboard.dash-animated .chart-dot:nth-child(9) { opacity: 0.8; transform: scale(1); transition-delay: 1.8s; }
.dashboard.dash-animated .chart-dot:nth-child(10) { opacity: 0.8; transform: scale(1); transition-delay: 2.2s; }
.dashboard.dash-animated .chart-dot:nth-child(11) { opacity: 0.8; transform: scale(1); transition-delay: 2.6s; }
.dashboard.dash-animated .chart-dot:nth-child(12) { opacity: 0.8; transform: scale(1); transition-delay: 3.0s; }

/* Bar fills animate width */
.dash-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: rgba(31, 111, 165, 0.45);
    transition: width 2s ease-out 0.5s;
}

.dashboard:not(.dash-animated) .dash-bar-fill {
    width: 0% !important;
}

.dash-bottom-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.75rem;
}

.dash-pages,
.dash-sources {
    padding: 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.dash-card-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.6rem;
}

.dash-page-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.dash-page-name {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    width: 100px;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.dash-page-views {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    width: 35px;
    text-align: right;
}

.dash-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

.dash-source span:last-child {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Strategy Simulator ===== */

.sim-header {
    margin-bottom: 2rem;
    text-align: center;
}

.sim-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(31, 111, 165, 0.1);
    border: 1px solid rgba(31, 111, 165, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.sim-headline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.sim-subline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.sim-progress-wrap {
    max-width: 480px;
    margin: 0 auto;
}

.sim-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.sim-progress-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sim-progress-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.sim-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
}

.sim-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), #4FC3E0);
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.sim-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4FC3E0;
    box-shadow: 0 0 12px rgba(79, 195, 224, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sim-progress-fill.sim-active::after {
    opacity: 1;
}

/* Two-column simulator layout */
.sim-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: start;
}

/* Dashboard column */
.sim-dashboard-col .dashboard {
    position: sticky;
    top: 100px;
}

/* Actions panel */
.sim-actions-panel {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 26, 0.65);
    backdrop-filter: blur(30px) saturate(1.1);
    -webkit-backdrop-filter: blur(30px) saturate(1.1);
    overflow: hidden;
}

.sim-actions-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sim-actions-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.15rem;
}

.sim-actions-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
}

.sim-actions-list {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Action buttons */
.sim-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: var(--text);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.sim-action::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(31, 111, 165, 0.08), rgba(79, 195, 224, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sim-action:hover:not(.sim-action-done) {
    border-color: rgba(31, 111, 165, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sim-action:hover:not(.sim-action-done)::before {
    opacity: 1;
}

.sim-action:active:not(.sim-action-done) {
    transform: scale(0.99);
}

/* Action icon */
.sim-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(31, 111, 165, 0.1);
    border: 1px solid rgba(31, 111, 165, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.sim-action-done .sim-action-icon {
    background: rgba(79, 195, 224, 0.15);
    border-color: rgba(79, 195, 224, 0.25);
    color: #4FC3E0;
}

/* Action text */
.sim-action-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.sim-action-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.15rem;
    transition: color 0.3s ease;
}

.sim-action-done .sim-action-name {
    color: #4FC3E0;
}

.sim-action-desc {
    display: block;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Points badge */
.sim-action-badge {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.sim-action-points {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(31, 111, 165, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.sim-action-done .sim-action-points {
    color: #4FC3E0;
    background: rgba(79, 195, 224, 0.1);
}

/* Done state - checkmark replaces points */
.sim-action-done .sim-action-points::before {
    content: '✓ ';
}

.sim-action-done {
    border-color: rgba(79, 195, 224, 0.12);
    cursor: default;
    background: rgba(79, 195, 224, 0.03);
}

/* Pulse animation on activation */
@keyframes simPulse {
    0% { box-shadow: 0 0 0 0 rgba(31, 111, 165, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(31, 111, 165, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 111, 165, 0); }
}

.sim-action-activating {
    animation: simPulse 0.6s ease-out;
}

/* KPI highlight flash */
@keyframes simKpiFlash {
    0% { background: rgba(31, 111, 165, 0.15); }
    100% { background: rgba(255, 255, 255, 0.02); }
}

.sim-kpi-highlight {
    animation: simKpiFlash 1.2s ease-out;
}

.sim-kpi-highlight .dash-stat-value {
    color: var(--accent) !important;
    transition: color 1.2s ease;
}

.sim-kpi-highlight .dash-stat-change {
    color: #4FC3E0 !important;
}

/* Final CTA */
.sim-final-cta-wrap {
    padding: 0 0.75rem 0.75rem;
}

.sim-final-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0 0.75rem;
    padding: 0 0.25rem;
}

.sim-final-divider::before,
.sim-final-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.sim-final-divider span {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.sim-final-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(31, 111, 165, 0.3);
    background: linear-gradient(135deg, rgba(31, 111, 165, 0.12), rgba(79, 195, 224, 0.08));
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.sim-final-cta:hover {
    border-color: rgba(31, 111, 165, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(31, 111, 165, 0.15), 0 0 0 1px rgba(31, 111, 165, 0.1);
}

.sim-final-cta:active {
    transform: scale(0.99);
}

.sim-final-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(31, 111, 165, 0.06), transparent 70%);
    pointer-events: none;
}

.sim-final-cta-content {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 1;
}

.sim-final-cta-content svg {
    color: var(--accent);
    flex-shrink: 0;
}

.sim-final-cta-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.sim-final-cta-sub {
    display: block;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.1rem;
}

.sim-final-cta-arrow {
    font-size: 1.1rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.sim-final-cta:hover .sim-final-cta-arrow {
    transform: translateX(3px);
}

/* Premium shimmer on final CTA */
@keyframes simShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.sim-final-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: simShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

/* Final CTA completed state */
.sim-final-cta.sim-cta-done {
    border-color: rgba(79, 195, 224, 0.35);
    background: linear-gradient(135deg, rgba(79, 195, 224, 0.12), rgba(31, 111, 165, 0.08));
    cursor: default;
}

.sim-final-cta.sim-cta-done .sim-final-cta-title {
    color: #4FC3E0;
}

.sim-final-cta.sim-cta-done .sim-final-cta-content svg {
    color: #4FC3E0;
}

.sim-final-cta.sim-cta-done .sim-final-cta-arrow {
    display: none;
}

/* ===== 90/100 Plateau Reveal ===== */
.sim-plateau {
    display: none;
    padding: 0 0.75rem 0.75rem;
    opacity: 0;
    transform: translateY(8px);
}

.sim-plateau.sim-plateau-visible {
    display: block;
    animation: simPlateauIn 0.6s ease-out 0.15s forwards;
}

@keyframes simPlateauIn {
    to { opacity: 1; transform: translateY(0); }
}

.sim-plateau-score {
    text-align: center;
    margin-bottom: 0.6rem;
}

.sim-plateau-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.sim-plateau-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.1rem;
}

.sim-plateau-text {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto 0.9rem;
}

/* Unlock CTA (the "last 10%" button) */
.sim-unlock-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(79, 195, 224, 0.3);
    background: linear-gradient(135deg, rgba(79, 195, 224, 0.1), rgba(31, 111, 165, 0.06));
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.sim-unlock-cta:hover {
    border-color: rgba(79, 195, 224, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(79, 195, 224, 0.12), 0 0 0 1px rgba(79, 195, 224, 0.08);
}

.sim-unlock-cta:active {
    transform: scale(0.99);
}

.sim-unlock-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(79, 195, 224, 0.05), transparent 70%);
    pointer-events: none;
}

.sim-unlock-content {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 1;
}

.sim-unlock-content svg {
    color: #4FC3E0;
    flex-shrink: 0;
}

.sim-unlock-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.sim-unlock-sub {
    display: block;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.1rem;
}

.sim-unlock-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4FC3E0;
    background: rgba(79, 195, 224, 0.1);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Shimmer on unlock CTA */
.sim-unlock-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: simShimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

/* Unlock CTA done state */
.sim-unlock-cta.sim-unlock-done {
    border-color: rgba(79, 195, 224, 0.35);
    background: linear-gradient(135deg, rgba(79, 195, 224, 0.15), rgba(31, 111, 165, 0.08));
    cursor: default;
    pointer-events: none;
}

.sim-unlock-cta.sim-unlock-done .sim-unlock-title {
    color: #4FC3E0;
}

.sim-unlock-cta.sim-unlock-done .sim-unlock-badge {
    display: none;
}

.sim-unlock-cta.sim-unlock-done .sim-unlock-badge::after {
    content: none;
}

@media (max-width: 768px) {
    .sim-unlock-sub { display: none; }
    .sim-plateau-number { font-size: 1.3rem; }
}

/* Reset button */
.sim-reset-wrap {
    text-align: center;
    padding: 0 0.75rem 0.75rem;
}

.sim-reset-btn {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0.3rem 0.6rem;
    transition: color 0.2s ease;
}

.sim-reset-btn:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* Score explosion effect */
@keyframes simScoreGlow {
    0% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 20px rgba(79, 195, 224, 0.6); }
    100% { text-shadow: 0 0 0 transparent; }
}

.sim-score-complete {
    color: #4FC3E0 !important;
    animation: simScoreGlow 1.5s ease-out;
}

/* Bar transition for simulator */
.sim-bar {
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Chart transitions for simulator - d attribute animated via JS */
.sim-chart-dot {
    transition: opacity 0.5s ease,
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dashboard animated state for simulator - override initial hidden */
#simDashboard .chart-line,
#simDashboard .chart-baseline {
    stroke-dashoffset: 0;
    stroke-dasharray: none;
}

#simDashboard .chart-area,
#simDashboard .chart-baseline-fill {
    opacity: 1;
}

#simDashboard .chart-dot {
    opacity: 0.8;
    transform: scale(1);
}

/* #simDashboard bars: .dash-animated is added immediately via JS,
   so .dashboard:not(.dash-animated) rule does not apply */

/* Responsive */
@media (max-width: 1024px) {
    .sim-layout {
        grid-template-columns: 1fr;
    }

    .sim-dashboard-col .dashboard {
        position: static;
    }

    .sim-headline {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .sim-headline {
        font-size: 1.15rem;
    }

    .sim-subline {
        font-size: 0.8rem;
    }

    .sim-action-desc {
        display: none;
    }

    .sim-action {
        padding: 0.65rem 0.75rem;
    }

    .sim-final-cta-sub {
        display: none;
    }
}

/* ===== Mobile Sticky KPI Bar ===== */
.sim-sticky-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 150;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.sim-sticky-bar.sim-sticky-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.sim-sticky-inner {
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.55rem 1rem 0.4rem;
}

.sim-sticky-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    text-align: center;
}

.sim-sticky-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.sim-sticky-label {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sim-sticky-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.sim-sticky-val.sim-sticky-flash {
    color: var(--accent);
}

.sim-sticky-progress {
    height: 3px;
    border-radius: 1.5px;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 0.4rem;
    overflow: hidden;
}

.sim-sticky-progress-fill {
    height: 100%;
    border-radius: 1.5px;
    background: linear-gradient(90deg, var(--accent), #4FC3E0);
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1024px) {
    .sim-sticky-bar {
        display: block;
    }
}

/* ===== Scroll-driven Video Section ===== */
.scroll-video-section {
    position: relative;
    height: 550vh;
    margin-bottom: -80vh;
}

.scroll-video-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.scroll-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: contents;
}

.scroll-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.scroll-slide {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

.scroll-slide h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 700px;
}

.scroll-slide p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

.scroll-slide .section-tag {
    margin-bottom: 1rem;
}

/* Offer Cards inside scroll video */
.scroll-offer-card {
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: left;
    will-change: transform, opacity;
}

.scroll-offer-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(31, 111, 165, 0.12);
    border: 1px solid rgba(31, 111, 165, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.scroll-offer-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.scroll-offer-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    text-align: left;
    max-width: none;
}

.scroll-offer-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.scroll-offer-card li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    position: relative;
    padding-left: 1.1rem;
}

.scroll-offer-card li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: 0.55em;
}

/* Animation helper classes — controlled by JS */
.slide-from-bottom,
.slide-from-left,
.slide-from-right {
    will-change: transform, opacity;
}

/* ===== Mobile CTA Section (replaces scroll video on mobile) ===== */
.mobile-cta-section {
    display: none;
}

@media (max-width: 768px) {
    .scroll-video-section {
        display: none;
    }

    .mobile-cta-section {
        display: block;
        padding: 5rem 0;
        background: var(--bg-elevated);
    }

    .mobile-cta-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    .mobile-cta-content h2 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        font-weight: 600;
        letter-spacing: -0.03em;
        line-height: 1.2;
    }

    .mobile-cta-content p {
        font-size: 0.95rem;
        color: var(--text-secondary);
        line-height: 1.6;
        max-width: 400px;
    }
}

/* ===== Team Section ===== */
.team-section {
    padding-top: 6rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.team-member {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.team-member-reversed {
    grid-template-columns: 1fr 280px;
}

.team-portrait {
    margin: 0;
    position: relative;
}

/* Vertical name text next to portraits */
.team-name-vertical {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    white-space: nowrap;
    background: var(--gradient-highlight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    writing-mode: vertical-rl;
    z-index: 2;
    pointer-events: none;
    opacity: 0.85;
}

/* Jason: left side, rotated 270° (reads bottom-to-top), overlaps 50% onto image */
.team-name-left {
    left: 0;
    transform: translateX(-50%) rotate(180deg);
}

/* Kristian: right side, rotated 90° (reads top-to-bottom), overlaps 50% onto image */
.team-name-right {
    right: 0;
    transform: translateX(50%);
}

.team-portrait img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.team-member .partner-card {
    max-width: none;
    width: 100%;
}

/* Slide-in animations */
.team-portrait-left {
    transform: translateX(-120vw);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-portrait-right {
    transform: translateX(120vw);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-portrait-left.slid-in,
.team-portrait-right.slid-in {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .team-member,
    .team-member-reversed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-portrait {
        max-width: 220px;
        justify-self: center;
    }

    .team-portrait-left,
    .team-portrait-right {
        transform: translateX(0);
    }

    /* Kristian: portrait above card on mobile */
    .team-member-reversed .team-portrait {
        order: -1;
    }

    /* Both names on left side, rotated 270° on mobile */
    .team-name-vertical {
        font-size: 0.85rem;
    }

    .team-name-right {
        right: auto;
        left: 0;
        transform: translateX(-50%) rotate(180deg);
    }
}

/* ===== Scroll CTA Slide ===== */
.scroll-slide-cta {
    justify-content: center;
    align-items: center;
}

.scroll-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 520px;
    text-align: center;
}

.scroll-cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
}

.scroll-cta-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.scroll-cta-phone {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25D366;
}

.scroll-cta-phone.vibrate {
    animation: phone-vibrate 2.5s ease-in-out infinite;
}

@keyframes phone-vibrate {
    0%, 100% { transform: rotate(0deg); }
    5% { transform: rotate(-8deg) scale(1.05); }
    10% { transform: rotate(8deg) scale(1.05); }
    15% { transform: rotate(-6deg); }
    20% { transform: rotate(6deg); }
    25% { transform: rotate(-3deg); }
    30% { transform: rotate(0deg); }
}

.scroll-cta-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    pointer-events: auto;
}

/* ===== Services ===== */
.services {
    position: relative;
    z-index: 3;
    padding: 7rem 0;
    background: var(--bg);
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    transition: border-color 0.3s, transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.service-card-left.reveal.revealed:hover {
    border-color: rgba(31, 111, 165, 0.35);
    transform: translateY(-6px) rotateX(3deg) rotateY(-4deg);
    box-shadow: 0 20px 40px rgba(31, 111, 165, 0.15), 0 0 60px rgba(31, 111, 165, 0.08);
}

.service-card-center.reveal.revealed:hover {
    border-color: rgba(31, 111, 165, 0.35);
    transform: translateY(-6px) rotateX(4deg);
    box-shadow: 0 20px 40px rgba(31, 111, 165, 0.15), 0 0 60px rgba(31, 111, 165, 0.08);
}

.service-card-right.reveal.revealed:hover {
    border-color: rgba(31, 111, 165, 0.35);
    transform: translateY(-6px) rotateX(3deg) rotateY(4deg);
    box-shadow: 0 20px 40px rgba(31, 111, 165, 0.15), 0 0 60px rgba(31, 111, 165, 0.08);
}

.service-card:hover .service-icon svg {
    animation: icon-shimmer 0.8s ease forwards;
    filter: drop-shadow(0 0 6px rgba(31, 111, 165, 0.5));
}

@keyframes icon-shimmer {
    0%   { opacity: 0.7; transform: scale(1); }
    40%  { opacity: 1; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1.05); }
}

.service-card.featured {
    border-color: rgba(31, 111, 165, 0.3);
    background: linear-gradient(180deg, rgba(31, 111, 165, 0.05) 0%, var(--bg-card) 100%);
    animation: accent-pulse 3s ease-in-out infinite;
}

@keyframes accent-pulse {
    0%, 100% { border-color: rgba(31, 111, 165, 0.3); box-shadow: 0 0 0 0 rgba(31, 111, 165, 0); }
    50% { border-color: rgba(31, 111, 165, 0.55); box-shadow: 0 0 25px rgba(31, 111, 165, 0.1); }
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(31, 111, 165, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 111, 165, 0.08);
    border-radius: 14px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(31, 111, 165, 0.15);
}

.service-icon svg {
    transition: filter 0.3s ease, transform 0.3s ease;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ===== Process ===== */
.process {
    position: relative;
    z-index: 3;
    padding: 7rem 0;
    background: var(--bg-elevated);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--accent), var(--accent-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.step-number.shimmer {
    background: linear-gradient(
        105deg,
        var(--accent) 0%,
        var(--accent-muted) 30%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--accent-muted) 70%,
        var(--accent) 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: number-shimmer 4s ease-in-out infinite;
}

@keyframes number-shimmer {
    0%, 100% { background-position: 150% center; }
    50% { background-position: -50% center; }
}

.process-step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Testimonial ===== */
.testimonial {
    position: relative;
    z-index: 3;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.testimonial-inner {
    max-width: 750px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
}

.quote-icon {
    width: 56px;
    height: 40px;
    flex-shrink: 0;
}

.testimonial-text {
    display: flex;
    flex-wrap: wrap;
}

.testimonial-text {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* Word reveal — JS adds spans */
.testimonial-text .word {
    display: inline-block;
    margin-right: 0.3em;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.3s, opacity 0.3s;
}

.testimonial-text .word.lit {
    color: #ffffff;
    opacity: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--text);
    background: linear-gradient(135deg, var(--accent-muted), var(--accent));
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-company-logo {
    height: 40px;
    width: auto;
    margin-left: auto;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.testimonial-company-logo:hover {
    opacity: 1;
}

.author-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
}

.author-role {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.testimonial-result {
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-left: 2px solid var(--accent);
    padding-left: 0.9rem;
}

/* ===== Contact / CTA ===== */
.contact {
    padding: 7rem 0 8rem;
    position: relative;
    z-index: 3;
    background: var(--bg);
}

.contact-logo-reveal {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-logo-reveal .logo-image {
    height: 140px;
    filter: brightness(0) invert(1);
    transition: filter 0.5s ease, transform 0.3s ease;
}

.contact-logo-reveal .logo-image:hover {
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
    transform: scale(1.05);
}

.contact-logo-reveal .nav-logo::before {
    width: 280px;
    height: 140px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-logo-reveal .nav-logo:hover::before {
    opacity: 1;
}

.contact.in-view .contact-logo-reveal {
    opacity: 1;
    transform: scale(1);
}

.contact-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-card h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.contact-card > p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Form */
.contact-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    font-family: var(--font-sans);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 111, 165, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-contact-submit {
    align-self: center;
    margin-top: 0.5rem;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Divider */
.contact-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.contact-divider span {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* WhatsApp Button */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: #fff;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

.btn-whatsapp:active {
    transform: scale(0.98);
}

.contact-note {
    margin-top: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Navbar Contact Mode ===== */
.navbar.contact-mode {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 8rem 0 5rem;
    min-height: 100vh;
}

.legal-content {
    max-width: 720px;
}

.legal-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0.5rem 0 0.25rem;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.legal-content h3 {
    font-size: 1.05rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.legal-content ul li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.35rem;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--text);
}

.legal-content strong {
    color: var(--text);
    font-weight: 600;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 3;
    border-top: 1px solid var(--border);
    padding: 4rem 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-brand { max-width: 320px; }

.footer-partner-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-partner-jh-wrap,
.footer-partner-visitfy-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding: 0.45rem 0.85rem;
}

.footer-ribbon-canvas,
.footer-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-partner-jh,
.footer-partner-visitfy {
    position: relative;
    z-index: 1;
    color: #F4F4F4 !important;
    font-weight: 700 !important;
    font-size: 0.85rem;
    text-decoration: none;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.25), 0 0 40px rgba(255, 255, 255, 0.1);
    animation: navGlowPulse 3s ease-in-out infinite;
    transition: transform 0.25s ease, text-shadow 0.3s ease;
}

.footer-partner-jh::before,
.footer-partner-visitfy::before {
    content: '';
    position: absolute;
    left: -0.3em;
    right: -0.3em;
    top: -0.1em;
    bottom: -0.1em;
    background: rgba(10, 15, 26, 0.35);
    border-radius: 4px;
    filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

.footer-partner-jh-wrap:hover .footer-partner-jh,
.footer-partner-visitfy-wrap:hover .footer-partner-visitfy {
    transform: translateY(-2px);
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.5), 0 0 50px rgba(255, 255, 255, 0.2);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-links-group {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Stagger Entrance Animation ===== */
.stagger {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.6s ease forwards;
}

.stagger[data-delay="0"] { animation-delay: 0s; transform: translateY(10px); }
.stagger[data-delay="1"] { animation-delay: 0.1s; }
.stagger[data-delay="2"] { animation-delay: 0.2s; }
.stagger[data-delay="3"] { animation-delay: 0.3s; }
.stagger[data-delay="4"] { animation-delay: 0.4s; transform: translateY(40px); animation-duration: 0.8s; }
.stagger[data-delay="5"] { animation-delay: 0.5s; transform: translateY(40px); animation-duration: 0.8s; }

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-35px);
}

.reveal-right {
    transform: translateX(35px);
}

.reveal-left.revealed,
.reveal-right.revealed {
    transform: translateX(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .offer-grid {
        grid-template-columns: 1fr;
        max-width: 580px;
        margin: 0 auto;
    }

    .partner-person-row,
    .partner-row-right {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .partner-row-right .partner-portrait {
        order: -1;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Mobile: 1. links, 2. rechts, 3. links */
    .service-card-left.reveal { transform: translateX(-35px); }
    .service-card-center.reveal { transform: translateX(35px); }
    .service-card-right.reveal { transform: translateX(-35px); }
    .service-card-left.reveal.revealed,
    .service-card-center.reveal.revealed,
    .service-card-right.reveal.revealed { transform: translateX(0); }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-bottom-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }

    .logo-image { height: 92px; }
    .navbar.scrolled .logo-image { height: 58px; }

    .nav-logo::before {
        width: 150px;
        height: 78px;
    }

    /* Mobile nav panel */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-elevated);
        flex-direction: column;
        padding: 5rem 2rem 2.5rem;
        gap: 0;
        border-left: 1px solid var(--border);
        z-index: 200;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Staggered link animation */
    .nav-links li {
        opacity: 0;
        transform: translateX(24px);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    .nav-links.active li:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.06s; }
    .nav-links.active li:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.10s; }
    .nav-links.active li:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.15s; }
    .nav-links.active li:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.20s; }
    .nav-links.active li:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 0.25s; }
    .nav-links.active li:nth-child(6) { opacity: 1; transform: translateX(0); transition-delay: 0.30s; }
    .nav-links.active li:nth-child(7) { opacity: 1; transform: translateX(0); transition-delay: 0.35s; }
    .nav-links.active li:nth-child(8) { opacity: 1; transform: translateX(0); transition-delay: 0.40s; }
    .nav-links.active li:nth-child(9) { opacity: 1; transform: translateX(0); transition-delay: 0.45s; }

    .nav-links a {
        font-size: 1.05rem;
        display: block;
        padding: 0.7rem 0;
        transition: opacity 0.2s ease, transform 0.15s ease;
    }

    .nav-links a:active {
        transform: scale(0.97);
        opacity: 0.7;
    }

    .nav-desktop-only { display: none; }

    /* Mobile branding inside menu */
    .nav-mobile-brand {
        display: block;
        padding-bottom: 1.2rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-mobile-tagline {
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    /* Mobile CTA inside menu */
    .nav-mobile-cta {
        display: block;
        margin-top: auto;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border);
    }

    .nav-mobile-cta-btn {
        display: block !important;
        text-align: center;
        padding: 0.85rem 1.5rem !important;
        background: var(--gradient-highlight);
        color: var(--bg) !important;
        font-weight: 600;
        font-size: 0.9rem !important;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
    }

    .nav-mobile-cta-btn::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(79, 195, 224, 0.2);
        pointer-events: none;
    }

    .nav-mobile-cta-btn:active {
        transform: scale(0.97) !important;
    }

    /* Partner links in mobile menu */
    .nav-mobile-partners {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid var(--border);
    }

    .nav-partner-link {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.03em;
        padding: 0.5rem 0 !important;
        transition: transform 0.25s ease, opacity 0.2s ease, text-shadow 0.3s ease !important;
    }

    .nav-partner-link:active {
        transform: scale(0.97) !important;
        opacity: 0.7;
    }

    /* Hover: lift + faster glow */
    .nav-partner-jh-wrap:hover .nav-partner-jh,
    .nav-partner-visitfy-wrap:hover .nav-partner-visitfy {
        transform: translateY(-2px);
        animation-duration: 1s;
        text-shadow: 0 0 24px rgba(255, 255, 255, 0.5), 0 0 50px rgba(255, 255, 255, 0.2);
    }

    /* JasonHolweg.de — wrap with ribbon canvas */
    .nav-partner-jh-wrap {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        padding: 0.5rem 0.75rem;
        margin: 0 -0.75rem;
    }

    .nav-ribbon-canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
    }

    /* Soft text backdrop for readability over canvas */
    .nav-partner-jh::before,
    .nav-partner-visitfy::before {
        content: '';
        position: absolute;
        left: -0.3em;
        right: -0.3em;
        top: -0.1em;
        bottom: -0.1em;
        background: rgba(10, 15, 26, 0.35);
        border-radius: 4px;
        filter: blur(8px);
        z-index: -1;
        pointer-events: none;
    }

    /* JasonHolweg.de — animated gradient text */
    .nav-partner-jh {
        position: relative;
        z-index: 1;
        padding: 0 !important;
        color: #F4F4F4 !important;
        text-shadow: 0 0 16px rgba(255, 255, 255, 0.25), 0 0 40px rgba(255, 255, 255, 0.1);
        animation: navGlowPulse 3s ease-in-out infinite;
    }

    /* Visitfy.de — white text with particle canvas behind */
    .nav-partner-visitfy-wrap {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        padding: 0.5rem 0.75rem;
        margin: 0 -0.75rem;
    }

    .nav-particle-canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
    }

    .nav-partner-visitfy {
        position: relative;
        z-index: 1;
        color: #F4F4F4 !important;
        text-shadow: 0 0 16px rgba(255, 255, 255, 0.25), 0 0 40px rgba(255, 255, 255, 0.1);
        animation: navGlowPulse 3s ease-in-out infinite;
        padding: 0 !important;
    }

    @keyframes navGlowPulse {
        0%, 100% { text-shadow: 0 0 16px rgba(255, 255, 255, 0.25), 0 0 40px rgba(255, 255, 255, 0.1); }
        50% { text-shadow: 0 0 24px rgba(255, 255, 255, 0.4), 0 0 60px rgba(255, 255, 255, 0.15); }
    }

    /* Backdrop */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(10, 15, 26, 0.6);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .hero { padding: 5rem 1.5rem 0; }
    .hero-text-parallax { margin-top: 3rem; }
    .hero h1 { font-size: 2.5rem; }

    .logo-marquee-track {
        animation-duration: 26s;
    }

    .logo-item {
        min-width: 142px;
        height: 50px;
    }

    .partner-portrait {
        max-width: 180px;
    }

    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-media img {
        margin: 0 auto;
    }

    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-bottom-row { grid-template-columns: 1fr; }
    .dash-page-name { width: 80px; }

    .section-container { padding: 0 1.5rem; }

    .process-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-card { padding: 3rem 1.5rem; }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-links-group {
        gap: 2.5rem;
        flex-wrap: wrap;
    }
}
