/* ============================================
   NEUROPLASTIC LABS — Website Stylesheet
   Color Scheme (from logo):
     Blue:   #5B86E5
     Purple: #9B59B6
     Orange: #D4915A (warm copper)
   ============================================ */

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

:root {
    --blue: #5B86E5;
    --purple: #9B59B6;
    --orange: #D4915A;
    --blue-light: #7BA3F0;
    --purple-light: #B87FD0;
    --orange-light: #E8B07A;
    --bg-dark: #0a0a12;
    --bg-section: #0e0e18;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, var(--blue), var(--purple));
    --gradient-warm: linear-gradient(135deg, var(--purple), var(--orange));
    --gradient-full: linear-gradient(135deg, var(--blue), var(--purple), var(--orange));
    --gradient-subtle: linear-gradient(135deg, rgba(91, 134, 229, 0.15), rgba(155, 89, 182, 0.15));
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
    background: rgba(8, 8, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.nav__logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__links.is-desktop {
    display: flex;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav__link:hover {
    color: var(--text-primary);
}

.nav__cta {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 100px;
    background: var(--gradient-main);
    color: white;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav__cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.nav__hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: white;
    border-radius: 1px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.2s ease;
    will-change: transform, opacity;
}

.nav__hamburger span:nth-child(1) { margin-bottom: 6px; }
.nav__hamburger span:nth-child(2) { margin-bottom: 6px; }

.nav__hamburger.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav__hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__hamburger.is-open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu — GPU-accelerated slide */
.nav__mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(10, 10, 18, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.nav__mobile.is-open {
    pointer-events: auto;
    transform: translateX(0);
}

/* Backdrop blur applied only AFTER open (avoids transition jank) */
.nav__mobile.is-open {
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.nav__mobile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 0 24px;
}

/* Staggered link entrance */
.nav__mobile-link,
.nav__mobile-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease,
                color 0.3s ease,
                -webkit-text-fill-color 0.3s ease;
}

.nav__mobile.is-open .nav__mobile-link,
.nav__mobile.is-open .nav__mobile-cta {
    opacity: 1;
    transform: translateY(0);
}

.nav__mobile.is-open .nav__mobile-link:nth-child(1) { transition-delay: 0.08s; }
.nav__mobile.is-open .nav__mobile-link:nth-child(2) { transition-delay: 0.13s; }
.nav__mobile.is-open .nav__mobile-link:nth-child(3) { transition-delay: 0.18s; }
.nav__mobile.is-open .nav__mobile-link:nth-child(4) { transition-delay: 0.23s; }
.nav__mobile.is-open .nav__mobile-link:nth-child(5) { transition-delay: 0.28s; }
.nav__mobile.is-open .nav__mobile-cta { transition-delay: 0.35s; }

/* Reset delays on close for a clean exit */
.nav__mobile:not(.is-open) .nav__mobile-link,
.nav__mobile:not(.is-open) .nav__mobile-cta {
    transition-delay: 0s;
    transition-duration: 0.15s;
}

.nav__mobile-link {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav__mobile-link:hover,
.nav__mobile-link:active {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__mobile-cta {
    font-size: 18px;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 100px;
    background: var(--gradient-main);
    color: white;
    margin-top: 12px;
}

/* Body scroll lock class */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    touch-action: none;
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0.12;
}

.hero__bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 40%, rgba(91, 134, 229, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 40%, rgba(155, 89, 182, 0.28) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 85%, rgba(212, 145, 90, 0.18) 0%, transparent 40%);
    animation: heroPulse 12s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-3%, 2%) scale(1.05); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, var(--bg-dark) 80%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

/* Hero Logo */
.hero__logo {
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpIn 1s ease forwards 0.1s;
}

.hero__logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(91, 134, 229, 0.3),
                0 0 120px rgba(155, 89, 182, 0.15),
                0 0 30px rgba(212, 145, 90, 0.1);
    animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        box-shadow: 0 0 60px rgba(91, 134, 229, 0.3),
                    0 0 120px rgba(155, 89, 182, 0.15),
                    0 0 30px rgba(212, 145, 90, 0.1);
    }
    100% {
        box-shadow: 0 0 80px rgba(155, 89, 182, 0.35),
                    0 0 140px rgba(91, 134, 229, 0.2),
                    0 0 40px rgba(212, 145, 90, 0.15);
    }
}

.hero__title {
    font-size: clamp(32px, 5.5vw, 82px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 24px;
    white-space: nowrap;
    background: linear-gradient(135deg, #ffffff 0%, rgba(91, 134, 229, 0.95) 40%, rgba(155, 89, 182, 0.95) 70%, rgba(212, 145, 90, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUpIn 1s ease forwards 0.4s;
}

.hero__subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpIn 1s ease forwards 0.7s;
}

.hero__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpIn 1s ease forwards 1s;
}

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

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    animation: fadeUpIn 1s ease forwards 1.2s;
}

