/* Custom Stylesheet for OxFluent Landing Page */

/* Design Tokens & Variables */
:root {
    --bg-primary: #080f1e;
    --bg-secondary: #0b172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --color-green: #10b981;
    --color-blue: #0ea5e9;
    --color-purple: #8b5cf6;
    --color-yellow: #f59e0b;
    --color-red: #ef4444;
    --font-primary: 'Outfit', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Premium Gradients & Headings */
.gradient-text {
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-blue) 50%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-green) 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Store Badge Button */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000000;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.store-btn:hover {
    border-color: var(--color-green);
    transform: translateY(-2px);
    background: #050b14;
}

.store-icon {
    font-size: 1.8rem;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-text span {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 15, 30, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.logo, .logo:hover, .logo:focus, .logo:active, .logo:visited {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.logo-icon-container {
    width: 40px;
    height: 40px;
}

.svg-logo {
    width: 100%;
    height: 100%;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    display: inline-block;
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-blue) 50%, var(--color-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none !important;
    border-bottom: none !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: #ffffff;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--bg-primary);
    z-index: 999;
    overflow: hidden;
    transition: var(--transition-smooth);
    border-bottom: 0 solid var(--glass-border);
}

.mobile-nav-overlay.open {
    height: calc(100vh - 80px);
    border-bottom-width: 1px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 40px;
    padding-bottom: 80px;
}

.mobile-link {
    font-size: 1.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.mobile-link:hover {
    color: #ffffff;
}

.mobile-btn {
    width: 80%;
    max-width: 300px;
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, rgba(14, 165, 233, 0.03) 50%, transparent 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.hero-graphic, .feature-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}
/* Oxford Certificate Mockup */
.cert-mockup {
    width: 480px;
    height: 310px;
    background: #ffffff;
    color: #1e293b;
    border-radius: 10px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4), 0 0 35px rgba(0, 33, 71, 0.1);
    position: relative;
    padding: 14px;
    font-family: 'Outfit', sans-serif;
    margin: 24px 0 36px 0;
    transition: var(--transition-smooth);
}

.cert-mockup:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4), 0 0 35px rgba(0, 33, 71, 0.12);
}

.cert-border-outer {
    width: 100%;
    height: 100%;
    border: 3px double #002147;
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
}

.cert-border-inner {
    width: 100%;
    height: 100%;
    border: 1px solid #c5a880;
    border-radius: 2px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fcfcfb;
}

.cert-header {
    text-align: center;
    border-bottom: 1px solid rgba(0, 33, 71, 0.1);
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.cert-header h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #002147;
    letter-spacing: 0.15em;
    margin: 0;
    text-transform: uppercase;
}

.cert-header span {
    font-size: 0.6rem;
    font-weight: 600;
    color: #c5a880;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

.cert-body {
    text-align: center;
}

.cert-text {
    font-size: 0.78rem;
    line-height: 1.6;
    color: #334155;
    max-width: 380px;
    margin: 0 auto;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cert-sig {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.55rem;
    color: #002147;
    position: relative;
}

.sig-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    font-weight: 700;
    color: #002147;
    transform: rotate(-2deg) translateY(2px);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.sig-line {
    width: 100px;
    height: 1.5px;
    background: #002147;
    margin-bottom: 4px;
}

.cert-seal {
    display: flex;
    justify-content: center;
    align-items: center;
}

.seal-gold {
    width: 38px;
    height: 38px;
    background: radial-gradient(circle, #002e63 0%, #002147 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5a880;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 33, 71, 0.3);
    position: relative;
    border: 2px dashed #c5a880;
}

/* Premium 3D Smartphone Mockups */
.iphone-mockup, 
.iphone-mockup-mentor, 
.iphone-mockup-speaking, 
.iphone-mockup-solo, 
.iphone-mockup-pvp, 
.iphone-mockup-ielts {
    width: 300px;
    height: 600px;
    max-width: 100%;
    position: relative;
    margin: 0 auto;
    transition: transform 0.15s ease-out, filter 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

/* 1. Hero Section Mockup (Tilted Right + Blue Floating) */
.iphone-mockup {
    transform: rotateY(9deg) rotateX(4deg) rotate(-2deg);
    animation: float3DAlt 6s ease-in-out infinite;
}

.hero-content .iphone-mockup {
    margin: 24px 0 36px 70px;
}

/* 2. OxBuddy AI Mentor Mockup (Tilted Left + Violet Floating) */
.iphone-mockup-mentor {
    transform: rotateY(9deg) rotateX(4deg) rotate(-2deg);
    animation: float3DAlt 6.5s ease-in-out infinite 0.5s;
}

/* 3. Sentence Studio Speaking Mockup (Tilted Right + Emerald Floating) */
.iphone-mockup-speaking {
    transform: rotateY(-9deg) rotateX(4deg) rotate(2deg);
    animation: float3D 6.8s ease-in-out infinite 0.8s;
}

/* 3b. Solo Practice Mockup (Tilted Left + Azure Floating) */
.iphone-mockup-solo {
    transform: rotateY(9.5deg) rotateX(4deg) rotate(-2.5deg);
    animation: float3DAlt 6.9s ease-in-out infinite 0.9s;
}

/* 4. PvP Arena Duel Mockup (Tilted Left + Amber Floating) */
.iphone-mockup-pvp {
    transform: rotateY(10deg) rotateX(4deg) rotate(-1.5deg);
    animation: float3DAlt 7s ease-in-out infinite 1s;
}

/* 5. IELTS Strategy Center Mockup (Tilted Right + Cyan Floating) */
.iphone-mockup-ielts {
    transform: rotateY(-8deg) rotateX(4deg) rotate(1.5deg);
    animation: float3D 7.2s ease-in-out infinite 1.2s;
}

/* 3D Floating Keyframe Animations */
@keyframes float3D {
    0%, 100% {
        transform: rotateY(-8deg) rotateX(4deg) rotate(1.5deg) translateY(0px);
    }
    50% {
        transform: rotateY(-9deg) rotateX(5deg) rotate(1deg) translateY(-12px);
    }
}

@keyframes float3DAlt {
    0%, 100% {
        transform: rotateY(9deg) rotateX(4deg) rotate(-2deg) translateY(0px);
    }
    50% {
        transform: rotateY(10deg) rotateX(5deg) rotate(-1deg) translateY(-12px);
    }
}

/* Mobile float animation — flat, no 3D tilt, prevents clipping */
@keyframes floatMobile {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-10px) scale(1.01); }
}

@keyframes floatMobileAlt {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-10px) scale(1.01); }
}

/* GlassUI Frameless 3D Showcase Engine */
.iphone-bezel {
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 28px;
    padding: 0;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 
        0 30px 60px -10px rgba(0, 0, 0, 0.75), 
        0 0 50px rgba(14, 165, 233, 0.35);
}

.iphone-mockup-mentor .iphone-bezel {
    box-shadow: 
        0 30px 60px -10px rgba(0, 0, 0, 0.75), 
        0 0 50px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.3);
}

