* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* --- The Obsidian Foundation (Official macOS Dark Mode) --- */
    --bg-black: #000000;
    --bg-elevated: #1C1C1E;
    --bg-surface: #2C2C2E;
    
    /* --- Official Apple System Accents --- */
    --accent-blue: #0A84FF; /* Official Apple Vibrant Blue */
    --accent-silver: #F5F5F7;
    --accent-red: #FF453A;
    --accent-primary: #0A84FF;

    /* --- Semantic Typography (Vibrancy Levels) --- */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(235, 235, 245, 0.6);
    --text-tertiary: rgba(235, 235, 245, 0.3);

    /* --- Liquid Glass Elements --- */
    --glass-bg: rgba(28, 28, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.12);
    --outline: rgba(255, 255, 255, 0.15);

    /* --- Animation & Depth --- */
    --apple-spring: cubic-bezier(0.32, 0.72, 0, 1);
    --apple-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --card-radius: 22px;
    --section-spacing: clamp(80px, 15vw, 160px);
}

/* Upgrade to "High-Definition" Apple Colors (Display P3) */
@supports (color: color(display-p3 1 1 1)) {
    :root {
        --accent-blue: color(display-p3 0.04 0.52 1.0);
        --bg-black: color(display-p3 0.0 0.0 0.0);
        --accent-silver: color(display-p3(0.96 0.96 0.97));
    }
}

* {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", -apple-system, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.012em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium macOS Scrollbar Protocol */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mono-text {
    font-family: "SF Mono", "SFMono-Regular", ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
    letter-spacing: -0.01em;
    font-weight: 500;
    text-transform: uppercase;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
}

::selection {
    background: rgba(0, 122, 255, 0.3);
    color: #fff;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    /* Safe Area support for notched devices */
    padding-bottom: env(safe-area-inset-bottom);
}

/* Background Effects */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.glow {
    position: absolute;
    width: 100%;
    height: 80vh;
    background: radial-gradient(ellipse at center, rgba(0, 30, 60, 0.3) 0%, rgba(0, 15, 30, 0.1) 30%, rgba(0, 0, 0, 0) 65%);
    will-change: transform;
    transform: translateZ(0);
}

.glow-top {
    top: -40vh;
    left: 0;
}

.glow-bottom {
    bottom: -40vh;
    left: 0;
}


.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================
   STICKY NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(210%);
    -webkit-backdrop-filter: blur(25px) saturate(210%);
    border: 1.5px solid var(--glass-border);
    border-radius: 99px;
    /* Official Floating Island Pill */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 122, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 16px;
        width: 94%;
        top: 16px;
    }
}

/* Minimize slightly on scroll */
.navbar.scrolled {
    width: 85%;
    max-width: 900px;
    top: 16px;
    padding: 8px 24px;
    background: rgba(10, 10, 10, 0.85);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-icon {
    color: var(--accent-primary);
    font-family: monospace;
    font-weight: 800;
    font-size: 1.3rem;
}

.btn-nav {
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    background: var(--accent-primary) !important;
}

/* Common Text */
.highlight {
    background: linear-gradient(110deg, var(--accent-blue) 0%, #32ADE6 50%, #FFFFFF 60%, #32ADE6 70%, var(--accent-blue) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: titleShimmer 2.5s linear infinite;
}

/* Typography elements */
.section-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.03em;
    position: relative;
    background: linear-gradient(110deg, #A1A1A6 0%, #FFFFFF 50%, #A1A1A6 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 2.5s linear infinite;
}

@keyframes titleShimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(60px, 10vw, 80px) auto;
    font-weight: 400;
    line-height: 1.5;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 140px 24px 60px;
}

.badge {
    border: 1px solid var(--outline);
    color: var(--accent-primary);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    /* Ultra-tight Apple tracking */
    margin-bottom: 28px;
    background: linear-gradient(110deg, #A1A1A6 0%, #FFFFFF 50%, #A1A1A6 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 2.5s linear infinite;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 56px;
    font-weight: 450;
    line-height: 1.5;
}

/* Buttons */
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 16px 40px;
    border-radius: 98px;
    /* High-Fidelity Mac Pill */
    font-weight: 600;
    /* Apple Semibold */
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Apple Spring */
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn:active {
    transform: scale(0.94) translateY(2px);
    transition: transform 0.1s ease-out !important;
}

.btn-primary,
.cta-button,
.btn-confirm {
    background: linear-gradient(180deg, #007AFF 0%, #0056B3 100%) !important;
    /* Authentic Apple Blue */
    color: #fff !important;
    box-shadow:
        0 8px 32px rgba(0, 122, 255, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        /* Liquid Glass Interior Highlight */
        inset 0 -1px 1px rgba(0, 0, 0, 0.1) !important;
    text-decoration: none !important;
    border: 0.5px solid rgba(255, 255, 255, 0.15) !important;
    /* Sub-pixel hardware light capture */
}

.btn-primary:hover,
.cta-button:hover,
.btn-confirm:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 15px 45px rgba(0, 122, 255, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    background: linear-gradient(180deg, #1A8AFF 0%, #007AFF 100%) !important;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    animation: bounce 2s infinite;
    opacity: 0.5;
    color: var(--accent-primary);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* =========================================
   PROBLEM SECTION
   ========================================= */
.problem {
    padding: var(--section-spacing) 0;
    width: 100%;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.problem-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px) saturate(210%);
    -webkit-backdrop-filter: blur(30px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; /* Official Apple Radius */
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s var(--apple-ease-out);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.problem-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.problem-card .card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.problem-card:hover .card-accent {
    opacity: 1;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-primary);
}

.problem-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}


/* =========================================
   SOCIAL PROOF SECTION
   ========================================= */
.social-proof {
    padding: 96px 0;
    width: 100%;
}

.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 48px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 48px;
}

.stat {
    text-align: center;
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 36px;
    transition: transform 0.4s var(--apple-spring), box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: var(--shadow-volumetric);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06) 0%, transparent 80%), var(--bg-elevated);
}

.testimonial-card:hover {
    transform: translateY(-4px) scale(1.02) translateZ(0);
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.02);
}

.stars {
    color: var(--accent-primary);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.author-role {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* =========================================
   PILLARS SECTION
   ========================================= */
.pillars {
    padding: 96px 0;
    width: 100%;
}

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

.pillar-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 48px;
    position: relative;
    transition: transform 0.4s var(--apple-spring), box-shadow 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-volumetric);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05) 0%, transparent 80%), var(--bg-elevated);
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-blue);
    transform: scale(1.02) translateZ(0);
}

