/* ========================================
   ECOSYSTEM - Clean White Premium Theme
   Inspired by melyyn.framer.website
   ======================================== */

/* === Variables === */
:root {
    --bg: #ffffff;
    --bg-alt: #f8f8f8;
    --bg-card: #ffffff;
    --text: #0a0a0a;
    --text-2: #444444;
    --text-3: #888888;
    --accent: #0a0a0a;
    --border: #e8e8e8;
    --border-hover: #d0d0d0;
    --radius: 14px;
    --radius-lg: 20px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'Space Grotesk', monospace;
}

/* === Dark theme === */
html[data-theme="dark"] {
    --bg: #1a1a1a;
    --bg-alt: #2b2b2b;
    --bg-card: #2b2b2b;
    --text: #f4f4f4;
    --text-2: #b5b5b5;
    --text-3: #828282;
    --accent: #f4f4f4;
    --border: #393939;
    --border-hover: #4d4d4d;
    color-scheme: dark;
}

/* Surface overrides for hardcoded light colors */
html[data-theme="dark"] .nav::before {
    background: rgba(26, 26, 26, 0.82);
}

html[data-theme="dark"] .support-form { background: var(--bg-card); }

/* One unified black: banded sections go seamless; their cards stay lifted */
html[data-theme="dark"] .offer-section,
html[data-theme="dark"] .steps-section,
html[data-theme="dark"] .resources-section {
    background: linear-gradient(180deg,
        var(--bg) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        var(--bg) 100%);
}

html[data-theme="dark"] .step,
html[data-theme="dark"] .resource-card { background: var(--bg-card); }

/* Keep pastel accent tiles readable - force dark icons on them */
html[data-theme="dark"] .offer-card-icon,
html[data-theme="dark"] .mega-icon,
html[data-theme="dark"] .method-icon { color: #0a0a0a; }

/* Invert the wordmark on dark (used by the footer logo) */
html[data-theme="dark"] .nav-logo-img { filter: invert(1) brightness(1.08); }

/* Nav logo: show the light mark normally, swap to the real light-on-dark icon
   in dark theme (no invert filter needed for the purpose-built asset). */
.nav-logo-img--dark { display: none; }
html[data-theme="dark"] .nav-logo-img--light { display: none; }
html[data-theme="dark"] .nav-logo-img--dark { display: block; filter: none; }

/* Custom cursor stays visible on dark */
html[data-theme="dark"] .cursor-outline { border-color: rgba(255, 255, 255, 0.22); }
html[data-theme="dark"] body.cursor-hover .cursor-dot { background: rgba(255, 255, 255, 0.12); }

/* === Theme toggle button (floating, bottom-right corner) === */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    color: var(--text);
    cursor: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: saturate(180%) blur(8px);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    background: var(--bg-alt);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.96);
}