.hero__scroll-indicator span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--purple), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--gradient-full);
    color: white;
    box-shadow: 0 8px 30px rgba(91, 134, 229, 0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(155, 89, 182, 0.35);
}

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

.btn--outline:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn--large {
    padding: 18px 48px;
    font-size: 17px;
}

/* --- Marquee --- */
.marquee {
    padding: 20px 0;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-section);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.marquee:active {
    cursor: grabbing;
}

.marquee__track {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
    color: var(--text-secondary);
}

.marquee.is-dragging .marquee__track {
    animation: none;
}

.marquee__track span {
    flex-shrink: 0;
}

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

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.section__label {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.section__heading {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 60px;
    max-width: 700px;
}

/* --- Mission --- */
.mission {
    background: var(--bg-section);
    border-top: 1px solid var(--glass-border);
}

.mission__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission__text {
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* --- Origins --- */
.origins {
    position: relative;
}

.origins::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.origins__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.origins__block-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.origins__block-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.origins__block-text:last-child {
    margin-bottom: 0;
}

/* --- Story --- */
.story {
    background: var(--bg-section);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.story__text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 20px;
}

.story__text:last-child {
    margin-bottom: 0;
}

/* --- Team --- */
.team__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.team__card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.team__card:hover {
    transform: translateY(-4px);
    border-color: rgba(155, 89, 182, 0.3);
}

.team__card-image {
    margin-bottom: 24px;
}

.team__card-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-subtle);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-secondary);
}

.team__card-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team__card-role {
    font-size: 14px;
    font-weight: 500;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.team__card-bio {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.team__card-socials {
    display: flex;
    gap: 12px;
}

.team__social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.team__social:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
}

/* --- Products --- */
.products {
    background: var(--bg-section);
    border-top: 1px solid var(--glass-border);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.products__card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px;
    transition: transform 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.products__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.products__card:hover {
    transform: translateY(-4px);
    border-color: rgba(155, 89, 182, 0.3);
}

.products__card:hover::before {
    opacity: 1;
}

.products__card-icon {
    margin-bottom: 28px;
}

.products__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.products__card-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.products__card-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.products__card-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
}

.products__card-status--live {
    background: rgba(91, 134, 229, 0.12);
    color: var(--blue-light);
    border: 1px solid rgba(91, 134, 229, 0.25);
}

.products__card-status--dev {
    background: rgba(212, 145, 90, 0.12);
    color: var(--orange-light);
    border: 1px solid rgba(212, 145, 90, 0.25);
}

/* --- Featured Product (Voice Air 2.0) --- */
.featured-product {
    position: relative;
    margin-bottom: 60px;
    border-radius: 28px;
    overflow: hidden;
}

.featured-product__glow {
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: var(--gradient-full);
    opacity: 0.6;
    z-index: 0;
    animation: featuredGlow 6s ease-in-out infinite alternate;
}

@keyframes featuredGlow {
    0% { opacity: 0.4; filter: blur(0px); }
    50% { opacity: 0.7; filter: blur(2px); }
    100% { opacity: 0.5; filter: blur(0px); }
}

.featured-product__inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(165deg, rgba(14, 14, 24, 0.97) 0%, rgba(10, 10, 18, 0.99) 100%);
    border-radius: 28px;
    padding: 56px;
}

.featured-product__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 100px;
    background: var(--gradient-full);
    color: white;
    margin-bottom: 40px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(91, 134, 229, 0.3); }
    50% { box-shadow: 0 0 30px rgba(155, 89, 182, 0.5); }
}

.featured-product__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.featured-product__icon {
    margin-bottom: 24px;
}

