/* ------------------------------------------------------------------
   Typography — Plus Jakarta Sans is loaded from Google Fonts
   (weights 300-800) via <link> in the document <head>.
------------------------------------------------------------------ */

:root {
    /* Colors */
    --bg-dark: #0A0A0A;
    --bg-navy: #212529;
    --bg-card: #343A40;
    
    --accent-dark: #2563EB;
    --accent-main: #3B82F6;
    --accent-light: #60A5FA;
    --accent-magenta: #93C5FD;
    
    --highlight: #E9ECEF;
    --text-main: #F8F9FA;
    --text-muted: #ADB5BD;
    
    /* Typography */
    --font-main: "Plus Jakarta Sans", sans-serif;

    /* Sizes & Line Heights */
    --fs-display-1: 120px;   --lh-display-1: 128px;
    --fs-display-2: 80px;    --lh-display-2: 88px;
    --fs-heading-1: 56px;    --lh-heading-1: 72px;
    --fs-heading-2: 40px;    --lh-heading-2: 48px;
    --fs-heading-3: 32px;    --lh-heading-3: 40px;
    --fs-heading-4: 24px;    --lh-heading-4: 32px;
    --fs-text-xl: 20px;      --lh-text-xl: 28px;
    --fs-text-lg: 16px;      --lh-text-lg: 24px;
    --fs-text-md: 14px;      --lh-text-md: 20px;
    --fs-text-xs: 12px;      --lh-text-xs: 18px;

    /* Letter Spacings */
    --ls-tight: -0.02em;     /* For Display 1 down to Heading 3 (-2%) */
    --ls-normal: 0em;        /* For Heading 4 (0%) */

    /* Font Weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Legacy aliases so existing components pick up the design-system font */
    --font-primary: var(--font-main);
    --font-display: var(--font-main);
    
    /* Spacing & Layout */
    --container-max: 1200px;
    --section-pad: clamp(4rem, 8vw, 8rem);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;

    /* Smooth font rendering across platforms */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* ------------------------------------------------------------------
   NEUE MONTREAL TYPOGRAPHY SYSTEM
   Semantic type-scale utilities. Each tier bundles font-size + line-height.
   Large tiers (display-1 → heading-3) carry the -2% tight tracking.
------------------------------------------------------------------ */
.display-1 { font-size: var(--fs-display-1); line-height: var(--lh-display-1); letter-spacing: var(--ls-tight); }
.display-2 { font-size: var(--fs-display-2); line-height: var(--lh-display-2); letter-spacing: var(--ls-tight); }
.heading-1 { font-size: var(--fs-heading-1); line-height: var(--lh-heading-1); letter-spacing: var(--ls-tight); }
.heading-2 { font-size: var(--fs-heading-2); line-height: var(--lh-heading-2); letter-spacing: var(--ls-tight); }
.heading-3 { font-size: var(--fs-heading-3); line-height: var(--lh-heading-3); letter-spacing: var(--ls-tight); }
.heading-4 { font-size: var(--fs-heading-4); line-height: var(--lh-heading-4); letter-spacing: var(--ls-normal); }
.text-xl   { font-size: var(--fs-text-xl); line-height: var(--lh-text-xl); }
.text-lg   { font-size: var(--fs-text-lg); line-height: var(--lh-text-lg); }
.text-md   { font-size: var(--fs-text-md); line-height: var(--lh-text-md); }
.text-xs   { font-size: var(--fs-text-xs); line-height: var(--lh-text-xs); }

/* Font weight helpers */
.font-regular  { font-weight: var(--fw-regular); }
.font-medium   { font-weight: var(--fw-medium); }
.font-semibold { font-weight: var(--fw-semibold); }
.font-bold     { font-weight: var(--fw-bold); }

/* ------------------------------------------------------------------
   RESPONSIVE HOOK
   Wrap large type in <div class="type-scale"> to make it scale fluidly
   with its container via container queries. The @media fallback below
   guarantees graceful scaling on small viewports even without the
   wrapper (it takes precedence over container scaling on tiny screens).
------------------------------------------------------------------ */
.type-scale {
    container-type: inline-size;
    container-name: type-scale;
}

@container type-scale (max-width: 720px) {
    .display-1 { font-size: clamp(56px, 22cqw, var(--fs-display-1)); line-height: clamp(64px, 24cqw, var(--lh-display-1)); }
    .display-2 { font-size: clamp(48px, 18cqw, var(--fs-display-2)); line-height: clamp(56px, 20cqw, var(--lh-display-2)); }
    .heading-1 { font-size: clamp(40px, 12cqw, var(--fs-heading-1)); line-height: clamp(48px, 14cqw, var(--lh-heading-1)); }
    .heading-2 { font-size: clamp(32px, 10cqw, var(--fs-heading-2)); line-height: clamp(40px, 12cqw, var(--lh-heading-2)); }
    .heading-3 { font-size: clamp(28px, 8cqw, var(--fs-heading-3));  line-height: clamp(36px, 10cqw, var(--lh-heading-3)); }
}

@media (max-width: 480px) {
    .display-1 { font-size: clamp(44px, 15vw, 96px); line-height: clamp(52px, 16vw, 104px); letter-spacing: var(--ls-tight); }
    .display-2 { font-size: clamp(40px, 13vw, 80px); line-height: clamp(48px, 14vw, 88px);  letter-spacing: var(--ls-tight); }
    .heading-1 { font-size: clamp(36px, 11vw, 56px); line-height: clamp(44px, 13vw, 72px);  letter-spacing: var(--ls-tight); }
    .heading-2 { font-size: clamp(30px, 9vw, 40px);  line-height: clamp(36px, 11vw, 48px);  letter-spacing: var(--ls-tight); }
    .heading-3 { font-size: clamp(26px, 8vw, 32px);  line-height: clamp(32px, 9vw, 40px);   letter-spacing: var(--ls-tight); }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -0.03em;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
}

.section-description {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-magenta) 50%, var(--accent-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shimmer 6s ease-in-out infinite;
}

@keyframes gradient-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-main), var(--accent-dark));
    color: var(--text-main);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--accent-light), var(--accent-main));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-nav {
    background: rgba(59, 130, 246, 0.1);
    color: var(--highlight);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}