@media (max-width: 600px) {
    .theme-toggle {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

html[data-theme="dark"] .theme-toggle { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
html[data-theme="dark"] .theme-toggle:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
html[data-theme="dark"] .theme-icon-sun { display: block; }
html[data-theme="dark"] .theme-icon-moon { display: none; }

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ccc var(--bg);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
}

/* === Custom Cursor === */
.cursor { pointer-events: none; position: fixed; z-index: 99999; }

.cursor-dot {
    width: 8px; height: 8px;
    background: var(--text);
    border-radius: 50%;
    position: fixed;
    top: -4px; left: -4px;
    transition: transform 0.15s var(--ease), background 0.2s;
    z-index: 99999;
}

.cursor-outline {
    width: 36px; height: 36px;
    border: 1.5px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    position: fixed;
    top: -18px; left: -18px;
    transition: transform 0.3s var(--ease), opacity 0.3s, border-color 0.3s;
    z-index: 99998;
}

body.cursor-hover .cursor-dot { transform: scale(4); background: rgba(0,0,0,0.08); }
body.cursor-hover .cursor-outline { transform: scale(1.6); opacity: 0; }
body.cursor-text .cursor-outline { transform: scaleX(0.15) scaleY(1.5); border-radius: 1px; border-color: var(--text); }

/* === Loader === */
.loader {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; }

.loader-word {
    font-family: var(--font);
    font-size: 56px;
    font-style: normal;
    letter-spacing: -1px;
    margin-bottom: 32px;
    color: var(--text);
}

.loader-word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s var(--ease) forwards;
}

.loader-word span:nth-child(1) { animation-delay: 0.05s; }
.loader-word span:nth-child(2) { animation-delay: 0.1s; }
.loader-word span:nth-child(3) { animation-delay: 0.15s; }
.loader-word span:nth-child(4) { animation-delay: 0.2s; }
.loader-word span:nth-child(5) { animation-delay: 0.25s; }
.loader-word span:nth-child(6) { animation-delay: 0.3s; }
.loader-word span:nth-child(7) { animation-delay: 0.35s; }
.loader-word span:nth-child(8) { animation-delay: 0.4s; }
.loader-word span:nth-child(9) { animation-delay: 0.45s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.loader-bar {
    width: 160px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: width 0.08s linear;
}

/* === Navigation === */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: padding 0.25s var(--ease);
}

/* Frosted background painted on a ::before layer behind the nav content
   (kept off .nav itself so .nav never becomes a backdrop root). Invisible at
   the top of the page (transparent nav); on scroll it fades in as a full-width
   frosted-glass bar with a hairline bottom edge. */
.nav::before {
    content: '';
    position: absolute; inset: 0;
    z-index: -1;
    opacity: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 1px 0 var(--border);
    transform: translateZ(0);
    transition: opacity 0.3s var(--ease);
}

html[data-theme="dark"] .nav::before {
    background: rgba(22, 22, 22, 0.7);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav.scrolled { padding: 12px 0; }
.nav.scrolled::before { opacity: 1; }

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-weight: 600; font-size: 17px;
    letter-spacing: -0.3px;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.footer-brand .nav-logo-img {
    height: 26px;
}

.nav-links { display: flex; align-items: center; gap: 36px; }

.nav-link {
    font-size: 14px; font-weight: 450;
    color: var(--text-2);
    transition: color 0.25s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: var(--text);
    transition: width 0.3s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

/* === Mega Menu === */
.nav-item-mega { position: relative; }

.nav-link-mega {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font);
    font-size: 14px; font-weight: 450;
    color: var(--text-2);
    background: none; border: none;
    cursor: none; padding: 0;
}

.nav-link-mega::after { display: none; }

.nav-chevron { transition: transform 0.3s var(--ease); margin-top: 1px; }

.nav-item-mega:hover .nav-link-mega,
.nav-item-mega.open .nav-link-mega { color: var(--text); }

.nav-item-mega:hover .nav-chevron,
.nav-item-mega.open .nav-chevron { transform: rotate(180deg); }

.mega-panel {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    padding-top: 16px;              /* invisible bridge keeps hover alive across the gap */
    width: 780px; max-width: 92vw;
    opacity: 0; visibility: hidden; pointer-events: none;
    /* Pure opacity crossfade — the panel doesn't move, so the backdrop blur
       isn't re-rasterized every frame and the glass fades in smoothly. */
    transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
}

.nav-item-mega:hover .mega-panel,
.nav-item-mega.open .mega-panel {
    opacity: 1; visibility: visible; pointer-events: auto;
}

.mega-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    background: #ffffff;
    /* Fixed width so the panel never resizes when hovering between products
       (content length varies but the box stays put). Excludes the list variant. */
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px -24px rgba(0,0,0,0.22);
    padding: 16px;
}

html[data-theme="dark"] .mega-inner {
    background: #1a1a1a;
}

/* Compact list dropdown (Resources) */
.mega-panel.narrow { width: 380px; }

.mega-inner.is-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.mega-card {
    display: flex; gap: 13px; align-items: flex-start;
    padding: 13px;
    border-radius: var(--radius);
    transition: background 0.25s var(--ease);
}

.mega-card:hover { background: var(--bg-alt); }

.mega-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    flex-shrink: 0;
}

.mega-text strong {
    display: block;
    font-size: 14px; font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.mega-text span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 12.5px; line-height: 1.5;
    color: var(--text-3);
}

/* Lock the Products mega panel width so it doesn't jump between products. */
.mega-inner:not(.is-list) {
    width: 760px;
}

.mega-feature {
    display: flex; flex-direction: column;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 18px;
    /* Allow the column to shrink so the nowrap title ellipsizes instead of
       widening the panel. */
    min-width: 0;
}

.mega-feature-media {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg);
}

.mega-feature-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.mega-feature-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-3);
}

.mega-feature h4 {
    font-size: 16px; font-weight: 600;
    color: var(--text);
    margin: 12px 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-feature p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 13px; line-height: 1.6;
    color: var(--text-2);
    flex: 1;
}

.mega-feature-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 550;
    color: var(--text);
    margin-top: 16px;
}

