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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans JP', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#canvas-container canvas {
    display: block;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.overlay * {
    pointer-events: auto;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.lang-toggle .chevron {
    transition: transform 0.3s ease;
}

.lang-dropdown.open + .lang-toggle .chevron,
.lang-switcher:has(.lang-dropdown.open) .lang-toggle .chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lang-btn.active {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #22d3ee, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #22d3ee);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a:hover::after {
    width: 60%;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-app-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow:
        0 15px 50px rgba(168, 85, 247, 0.35),
        0 0 80px rgba(168, 85, 247, 0.15);
    animation: float-icon 4s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: linear-gradient(135deg, #c084fc 0%, #22d3ee 40%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 10s ease infinite;
    background-size: 200% 200%;
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.3));
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.9;
    margin-bottom: 2.75rem;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #22d3ee 100%);
    background-size: 200% 100%;
    color: #fff;
    box-shadow:
        0 4px 20px rgba(168, 85, 247, 0.35),
        0 0 40px rgba(168, 85, 247, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-position: 100% 0;
    box-shadow:
        0 8px 30px rgba(168, 85, 247, 0.5),
        0 0 60px rgba(34, 211, 238, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

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

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.store-btn:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.store-icon {
    width: 24px;
    height: 24px;
}

.store-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Apple Store Button */
.store-btn-apple {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.store-btn-apple:hover {
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
}

/* Google Play Button */
.store-btn-google {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 20, 0.9) 100%);
}

.store-btn-google:hover {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.95) 0%, rgba(20, 20, 35, 0.95) 100%);
}

/* QR Code Modal */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qr-modal.open {
    opacity: 1;
    visibility: visible;
}

.qr-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.qr-modal-content {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 100px rgba(168, 85, 247, 0.1);
}

.qr-modal.open .qr-modal-content {
    transform: scale(1) translateY(0);
}

.qr-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.qr-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.qr-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.qr-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.qr-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.qr-modal-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.qr-codes {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.qr-code-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.qr-code-wrapper {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.2);
}

.qr-code-wrapper canvas {
    width: 180px !important;
    height: 180px !important;
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.qr-code-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.qr-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile responsive for modal */
@media (max-width: 480px) {
    .qr-modal-content {
        padding: 1.5rem;
    }

    .qr-codes {
        flex-direction: column;
        align-items: center;
    }

    .qr-code-wrapper {
        width: 160px;
        height: 160px;
    }
}

/* Curve Indicator */
.curve-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.curve-label {
    color: rgba(255, 255, 255, 0.6);
}

.curve-name {
    color: #22d3ee;
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-app-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .store-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 0.75rem;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .curve-indicator {
        bottom: 5rem;
    }

    /* QR Modal mobile */
    .qr-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .qr-modal-header h3 {
        font-size: 1.25rem;
    }

    .qr-code-wrapper {
        width: 180px;
        height: 180px;
    }

    .qr-code-wrapper canvas {
        width: 160px !important;
        height: 160px !important;
    }
}

/* Scroll Hint Animation */
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-10px) translateX(-50%); }
}

/* Glow Effects */
.glow {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

/* Loading State */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Features Page Styles
   ======================================== */

.page-features {
    min-height: 100vh;
    background: #000;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Particle canvas is fixed via #canvas-container */
.page-features #canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.page-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Page Navigation */
.page-features .navbar {
    justify-content: space-between;
    background: transparent;
    padding: 2rem 0;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 0 5rem;
}

.page-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #c084fc 0%, #22d3ee 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.page-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding-bottom: 5rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(168, 85, 247, 0.08);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(34, 211, 238, 0.15) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    color: #67e8f9;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(34, 211, 238, 0.25) 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.15);
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 450;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #a855f7, #22d3ee);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

.feature-card:hover .feature-list li {
    color: rgba(255, 255, 255, 0.75);
}

/* Image-based Feature Cards */
.features-image-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.feature-card-image {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: none;
}

.feature-card-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(168, 85, 247, 0.12);
}

.feature-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.feature-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card-image:hover .feature-image::before {
    opacity: 1;
}

.feature-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    z-index: 2;
    transition: border-color 0.4s ease;
}

.feature-card-image:hover .feature-image::after {
    border-color: rgba(168, 85, 247, 0.3);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: brightness(0.85) saturate(0.9);
}

.feature-card-image:hover .feature-image img {
    transform: scale(1.1);
    filter: brightness(1) saturate(1.1);
}