.pillar-number {
    position: absolute;
    top: 20px;
    right: 32px;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    transition: color 0.3s ease;
}

.pillar-card:hover .pillar-number {
    color: rgba(0, 122, 255, 0.03);
}

.pillar-icon {
    color: var(--text-primary);
    margin-bottom: 24px;
    display: inline-flex;
    padding: 16px;
    background: rgba(0, 122, 255, 0.08);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.pillar-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

/* =========================================
   INSTRUCTOR SECTION
   ========================================= */
.instructor {
    padding: 96px 0;
    width: 100%;
}

.instructor-card {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 56px;
    transition: border-color 0.3s ease;
}

.instructor-card:hover {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.02);
}

.instructor-avatar-wrap {
    flex-shrink: 0;
}

.instructor-avatar-lg {
    width: 96px;
    height: 96px;
    background: rgba(0, 122, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.instructor-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 12px;
}

.instructor-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.instructor-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.instructor-credentials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.credential {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq {
    padding: clamp(80px, 15vw, 120px) 24px;
    width: 100%;
}

.settings-container {
    background: rgba(44, 44, 46, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    max-width: 1000px;
    margin: 0 auto;
}

.faq {
    padding: 100px 24px;
    width: 100%;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
    text-align: left;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 28px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================
   FOOTER CTA
   ========================================= */
.footer-cta {
    padding: 120px 0 80px;
    text-align: center;
}

.mt-6 {
    margin-top: 48px;
}

.site-footer {
    width: 100%;
    text-align: center;
    padding: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-out forwards;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* =========================================
   MODAL STYLES
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    /* Use Dynamic Viewport Height */
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    overscroll-behavior: none;
    /* Severe scroll inhibition */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--apple-ease-out), visibility 0.3s var(--apple-ease-out);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: rgba(10, 10, 10, 0.92);
    -webkit-backdrop-filter: blur(40px) saturate(210%);
    backdrop-filter: blur(40px) saturate(210%);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 40px;
    max-width: 500px;
    width: 95%;
    max-height: 90svh;
    /* Small viewport height for core content */
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    transform: scale(0.92) translateY(30px) translateZ(0);
    opacity: 0;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.4s var(--apple-spring), opacity 0.3s var(--apple-ease-out);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 122, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-handle {
    width: 36px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    margin: -10px auto 24px auto;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
        /* Align to bottom for sheet effect */
        padding: 0;
    }

    .modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 32px 32px 0 0;
        transform: translateY(100%);
        padding-bottom: env(safe-area-inset-bottom);
        max-height: 85dvh;
        /* Dynamic height for mobile sheets */
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0);
    }

    .modal-handle {
        display: block;
        /* Visible handle on mobile sheets */
    }
}

.syllabus-box {
    max-width: 700px;
}

.modal-title {
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.syllabus-content {
    overflow-y: auto;
    padding-right: 8px;
    flex-grow: 1;
}

/* Custom scrollbar for syllabus */
.syllabus-box::-webkit-scrollbar {
    width: 8px;
}

.syllabus-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.syllabus-box::-webkit-scrollbar-thumb {
    background: var(--outline);
    border-radius: 4px;
}

.syllabus-box::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* --- Premium macOS Scrollbar Infrastructure --- */
.apple-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.apple-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.apple-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: content-box;
    transition: background 0.3s ease;
}

.apple-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid transparent;
    background-clip: content-box;
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--accent-primary);
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.syllabus-content h3 {
    color: var(--accent-primary);
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.syllabus-content ul {
    list-style-type: none;
    margin-bottom: 16px;
}

.syllabus-content li {
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.syllabus-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.w-full {
    width: 100%;
}

/* =========================================
   CHECKOUT MODAL SPECIFIC
   ========================================= */
.checkout-price-box {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--outline);
    border-radius: 16px;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.price-old {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-new {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.price-badge {
    display: inline-block;
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-note {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}

/* Premium Neon Outline Hold Mechanic */
.hold-to-confirm {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1;
    background-color: var(--surface);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hold-to-confirm::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    background: conic-gradient(from 0deg,
            var(--accent-primary) var(--hold-progress, 0%),
            transparent 0%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 10px;
    pointer-events: none;
    z-index: 5;
    transform: translateZ(0);
}

.hold-to-confirm .btn-text {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

/* =========================================
   PREMIUM ALERT NOTIFICATION
   ========================================= */
.premium-alert {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--outline);
    border-radius: 20px;
    padding: 24px;
    width: 380px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
    transform: translateY(150px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.premium-alert.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.close-alert {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close-alert:hover {
    color: var(--accent-primary);
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-icon {
    width: 48px;
    height: 48px;
    background: rgba(28, 231, 131, 0.1);
    color: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-text h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 4px;
}

.alert-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.alert-text strong {
    color: var(--accent-primary);
}

/* =========================================
   SYSTEM SETTINGS FAQ & APP ICON REMASTER
   ========================================= */

.app-icon-container {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.95));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.app-icon-container img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.settings-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1px;
    background: var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    max-width: 1100px;
    margin: 60px auto;
    border: 1px solid var(--glass-border);
    background: rgba(10, 10, 10, 0.4);
    min-height: 500px;
}

.settings-sidebar {
    background: rgba(15, 15, 15, 0.5);
    padding: 24px 12px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s var(--apple-ease-out);
    font-size: 0.95rem;
    font-weight: 500;
}

.settings-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.settings-item.active {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.settings-pane {
    background: transparent;
    padding: 32px;
    display: none;
    animation: paneFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-pane.active {
    display: block;
}

@keyframes paneFade {
    from {
        opacity: 0;
        transform: scale(0.985) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.settings-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
}

.settings-group {
    background: rgba(15, 15, 15, 0.35);
    /* Liquid Obsidian */
    backdrop-filter: blur(25px) saturate(210%);
    -webkit-backdrop-filter: blur(25px) saturate(210%);
    border-radius: 24px;
    /* Official Mac Card Radius */
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    /* Sub-pixel light capture */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.settings-row {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s var(--apple-ease-out);
}

.settings-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.settings-row:last-child {
    border-bottom: none;
}

.row-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.row-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 480px;
}

.row-action {
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0, 122, 255, 0.1);
    padding: 6px 14px;
    border-radius: 99px;
    box-shadow: inset 0 0 0 0.5px rgba(0, 122, 255, 0.2);
}

/* Mobile Adaptation for Settings Pane */
@media (max-width: 850px) {
    .settings-container {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        border-bottom: 1px solid var(--glass-border);
    }

    .settings-item {
        flex-shrink: 0;
        padding: 8px 14px;
    }
}


/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter-section {
    width: 100%;
    padding: 120px 24px;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at 50% 0%, rgba(0, 122, 255, 0.08), transparent 70%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-blue), transparent);
    opacity: 0.3;
}

.dispatch-box {
    text-align: center;
    max-width: 640px;
    position: relative;
    padding: 64px 48px;
    background:
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 122, 255, 0.12) 0%, transparent 80%),
        rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(40px) saturate(210%);
    -webkit-backdrop-filter: blur(40px) saturate(210%);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 40px rgba(0, 122, 255, 0.05);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s var(--apple-spring), border-color 0.4s ease;
}

.dispatch-box:hover {
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-4px) translateZ(0);
}

.dispatch-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.system-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-blue);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.pulse-dot-blue {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-blue);
    animation: pulseBlue 2s infinite;
}

@keyframes pulseBlue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 122, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
    }
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #34C759;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    margin-right: 8px;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.dispatch-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 30%, #A1A1A6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dispatch-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 450;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 99px;
    border: 1px solid var(--outline);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: focus-within 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: rgba(0, 122, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dispatch-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 24px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    font-weight: 500;
    width: 100%;
}

.dispatch-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

#dispatch-btn {
    min-width: 160px;
    background: var(--accent-blue);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    border-radius: 99px;
}

#dispatch-btn:hover {
    background: #1a8aff;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5);
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.privacy-note a {
    color: var(--accent-primary);
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

/* Formspree Elements */
.fs-success-message {
    padding: 16px;
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.2);
    color: var(--accent-primary);
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 600;
}

.fs-error-message,
.fs-field-error {
    color: var(--error-red, #ff4c4c);
    font-size: 0.85rem;
    margin-top: 4px;
    text-align: left;
}

[data-fs-submit-btn]:disabled {
    opacity: 0.7;
    cursor: wait;
    background: var(--text-secondary);
    color: #fff;
}

/* Premium Acknowledge Button */
.premium-ack-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--accent-blue);
    padding: 12px 24px;
    border-radius: 99px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.premium-ack-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.2);
}

