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

:root {
    --bg: #000000;
    --bg-elevated: #0d0d0d;
    --bg-card: #0a0a0a;
    --text: #ffffff;
    --text-secondary: #a6a6a6;
    --text-muted: #666666;
    --accent: #4f9cf7;
    --accent-muted: #2d6bc4;
    --border: #333333;
    --border-light: #2a2a2a;
    --radius: 12px;
    --radius-lg: 20px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
}

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-serif);
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

/* ===== 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(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    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: 76px;
    filter: brightness(0) saturate(100%) invert(97%) sepia(4%) saturate(331%) hue-rotate(178deg) brightness(114%) contrast(100%);
}

.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-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(79, 156, 247, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(79, 156, 247, 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;
}

.partner-card:hover {
    transform: translateY(-6px);
}

.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: #0B0F1A;
    border: 1px solid rgba(192, 132, 252, 0.15);
}

.partner-jh .partner-card-glow {
    box-shadow: 0 0 60px rgba(124, 92, 255, 0.2), inset 0 1px 0 rgba(192, 132, 252, 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: #050505;
    border: 1px solid #3A3B42;
}

.partner-visitfy .partner-card-glow {
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.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, 10, 10, 0.75);
    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(79, 156, 247, 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: #34d399; }
.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(52, 211, 153, 0.6); }
.dot.amber { background: rgba(251, 191, 36, 0.6); }

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

.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-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: rgba(79, 156, 247, 0.45);
}

.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);
}

/* ===== 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(79, 156, 247, 0.12);
    border: 1px solid rgba(79, 156, 247, 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;
}

.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);
    }
}

/* ===== 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);
}

.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.3s;
}

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

.service-card.featured {
    border-color: rgba(79, 156, 247, 0.3);
    background: linear-gradient(180deg, rgba(79, 156, 247, 0.05) 0%, var(--bg-card) 100%);
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(79, 156, 247, 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(79, 156, 247, 0.08);
    border-radius: 14px;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.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;
}

.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));
}

.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(79, 156, 247, 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-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;
    }

    .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;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-elevated);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        z-index: 200;
    }

    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.1rem; }

    .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;
    }
}