.mega-feature:hover .mega-feature-link { gap: 9px; }
.mega-feature-link svg { transition: transform 0.3s var(--ease); }
.mega-feature:hover .mega-feature-link svg { transform: translate(2px, -2px); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 550;
    color: #fff;
    background: #3e3e41;
    padding: 10px 22px;
    border-radius: 100px;
    transition: all 0.3s var(--ease);
    height:38px;
}

.nav-cta:hover { background: #4a4a4e; transform: translateY(-1px); }

.nav-menu-btn {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none;
    cursor: none; padding: 8px;
}

.nav-menu-btn span {
    display: block; width: 22px; height: 1.5px;
    background: var(--text);
    transition: all 0.3s var(--ease);
}

.nav-menu-btn.active span:first-child { transform: rotate(45deg) translate(2.5px, 2.5px); }
.nav-menu-btn.active span:last-child { transform: rotate(-45deg) translate(2.5px, -2.5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px);
    z-index: 999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s var(--ease);
}

.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu-links { display: flex; flex-direction: column; gap: 16px; text-align: center; }

.mobile-link {
    font-family: var(--font);
    font-size: 44px; font-style: normal;
    color: var(--text);
    opacity: 0; transform: translateY(30px);
    transition: all 0.5s var(--ease);
}

.mobile-menu.active .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.24s; }

/* === Hero === */
.hero {
    padding: 160px 0 80px;
    position: relative;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.hero-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 500;
    color: var(--text-2);
}

.hero-categories {
    display: flex; gap: 8px;
}

.hero-categories span {
    font-size: 12px; font-weight: 500;
    color: var(--text-3);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s;
}

.hero-categories span:hover {
    border-color: var(--text);
    color: var(--text);
}

.hero-title {
    font-family: var(--font);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -2.5px;
    margin-bottom: 48px;
    max-width: 850px;
}

.hero-title-highlight {
    position: relative;
    display: inline-block;
}

.hero-title-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0;
    width: 100%; height: 8px;
    background: #e0e7ff;
    border-radius: 4px;
    z-index: -1;
}

.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-2);
    max-width: 420px;
}

.hero-actions {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
}

/* === Buttons === */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font);
    font-size: 14px; font-weight: 550;
    color: #fff;
    background: #3e3e41;
    height: 42px;
    padding: 0 28px;
    box-sizing: border-box;
    border-radius: 100px;
    border: none; cursor: none;
    transition: all 0.3s var(--ease);
}

.btn-primary:hover { background: #4a4a4e; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.btn-ghost {
    display: inline-flex; align-items: center;
    font-size: 14px; font-weight: 550;
    color: var(--text);
    height: 42px;
    padding: 0 28px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}

.btn-ghost:hover { border-color: var(--text); background: var(--bg-alt); }

.btn-dark {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font);
    font-size: 14px; font-weight: 550;
    color: #fff;
    background: #3e3e41;
    height: 42px;
    padding: 0 36px;
    box-sizing: border-box;
    border-radius: 100px;
    border: none; cursor: none;
    transition: all 0.3s var(--ease);
}

.btn-dark:hover { background: #4a4a4e; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

/* Dark theme: the dark-grey fill blends into the near-black page, so flip the
   primary buttons to a light fill (#d0d0cd) with dark text for contrast. */
html[data-theme="dark"] .nav-cta,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-dark {
    background: #ffffff;
    color: #0a0a0a;
}
html[data-theme="dark"] .nav-cta:hover,
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-dark:hover {
    background: #e8e8e8;
}

.btn-full { width: 100%; justify-content: center; }

/* === Trusted === */
.trusted-section {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.trusted-bar {
    display: flex;
    align-items: center;
    gap: 32px;
}

.trusted-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-3);
    white-space: nowrap;
}

.trusted-logos {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
}

.trusted-logos .sep {
    width: 4px; height: 4px;
    background: var(--border);
    border-radius: 50%;
    flex-shrink: 0;
}

/* === Section Shared === */
.section-top {
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-3);
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

/* === Work Section === */
.work-section {
    padding: 100px 0;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

/* Case Cards */
.case-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.5s var(--ease);
}

.case-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.case-image {
    height: 300px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}

.case-mockup {
    width: 75%; max-width: 340px;
    transition: transform 0.5s var(--ease);
}

.case-card:hover .case-mockup { transform: translateY(-8px); }