.iphone-mockup-speaking .iphone-bezel {
    box-shadow: 
        0 30px 60px -10px rgba(0, 0, 0, 0.75), 
        0 0 50px rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.3);
}

.iphone-mockup-pvp .iphone-bezel {
    box-shadow: 
        0 30px 60px -10px rgba(0, 0, 0, 0.75), 
        0 0 50px rgba(245, 158, 11, 0.45);
    border-color: rgba(245, 158, 11, 0.35);
}

.iphone-mockup-ielts .iphone-bezel {
    box-shadow: 
        0 30px 60px -10px rgba(0, 0, 0, 0.75), 
        0 0 50px rgba(14, 165, 233, 0.4);
    border-color: rgba(14, 165, 233, 0.3);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background-color: #080f1e;
    border-radius: 27px;
    overflow: hidden;
    position: relative;
    border: none;
    box-sizing: border-box;
}

.app-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    background-color: #080f1e;
    display: block;
    border-radius: 27px;
}

/* Mockup Inner App UI */
.app-ui-container {
    width: 100%;
    height: 100%;
    padding: 48px 16px 70px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: hidden;
    user-select: none;
}

.app-header-ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-avatar-circle {
    width: 32px;
    height: 32px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.app-user-info {
    display: flex;
    flex-direction: column;
}

.app-user-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.app-user-level {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.app-header-badges {
    display: flex;
    gap: 6px;
}

.app-header-badge {
    background: #111e33;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
}

.app-card-vocab {
    background: linear-gradient(135deg, #1d1a3c 0%, #0d1222 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 16px;
}

.card-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-yellow);
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-vocab-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.card-vocab-desc {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.card-vocab-progress {
    height: 6px;
    background: #17253d;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-purple) 100%);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.app-grid-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.app-btn-action {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.btn-icon-large {
    font-size: 1.2rem;
    color: var(--color-purple);
}

.app-btn-action span {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
}

.app-btn-action.path-btn {
    border-color: rgba(16, 185, 129, 0.2);
}

.text-green {
    color: var(--color-green);
}

.small-tag-btn {
    font-size: 0.55rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
}

.app-learning-journey-ui {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.journey-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.journey-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
}

.journey-item-card.active-journey {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.journey-item-card.locked-journey {
    opacity: 0.6;
}

.journey-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.journey-icon-span {
    font-size: 1.2rem;
}

.journey-card-left h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.journey-card-left span {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.icon-chevron {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.app-bottom-nav-ui {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #080f1e;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.nav-item-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
}

.nav-item-ui span {
    font-size: 0.55rem;
    font-weight: 600;
}

.active-nav-item {
    color: var(--color-green);
}

.special-nav-ui {
    transform: translateY(-8px);
}

.pvp-nav-circle {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.section-tag {
    display: inline-block;
    color: var(--color-green);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 800;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-green);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.feature-highlight {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

/* AI Mentor Section */
.mentor-section {
    padding: 100px 0;
}

.mentor-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin: 0 auto;
}

.mentor-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.chat-card-container {
    width: 100%;
    max-width: 420px;
    height: 480px;
    display: flex;
    flex-direction: column;
}

.chat-card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    background: #111e33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.chat-card-header h4 {
    font-size: 1.05rem;
    color: #ffffff;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--color-green);
    font-weight: 600;
}

.online-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--color-green);
    border-radius: 50%;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.msg {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.msg.received {
    align-self: flex-start;
    background: #1e293b;
    color: #ffffff;
    border-bottom-left-radius: 4px;
}

.msg.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--color-green) 0%, #059669 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-input-preview {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.mic-indicator {
    color: var(--color-green);
    font-size: 1.1rem;
    cursor: pointer;
}

.mentor-content {
    flex: 1;
    max-width: 550px;
}

.mentor-features {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mentor-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.mentor-features i {
    font-size: 1.1rem;
    margin-top: 4px;
}

/* IELTS Section */
.ielts-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.ielts-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin: 0 auto;
}

.ielts-content {
    flex: 1;
    max-width: 550px;
}

.ielts-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.ielts-stat-box {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
}

.ielts-score {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-blue);
    display: block;
    margin-bottom: 4px;
}

.ielts-stat-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ielts-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ielts-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
}

.ielts-card h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
}

.ielts-band-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 28px;
}