.btn-nav:hover {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(33, 37, 41, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--accent-light);
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    padding: 3px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 4px 14px rgba(59, 130, 246, 0.35));
}

.brand-sub {
    display: block;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    margin-top: 2px;
}

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

.nav-links-left {
    justify-content: flex-start;
}

.nav-links-right {
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 9, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg, .cinematic-bg, .final-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-bg {
    transform: scale(1.05); /* slightly scaled for parallax start */
}

.hero-overlay, .cinematic-overlay, .final-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%),
                linear-gradient(to bottom, rgba(5, 5, 9, 0.4) 0%, var(--bg-dark) 100%);
    z-index: 1;
}

/* Ambient hero effects — glow blobs + subtle grid (matches footer aesthetic) */
.hero-ambient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.hero-blob-1 {
    width: 480px;
    height: 480px;
    top: -10%;
    left: -8%;
    background: radial-gradient(circle at 35% 35%, rgba(59, 130, 246, 0.5), rgba(37, 99, 235, 0.08));
    animation: hero-float 14s ease-in-out infinite;
}

.hero-blob-2 {
    width: 420px;
    height: 420px;
    bottom: -12%;
    right: -6%;
    background: radial-gradient(circle at 60% 40%, rgba(96, 165, 250, 0.35), rgba(147, 197, 253, 0.06));
    animation: hero-float 18s ease-in-out infinite reverse;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(248, 249, 250, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(248, 249, 250, 0.04) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 25%, transparent 75%);
}

@keyframes hero-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -25px) scale(1.08); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent-light);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    background: rgba(59, 130, 246, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    display: inline-block;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin: 1.5rem auto 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.hero-search-tip {
    margin: -1.25rem 0 1.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.hero-search-tip kbd {
    display: inline-grid;
    place-items: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.3rem;
    margin-right: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-light);
}

.hero-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.hero-chip i {
    color: var(--accent-light);
    font-size: 0.82rem;
}

.hero-chip:hover {
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

.trust-statement {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Scroll-down indicator */
.hero-scroll {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-light);
    font-size: 0.9rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.hero-scroll:hover {
    border-color: rgba(59, 130, 246, 0.5);
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
}

.hero-scroll i {
    animation: hero-bounce 2s ease-in-out infinite;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}

/* Discovery Section */
.discovery {
    padding: var(--section-pad) 0 4rem;
    background: var(--bg-dark);
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-main);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Navbar search button (opens the global search modal) */
.nav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
}
.nav-search-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--accent-light);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Hero live search bar (homepage) */
.hero-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    text-align: left;
}
.hero-search > .fa-magnifying-glass {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.05rem;
    z-index: 2;
    pointer-events: none;
}
.hero-search-input {
    width: 100%;
    padding: 1.1rem 3.25rem 1.1rem 3.25rem;
    border-radius: 100px;
    background: rgba(33, 37, 41, 0.45);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: var(--transition-fast);
}
.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.hero-search-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(33, 37, 41, 0.6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.hero-search-clear {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.hero-search-clear.show {
    display: inline-flex;
}
.hero-search-clear:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

/* Live-search dropdown (hero + discovery) */
.search-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: rgba(18, 20, 24, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 24px rgba(59, 130, 246, 0.1);
    overflow: hidden;
    z-index: 50;
    display: none;
}
.search-dropdown.open {
    display: block;
}
.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background var(--transition-fast);
}
.search-dropdown-item:last-child {
    border-bottom: none;
}
.search-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.12);
}
.sd-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-light);
    font-size: 0.95rem;
}
.sd-meta {
    min-width: 0;
    line-height: 1.3;
}
.sd-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.sd-cat {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sd-kw {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-light);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}
.sd-kw i {
    margin-right: 0.25rem;
    font-size: 0.65rem;
}
.search-dropdown-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Global search modal (DESIGN.md §9 Search Modal) */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1.5rem 2rem;
}
.search-modal.open {
    display: flex;
}
.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.search-modal-panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: rgba(18, 20, 24, 0.92);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.75rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.12);
    overflow: hidden;
}
.search-modal-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.search-modal-input-wrap > .fa-magnifying-glass {
    color: var(--accent-light);
    font-size: 1.1rem;
}
.search-modal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-family: var(--font-primary);
}
.search-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.search-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}
.search-modal-close:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.3);
}
.search-modal-results {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.75rem;
}
.search-modal-hint {
    padding: 0.85rem 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.04em;
}
.search-modal-hint kbd {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 2px 6px;
    font-family: var(--font-primary);
    font-size: 0.7rem;
}