.site-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.site-gate-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.site-gate-overlay .gate-content {
    background: var(--surface-bg);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 12px;
    padding: 40px 32px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 122, 255, 0.05);
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-gate-overlay.active .gate-content {
    transform: translateY(0);
}

.security-terminal {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98), rgba(5, 5, 5, 1)) !important;
    border: 1px solid rgba(0, 122, 255, 0.3) !important;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.95), inset 0 0 30px rgba(0, 122, 255, 0.03) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #ff4c4c;
    border-radius: 50%;
    animation: flashAlert 1.5s infinite;
}

@keyframes flashAlert {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 12px #ff4c4c;
    }

    50% {
        opacity: 0.3;
        box-shadow: none;
    }
}

.terminal-label {
    font-family: monospace;
    font-size: 0.85rem;
    color: #ff4c4c;
    letter-spacing: 2.5px;
}

.gate-secondary-btn {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.gate-secondary-btn:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.gate-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.gate-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.gate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================================
   APP STORE PRODUCT CARD
   ========================================= */
.app-product-card {
    text-align: left !important;
    max-width: 440px !important;
    padding: 32px !important;
    background: rgba(22, 22, 23, 0.8) !important;
    /* Official Apple Grey */
    backdrop-filter: blur(50px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(50px) saturate(210%) !important;
    border-radius: 38px !important;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.1) !important;
}

.app-card-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 32px;
}