.featured-product__title {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 20%, var(--blue-light) 50%, var(--purple-light) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-product__subtitle {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.featured-product__headline {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-style: italic;
}

.featured-product__desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.featured-product__desc:last-child {
    margin-bottom: 0;
}

.featured-product__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.featured-product__feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.featured-product__feature-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.featured-product__feature strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.featured-product__feature span {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.featured-product__cta-block {
    text-align: left;
}

.featured-product__cta {
    width: 100%;
    text-align: center;
    font-size: 17px;
    padding: 18px 40px;
    box-shadow: 0 12px 40px rgba(91, 134, 229, 0.3), 0 4px 15px rgba(155, 89, 182, 0.2);
    transition: all 0.4s ease;
}

.featured-product__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(91, 134, 229, 0.4), 0 8px 25px rgba(155, 89, 182, 0.3);
}

.featured-product__cta-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* --- Grant Portal Promo --- */
.grant-portal-promo {
    position: relative;
}

.grant-promo {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
}

.grant-promo__glow {
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: var(--gradient-full);
    opacity: 0.5;
    z-index: 0;
    animation: featuredGlow 6s ease-in-out infinite alternate;
}

.grant-promo__inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(165deg, rgba(14, 14, 24, 0.97) 0%, rgba(10, 10, 18, 0.99) 100%);
    border-radius: 28px;
    padding: 56px;
}

.grant-promo__layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.grant-promo__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 100px;
    background: var(--gradient-full);
    color: white;
    margin-bottom: 24px;
}

.grant-promo__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 20%, var(--blue-light) 50%, var(--purple-light) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grant-promo__desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.grant-promo__features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.grant-promo__feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.grant-promo__feature svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.grant-promo__feature span {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.grant-promo__feature strong {
    color: var(--text-primary);
}

.grant-promo__cta {
    display: inline-flex;
}

.grant-promo__visual {
    display: flex;
    justify-content: center;
}

.grant-promo__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 320px;
}

.grant-promo__stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.grant-promo__stat-card:hover {
    border-color: rgba(91, 134, 229, 0.3);
    transform: translateY(-2px);
}

.grant-promo__stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.grant-promo__stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .grant-promo__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .grant-promo__inner {
        padding: 40px;
    }
}

@media (max-width: 767px) {
    .grant-promo__inner {
        padding: 32px 24px;
    }

    .grant-promo__stats {
        max-width: 100%;
    }

    .grant-promo__stat-card {
        padding: 20px 16px;
    }

    .grant-promo__stat-num {
        font-size: 26px;
    }

    .grant-promo__cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .grant-promo {
        border-radius: 18px;
    }

    .grant-promo__glow {
        border-radius: 20px;
    }

    .grant-promo__inner {
        border-radius: 18px;
        padding: 24px 20px;
    }

    .grant-promo__title {
        font-size: 26px;
    }
}

/* --- CTA / Contact --- */
.cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__heading {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.cta__text {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 40px;
    background: var(--bg-dark);
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.footer__logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.footer__links {
    display: flex;
    gap: 28px;
}

.footer__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--text-primary);
}

.footer__socials {
    display: flex;
    gap: 16px;
}

.footer__socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer__socials a:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 16px;
}

.footer__bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer__legal a:hover {
    color: var(--text-secondary);
}

/* --- Scroll Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
    filter: blur(4px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ============================================
   RESPONSIVE — Apple-caliber mobile refinement
   Rhythm: generous whitespace, precise type scale,
   optical weight balancing, clear visual hierarchy.
   Only mobile-facing changes below.
   ============================================ */