.mockup-browser {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.browser-dots {
    display: flex; gap: 5px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.browser-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
}

.browser-content { padding: 14px; }

.mock-nav {
    height: 6px; width: 100%;
    background: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 12px;
}

.mock-hero-block {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 14px;
}

.mock-title {
    height: 10px; width: 65%;
    background: #e5e5e5;
    border-radius: 5px;
}

.mock-subtitle {
    height: 6px; width: 45%;
    background: #f0f0f0;
    border-radius: 3px;
}

.mock-btn {
    height: 12px; width: 28%;
    background: #0a0a0a;
    border-radius: 6px;
    margin-top: 4px;
}

.mock-cards-row {
    display: flex; gap: 6px;
}

.mock-card {
    flex: 1;
    height: 36px;
    background: #f5f5f5;
    border-radius: 6px;
}

.mock-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}

.mock-img {
    height: 48px;
    background: #f0f0f0;
    border-radius: 6px;
}

.case-info {
    padding: 28px 28px 32px;
}

.case-tags {
    display: flex; gap: 6px;
    margin-bottom: 14px;
}

.case-tags span {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-3);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
}

.case-info h3 {
    font-size: 20px; font-weight: 650;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.case-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-2);
    margin-bottom: 20px;
}

.case-metrics {
    display: flex; gap: 32px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.metric strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.metric span {
    font-size: 12px;
    color: var(--text-3);
}

.case-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    color: var(--text);
    transition: gap 0.3s var(--ease);
}

.case-link:hover { gap: 14px; }

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    transition: all 0.4s var(--ease);
}

.portfolio-item:hover { transform: translateY(-4px); }

.portfolio-thumb {
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    background: #1a1a2e;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.05);
}

.portfolio-thumb-inner {
    width: 60%;
    transition: transform 0.5s var(--ease);
}

.portfolio-item:hover .portfolio-thumb-inner { transform: scale(1.05) translateY(-4px); }

.mini-mock {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex; flex-direction: column; gap: 6px;
}

.mm-bar { height: 4px; background: #eee; border-radius: 2px; }
.mm-block { height: 20px; background: #f0f0f0; border-radius: 4px; }
.mm-block-sm { height: 12px; background: #f5f5f5; border-radius: 3px; }
.mm-hero { height: 16px; background: #e8e8e8; border-radius: 4px; }

.mm-cols { display: flex; gap: 4px; }
.mm-cols span { flex: 1; height: 16px; background: #f0f0f0; border-radius: 3px; }

.mm-features { display: flex; gap: 4px; }
.mm-features span { flex: 1; height: 12px; background: #f3f3f3; border-radius: 3px; }

.portfolio-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.portfolio-meta h4 {
    font-size: 16px; font-weight: 600;
    letter-spacing: -0.3px;
}

.portfolio-tag {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-3);
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
}

.portfolio-item p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-2);
}

/* === Offer Scroll Slides Section === */
/* === What I Offer === */
.offer-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.offer-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--text);
    margin-bottom: 24px;
}

.offer-card-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.offer-card h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.offer-card p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-2);
    margin-bottom: 28px;
}

.offer-card-stats {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.offer-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.offer-stat span {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
}

/* === About Section === */
.about-section { padding: 100px 0; }

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-2);
    margin-bottom: 16px;
}

.process-list { display: flex; flex-direction: column; }

.process-item {
    display: flex; gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.process-item:first-child { border-top: 1px solid var(--border); }
.process-item:hover { padding-left: 8px; }

.process-num {
    font-family: var(--font);
    font-size: 36px;
    font-style: normal;
    color: var(--text-3);
    line-height: 1;
    min-width: 48px;
}

.process-item h4 {
    font-size: 17px; font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.process-item p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.5;
}

/* === Testimonials === */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    padding: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.tc-stars {
    display: flex; gap: 2px;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: 24px;
}

.tc-author {
    display: flex; align-items: center; gap: 12px;
}

.tc-avatar {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--text);
    color: white;
    border-radius: 50%;
    font-size: 13px; font-weight: 700;
}

.tc-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.testimonial-card:hover .tc-avatar-img {
    transform: scale(1.08);
    border-color: var(--text);
}

.tc-author strong {
    display: block;
    font-size: 14px; font-weight: 600;
}

.tc-author span {
    font-size: 12px;
    color: var(--text-3);
}

/* === Support === */
.support-section { padding: 100px 0; }

.support-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.support-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-2);
    margin-bottom: 32px;
}

.contact-cards { display: flex; flex-direction: column; gap: 12px; }