/* Optimized Storage Handshake */
.dispatch-box {
    width: auto !important;
}

.btn-app-dismiss:hover {
    opacity: 0.8;
}

/* =========================================
   SUCCESS NOTIFICATION (POST-PURCHASE)
   ========================================= */
.success-notification {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(10, 10, 10, 0.85);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 122, 255, 0.1);
    padding: 12px 24px;
    border-radius: 99px;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    width: fit-content;
    white-space: nowrap;
}

.fps-monitor {
    font-family: 'Inter', monospace;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-blue);
    background: rgba(0, 122, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    margin-right: 4px;
    border: 0.5px solid rgba(0, 122, 255, 0.2);
}

.success-notification.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.success-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
    animation: successScale 0.5s ease-out forwards;
}

@keyframes successScale {
    0% {
        transform: scale(0) rotate(-45deg);
    }

    70% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

.success-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.success-text strong {
    color: var(--accent-primary);
}

/* =========================================
   HERO TRUST ROW
   ========================================= */
.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    cursor: default;
}

.trust-chip:hover {
    color: var(--accent-blue);
    border-color: rgba(0, 122, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
}

.trust-chip svg {
    color: var(--accent-primary);
    opacity: 0.7;
    transition: color 0.3s ease;
}

.trust-chip:hover svg {
    color: var(--accent-blue);
    opacity: 1;
}

/* =========================================
   TRUSTED PARTNERS BAR
   ========================================= */
.trust-partners {
    padding: 48px 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.trust-partners-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 28px;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-chip-v2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.trust-chip-v2:hover {
    background: rgba(0, 122, 255, 0.05);
    border-color: rgba(0, 122, 255, 0.4);
    color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.15);
}

.trust-chip-v2 svg:first-child {
    color: inherit;
    /* Allow parent hover color to apply */
    transition: all 0.3s ease;
}

.trust-chip-v2 .verified-tick {
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.trust-chip-v2:hover .verified-tick {
    color: var(--accent-blue);
    opacity: 1;
}

.trust-logo-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================
   COMPLIANCE STRIP
   ========================================= */
.compliance-strip {
    padding: 64px 0;
    width: 100%;
}

.compliance-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px 48px;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8), rgba(0, 122, 255, 0.02));
    border: 1px solid rgba(0, 122, 255, 0.1);
    border-radius: 20px;
    flex-wrap: wrap;
}