.feature-card-image .feature-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    padding: 0.5rem 1rem 1rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.feature-card-image:hover .feature-title {
    background: linear-gradient(135deg, #c084fc 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Large Image Feature Sections */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    padding-bottom: 5rem;
}

.feature-section {
    position: relative;
}

.feature-image-large {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: 24px;
    overflow: visible;
    margin-bottom: 2rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-section:hover .feature-image-large {
    z-index: 10;
}

.feature-image-large .img-wrapper {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Perspective container */
.feature-image-large {
    perspective: 1000px;
}

/* Alternating tilt directions */
.feature-section:nth-child(odd) .feature-image-large .img-wrapper {
    transform: rotateY(-2deg) rotateX(2deg);
}

.feature-section:nth-child(even) .feature-image-large .img-wrapper {
    transform: rotateY(2deg) rotateX(2deg);
}

/* Hover - flatten and lift */
.feature-section:hover .feature-image-large .img-wrapper {
    transform: rotateY(0) rotateX(0) scale(1.02);
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(168, 85, 247, 0.15);
}

/* Image special effects - Mask overlay */
.feature-image-large .img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.5) 60%,
        rgba(34, 211, 238, 0.25) 100%
    );
    z-index: 2;
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-section:hover .feature-image-large .img-wrapper::before {
    opacity: 0.2;
}

.feature-image-large .img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.4);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-section:hover .feature-image-large .img-wrapper::after {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.feature-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(0.85) contrast(1.1);
    opacity: 0.75;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-section:hover .feature-image-large img {
    filter: brightness(1.1) saturate(1.3) contrast(1.15);
    opacity: 0.9;
}

/* Animated gradient border effect */
.feature-image-large .gradient-border {
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        45deg,
        #a855f7,
        #22d3ee,
        #10b981,
        #a855f7
    );
    background-size: 400% 400%;
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    animation: gradient-rotate 6s ease infinite;
    transition: opacity 0.5s ease;
}

.feature-section:hover .gradient-border {
    opacity: 1;
}

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

/* Shine effect on hover */
.feature-image-large .shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    z-index: 4;
    transform: skewX(-25deg);
    transition: none;
}

.feature-section:hover .shine {
    animation: shine-sweep 1s ease forwards;
}

@keyframes shine-sweep {
    to { left: 150%; }
}

/* Feature info styling */
.feature-info {
    text-align: center;
    padding: 0 2rem;
}

.feature-title-large {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.feature-section:hover .feature-title-large {
    background: linear-gradient(135deg, #c084fc 0%, #22d3ee 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-desc-small {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.8;
}

/* Section spacing for pop-out effect */
.feature-section {
    padding: 1rem 0;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .features-list {
        gap: 4rem;
    }

    .feature-image-large {
        aspect-ratio: 16 / 10;
        border-radius: 16px;
        perspective: none;
    }

    .feature-image-large .img-wrapper {
        border-radius: 16px;
        box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.4);
    }

    .feature-section:nth-child(odd) .feature-image-large .img-wrapper,
    .feature-section:nth-child(even) .feature-image-large .img-wrapper {
        transform: none;
    }

    .feature-section:hover .feature-image-large {
        transform: scale(1.02);
    }

    .feature-section:hover .feature-image-large .img-wrapper {
        transform: none;
    }

    .feature-info {
        padding: 0 1rem;
    }

    .feature-desc-small {
        font-size: 0.9rem;
        letter-spacing: 0.05em;
    }
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4.5rem 3rem;
    margin: 2rem 0;
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.08) 0%, rgba(34, 211, 238, 0.05) 100%);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    animation: cta-glow 8s ease-in-out infinite;
}

@keyframes cta-glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.875rem;
    letter-spacing: -0.02em;
    position: relative;
}

.cta-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2.25rem;
    font-weight: 400;
    position: relative;
}

.cta-section .btn {
    position: relative;
}

/* Features Page Footer */
.page-features .footer {
    background: transparent;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive for Features Page */
@media (max-width: 768px) {
    .page-container {
        padding: 0 1.25rem;
    }

    .page-features .navbar {
        padding: 1.25rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.75rem;
        border-radius: 20px;
    }

    .page-header {
        padding: 2.5rem 0 3.5rem;
    }

    .cta-section {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
        margin: 1rem 0;
    }

    .nav-back {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem 0.4rem 0.5rem;
    }

    .features-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-image {
        border-radius: 16px;
        margin-bottom: 0.75rem;
    }

    .feature-card-image .feature-title {
        font-size: 1.1rem;
        padding: 0.25rem 0.5rem 0.75rem;
    }
}

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