.contact-card {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.contact-card svg { flex-shrink: 0; color: var(--text-2); }

.contact-card strong {
    display: block;
    font-size: 14px; font-weight: 600;
    margin-bottom: 1px;
}

.contact-card span {
    font-size: 13px;
    color: var(--text-3);
}

/* Form */
.support-form {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: all 0.25s var(--ease);
    cursor: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--text);
    background: white;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* === CTA === */
.cta-section { padding: 60px 0 100px; }

.cta-box {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cta-box h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 600;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 16px;
    color: var(--text-2);
    max-width: 540px;
    margin: 0 auto 32px;
}

.cta-divider {
    display: flex; align-items: center; gap: 16px;
    max-width: 340px;
    margin: 48px auto 24px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-3);
}

.cta-divider::before,
.cta-divider::after {
    content: '';
    flex: 1; height: 1px;
    background: var(--border);
}

.cta-channels {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 10px;
}

.cta-channel {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13.5px; font-weight: 500;
    color: var(--text-2);
    transition: all 0.3s var(--ease);
}

.cta-channel svg { color: var(--text); flex-shrink: 0; }

.cta-channel:hover {
    border-color: var(--border-hover);
    color: var(--text);
    transform: translateY(-2px);
}

.cta-actions {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 14px;
}

/* In the bottom CTA the ghost button sits beside .btn-dark (padding 16px 36px,
   no border). Match its outer box here, less 1px each side for the ghost's
   border, so the two buttons are the same size. Heroes use .flagship-actions
   and keep the smaller 14px/28px pair. */
.cta-actions .btn-ghost { padding: 15px 35px; }

/* === Product detail hero === */
.product-hero {
    padding: 140px 0 80px;
    background-color: #f5f5f5;
    background-image: url('/product_page_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

html[data-theme="dark"] .product-hero {
    background-color: #0a0a0a;
    background-image: url('/hero_section_darkmode.png');
}

.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 36px;
}

.breadcrumb a { color: var(--text-3); transition: color 0.25s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* === Flagship === */
.flagship-section { padding: 100px 0; }

.flagship-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 72px;
    align-items: center;
}

.flagship-lead {
    font-size: 16px; line-height: 1.8;
    color: var(--text-2);
    margin: 22px 0 28px;
}

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }

.feature-list li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 15px; line-height: 1.6;
    color: var(--text-2);
}

.feature-list li strong { color: var(--text); font-weight: 600; }

.feature-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text);
    background: var(--bg-alt);
    border-radius: 50%;
    padding: 3px;
    width: 22px; height: 22px;
}

.flagship-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.flagship-visual {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
}

/* === Plugin suite === */
.plugin-grid { grid-template-columns: repeat(3, 1fr); }

.offer-card { position: relative; }

.plugin-badge {
    position: absolute;
    top: 28px; right: 28px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 5px 11px;
    border-radius: 100px;
}

.badge-free { background: #3e3e41; color: #ffffff; }
.badge-pro { background: var(--text); color: var(--bg); }
.badge-neutral { background: var(--bg-alt); color: var(--text-2); border: 1px solid var(--border); }

.plugin-grid .offer-card h3 { font-size: 22px; margin-bottom: 10px; }
.plugin-grid .offer-card p { font-size: 14px; line-height: 1.7; margin-bottom: 22px; }
.plugin-grid .offer-card-icon { width: 56px; height: 56px; margin-bottom: 22px; }

/* === How it works === */
.steps-section { padding: 100px 0; background: var(--bg-alt); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.step-num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px; font-weight: 600;
    color: var(--text-3);
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 14.5px; line-height: 1.7; color: var(--text-2); }

/* === Pricing === */
.pricing-section { padding: 100px 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-grid.duo {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin: 0 auto;
}

.price-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.price-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }

.price-card.featured {
    border-color: var(--text);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.price-tag {
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--bg); background: var(--text);
    padding: 5px 14px; border-radius: 100px;
}

.price-head h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.price-head p { font-size: 13.5px; line-height: 1.5; color: var(--text-3); min-height: 40px; }

.price-amount {
    display: flex; align-items: baseline; gap: 6px;
    margin: 20px 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.price-amount strong { font-size: 40px; font-weight: 700; letter-spacing: -1.5px; }
.price-amount span { font-size: 14px; color: var(--text-3); }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex: 1; }

.price-features li {
    position: relative;
    padding-left: 26px;
    font-size: 14px; line-height: 1.5;
    color: var(--text-2);
}

.price-features li::before {
    content: '';
    position: absolute; left: 0; top: 6px;
    width: 14px; height: 8px;
    border-left: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: rotate(-45deg);
}

.pricing-note {
    text-align: center;
    font-size: 13px; color: var(--text-3);
    margin-top: 28px;
}

/* === Resources (docs + blog) === */
.resources-section {
    padding: 100px 0;
    /* Fades to the page colour at the top/bottom edges so the section merges
       seamlessly with the ones above and below (no divider line); the subtle
       neutral-grey middle gives the frosted-glass cards something to refract. */
    background: linear-gradient(180deg,
        var(--bg) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        var(--bg) 100%);
}

/* The Resources section surfaces recent posts using the blog masonry grid
   (.blog-grid / .blog-card from blog.css, which is loaded on this page). The
   frosted-glass card styling now lives in blog.css, shared with the blog
   listing page; this section only sets its own faded backdrop (above). */

.templates-cta { text-align: center; margin-top: 48px; }

/* === FAQ (homepage accordion) === */
.faq-home-section { padding: 20px 0 100px; }

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.faq-q {
    border-bottom: 1px solid var(--border);
}

.faq-q summary {
    list-style: none;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 4px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--text);
    transition: color 0.25s var(--ease);
}

