/* APPLE-TIER PREMIUM OVERRIDES Phase II + Phase III + Phase IV */

/* 1. Global Typographic Scaling & Proximity Overrides */
/* Global Font Rendering Override */
body,
* {
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
}

h1,
h2,
h3,
.h2-premium,
.h3-premium,
.section-title,
.section-header {
    font-family: 'Syne', sans-serif !important;
}

p,
span,
div,
a {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 300;
}

.btn,
.btn-primary,
.btn-secondary,
button,
.cta-button {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
}

/* Global Header Visibility & Contrast Override */
.section-title,
.section-header,
h2 {
    color: #FFFFFF !important;
    opacity: 1 !important;
    z-index: 50 !important;
    mix-blend-mode: normal !important;
}

h2,
.h2-premium {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
}

h3,
.h3-premium {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
}

/* Phase III Mini-Header Boost */
h4,
.feature-card h3,
.feature-card h4,
.pricing-card h3,
.shuffle-card h3 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.02em !important;
}

/* Proximity Calibration (The Gap Fix) */
.spatial-flex-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem !important;
    /* Phase III Ultra-Compressed Gap */
    align-items: center;
    margin-bottom: 4rem;
    text-align: center;
}

.spatial-flex-heading p,
.spatial-flex-heading .subheading {
    margin-bottom: 0 !important;
    max-width: 65ch;
    color: #A0A0A5 !important;
    font-size: 1.15rem !important;
}

/* 2. Apple-Tier Premium Glass Buttons */
.btn-primary::before {
    display: none !important;
}

.btn-primary,
.btn-secondary,
.cta-button,
.btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.2) !important;
    border-radius: 999px !important;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    transition: box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-primary:hover,
.btn-secondary:hover,
.cta-button:hover,
.btn:hover {
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
}

/* 4. "Our Story" & Team Architecture <FounderNode> */
.founder-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 24px;
}

.glass-profile-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: 0 0 60px rgba(230, 59, 46, 0.08), 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-profile-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 80px rgba(230, 59, 46, 0.15), 0 16px 48px 0 rgba(0, 0, 0, 0.5);
}

.glass-profile-card .aspect-node {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    background: #111;
}

.glass-profile-card .aspect-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-profile-card:hover .aspect-node img {
    transform: scale(1.05);
}

.glass-profile-card .founder-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.glass-profile-card .founder-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #E63B2E;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Phase III Global Glass & Ambient Backglow Override */
.feature-card,
.pricing-card,
.shuffle-card,
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    /* Injected massive ambient backglow */
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.03), 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
}

/* Phase IV Kinetic Light Tracers System */
@property --border-angle {
    syntax: '<angle>';
    inherits: true;
    initial-value: 0turn;
}

.testimonial-card {
    position: relative;
    overflow: hidden;
    border: none !important;
    background: none !important;
    box-shadow: 0 0 50px rgba(230, 59, 46, 0.05) !important;
    padding: 1px !important;
    border-radius: 2rem !important;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from var(--border-angle), transparent 70%, #E63B2E 100%);
    transform: translate(-50%, -50%);
    animation: spin 4s linear infinite;
    z-index: 0;
}

.testimonial-inner {
    position: relative;
    z-index: 1;
    background: rgba(17, 17, 17, 0.95);
    border-radius: calc(2rem - 1px);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes spin {
    to {
        --border-angle: 360deg;
    }
}

/* Phase III Monochrome Icon Unification */
.feature-icon-wrapper {
    color: #FFFFFF !important;
    background: transparent !important;
}

.feature-icon-wrapper svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.highlight-card svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* Phase III Horizontal Logo Marquee */
.logo-marquee-section {
    padding: 3rem 0;
    overflow: hidden;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin: 2rem 0 2rem 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll-marquee 25s linear infinite;
    gap: 6rem;
    align-items: center;
}

.marquee-item {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
    transition: color 0.3s ease, filter 0.3s ease;
}

.marquee-item:hover {
    color: #FFFFFF;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 3rem));
    }

    /* -50% shifts halfway exactly if perfectly doubled */
}

/* DepthScroll CSS prep */
#how-it-works {
    overflow: visible;
}

.diagnostic-shuffler {
    height: 400px;
    /* Base card height to eliminate scroll deadzone */
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.shuffle-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: none !important;
    transform-origin: top center;
}