/* Design System & Styling Tokens */
:root {
    --primary: #6C63FF;
    --primary-glow: rgba(108, 99, 255, 0.4);
    --secondary: #00F2FE;
    --secondary-glow: rgba(0, 242, 254, 0.3);
    --bg-dark: #0C091A;
    --bg-surface: #140F26;
    --bg-card: rgba(23, 19, 43, 0.85);
    --bg-card-hover: rgba(30, 25, 56, 0.95);
    --text-primary: #FFFFFF;
    --text-secondary: #B3AFD8;
    --accent-orange: #FF8008;
    --accent-pink: #FFC0CB;
    --accent-green: #00FF87;
    --accent-red: #FF416C;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-khmer: 'Kantumruy Pro', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

body {
    font-family: var(--font-khmer); /* Defaults to Khmer, script handles bilingual families */
    overflow-x: hidden;
    line-height: 1.6;
}

/* Language Specific Typography overrides */
.lang-en {
    font-family: var(--font-en) !important;
}
.hidden {
    display: none !important;
}

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

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(12, 9, 26, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-en);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

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

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.95rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #5247ff);
    color: white;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(108, 99, 255, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #00d2dd);
    color: #0c091a;
    box-shadow: 0 8px 24px var(--secondary-glow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 242, 254, 0.5);
}

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

.btn-outline:hover {
    background: var(--primary);
    box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-full {
    width: 100%;
    text-align: center;
    padding: 14px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.btn-lang {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-lang.active {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top, #1c1538 0%, var(--bg-dark) 70%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
}

.bg-glow-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: 10%;
    left: 5%;
}

.bg-glow-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary-glow);
    bottom: 20%;
    right: 5%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

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

.badge-container {
    margin-bottom: 24px;
}

.badge {
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid var(--primary);
    color: #a49eff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

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

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

/* Mockup Display */
.hero-visual {
    display: flex;
    justify-content: center;
}

.app-mockup {
    width: 100%;
    max-width: 360px;
    background: rgba(15, 11, 32, 0.95);
    backdrop-filter: blur(20px);
    border: 12px solid #1f1b35;
    border-radius: 40px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 50px rgba(108, 99, 255, 0.25);
    overflow: hidden;
    aspect-ratio: 9 / 18;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Glass Screen Sheen Reflection */
.app-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 10;
}

.mockup-header {
    background: #15112a;
    padding: 18px 16px 14px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

/* Speaker slit / punch hole */
.mockup-header::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #090615;
    border-radius: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.red { background: #FF416C; }
.dot.yellow { background: #FF8008; }
.dot.green { background: #00FF87; }

.mockup-title {
    margin-left: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-en);
}

.mockup-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.screen-tabs {
    display: flex;
    background: #140F26;
    border-bottom: 1px solid var(--border-color);
}

.mock-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mock-tab:hover {
    color: white;
}

.mock-tab.active {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
    background: rgba(0, 242, 254, 0.05);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.mockup-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
}

.mockup-body::-webkit-scrollbar {
    width: 4px;
}

.mockup-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.input-mockup {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.placeholder-text {
    font-size: 0.7rem;
    color: #4b4566;
}

.btn-mock-action {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
    transition: transform 0.2s ease;
}

.cards-grid-mockup {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.card-mock {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.card-img-mock {
    aspect-ratio: 2 / 3;
    background: #1d1933;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, box-shadow, border-color;
}

.card-mock:hover .card-img-mock {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 242, 254, 0.25);
    border-color: var(--secondary);
}

.card-title-mock {
    font-size: 0.55rem;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.card-mock:hover .card-title-mock {
    color: white;
}

/* Service Mockup Image Backgrounds */
.poster-1 { background-image: url('poster_ceo.png'); background-size: cover; background-position: center; }
.poster-2 { background-image: url('poster_bride.png'); background-size: cover; background-position: center; }
.poster-3 { background-image: url('poster_husband.png'); background-size: cover; background-position: center; }
.poster-4 { background-image: url('poster_secret.png'); background-size: cover; background-position: center; }
.poster-5 { background-image: url('poster_contract.png'); background-size: cover; background-position: center; }
.poster-6 { background-image: url('poster_billionaire.png'); background-size: cover; background-position: center; }

.img-fav-1 { background-image: url('poster_ceo.png'); background-size: cover; background-position: center; }
.img-fav-2 { background-image: url('poster_bride.png'); background-size: cover; background-position: center; }

.details-poster {
    width: 70px;
    aspect-ratio: 2 / 3;
    background-image: url('poster_ceo.png');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    position: relative;
    background: #0f0b20;
}

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

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-violet { background: rgba(108, 99, 255, 0.15); color: #887fff; }
.icon-cyan { background: rgba(0, 242, 254, 0.15); color: #20f9ff; }
.icon-orange { background: rgba(255, 128, 8, 0.15); color: #ffa043; }
.icon-pink { background: rgba(255, 192, 203, 0.15); color: #ff9fb4; }
.icon-green { background: rgba(0, 255, 135, 0.15); color: #39ff9c; }
.icon-red { background: rgba(255, 65, 108, 0.15); color: #ff6584; }

.service-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* App Simulator Display */
.preview-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.interactive-simulator {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.simulator-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.sim-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 16px 0;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sim-tab.active {
    color: var(--secondary);
    background: rgba(0, 242, 254, 0.05);
    border-bottom: 3px solid var(--secondary);
}

.simulator-display {
    padding: 24px;
    min-height: 280px;
}

.sim-view {
    display: none;
}

.sim-view.active {
    display: block;
}

.mock-app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.mock-app-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.mock-refresh-btn {
    cursor: pointer;
}

.mock-input-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.mock-input-box input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.mock-favorites-shelf {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.shelf-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.shelf-items {
    display: flex;
    gap: 12px;
}

.shelf-item {
    position: relative;
    width: 60px;
    aspect-ratio: 2 / 3;
}

.shelf-img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.remove-fav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mock-drama-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.details-card {
    display: flex;
    gap: 16px;
}

.details-info h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.details-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.heart-icon {
    font-size: 0.9rem;
    margin-left: 8px;
}

/* Episode Grid Simulation */
.mock-grid-episodes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ep-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
}

.ep-item.downloaded {
    border-color: var(--accent-green);
    background: rgba(0, 255, 135, 0.05);
}

.ep-item.locked {
    opacity: 0.6;
}

.check-badge {
    position: absolute;
    top: 2px;
    left: 4px;
    color: var(--accent-green);
    font-size: 0.7rem;
}

.lock-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.7rem;
}

/* Step Cards */
.step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.step-header h5 {
    font-size: 0.9rem;
    font-weight: 700;
}

.step-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-left: 36px;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: #0f0b20;
    position: relative;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 320px;
}

.price-card:hover {
    transform: scale(1.02);
    border-color: rgba(108, 99, 255, 0.2);
}

.price-card.popular {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, #1b1633 0%, var(--bg-card) 100%);
    box-shadow: 0 16px 40px var(--primary-glow);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.price-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.price-period {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-features {
    list-style: none;
    margin-bottom: 36px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background: radial-gradient(circle at bottom, #1c1538 0%, var(--bg-dark) 80%);
}

.download-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 16px auto 48px auto;
}

.download-box-layout {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.apk-download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 48px;
    min-width: 280px;
    transition: all 0.3s ease;
}

.apk-download-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 24px var(--secondary-glow);
}

.download-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.apk-download-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.version-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    background: #090614;
}

.footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hamburger active transformation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Media Queries (Responsive Design) */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 280px;
        height: 100vh;
        background: rgba(12, 9, 26, 0.96);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        padding: 40px 20px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-item {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
    
    .download-box-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

/* --- Scroll Reveal & Micro-Animations --- */

/* Base hidden state */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

/* Visible active state */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered load delays for grid cards */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* Gentle Floating Smartphone Mockup Animation */
@keyframes floatDevice {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.app-mockup {
    animation: floatDevice 6s ease-in-out infinite;
}

/* Pulsing and drifting background glows */
@keyframes pulseGlow {
    0% { transform: scale(1) translate(0px, 0px); opacity: 0.45; }
    50% { transform: scale(1.15) translate(4%, 3%); opacity: 0.65; }
    100% { transform: scale(1) translate(0px, 0px); opacity: 0.45; }
}

.bg-glow-1 {
    animation: pulseGlow 14s ease-in-out infinite;
}

.bg-glow-2 {
    animation: pulseGlow 18s ease-in-out infinite alternate;
}

/* Button & Card Micro-scaling on hover */
.btn-primary, .btn-secondary, .btn-outline {
    will-change: transform, box-shadow;
}

.service-card {
    will-change: transform, box-shadow, border-color;
}

.price-card {
    will-change: transform, border-color, box-shadow;
}

.sim-tab {
    will-change: background-color, border-color, color;
}

/* --- Interactive Background Canvas & Custom Cursor Spotlight --- */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#mouse-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, rgba(0, 242, 254, 0.05) 50%, rgba(0,0,0,0) 80%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    mix-blend-mode: screen;
    display: none;
    transition: width 0.3s ease, height 0.3s ease;
}

@media (pointer: fine) {
    body:hover #mouse-glow {
        display: block;
    }
}

/* --- Audio Demo Card inside Simulator --- */
.audio-demo-card {
    background: rgba(108, 99, 255, 0.08);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audio-demo-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-red-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255, 65, 108, 0.4);
    animation: pulseRed 1.8s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 65, 108, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0); }
}

.audio-demo-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

/* Audio waves animation */
.audio-waves {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 32px;
    margin-top: 4px;
}

.audio-waves.hidden {
    display: none !important;
}

.wave-bar {
    width: 3px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 2px;
    animation: bounceWave 0.8s ease-in-out infinite alternate;
}

.wave-bar.bar-1 { animation-delay: 0.1s; }
.wave-bar.bar-2 { animation-delay: 0.3s; }
.wave-bar.bar-3 { animation-delay: 0.5s; }
.wave-bar.bar-4 { animation-delay: 0.2s; }
.wave-bar.bar-5 { animation-delay: 0.4s; }

@keyframes bounceWave {
    0% { height: 8px; }
    100% { height: 32px; }
}

/* --- Hero Mockup View Toggling --- */
.hero-mock-view {
    display: none;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    width: 100%;
}

.hero-mock-view.active {
    display: flex;
}

/* --- Mockup Pricing list inside Hero Mockup --- */
.mock-pricing-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 220px;
    padding-right: 2px;
}

.mock-pricing-list::-webkit-scrollbar {
    width: 3px;
}
.mock-pricing-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.mock-price-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.mock-price-item.highlighted {
    background: rgba(108, 99, 255, 0.15);
    border-color: var(--primary);
}

.mock-price-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mock-price-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-align: left;
}

.mock-price-desc {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-align: left;
}

.mock-price-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary);
}

.mock-price-item.highlighted .mock-price-tag {
    color: #ff2e93;
}
