/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root variables matching extension theme */
:root {
    --primary-blue: #3B82F6;
    --primary-dark: #1D4ED8;
    --success-green: #10B981;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --background-light: #F9FAFB;
    --background-gradient: linear-gradient(135deg, #F0F7FF, #E6F0FD, #D1E5FC);
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

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

/* Navigation - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

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

.logo-img {
    width: auto;
    height: 32px;
    max-width: 120px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-cta .btn {
    text-decoration: none;
}

/* Mobile menu toggle - hidden by default */
.mobile-menu-toggle {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Hero Section - Glassmorphism */
.hero {
    background: var(--background-gradient);
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    min-width: 0; /* Prevents grid item from overflowing */
    padding-right: 1rem; /* Add some breathing room */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Browser Header Layout */
.browser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: rgb(255 255 255 / 20%);
    border-radius: 30px 30px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.browser-url {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Demo Navigation Menu - Inside Browser Header */
.demo-nav-menu {
    display: flex;
    background-color: rgb(255 255 255 / 10%);
    border-radius: 12px;
    padding: 0.25rem;
    gap: 0.25rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 60px;
}

.nav-item:hover {
    background-color: rgb(255 255 255 / 15%);
}

.nav-item.active {
    background-color: rgb(59 130 246 / 20%);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.browser-icon {
    color: var(--text-primary);
}

.browser-icon svg {
    width: 100%;
    height: 100%;
}

.web-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-item:hover .web-logo {
    transform: scale(1.1);
}

.nav-item.active .web-logo {
    transform: scale(1.1);
}

.video-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.youtube-logo {
    border-radius: 2px;
}

.netflix-logo {
    border-radius: 1px;
    width: 14px;
    height: 14px;
}

.nav-item:hover .video-logo {
    transform: scale(1.1);
}

.nav-item.active .video-logo {
    transform: scale(1.1);
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.nav-item.active .nav-label {
    color: var(--primary-blue);
    font-weight: 600;
}


/* Enhanced Demo Styles - Glassmorphism */
.demo-browser {
    background-color: rgb(255 255 255 / 15%);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 600px;
    min-height: 500px;
    transform: scale(1.05);
    transform-origin: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.demo-browser::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), 
                        inset 0 0 3px 1px rgba(255, 255, 255, 0.7),
                        0 0 0 1px rgba(0, 0, 0, 0.05),
                        0 8px 32px rgba(0, 0, 0, 0.12);
            box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), 
                        inset 0 0 3px 1px rgba(255, 255, 255, 0.7),
                        0 0 0 1px rgba(0, 0, 0, 0.05),
                        0 8px 32px rgba(0, 0, 0, 0.12);
}

.demo-browser::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 30px;
    -webkit-backdrop-filter: blur(0px);
            backdrop-filter: blur(0px);
    -webkit-filter: url(#container-glass);
            filter: url(#container-glass);
    overflow: hidden;
    isolation: isolate;
}

.demo-browser:hover {
    background-color: rgb(255 255 255 / 20%);
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.dot:hover {
    transform: scale(1.2);
}

.browser-url:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.browser-content {
    padding: 3rem;
    position: relative;
    overflow: visible; /* allow tooltips to overflow */
    min-height: 400px;
    background-color: rgb(255 255 255 / 20%);
    border-radius: 0 0 30px 30px;
    z-index: 1; /* below tooltips and original text */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.browser-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    -webkit-box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), 
                        inset 0 0 3px 1px rgba(255, 255, 255, 0.7);
            box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), 
                        inset 0 0 3px 1px rgba(255, 255, 255, 0.7);
}

.browser-content::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 0 0 30px 30px;
    -webkit-backdrop-filter: blur(0px);
            backdrop-filter: blur(0px);
    -webkit-filter: url(#container-glass);
            filter: url(#container-glass);
    overflow: hidden;
    isolation: isolate;
}

.demo-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Initial untranslated state */
.demo-initial-state {
    opacity: 1;
    transform: translateY(0);
}

.demo-title-initial {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
    text-align: left;
    opacity: 1;
    transform: translateY(0);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.1s;
    position: relative; /* Create stacking context above translations */
    z-index: 3;
}

.demo-title-initial .demo-loading {
    margin-left: 0.5rem;
}

.demo-paragraph-initial {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-primary);
    text-align: left;
    opacity: 1;
    transform: translateY(0);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.3s;
    position: relative; /* Lower stacking level than tooltips */
    z-index: 1;
}

/* Translation styles for injected content */
.translation {
    font-size: 18px;
    color: var(--text-primary);
    margin-top: 0.5rem;
    line-height: 1.5;
    padding: 0.5rem 0;
    text-align: left;
    opacity: 0;
    transform: translateY(-22px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.5s;
    position: relative; /* Lower stacking level than original text */
    z-index: 1;
    isolation: isolate; /* create new stacking context so child effects don't blend upward */
}

.translation.slide-in {
    opacity: 1;
    transform: translateY(0);
}

.title-translation {
    font-size: 32px;
    font-weight: 600;
    margin-top: -10px;
    line-height: 1.3;
    text-align: left;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.2s;
    position: relative; /* Keep title translation under the original */
    z-index: 1;
}

.title-translation.slide-in {
    opacity: 1;
    transform: translateY(0);
}


/* Translation loading indicator - matches onboarding.js exactly */
.demo-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-loading.show {
    opacity: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.translation {
    font-size: 18px;
    color: var(--text-primary);
    margin-top: 0.5rem;
    line-height: 1.5;
    padding: 0.5rem 0;
    position: relative; /* Lower stacking level than original text */
    z-index: 0;
    isolation: isolate; /* create new stacking context so child effects don't blend upward */
}

.title-translation {
    font-size: 32px;
    font-weight: 600;
    margin-top: -10px;
    line-height: 1.3;
}

.demo-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.word-icons {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.icon-lens,
.icon-sound {
    font-size: 0.875rem;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.icon-lens:hover,
.icon-sound:hover {
    opacity: 1;
}


.highlighted-word {
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.2) 100%);
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    border-bottom: 2px solid var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.highlighted-word:hover {
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.3) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.highlighted-word::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: 6px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.highlighted-word:hover::before {
    opacity: 0.1;
}

/* EXACT CSS from content script */
.analyzed-word {
    position: relative;
    display: inline;
    cursor: help;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    line-height: inherit;
}

.analyzed-word:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Ruby annotation styling - EXACT from content script */
ruby {
    display: ruby;
    text-align: center;
    line-height: inherit;
    white-space: normal;
    text-indent: 0;
    margin: 0;
    padding: 0;
    font-size: inherit;
    vertical-align: baseline;
}

rt {
    display: block;
    font-size: 0.45em;
    color: inherit;
    text-align: center;
    line-height: 1;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
    font-weight: normal;
    opacity: 1.0;
    position: relative;
    top: 0;
}

rb {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 1em;
    position: relative;
    text-align: center;
    letter-spacing: normal;
}

.ruby-container {
    line-height: inherit;
    margin-bottom: 0;
    display: inline;
}

/* Improve spacing between ruby elements */
ruby + ruby {
    margin-left: 0;
}

/* Specific font size for paragraph Chinese text only */
#demo-ruby-container .ruby-container {
    font-size: 20px;
}

/* Word Analysis Tooltip - EXACT copy from working content.js */
.word-analysis-tooltip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 250px;
    max-width: 600px;
    background-color: #000000;
    color: white;
    text-align: left;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #000000;
    font-size: 14px;
    line-height: 1.4;
    z-index: 9999999;
    pointer-events: auto;
    white-space: normal;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    visibility: hidden;  /* Hide by default */
    opacity: 0;         /* Start fully transparent */
    transition: opacity 0.3s, visibility 0.3s;
}

/* Add hover state to show tooltip */
.analyzed-word:hover .word-analysis-tooltip {
    visibility: visible;
    opacity: 1;
}

.word-analysis-tooltip:after {
    content: '';
    position: absolute;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #000000 transparent;
}

/* When tooltip is positioned above, flip the arrow */
.word-analysis-tooltip.tooltip-above:after {
    top: 100%;
    border-color: #000000 transparent transparent transparent;
}

/* When tooltip is positioned below, arrow points up */
.word-analysis-tooltip.tooltip-below:after {
    bottom: 100%;
    border-color: transparent transparent #000000 transparent;
}

/* Definition styling */
.word-analysis-tooltip .definition-container {
    margin-bottom: 12px;
}

.word-analysis-tooltip .definition-item {
    margin-bottom: 6px;
    line-height: 1.4;
}

.word-analysis-tooltip .definition-number {
    color: #FFD700;
    font-weight: bold;
    margin-right: 6px;
}

.word-analysis-tooltip .example-item {
    margin-top: 4px;
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.3;
}

.word-analysis-tooltip .example-label {
    color: #aaa;
    font-weight: 500;
    margin-right: 4px;
}

.word-analysis-tooltip .grammar-section,
.word-analysis-tooltip .level-section {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.word-analysis-tooltip .grammar-label,
.word-analysis-tooltip .level-label {
    color: #aaa;
    font-weight: 500;
    margin-right: 6px;
}

.word-analysis-tooltip .save-hint {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #3ea6ff;
    font-size: 0.9em;
    font-style: italic;
}


.demo-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}



/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section - Glassmorphism */
.features {
    padding: 6rem 0;
    background: var(--background-gradient);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: rgb(255 255 255 / 15%);
    padding: 2rem;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), 
                        inset 0 0 3px 1px rgba(255, 255, 255, 0.7),
                        0 0 0 1px rgba(0, 0, 0, 0.05),
                        0 8px 32px rgba(0, 0, 0, 0.12);
            box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), 
                        inset 0 0 3px 1px rgba(255, 255, 255, 0.7),
                        0 0 0 1px rgba(0, 0, 0, 0.05),
                        0 8px 32px rgba(0, 0, 0, 0.12);
}

.feature-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 30px;
    -webkit-backdrop-filter: blur(0px);
            backdrop-filter: blur(0px);
    -webkit-filter: url(#container-glass);
            filter: url(#container-glass);
    overflow: hidden;
    isolation: isolate;
}

.feature-card:hover {
    background-color: rgb(255 255 255 / 20%);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--background-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section - Glassmorphism */
.how-it-works {
    padding: 6rem 0;
    background: var(--background-gradient);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.step-card {
    background-color: rgb(255 255 255 / 15%);
    padding: 2rem;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), 
                        inset 0 0 3px 1px rgba(255, 255, 255, 0.7),
                        0 0 0 1px rgba(0, 0, 0, 0.05),
                        0 8px 32px rgba(0, 0, 0, 0.12);
            box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), 
                        inset 0 0 3px 1px rgba(255, 255, 255, 0.7),
                        0 0 0 1px rgba(0, 0, 0, 0.05),
                        0 8px 32px rgba(0, 0, 0, 0.12);
}

.step-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 30px;
    -webkit-backdrop-filter: blur(0px);
            backdrop-filter: blur(0px);
    -webkit-filter: url(#container-glass);
            filter: url(#container-glass);
    overflow: hidden;
    isolation: isolate;
}

.step-card > * {
    position: relative;
    z-index: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Pricing Section - Glassmorphism */
.pricing {
    padding: 6rem 0;
    background: var(--background-gradient);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background-color: rgb(255 255 255 / 15%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), 
                        inset 0 0 3px 1px rgba(255, 255, 255, 0.7),
                        0 0 0 1px rgba(0, 0, 0, 0.05),
                        0 8px 32px rgba(0, 0, 0, 0.12);
            box-shadow: inset 2px 2px 0px -2px rgba(255, 255, 255, 0.7), 
                        inset 0 0 3px 1px rgba(255, 255, 255, 0.7),
                        0 0 0 1px rgba(0, 0, 0, 0.05),
                        0 8px 32px rgba(0, 0, 0, 0.12);
}

.pricing-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 30px;
    -webkit-backdrop-filter: blur(0px);
            backdrop-filter: blur(0px);
    -webkit-filter: url(#container-glass);
            filter: url(#container-glass);
    overflow: hidden;
    isolation: isolate;
}

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.pricing-card:hover {
    background-color: rgb(255 255 255 / 20%);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

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

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 500;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features .feature-no {
    color: var(--text-secondary);
}

/* Install Section - Glassmorphism */
.install {
    padding: 6rem 0;
    background: var(--background-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.install::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 0;
}

.install-content {
    position: relative;
    z-index: 1;
}

.install-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.install-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.install-options {
    margin-bottom: 2rem;
}

.install-note {
    margin-top: 1.5rem;
}

.install-note p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Footer - Glassmorphism */
.footer {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: white;
}

.footer-section p {
    color: #D1D5DB;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .demo-browser {
        max-width: 500px;
        transform: scale(1);
    }
    
    .tooltip-1, .tooltip-2, .tooltip-3, .tooltip-4 {
        right: -250px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 2rem;
    }
    
    .hero-container {
        padding: 2rem 1rem 0;
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
        margin: 1rem 0;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
    }
    
    .demo-browser {
        max-width: 100%;
        transform: scale(0.95);
        min-height: 350px;
        margin: 0 auto;
    }
    
    .browser-content {
        padding: 1rem;
        min-height: 250px;
    }
    
    .demo-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .demo-title {
        font-size: 1.1rem;
    }
    
    .demo-paragraph {
        font-size: 0.8rem;
    }
    
    /* Demo navigation */
    .demo-nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Hide tooltips on mobile for better UX */
    .tooltip-demo {
        display: none;
    }
    
    /* Allow tooltips to show on mobile when clicked */
    .word-analysis-tooltip {
        display: none;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10000 !important;
        max-width: 90vw !important;
        width: auto !important;
    }
    
    .word-analysis-tooltip[style*="block"] {
        display: block !important;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0 0 12px 12px;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(59, 130, 246, 0.1);
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 24px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        border-radius: 1px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-cta {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    
    .feature-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 7rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        word-wrap: break-word;
        hyphens: auto;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .demo-browser {
        transform: scale(0.9);
        min-height: 300px;
    }
    
    .browser-content {
        padding: 0.75rem;
        min-height: 200px;
    }
    
    .demo-text {
        font-size: 0.8rem;
    }
    
    .demo-title {
        font-size: 1rem;
    }
    
    .demo-paragraph {
        font-size: 0.75rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .install-content h2 {
        font-size: 1.8rem;
    }
    
    .btn-large {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        padding: 0 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .hero-container {
        padding: 0 0.5rem;
    }
}

/* Video Demo Styles - Simplified */
.video-demo-container {
    width: 100%;
    height: 100%; /* Fill the entire demo content area */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 0;
    padding: 0;
}

.video-showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    margin: 0;
    padding: 0;
}

/* YouTube Subtitle Overlay Styles (Exact Copy from content.css) */
.ll-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    pointer-events: none; /* Allows clicks to pass through to the video player */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden; /* Prevents any accidental overflow */
}

.ll-subtitle-container {
    pointer-events: auto;
    display: none; /* Hide by default, only show when .ll-visible is present */
    flex-direction: row;
    transition: all 0.3s ease-in-out;
    max-height: 25vh;
    width: auto;
    max-width: 90%;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-size: 1.5vw;
}

.ll-subtitle-container.ll-youtube {
    margin-bottom: 5%;
    flex-direction: column !important;
    align-items: center !important;
}

.ll-subtitle-container.ll-visible {
    display: flex;
}

/* YouTube subtitle sizes */
.ll-subtitle-container.ll-youtube .ll-alt-original {
    font-size: 32px;
}

.ll-subtitle-container.ll-youtube .ll-alt-translated {
    font-size: 22px;
    color: #ADD8E6;
}

.ll-subtitle-container.ll-youtube .ll-alt-pronunciation {
    font-size: 19px;
}

/* Ruby annotation styles (not needed for Spanish) */
.ll-subtitle-container ruby {
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    line-height: 1;
    vertical-align: middle;
}

.ll-subtitle-container rt {
    font-size: 0.6em;
    line-height: 1.2;
    color: #F0E68C; /* khaki tone used on Netflix */
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 2px;
}

/* Analyzed word styles */
.analyzed-word {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-bottom: 1px dotted #ADD8E6;
    border-radius: 3px;
    padding: 0px;
    margin: 0px;
    transition: background-color 0.2s ease;
}

.analyzed-word:hover {
    background-color: rgba(173, 216, 230, 0.3);
}

/* Word definition tooltip - Exact copy from YouTube content script */
.word-analysis-tooltip {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 200px;
    max-width: 500px;
    min-height: auto;
    max-height: 70vh;
    background-color: rgba(25, 25, 25, 0.95);
    color: white;
    text-align: left;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    z-index: 10000;
    white-space: normal;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: none;
}

.word-analysis-tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(25, 25, 25, 0.95) transparent transparent transparent;
}

.analyzed-word:hover .word-analysis-tooltip {
    display: block;
}

/* Tooltip content styling - Exact from YouTube content script */
.word-analysis-tooltip .definition-item {
    margin-bottom: 6px;
    line-height: 1.4;
}

.word-analysis-tooltip .definition-number {
    color: #FFD700;
    font-weight: bold;
    margin-right: 6px;
}

.word-analysis-tooltip .grammar-section,
.word-analysis-tooltip .level-section {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.word-analysis-tooltip .grammar-label,
.word-analysis-tooltip .level-label {
    color: #aaa;
    font-weight: 500;
    margin-right: 6px;
}

.word-analysis-tooltip .save-hint {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #3ea6ff;
    font-size: 0.9em;
    font-style: italic;
}

.word-analysis-tooltip strong {
    display: inline-block;
    min-width: 90px;
    font-weight: bold;
    color: #f8f8f8;
}

.subtitles-showcase {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.subtitle-line {
    margin-bottom: 1rem;
}

.subtitle-line:last-child {
    margin-bottom: 0;
}

.japanese-subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.english-subtitle {
    font-size: 1rem;
    color: #ccc;
    font-style: italic;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-demo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    visibility: visible;
}

.video-thumbnail.netflix-style {
    background: linear-gradient(135deg, #e50914, #b81d13);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.play-button svg {
    width: 32px;
    height: 32px;
    color: #333;
    margin-left: 4px;
}

.netflix-play svg {
    color: #e50914;
}

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

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.video-channel {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Subtitles Container */
.subtitles-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.subtitle-line {
    margin-bottom: 1rem;
}

.subtitle-line:last-child {
    margin-bottom: 0;
}

.chinese-subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.english-subtitle {
    font-size: 1rem;
    color: #ccc;
    font-style: italic;
}

.netflix-subtitles {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.netflix-subtitles .chinese-subtitle {
    color: #fff;
}

.netflix-subtitles .english-subtitle {
    color: #ff6b6b;
}

/* Demo Content Transitions */
.demo-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
    width: 100%;
    height: 100%;
}

.demo-content:not(.active) {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    display: none;
}

.demo-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: block;
}

/* Video demo should fill the entire browser content */
.demo-content.video-demo.active {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Remove browser content padding when video demo is active */
.browser-content:has(.demo-content.video-demo.active) {
    padding: 10px !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for demo tooltip */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tooltip-demo {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for interactive elements */
.feature-card:hover .feature-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Loading animation for buttons */
.btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Saved word highlighting */
.saved-word {
    background: rgba(16, 185, 129, 0.3) !important;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.saved-word:hover {
    background: rgba(16, 185, 129, 0.4) !important;
}

/* Prompt highlight for encouraging user interaction */
.prompt-highlight {
    background: rgba(59, 130, 246, 0.2) !important;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    animation: pulse-blue 2s infinite;
}

.prompt-highlight:hover {
    background: rgba(59, 130, 246, 0.3) !important;
    animation: none;
}

@keyframes pulse-blue {
    0%, 100% {
        background: rgba(59, 130, 246, 0.2);
    }
    50% {
        background: rgba(59, 130, 246, 0.3);
    }
}