.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary:hover { color: var(--text-2); }

.faq-q-icon {
    flex-shrink: 0;
    color: var(--text-3);
    transition: transform 0.35s var(--ease);
}

.faq-q[open] .faq-q-icon { transform: rotate(180deg); }

.faq-q p {
    padding: 0 4px 26px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-2);
    max-width: 660px;
}

/* Coming soon panel */
.coming-soon {
    text-align: center;
    background: var(--bg-alt);
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 76px 32px;
}

.coming-soon-badge {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-2);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 100px;
    margin-bottom: 22px;
}

.coming-soon p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-2);
    max-width: 520px;
    margin: 0 auto 28px;
}

/* === Footer === */
.footer {
    padding: 60px 0 0;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-3);
    margin-top: 14px;
    max-width: 300px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h5 {
    font-size: 13px; font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-3);
    padding: 5px 0;
    transition: all 0.25s;
}

.footer-col a:hover { color: var(--text); transform: translateX(3px); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-3);
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-3); transition: color 0.25s; }
.footer-bottom-links a:hover { color: var(--text); }

/* === Reveal === */
.reveal-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Progressive enhancement: with JS off, never hide content behind the scroll
   reveal, and never leave the full-screen loader covering the page (only JS
   can dismiss it). The .js class is set on <html> before paint, so JS users
   never see these fallbacks. */
html:not(.js) .reveal-up { opacity: 1; transform: none; }
html:not(.js) .footer-v2__wordmark { opacity: 1; transform: none; }
html:not(.js) .loader { display: none; }

/* Loader is a first-impression intro: show it once per browsing session, then
   skip it on every subsequent page navigation (flag set before paint). */
html.preloaded .loader { display: none; }

/* === Responsive === */
@media (max-width: 1024px) {
    .work-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .offer-grid { grid-template-columns: 1fr; }
    .plugin-grid { grid-template-columns: repeat(2, 1fr); }
    .about-layout, .support-layout { grid-template-columns: 1fr; gap: 48px; }
    .flagship-layout { grid-template-columns: 1fr; gap: 48px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-right { display: none; }
    .nav-menu-btn { display: flex; }

    .hero { padding: 130px 0 60px; }
    .hero-top { flex-direction: column; align-items: flex-start; gap: 16px; }
    .hero-categories { display: none; }
    .hero-title { font-size: 36px; letter-spacing: -1.5px; }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-ghost, .btn-dark { width: 100%; justify-content: center; }

    .trusted-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .trusted-logos { flex-wrap: wrap; gap: 16px; font-size: 13px; }

    .portfolio-grid { grid-template-columns: 1fr 1fr; }

    .product-row-left { gap: 16px; }
    .product-row h3 { font-size: 17px; }
    .product-row p { display: none; }

    .form-row { grid-template-columns: 1fr; }
    .support-form { padding: 28px; }

    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .plugin-grid, .steps-grid, .pricing-grid, .pricing-grid.duo, .resources-grid { grid-template-columns: 1fr; }
    .flagship-visual { padding: 24px; }
    .flagship-actions, .cta-actions { flex-direction: column; width: 100%; }
    .price-card.featured { order: -1; }

    .cursor { display: none !important; }
    body, a, button, input, select, textarea { cursor: auto; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-title { font-size: 30px; letter-spacing: -1px; }
    .section-heading { font-size: 28px; letter-spacing: -1px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .case-image { height: 220px; }
}