.compliance-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.3s ease;
}

.compliance-badge:hover {
    transform: translateY(-2px);
}

.compliance-icon {
    width: 48px;
    height: 48px;
    background: #010101;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.alert-discount {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(28, 28, 30, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    padding: 14px 20px;
    border-radius: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    animation: slideUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-icon {
    width: 44px;
    height: 44px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
}

.alert-text {
    font-size: 0.9rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
}

.alert-text strong {
    color: var(--accent-blue);
    font-weight: 600;
}

.close-alert {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #999;
    font-size: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.close-alert:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
}

/* Squircle Logo in Nav */
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 22%;
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    background: transparent;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2.1);
    /* Zoom slightly to bypass padding but avoid clipping */
    pointer-events: none;
}

.promo-badge {
    background: #010101;
}

.compliance-badge:hover .compliance-icon {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.1);
}

.compliance-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compliance-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 0.3px;
}

.compliance-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.compliance-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
}

.compliance-footer-text {
    text-align: center;
    max-width: 700px;
    margin: 24px auto 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.5;
    line-height: 1.6;
}

/* =========================================
   CTA TRUST BADGES
   ========================================= */
.cta-trust-line {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 16px;
    margin-bottom: 8px;
}

.cta-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.cta-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.cta-trust-item svg {
    color: var(--accent-primary);
}

.cta-trust-item:hover {
    opacity: 1;
    color: #fff;
}

/* =========================================
   FOOTER SECURITY STRIP
   ========================================= */
.footer-security-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-security-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-security-item svg {
    color: var(--accent-primary);
    opacity: 0.6;
}

/* Secure Badge under hero */
.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 24px;
    opacity: 0.6;
}

.secure-badge svg {
    color: var(--accent-primary);
}

/* Secure transaction bar in checkout */
.secure-transaction-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Input Error States */
.input-error {
    border-color: #ff4c4c !important;
    background: rgba(255, 76, 76, 0.05) !important;
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */
@media (max-width: 600px) {

    html,
    body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }

    .newsletter-section {
        padding: 40px 12px;
        overflow: hidden;
        display: block;
    }

    .dispatch-box {
        padding: 28px 16px;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .dispatch-title {
        font-size: 1.45rem;
        word-wrap: break-word;
    }

    .dispatch-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .footer-security-strip {
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding: 0 20px !important;
    }

    .footer-security-item {
        font-size: 0.65rem !important;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .dispatch-btn {
        width: 100%;
        min-width: 100% !important;
    }

    .stats-bar {
        flex-direction: column;
        gap: 24px;
        padding: 32px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .section-title {
        font-size: 1.7rem;
    }
}

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

    .hero-ctas {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .btn.bubbly {
        padding: 12px 24px;
    }

    .modal-content {
        padding: 32px 24px;
    }

    .pillar-card,
    .problem-card {
        padding: 24px;
    }

    .section-title {
        font-size: 2rem;
    }

    .instructor-card {
        flex-direction: column;
        padding: 32px;
        gap: 24px;
    }

    .instructor-title {
        font-size: 1.5rem;
    }

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

    .site-nav {
        padding: 16px 20px;
    }

    .site-nav.scrolled {
        padding: 10px 20px;
    }

    .btn-nav {
        padding: 8px 18px !important;
        font-size: 0.85rem !important;
    }

    /* Trust elements responsive */
    .trust-logos {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .trust-logo-divider {
        display: none;
    }

    .compliance-inner {
        flex-direction: column;
        gap: 20px;
        padding: 28px 24px;
    }

    .compliance-divider {
        width: 48px;
        height: 1px;
    }

    .hero-trust-row {
        gap: 8px;
    }

    .cta-trust-badges {
        flex-direction: column;
        gap: 12px;
    }

    .footer-security-strip {
        gap: 16px;
    }
}

/* =========================================
   RESPONSIVE — MODALS (DUAL MODE)
   ========================================= */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
        /* Push to bottom for iOS Sheet feel */
        padding: 0;
    }

    .modal-content {
        width: 100%;
        max-width: none;
        border-radius: 24px 24px 0 0;
        padding: 32px 24px;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        max-height: 85svh;
        /* More restrictive for sheet stability */
        border-bottom: none;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0);
    }

    .modal-handle {
        display: block;
        width: 40px;
        height: 5px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 99px;
        margin: -16px auto 20px auto;
        opacity: 0.8;
    }

    .close-modal {
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 3px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .syllabus-box {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Momentum scrolling for iOS */
    }
}

/* Logo specific Typography */
.logo-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.5px;
}

/* =========================================
   PREMIUM GRAY THEME (SOLID - ALL MODALS)
   ========================================= */
#checkout-modal .modal-content,
#tiktok-promo-modal .modal-content {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 255, 255, 0.03);
}