.ielts-band-box span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.ielts-band-box h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.ielts-analysis-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analysis-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.analysis-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.analysis-bar-label span:last-child {
    color: var(--text-secondary);
}

.bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-blue) 0%, var(--color-green) 100%);
}

/* Speaking Section */
.speaking-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--glass-border);
}

.speaking-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin: 0 auto;
}

.speaking-content {
    flex: 1;
    max-width: 550px;
}

.speaking-features {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.speaking-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.speaking-features i {
    font-size: 1.1rem;
    margin-top: 4px;
}

.speaking-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Solo Practice Section */
.solo-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--glass-border);
}

.solo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin: 0 auto;
}

.solo-content {
    flex: 1;
    max-width: 550px;
}

.solo-features {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.solo-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.solo-features i {
    font-size: 1.1rem;
    margin-top: 4px;
}

.solo-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* PvP Arena Section */
.pvp-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.pvp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin: 0 auto;
}

.pvp-content {
    flex: 1;
    max-width: 550px;
}

.pvp-features {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pvp-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.pvp-features i {
    font-size: 1.1rem;
    margin-top: 4px;
}

.pvp-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Call to Action Section */
.cta-section {
    padding: 120px 0;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.cta-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-large {
    padding: 16px 36px !important;
}

/* Main Footer */
.main-footer {
    background: #040811;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin: 0 auto 60px auto;
}

.footer-left {
    max-width: 400px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 16px;
}

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

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.footer-socials a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-purple) 100%);
    border-color: transparent;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