.discovery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.filter-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--highlight);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Category Grid */
.categories {
    padding: 0 0 var(--section-pad);
    background: var(--bg-dark);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: linear-gradient(180deg, rgba(52, 58, 64, 0.55), rgba(33, 37, 41, 0.42));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 2rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}

.category-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.category-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.tool-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.category-arrow {
    color: var(--accent-light);
    transition: var(--transition-fast);
}

.category-card:hover .category-arrow {
    transform: translateX(4px);
}

/* Skeleton loading — placeholder category cards shown while the catalog grid renders */
.skel {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    flex-shrink: 0;
}

.skel::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: skel-sweep 1.5s ease-in-out infinite;
}

.skel-cat-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(52, 58, 64, 0.55), rgba(33, 37, 41, 0.42));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: skel-pulse 1.6s ease-in-out infinite;
}

.skel-cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

.skel-line {
    height: 14px;
    border-radius: 8px;
}

.skel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.skel-chip {
    width: 80px;
    height: 16px;
    border-radius: 99px;
}

.skel-square {
    width: 18px;
    height: 18px;
    border-radius: 6px;
}

.skel-w-40 { width: 40%; }
.skel-w-60 { width: 60%; }
.skel-w-70 { width: 70%; }
.skel-w-80 { width: 80%; }
.skel-w-90 { width: 90%; }
.skel-w-100 { width: 100%; }

@keyframes skel-sweep {
    100% { transform: translateX(100%); }
}

@keyframes skel-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
    .skel-cat-card { animation: none; }
    .skel::after { animation: none; }
}

/* Featured Tools */
.featured-tools {
    padding: var(--section-pad) 0;
    background: var(--bg-navy);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: linear-gradient(180deg, rgba(52, 58, 64, 0.55), rgba(33, 37, 41, 0.42));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.tool-icon {
    font-size: 1.5rem;
    color: var(--text-main);
}

.badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--highlight);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-weight: 600;
}

.tool-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.tool-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.tool-link:hover {
    color: var(--highlight);
    gap: 0.75rem;
}

.tool-link-disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.tool-link-disabled:hover {
    color: #6c757d;
    gap: 0.5rem;
}

/* Features */
.features {
    padding: var(--section-pad) 0;
    background: var(--bg-dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(52, 58, 64, 0.55), rgba(33, 37, 41, 0.42));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-magenta);
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Cinematic Section */
.cinematic {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
}

.cinematic-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cinematic-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
}

.cinematic-desc {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto 3rem;
}

/* How It Works */
.how-it-works {
    padding: var(--section-pad) 0;
    background: var(--bg-navy);
}

.how-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.how-head .section-title {
    margin-bottom: 0;
}

.how-head .section-description {
    margin-top: 1.25rem;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 4rem;
    position: relative;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(52, 58, 64, 0.55), rgba(33, 37, 41, 0.42));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2.25rem 1.5rem 2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: var(--transition-smooth);
}

.timeline-step:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
}

.step-badge {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.35rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    color: var(--accent-light);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 30px rgba(59, 130, 246, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.timeline-step:hover .step-badge {
    transform: scale(1.08) rotate(-4deg);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 45px rgba(59, 130, 246, 0.35);
}

.step-index {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 250px;
    margin: 0 auto;
}

.timeline-connector {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    margin-top: 1.25rem;
    position: relative;
    overflow: visible;
}

.timeline-connector::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-main);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
    transform: translateY(-50%);
    animation: connector-dot 3s ease-in-out infinite;
}

@keyframes connector-dot {
    0%   { left: 0; opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { left: calc(100% - 8px); opacity: 0; }
}

/* Stats */
.stats {
    padding: 4rem 0;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--highlight);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Final CTA */
.final-cta {
    position: relative;
    padding: var(--section-pad) 0;
    text-align: center;
    overflow: hidden;
}

.final-cta-overlay {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, var(--bg-dark) 70%);
}

.final-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.final-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
}

.final-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

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

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

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

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
    }
    .nav-actions {
        gap: 1rem;
    }
    .btn-nav {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links, .btn-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-container {
        grid-template-columns: 1fr auto 1fr;
        gap: 0.5rem;
    }
    .brand-text {
        font-size: 1.1rem;
    }
    
    .hero-ctas, .final-buttons {
        flex-direction: column;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .hero-bg {
        background-attachment: scroll;
    }
    
    .timeline {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .timeline-connector {
        width: 1px;
        height: 50px;
        margin: 0;
        background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    }

    .timeline-connector::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Media preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