/* High-Density Clinical Architecture for Checkout */
.is-in-app-browser #checkout-modal .modal-content {
    overflow-y: auto !important;
    touch-action: pan-y;
    max-height: 90vh;
    /* Ensure it stays within bounds but remains scrollable */
    overscroll-behavior: contain;
}

#checkout-modal .modal-content {
    padding: 20px 16px !important;
    /* Compact Clinical Padding */
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    /* Sharp Clinical Radius */
}

#checkout-modal .modal-title,
#checkout-modal .modal-subtitle,
#checkout-modal .checkout-note,
#checkout-modal .secure-transaction-bar,
#checkout-modal .price-old,
#checkout-modal .price-new,
#checkout-modal .close-modal,
#tiktok-promo-modal .modal-title,
#tiktok-promo-modal .modal-subtitle,
#tiktok-promo-modal .close-modal {
    color: var(--text-primary) !important;
}

#checkout-modal .modal-subtitle,
#tiktok-promo-modal .modal-subtitle {
    color: var(--text-secondary) !important;
}

/* Clinical Architectural Aesthetic Refinement */
.mono-text {
    font-family: 'SF Mono', 'Fira Code', 'Menlo', 'Monaco', 'Consolas', monospace !important;
    letter-spacing: 0.02em;
    font-weight: 500;
}

#checkout-modal .modal-content {
    background: #0A0A0A !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.95);
    padding: 24px 20px !important;
    border-radius: 4px;
    /* Clinical sharp edges */
}

#checkout-modal .modal-title {
    margin-bottom: 12px;
    opacity: 0.9;
}

#checkout-modal .clinical-compaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 2px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

#checkout-modal .price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

#checkout-modal .price-old {
    font-size: 0.8rem;
    opacity: 0.4;
    text-decoration: line-through;
}

#checkout-modal .price-new {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFF;
}

#checkout-modal .technical-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

#checkout-modal .dispatch-input {
    background: #000 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 2px !important;
    padding: 14px;
    font-size: 16px !important; /* Forces iOS to prevent auto-zoom on focus */
    color: #FFF !important;
}

#checkout-modal .btn-confirm {
    width: 100%;
    margin-top: 24px;
}

#checkout-modal .security-protocol-box {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

#checkout-modal .protocol-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

#checkout-modal .pulse-indicator {
    width: 6px;
    height: 6px;
    background-color: #34C759;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(52, 199, 89, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(52, 199, 89, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
    }
}

#checkout-modal .protocol-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#checkout-modal .protocol-id {
    margin-left: auto;
    font-family: 'SF Mono', 'Menlo', 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--accent-blue);
    opacity: 0.8;
}

#checkout-modal .security-badges {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

#checkout-modal .badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

#checkout-modal .badge-icon {
    opacity: 0.6;
}

/* Cancel Notification (Graceful Return) */
.cancel-notification {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(50px) saturate(210%);
    -webkit-backdrop-filter: blur(50px) saturate(210%);
    padding: 12px 24px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
}

.cancel-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tiktok-logo-bg {
    background: #010101 !important;
    /* Premium TikTok Black */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 0.5px rgba(255, 255, 255, 0.05);
}

/* =========================================
   PROJECT ATLAS COURSE STYLES
   ========================================= */

.atlas-course-styles {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.course-module {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--agent-glass-border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: transform 0.3s var(--apple-spring), border-color 0.3s ease;
}

.course-module:hover {
    border-color: var(--agent-accent);
    transform: translateY(-4px);
    background: rgba(0, 122, 255, 0.05);
}

.module-number {
    font-family: var(--mono-font);
    font-size: 0.65rem;
    color: var(--agent-accent);
    letter-spacing: 0.1em;
    font-weight: 800;
    margin-bottom: 8px;
}

.course-module h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.course-module p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Logic Console */
.logic-console {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.console-body {
    font-family: var(--mono-font);
    font-size: 0.7rem;
    color: #4ade80;
    /* Terminal Green */
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 80px;
    overflow-y: hidden;
}

.log-line {
    opacity: 0.8;
    animation: typing 0.5s steps(40, end);
}

.scanline {
    width: 100%;
    height: 100px;
    z-index: 8;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: -100%;
    }
}

.pulse-dot-green {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    animation: agentPulse 2s infinite;
}

.ai-agent-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, #0A84FF 0%, #0056B3 100%) !important;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 98px !important; /* Official macOS Pill */
    padding: 16px 32px !important; 
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.015em;
    cursor: pointer;
    transition: all 0.5s var(--apple-spring);
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    visibility: visible;
    opacity: 1;
}