.footer-right {
    display: flex;
    gap: 80px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-col h4 {
    font-size: 0.95rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.footer-bottom .container {
    margin: 0 auto;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.testimonial-rating {
    color: var(--color-yellow);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.user-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- FAQ SECTION --- */
.faq-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 100px 0;
}

.faq-accordion {
    max-width: 760px;
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item[open] {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question i {
    transform: rotate(180deg);
    color: #ffffff;
}

.faq-answer {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 0;
    text-align: left;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .mentor-container, .pvp-container, .solo-container {
        flex-direction: column-reverse !important;
        text-align: center !important;
        gap: 50px !important;
    }

    .speaking-container, .ielts-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 50px !important;
    }
    
    .hero-graphic, .mentor-graphic, .speaking-graphic, .solo-graphic, .pvp-graphic, .ielts-graphic {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
    }

    .hero-content, .mentor-content, .speaking-content, .solo-content, .pvp-content, .ielts-content {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions, .cta-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .mentor-features, .speaking-features, .pvp-features {
        align-items: center;
        text-align: left;
        max-width: 480px;
        margin: 32px auto 0 auto;
    }
    
    .ielts-stats-grid {
        max-width: 480px;
        margin: 40px auto 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-actions, .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .section-title, .cta-title {
        font-size: 1.8rem;
    }

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

    /* Hero: compact top, small bottom padding */
    .hero-section {
        padding-top: 88px;
        padding-bottom: 20px !important;
    }

    /* Stack: content first (title on top), mockup below */
    .hero-container {
        flex-direction: column !important;
        gap: 24px;
        text-align: center;
    }

    /* Title compacter (3xl equivalent) */
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    /* Show certificate compact on mobile */
    .cert-mockup {
        width: 100%;
        max-width: 340px;
        height: auto;
        min-height: 200px;
        margin: 16px auto 20px auto;
        transform: none !important;
        padding: 10px;
    }

    .cert-border-inner {
        padding: 8px 10px;
    }

    .cert-header h3 {
        font-size: 0.72rem;
    }

    .cert-header span {
        font-size: 0.48rem;
    }

    .cert-text {
        font-size: 0.58rem;
        max-width: 280px;
    }

    .sig-name {
        font-size: 0.78rem;
    }

    .cert-sig span {
        font-size: 0.45rem;
    }

    /* Store buttons stacked and full-width */
    .hero-actions {
        margin-bottom: 16px;
        gap: 8px;
    }

    /* Stats smaller spacing */
    .hero-stats {
        justify-content: center;
        gap: 16px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    /* Mockup: viewport-proportional size, no 3D, exact max-width: 260px constraints */
    .iphone-mockup, 
    .iphone-mockup-mentor, 
    .iphone-mockup-speaking, 
    .iphone-mockup-solo, 
    .iphone-mockup-pvp, 
    .iphone-mockup-ielts {
        width: 250px !important;
        height: 500px !important;
        margin: 0 auto 35px auto !important;
        display: block !important;
        transform: none !important;
    }

    /* Steel/Slate Chassis bezel on mobile */
    .iphone-bezel {
        background: #0b0f19;
        border: 5px solid #1e293b;
        border-radius: 32px;
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.75), 
            0 0 35px rgba(14, 165, 233, 0.35);
        padding: 0;
        overflow: hidden;
    }

    .iphone-mockup-mentor .iphone-bezel {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.75), 
            0 0 35px rgba(139, 92, 246, 0.4);
        border-color: #1e2536;
    }

    .iphone-mockup-speaking .iphone-bezel {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.75), 
            0 0 35px rgba(16, 185, 129, 0.4);
        border-color: #162a26;
    }

    .iphone-mockup-pvp .iphone-bezel {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.75), 
            0 0 35px rgba(245, 158, 11, 0.4);
        border-color: #242220;
    }

    .iphone-mockup-ielts .iphone-bezel {
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.75), 
            0 0 35px rgba(14, 165, 233, 0.4);
        border-color: #192231;
    }

    .iphone-screen {
        border-radius: 28px;
        overflow: hidden;
        border: none;
    }

    .app-screenshot-img {
        border-radius: 28px;
        object-fit: fill;
    }
}

@media (max-width: 768px) {
    /* On mobile: remove 3D tilt, use gentle float animation */
    .iphone-mockup {
        animation: floatMobile 6s ease-in-out infinite !important;
        transform: none !important;
    }
    .iphone-mockup-mentor {
        animation: floatMobileAlt 6.5s ease-in-out infinite 0.5s !important;
        transform: none !important;
    }
    .iphone-mockup-speaking {
        animation: floatMobile 6.8s ease-in-out infinite 0.8s !important;
        transform: none !important;
    }
    .iphone-mockup-pvp {
        animation: floatMobileAlt 7s ease-in-out infinite 1s !important;
        transform: none !important;
    }
    .iphone-mockup-ielts {
        animation: floatMobile 7.2s ease-in-out infinite 1.2s !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .iphone-mockup, 
    .iphone-mockup-mentor, 
    .iphone-mockup-speaking, 
    .iphone-mockup-solo, 
    .iphone-mockup-pvp, 
    .iphone-mockup-ielts {
        width: 220px !important;
        height: 440px !important;
        margin: 0 auto 30px auto !important;
        display: block !important;
    }
    
    .iphone-bezel {
        background: #0b0f19;
        border: 4px solid #1e293b;
        border-radius: 26px;
        padding: 0;
        box-shadow: 
            0 15px 30px rgba(0, 0, 0, 0.75), 
            0 0 30px rgba(14, 165, 233, 0.3);
        overflow: hidden;
    }

    .iphone-mockup-mentor .iphone-bezel {
        border-color: #1e2536;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.75), 0 0 30px rgba(139, 92, 246, 0.35);
    }

    .iphone-mockup-speaking .iphone-bezel {
        border-color: #162a26;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.75), 0 0 30px rgba(16, 185, 129, 0.35);
    }

    .iphone-mockup-pvp .iphone-bezel {
        border-color: #242220;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.75), 0 0 30px rgba(245, 158, 11, 0.35);
    }

    .iphone-mockup-ielts .iphone-bezel {
        border-color: #192231;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.75), 0 0 30px rgba(14, 165, 233, 0.35);
    }
    
    .iphone-screen {
        border-radius: 22px;
        padding: 0;
        overflow: hidden;
    }

    .app-screenshot-img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        border-radius: 22px;
        background-color: #080f1e;
    }
}

/* Live Video Showcase Section */
.video-showcase-section {
    padding: 25px 0 35px 0;
    position: relative;
    z-index: 5;
}

.video-showcase-wrapper {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-radius: 28px;
    padding: 24px;
    border: 1.5px solid rgba(14, 165, 233, 0.4);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(14, 165, 233, 0.18);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    max-width: 960px;
    margin: 0 auto;
}

.video-header-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.4);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
    width: 100%;
}