/* ---------- Tablet (991px) ---------- */
@media (max-width: 991px) {
    .nav__links.is-desktop {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .origins__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team__grid {
        grid-template-columns: 1fr;
    }

    .products__grid {
        grid-template-columns: 1fr;
    }

    .featured-product__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-product__inner {
        padding: 40px;
    }
}

/* ---------- Mobile landscape / large phone (767px) ---------- */
@media (max-width: 767px) {

    /* --- Global rhythm --- */
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 72px 0;
    }

    /* Soft gradient divider between every section */
    .section + .section::before,
    .products + .cta::before {
        content: '';
        display: block;
        width: 40px;
        height: 1px;
        background: var(--gradient-main);
        margin: 0 auto;
        opacity: 0.35;
    }

    /* --- Navigation --- */
    .nav__inner {
        height: 64px;
    }

    .nav__logo-img {
        width: 32px;
        height: 32px;
    }

    .nav__logo-text {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .nav__mobile-link {
        font-size: 26px;
        font-weight: 500;
        letter-spacing: -0.3px;
    }

    .nav__mobile-cta {
        font-size: 16px;
        padding: 14px 36px;
    }

    /* --- Hero --- */
    .hero {
        min-height: 100svh; /* safe viewport height for mobile browsers */
        padding: 0 20px;
    }

    .hero__logo {
        margin-bottom: 24px;
    }

    .hero__logo-img {
        width: 88px;
        height: 88px;
    }

    .hero__title {
        font-size: 38px;
        letter-spacing: -1.2px;
        line-height: 1.02;
        margin-bottom: 16px;
        white-space: normal;
    }

    .hero__subtitle {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.65;
        margin-bottom: 32px;
        color: rgba(255, 255, 255, 0.6);
    }

    .hero__ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 15px 28px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 14px;
        letter-spacing: 0.2px;
    }

    .btn--large {
        padding: 17px 32px;
        font-size: 16px;
    }

    .btn--primary {
        box-shadow: 0 6px 24px rgba(91, 134, 229, 0.2);
    }

    .hero__scroll-indicator {
        bottom: 28px;
    }

    .hero__scroll-indicator span {
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .hero__scroll-line {
        height: 28px;
    }

    /* --- Marquee --- */
    .marquee {
        padding: 14px 0;
    }

    .marquee__track {
        font-size: 11px;
        letter-spacing: 3px;
        gap: 28px;
    }

    /* --- Section Labels & Headings --- */
    .section__label {
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 3px;
        margin-bottom: 12px;
    }

    .section__heading {
        font-size: 28px;
        font-weight: 700;
        letter-spacing: -0.8px;
        line-height: 1.18;
        margin-bottom: 36px;
    }

    /* --- Mission --- */
    .mission {
        padding: 64px 0;
    }

    .mission__text {
        font-size: 21px;
        font-weight: 400;
        line-height: 1.55;
        letter-spacing: -0.2px;
    }

    /* --- Origins --- */
    .origins__grid {
        gap: 32px;
    }

    .origins__block-title {
        font-size: 19px;
        font-weight: 700;
        letter-spacing: -0.3px;
        margin-bottom: 14px;
    }

    .origins__block-text {
        font-size: 15px;
        line-height: 1.75;
    }

    /* --- Story / Vision --- */
    .story__text {
        font-size: 16px;
        line-height: 1.75;
    }

    /* --- Team --- */
    .team__grid {
        gap: 20px;
    }

    .team__card {
        padding: 28px 24px;
        border-radius: 18px;
    }

    .team__card-photo {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        object-fit: cover;
    }

    .team__card-name {
        font-size: 19px;
        font-weight: 700;
        letter-spacing: -0.3px;
    }

    .team__card-role {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .team__card-bio {
        font-size: 14px;
        line-height: 1.65;
    }

    .team__social {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }

    /* --- Products --- */
    .products__grid {
        gap: 20px;
    }

    .products__card {
        padding: 28px 24px;
        border-radius: 18px;
    }

    .products__card-icon svg {
        width: 48px;
        height: 48px;
    }

    .products__card-title {
        font-size: 20px;
        letter-spacing: -0.3px;
    }

    .products__card-subtitle {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .products__card-desc {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .products__card-status {
        font-size: 11px;
        padding: 5px 14px;
    }

    /* --- Featured Product (Voice Air 2.0) --- */
    .featured-product {
        margin-bottom: 32px;
        border-radius: 22px;
    }

    .featured-product__glow {
        border-radius: 24px;
    }

    .featured-product__inner {
        border-radius: 22px;
        padding: 32px 24px;
    }

    .featured-product__badge {
        font-size: 10px;
        letter-spacing: 1.5px;
        padding: 5px 14px;
        margin-bottom: 28px;
    }

    .featured-product__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .featured-product__icon svg {
        width: 56px;
        height: 56px;
    }

    .featured-product__title {
        font-size: 32px;
        letter-spacing: -1px;
        margin-bottom: 6px;
    }

    .featured-product__subtitle {
        font-size: 12px;
        letter-spacing: 2.5px;
        margin-bottom: 20px;
    }

    .featured-product__headline {
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .featured-product__headline br {
        display: none;
    }

    .featured-product__desc {
        font-size: 14px;
        line-height: 1.75;
    }

    .featured-product__features {
        gap: 20px;
        margin-bottom: 32px;
    }

    .featured-product__feature {
        gap: 14px;
    }

    .featured-product__feature strong {
        font-size: 14px;
    }

    .featured-product__feature span {
        font-size: 13px;
        line-height: 1.55;
    }

    .featured-product__cta {
        font-size: 16px;
        padding: 17px 32px;
        border-radius: 14px;
    }

    .featured-product__cta-note {
        font-size: 12px;
        margin-top: 10px;
    }

    /* --- CTA / Contact --- */
    .cta__heading {
        font-size: 26px;
        letter-spacing: -0.8px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .cta__text {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 32px;
    }

    /* --- Footer --- */
    .footer {
        padding: 48px 0 32px;
    }

    .footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        margin-bottom: 28px;
    }

    .footer__logo {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .footer__logo-img {
        width: 28px;
        height: 28px;
    }

    .footer__links {
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .footer__links a {
        font-size: 13px;
    }

    .footer__socials {
        gap: 12px;
    }

    .footer__socials a {
        width: 38px;
        height: 38px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 20px;
    }

    .footer__bottom p {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer__legal {
        gap: 20px;
    }

    .footer__legal a {
        font-size: 12px;
    }

    /* --- Scroll Animations — tighter on mobile --- */
    [data-animate] {
        transform: translateY(24px);
        filter: blur(2px);
    }
}

/* ---------- Small phone (479px) ---------- */
@media (max-width: 479px) {

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    /* --- Hero --- */
    .hero__logo-img {
        width: 72px;
        height: 72px;
    }

    .hero__title {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .hero__subtitle {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 28px;
    }

    .hero__ctas {
        max-width: 280px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 14px;
        border-radius: 12px;
    }

    .btn--large {
        padding: 16px 28px;
        font-size: 15px;
    }

    /* --- Marquee --- */
    .marquee__track {
        font-size: 10px;
        letter-spacing: 2.5px;
        gap: 24px;
    }

    /* --- Section Labels & Headings --- */
    .section__label {
        font-size: 12px;
        letter-spacing: 2.5px;
        margin-bottom: 10px;
    }

    .section__heading {
        font-size: 24px;
        letter-spacing: -0.6px;
        margin-bottom: 28px;
    }

    /* --- Mission --- */
    .mission {
        padding: 48px 0;
    }

    .mission__text {
        font-size: 18px;
        line-height: 1.5;
    }

    /* --- Origins --- */
    .origins__block-title {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .origins__block-text {
        font-size: 14px;
        line-height: 1.7;
    }

    /* --- Story --- */
    .story__text {
        font-size: 15px;
        line-height: 1.7;
    }

    /* --- Team --- */
    .team__card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .team__card-photo {
        width: 56px;
        height: 56px;
    }

    .team__card-name {
        font-size: 17px;
    }

    .team__card-role {
        font-size: 12px;
    }

    .team__card-bio {
        font-size: 13px;
        line-height: 1.6;
    }

    /* --- Products --- */
    .products__card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .products__card-icon svg {
        width: 44px;
        height: 44px;
    }

    .products__card-title {
        font-size: 18px;
    }

    .products__card-desc {
        font-size: 13px;
        line-height: 1.65;
    }

    /* --- Featured Product --- */
    .featured-product {
        border-radius: 18px;
        margin-bottom: 24px;
    }

    .featured-product__glow {
        border-radius: 20px;
    }

    .featured-product__inner {
        border-radius: 18px;
        padding: 24px 20px;
    }

    .featured-product__badge {
        margin-bottom: 20px;
    }

    .featured-product__icon svg {
        width: 48px;
        height: 48px;
    }

    .featured-product__title {
        font-size: 27px;
        letter-spacing: -0.8px;
    }

    .featured-product__subtitle {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }

    .featured-product__headline {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .featured-product__desc {
        font-size: 13px;
        line-height: 1.7;
    }

    .featured-product__features {
        gap: 16px;
        margin-bottom: 28px;
    }

    .featured-product__feature strong {
        font-size: 13px;
    }

    .featured-product__feature span {
        font-size: 12px;
    }

    .featured-product__cta {
        font-size: 15px;
        padding: 16px 28px;
        border-radius: 12px;
    }

    /* --- CTA --- */
    .cta__heading {
        font-size: 22px;
        letter-spacing: -0.5px;
    }

    .cta__text {
        font-size: 14px;
        margin-bottom: 28px;
    }

    /* --- Footer --- */
    .footer {
        padding: 40px 0 28px;
    }

    .footer__top {
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer__links {
        gap: 12px 20px;
    }

    .footer__links a {
        font-size: 12px;
    }

    .footer__socials a {
        width: 36px;
        height: 36px;
    }

    .footer__socials a svg {
        width: 16px;
        height: 16px;
    }

    .footer__bottom p {
        font-size: 11px;
    }

    .footer__legal a {
        font-size: 11px;
    }
}

/* ---------- Ultra-small (374px and below) ---------- */
@media (max-width: 374px) {
    .hero__title {
        font-size: 28px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .section__heading {
        font-size: 22px;
    }

    .mission__text {
        font-size: 17px;
    }

    .featured-product__title {
        font-size: 24px;
    }

    .featured-product__inner {
        padding: 20px 16px;
    }

    .cta__heading {
        font-size: 20px;
    }
}