.ai-agent-fab.drawer-active {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.ai-agent-fab:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 45px rgba(0, 122, 255, 0.4);
    background: #1A8AFF;
}

.ai-agent-fab:active {
    transform: scale(0.96);
}

.pulse-indicator {
    display: none;
}

/* --- SHOPIFY BUY BUTTON MAC UI OVERRIDES --- */
/* Global Blockade: Suppress all cart-related artifacts and iframes across all devices */
[id*="shopify-buy-cart"],
[class*="shopify-buy__cart"],
[class*="shopify-buy__cart-toggle"],
[class*="shopify-buy__checkout-now"],
iframe[name*="shopify"],
iframe[id*="shopify"],
iframe.shopify-buy__cart-wrapper {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    max-height: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: fixed !important;
    top: -9999px !important;
    overflow: hidden !important;
}

[class^="shopify-buy__btn"] {
    background-color: #007aff !important;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    min-height: 42px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 24px !important;
    transition: all 0.2s cubic-bezier(0.15, 0, 0.15, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2) !important;
    border: none !important;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    line-height: 1 !important;
    /* Force Precision Lettering Alignment */
}

[class^="shopify-buy__btn"]:hover {
    background-color: #0062cc !important;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4) !important;
    transform: translateY(-0.5px) !important;
}

[class^="shopify-buy__btn"]:active {
    transform: translateY(0) scale(0.98) !important;
}

.fab-icon {
    display: flex;
    align-items: center;
}

.fab-text {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* Agent Drawer */
.ai-agent-drawer {
    position: fixed;
    top: 32px;
    right: 32px;
    bottom: 32px;
    width: 400px;
    background: var(--agent-glass-bg);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--agent-glass-border);
    border-radius: 32px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(calc(100% + 48px));
    transition: transform 0.6s var(--apple-ease-out);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.ai-agent-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--agent-glass-border);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.close-drawer {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.agent-welcome h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.agent-welcome p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-history {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.msg {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: slideIn 0.4s var(--apple-spring);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.msg-agent {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--agent-glass-border);
}

.msg-user {
    align-self: flex-end;
    background: var(--agent-accent);
    color: #fff;
}

.drawer-footer {
    padding: 24px 32px 32px;
    background: rgba(0, 0, 0, 0.2);
}

.input-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--agent-glass-border);
    border-radius: 99px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#agent-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

#send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--agent-accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#send-btn:hover {
    transform: scale(1.1);
}

/* Pulse Dot */
.pulse-dot-blue {
    width: 6px;
    height: 6px;
    background: var(--agent-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--agent-accent);
    animation: agentPulse 2s infinite;
}

@keyframes agentPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 500px) {
    .ai-agent-drawer {
        width: 100%;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 0;
        height: 100dvh; /* Use dynamic viewport height */
    }
    .drawer-content {
        padding: 24px 20px;
    }
}
/* Handshake Nexus Diagnostics */
.handshake-nexus-node { transition: all 0.3s var(--apple-spring); }
.handshake-nexus-node:hover { background: rgba(255, 255, 255, 0.05) !important; border-color: rgba(255, 255, 255, 0.15) !important; transform: scale(1.02); }
.nexus-bridge { position: relative; overflow: hidden; }
.nexus-bridge::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: bridgeFlow 3s infinite linear; }

@keyframes bridgeFlow { 0% { left: -100%; } 100% { left: 100%; } }

/* CALL MODE STYLES */
@keyframes callWave {
    0%, 100% { height: 10px; opacity: 0.3; }
    50% { height: 50px; opacity: 1; }
}

.voice-bar-v2 {
    border-radius: 99px;
    background: #fff;
    transition: all 0.2s ease;
}

#voice-call-overlay {
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
}


/* =========================================
   OFFICIAL CART SUPPRESSION PROTOCOL
   ========================================= */