.video-header-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.video-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.play-icon {
    font-size: 1.1rem;
    color: #38bdf8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.video-showcase-link:hover .play-icon {
    transform: scale(1.15);
    color: #38bdf8;
}

/* Anchor wrapper — no underline, pointer cursor */
.video-showcase-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.video-showcase-link:hover .video-showcase-wrapper {
    border-color: rgba(14, 165, 233, 0.7);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(14, 165, 233, 0.35);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* "↓ Download" hint shown always on mobile, hidden on desktop */
.video-tap-hint {
    display: none;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 14px;
}

@media (max-width: 768px) {
    .video-tap-hint {
        display: inline-flex;
    }
}

.video-frame-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #080f1e;
    line-height: 0;
}

.showcase-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 18px;
    background-color: #080f1e;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.showcase-video-player.fading {
    opacity: 0;
}

@media (max-width: 768px) {
    .video-showcase-section {
        padding: 20px 0 25px 0;
    }
    .video-showcase-wrapper {
        padding: 14px;
        border-radius: 18px;
    }
}

/* Floating Download Button styling */
.floating-download-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-purple) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35), 0 0 15px rgba(139, 92, 246, 0.25);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    animation: floatingSubtlePulse 3s ease-in-out infinite;
}

.floating-download-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: floatingSubtlePulse 3s ease-in-out infinite, floatingSubtleShake 7s ease-in-out infinite 2s;
}

.floating-download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.45), 0 0 20px rgba(139, 92, 246, 0.35);
    color: #ffffff;
}

.floating-download-btn i {
    font-size: 1.1rem;
}

@keyframes floatingSubtlePulse {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35), 0 0 15px rgba(139, 92, 246, 0.25);
    }
    50% {
        box-shadow: 0 12px 30px rgba(14, 165, 233, 0.45), 0 0 20px rgba(139, 92, 246, 0.35);
    }
}

@keyframes floatingSubtleShake {
    0%, 90%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    92% {
        transform: translateY(0) scale(1) rotate(-4deg);
    }
    94% {
        transform: translateY(0) scale(1) rotate(4deg);
    }
    96% {
        transform: translateY(0) scale(1) rotate(-3deg);
    }
    98% {
        transform: translateY(0) scale(1) rotate(3deg);
    }
}

/* Adjust position on small mobile devices to avoid overlap with chat prompts or navigation items */
@media (max-width: 480px) {
    .floating-download-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}