.shopify-buy__cart-toggle,
.shopify-buy__cart-wrapper,
.shopify-buy__cart-icon,
.shopify-buy__cart-quantity,
[class*="shopify-buy__cart"],
[class*="shopify-buy__toggle"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* =========================================
   CAREER CREDIBILITY SECTION (V2)
   ========================================= */
.career-credibility {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 40px auto;
}

.credibility-container {
    display: flex;
    align-items: center;
    gap: 64px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 80px;
    box-shadow: var(--shadow-volumetric);
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(0, 122, 255, 0.08) 0%, transparent 60%), var(--bg-elevated);
}

.credibility-badge-wrap {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.badge-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--accent-blue);
    opacity: 0.15;
    animation: badge-ring-pulse 4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes badge-ring-pulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0; }
}

.credibility-content {
    flex: 1;
}

.credibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 24px;
}

.credibility-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cred-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cred-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.cred-sub {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .credibility-container {
        flex-direction: column;
        padding: 48px 24px;
        gap: 40px;
        text-align: center;
    }
    
    .credibility-content .section-title {
        text-align: left; /* Keep left or center? User said matches website */
    }
    
    .credibility-content .clinical-body {
        margin-left: auto;
        margin-right: auto;
    }

    .credibility-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* =========================================
   AI RECEPTIONIST STYLES
   ========================================= */
.receptionist-nexus {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.msg-agent {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.msg-user {
    align-self: flex-end;
    background: var(--accent-blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.wave-bar {
    border-radius: 99px;
}

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

#sales-liaison-chat::-webkit-scrollbar {
    width: 4px;
}

#sales-liaison-chat::-webkit-scrollbar-track {
    background: transparent;
}

#sales-liaison-chat::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.btn-voice.active {
    background: rgba(255, 69, 58, 0.2) !important;
    border-color: rgba(255, 69, 58, 0.4) !important;
    color: #FF453A !important;
    animation: voicePulse 1.5s infinite;
}

@keyframes voicePulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 69, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 69, 58, 0); }
}

/* =========================================
   MOBILE ARCHITECTURAL SYNCHRONIZATION (REMASTERED)
   ========================================= */
@media screen and (max-width: 992px) {
    .credibility-container {
        flex-direction: column;
        padding: 48px 24px;
        gap: 40px;
        text-align: center;
    }
    
    .credibility-content .section-title {
        text-align: center !important;
    }
    
    .credibility-content .clinical-body {
        margin-left: auto;
        margin-right: auto;
    }

    .credibility-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .alignment-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .alignment-bridge {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    .alignment-header h2 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

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

    .instructor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 24px;
    }

    .instructor-avatar-wrap {
        margin-bottom: 24px;
    }

    .alignment-card {
        padding: 32px 24px !important;
    }

    .dispatch-box {
        padding: 40px 24px !important;
    }

    .newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .dispatch-input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--outline);
        border-radius: 99px;
        margin-bottom: 12px;
        text-align: center;
    }

    #dispatch-btn {
        width: 100%;
    }

    .stats-bar {
        flex-direction: column;
        gap: 32px;
        padding: 32px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .footer-security-strip {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .ai-agent-fab {
        bottom: 16px;
        right: 16px;
        padding: 12px 24px !important;
        width: auto;
    }

    .fab-text {
        font-size: 0.85rem;
    }
}

/* =========================================
   SYSTEM ALIGNMENT MONITOR
   ========================================= */
.system-alignment {
    padding: var(--section-spacing) 24px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.alignment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    position: relative;
    z-index: 10;
}

.alignment-header {
    text-align: center;
    margin-bottom: 80px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: 99px;
    font-size: 0.65rem;
    font-family: "SF Mono", monospace;
    color: var(--accent-blue);
    margin-bottom: 24px;
}

.alignment-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

.alignment-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px) saturate(210%);
    -webkit-backdrop-filter: blur(40px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s var(--apple-ease-out);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.alignment-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-label {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-family: "SF Pro Display", -apple-system, sans-serif !important;
    margin-bottom: 24px;
    opacity: 0.8;
    letter-spacing: 0.2em;
    font-weight: 700;
    text-transform: uppercase;
}

.alignment-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -0.01em;
}

.clinical-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.alignment-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 60px;
    position: relative;
}

.sync-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.1);
}

.clinical-footer {
    text-align: center;
    margin-top: 80px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 80px auto 0;
    line-height: 1.5;
}

.faq {
    padding: 100px 24px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
    text-align: left;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
    transform: translateY(-4px);
}

.faq-question {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-cta {
    margin: 100px 24px;
    padding: 100px 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(210%);
    -webkit-backdrop-filter: blur(40px) saturate(210%);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-trust-line {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .footer-cta {
        margin: 60px 16px;
        padding: 60px 24px;
        border-radius: 32px;
    }
    
    .faq {
        padding: 60px 20px;
    }
}

/* Consolidating redundant classes */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

