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

:root {
    /* Light Mode - Default */
    --primary-orange: #FF8D5C;
    --orange-dark: #FF6B35;
    --orange-light: #FFDDD0;
    --background-cream: #FFF7EE;
    --background-dark: #1A1A1A;
    --surface: #FFFFFE;
    --surface-variant: #FFF2E4;
    --text-dark: #2D2D2D;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 8px 32px rgba(255, 107, 74, 0.12);
    --shadow-glow: 0 0 40px rgba(255, 107, 74, 0.15);
    --card-bg: var(--white);
    --card-border: #E8E8E8;
    --code-bg: #F5F5F5;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-orange: #FF8D5C;
    --orange-dark: #FF6B35;
    --orange-light: #4A3428;
    --background-cream: #1A1A1A;
    --background-dark: #0D0D0D;
    --surface: #2A2A2A;
    --surface-variant: #353535;
    --text-dark: #E8E8E8;
    --text-gray: #B0B0B0;
    --text-light: #888888;
    --white: #2A2A2A;
    --glass-bg: rgba(42, 42, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(255, 141, 92, 0.2);
    --card-bg: #2A2A2A;
    --card-border: #3A3A3A;
    --code-bg: #353535;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    filter: brightness(0) saturate(100%) invert(56%) sepia(79%) saturate(2788%) hue-rotate(337deg) brightness(101%) contrast(101%);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(360deg) scale(1.1);
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--orange-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    height: auto;
    position: relative;
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 32px;
    align-items: center;
}

.menu > li {
    margin: 0;
}

.menu-button-container {
    display: none;
    height: 30px;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: var(--text-dark);
    position: absolute;
    height: 3px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

@media (max-width: 768px) {
    .menu-button-container {
        display: flex;
        z-index: 102;
    }
    
    .menu {
        position: fixed;
        top: 70px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        background-color: var(--white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 400ms cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 101;
    }
    
    #menu-toggle:checked ~ .menu {
        max-height: 500px;
    }
    
    .menu > li {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 16px 20px;
        border-bottom: 1px solid var(--background-cream);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 300ms ease, transform 300ms ease;
    }
    
    #menu-toggle:checked ~ .menu > li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .menu > li:last-child {
        border-bottom: none;
    }
    
    .menu > li a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Definition Card */
.definition-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary-orange);
    border-radius: 16px;
    padding: 24px 28px;
    max-width: 540px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.definition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), 0 12px 40px rgba(255, 107, 74, 0.15);
}

.word-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-family: 'Georgia', serif;
}

.phonetic {
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 6px;
    font-family: 'Georgia', serif;
}

.part-of-speech {
    font-size: 13px;
    color: var(--primary-orange);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 10px;
    text-transform: lowercase;
}

.definition-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    font-family: 'Georgia', serif;
    padding-left: 18px;
    position: relative;
}

.definition-text::before {
    content: '1.';
    position: absolute;
    left: 0;
    color: var(--text-gray);
    font-weight: 600;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255, 107, 74, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 80% 20%, rgba(255, 139, 106, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 80% at 60% 80%, rgba(255, 78, 40, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--background-cream) 0%, #FFF 40%, var(--background-cream) 100%);
    z-index: 0;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 900px;
    height: 900px;
    background: conic-gradient(from 0deg at 50% 50%, 
        rgba(255, 107, 74, 0.1) 0deg, 
        transparent 60deg, 
        rgba(255, 139, 106, 0.08) 120deg, 
        transparent 180deg,
        rgba(255, 78, 40, 0.1) 240deg,
        transparent 300deg,
        rgba(255, 107, 74, 0.1) 360deg);
    border-radius: 50%;
    animation: slowRotate 30s linear infinite;
    will-change: transform;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: conic-gradient(from 180deg at 50% 50%, 
        rgba(255, 78, 40, 0.08) 0deg, 
        transparent 90deg, 
        rgba(255, 107, 74, 0.1) 180deg, 
        transparent 270deg,
        rgba(255, 78, 40, 0.08) 360deg);
    border-radius: 50%;
    animation: slowRotate 25s linear infinite reverse;
    will-change: transform;
}


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

/* Left Content - animations removed for LCP optimization */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 74, 0.1);
    border: 1px solid rgba(255, 107, 74, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-orange);
    margin-bottom: 24px;
    /* Removed animation for faster LCP */
}

.badge-emoji {
    font-size: 16px;
    animation: sparkle 2s ease-in-out infinite;
}

.hero-title {
    font-size: 68px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 28px;
    color: var(--text-dark);
    contain: layout style paint;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--orange-dark) 50%, var(--orange-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -4px;
    right: -4px;
    height: 16px;
    background: linear-gradient(90deg, rgba(255, 107, 74, 0.25), rgba(255, 78, 40, 0.3), rgba(255, 107, 74, 0.25));
    z-index: -1;
    border-radius: 8px;
    transform: skewX(-3deg);
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 24px;
    max-width: 540px;
    /* Removed animation for faster LCP */
}

/* Signup Form */
.signup-form-wrapper {
    margin-bottom: 24px;
    /* Removed animation for faster LCP */
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    max-width: 540px;
}

.email-input,
#EMAIL {
    flex: 1;
    padding: 16px 20px !important;
    font-size: 16px !important;
    border: 2px solid #D0D0D0 !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
    background: var(--white) !important;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
}

.email-input:focus,
#EMAIL:focus {
    outline: none !important;
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.1) !important;
    transform: translateY(-2px) !important;
}

.email-input::placeholder,
#EMAIL::placeholder {
    color: #999999 !important;
    font-weight: 400 !important;
}

.submit-button {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--orange-dark) 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(255, 107, 74, 0.35), 0 0 0 0 rgba(255, 107, 74, 0.4);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255, 107, 74, 0.45), 0 0 20px rgba(255, 107, 74, 0.2);
}

.submit-button:active {
    transform: translateY(0);
}

.form-hint {
    font-size: 14px;
    color: var(--text-light);
    max-width: 540px;
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 100%;
    margin-top: 32px;
    /* Removed animation for faster LCP */
}

.timeline-item {
    position: relative;
    transition: all 0.4s ease;
}

.timeline-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.timeline-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-item.active .timeline-panel {
    background: var(--white);
    border-color: var(--primary-orange);
    box-shadow: 0 12px 32px rgba(255, 107, 74, 0.25), var(--shadow-glow);
    transform: translateY(-8px) scale(1.02);
}

.timeline-item.active .timeline-panel::before {
    opacity: 1;
}

.timeline-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #F8F8F8, #EFEFEF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-gray);
    margin: 0 auto 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.timeline-item.active .timeline-number {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(255, 107, 74, 0.4), 0 0 20px rgba(255, 107, 74, 0.2);
}

.timeline-panel h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-panel p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Right Content - Phone */
.hero-right {
    position: relative;
    /* Removed animation for faster LCP */
    margin-top: -60px;
}

.phone-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.phone-mockup {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 36px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.18),
        0 10px 30px rgba(255, 107, 74, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    content-visibility: auto;
}

.phone-mockup:hover {
    transform: scale(1.06) rotateY(5deg) translateY(-8px);
    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.2),
        0 15px 40px rgba(255, 107, 74, 0.18),
        0 0 60px rgba(255, 107, 74, 0.1);
}

.phone-mockup.fade-out {
    opacity: 0;
}

.phone-mockup.fade-in {
    opacity: 1;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 107, 74, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 78, 40, 0.2) 0%, transparent 50%);
    z-index: -1;
    filter: blur(50px);
    animation: pulseGlow 4s ease-in-out infinite;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--background-dark) 0%, #0D0D0D 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-link:hover {
    color: var(--primary-orange);
    background: rgba(255, 107, 74, 0.1);
}

/* Privacy Policy Page */
.privacy-content {
    padding: 80px 0;
    background: var(--background-cream);
    min-height: calc(100vh - 200px);
}

.privacy-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.privacy-wrapper h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.last-updated {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 48px;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    margin-top: 32px;
}

.privacy-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 24px;
}

.privacy-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.privacy-section ul {
    margin: 16px 0 16px 24px;
}

.privacy-section li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.privacy-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.1), rgba(255, 107, 74, 0.05));
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-orange);
    margin: 24px 0 16px 0;
    font-size: 18px;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15) rotate(3deg);
    }
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
        margin-top: 0;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .form-group {
        margin-left: auto;
        margin-right: auto;
    }

    .form-hint {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .definition-card {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .header {
        padding: 20px 0;
    }

    .definition-card {
        padding: 16px 20px;
        margin-bottom: 24px;
    }

    .word-title {
        font-size: 20px;
    }

    .phonetic {
        font-size: 13px;
    }

    .definition-text {
        font-size: 14px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .signup-form-wrapper {
        padding: 0;
        width: 100%;
    }

    .form-group {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    .email-input,
    #EMAIL {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .submit-button {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .form-hint {
        padding: 0;
        box-sizing: border-box;
        text-align: center;
    }

    .phone-mockup {
        max-width: 320px;
    }

    .timeline {
        grid-template-columns: 1fr;
        margin-top: 32px;
        gap: 12px;
    }

    .timeline-panel {
        padding: 20px 16px;
    }

    .timeline-panel h4 {
        font-size: 14px;
    }

    .timeline-panel p {
        font-size: 12px;
    }

    .timeline-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .privacy-content {
        padding: 40px 0;
    }

    .privacy-wrapper {
        padding: 32px 24px;
    }

    .privacy-wrapper h1 {
        font-size: 32px;
    }

    .privacy-section h2 {
        font-size: 24px;
    }

    .privacy-section h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .logo {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 16px;
    }

    .stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-item {
        flex: 1;
        min-width: 100px;
    }
}

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

/* Hide input autofill styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Input hidden */
.input--hidden {
    position: absolute;
    left: -9999px;
}

/* ==================== */
/* Dark Mode Toggle */
/* ==================== */
.theme-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--surface-variant);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    padding: 2px;
}

.theme-toggle:hover {
    border-color: var(--primary-orange);
}

.theme-toggle-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-dark));
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 74, 0.3);
}

.theme-toggle-thumb svg {
    width: 12px;
    height: 12px;
    fill: white;
}

[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(28px);
}

.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

/* Dark mode specific overrides */
[data-theme="dark"] .logo {
    filter: brightness(1.2);
}

[data-theme="dark"] .menu-button,
[data-theme="dark"] .menu-button::before,
[data-theme="dark"] .menu-button::after {
    background-color: var(--text-dark);
}

[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
    -webkit-text-fill-color: var(--text-dark);
}

/* Homepage dark mode fixes */
[data-theme="dark"] .hero-background {
    background: #1A1A1A;
}

[data-theme="dark"] section {
    background: #1A1A1A !important;
}

[data-theme="dark"] #features,
[data-theme="dark"] #faq {
    background: #1A1A1A !important;
}

[data-theme="dark"] .hero {
    background: #1A1A1A;
}

[data-theme="dark"] body {
    background: #1A1A1A;
}

[data-theme="dark"] .blog-hero,
[data-theme="dark"] .page-header,
[data-theme="dark"] .legal-content {
    background: #1A1A1A !important;
}

[data-theme="dark"] .footer {
    background: #1A1A1A !important;
}

[data-theme="dark"] .phone-glow {
    background: radial-gradient(circle, rgba(255, 141, 92, 0.3) 0%, transparent 70%);
}

[data-theme="dark"] .hero-title {
    color: #E8E8E8;
}

[data-theme="dark"] .hero-description {
    color: #B0B0B0;
}

[data-theme="dark"] .definition-card {
    background: #2A2A2A;
    border-color: #3A3A3A;
    border-left-color: var(--primary-orange);
}

[data-theme="dark"] .word-title {
    color: #E8E8E8;
}

[data-theme="dark"] .phonetic {
    color: #888888;
}

[data-theme="dark"] .word-type {
    color: var(--primary-orange);
}

[data-theme="dark"] .definition-text {
    color: #B0B0B0;
}

[data-theme="dark"] .section-header h2 {
    color: #E8E8E8;
}

[data-theme="dark"] .section-header p {
    color: #B0B0B0;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .feature-card[style] {
    background: rgba(42, 42, 42, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .feature-card h3 {
    color: #E8E8E8 !important;
}

[data-theme="dark"] .feature-card p {
    color: #B0B0B0 !important;
}

[data-theme="dark"] .feature-icon {
    background: rgba(255, 141, 92, 0.15);
}

[data-theme="dark"] .timeline-panel {
    background: #2A2A2A;
    border-color: #3A3A3A;
}

[data-theme="dark"] .timeline-panel h3 {
    color: #E8E8E8;
}

[data-theme="dark"] .timeline-panel p {
    color: #B0B0B0;
}

[data-theme="dark"] .timeline-number {
    background: linear-gradient(135deg, #3A3A3A, #4A4A4A);
    color: white;
    font-weight: 700;
}

[data-theme="dark"] .timeline-item.active .timeline-number {
    color: white;
}

[data-theme="dark"] .faq-item,
[data-theme="dark"] details[style] {
    background: rgba(42, 42, 42, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .faq-item summary,
[data-theme="dark"] details summary {
    color: #E8E8E8 !important;
}

[data-theme="dark"] .faq-item summary span:first-child,
[data-theme="dark"] details summary span:first-child {
    color: #E8E8E8 !important;
}

[data-theme="dark"] .faq-item p,
[data-theme="dark"] .faq-content p,
[data-theme="dark"] details p {
    color: #B0B0B0 !important;
}

[data-theme="dark"] .faq-question {
    color: #E8E8E8;
}

[data-theme="dark"] .faq-answer {
    color: #B0B0B0;
}

[data-theme="dark"] .stats {
    background: #2A2A2A;
    border-color: #3A3A3A;
}

[data-theme="dark"] .stat-value {
    color: #E8E8E8;
}

[data-theme="dark"] .stat-label {
    color: #B0B0B0;
}

[data-theme="dark"] .email-input,
[data-theme="dark"] #EMAIL {
    background: #2A2A2A;
    border-color: #3A3A3A;
    color: #E8E8E8;
}

[data-theme="dark"] .email-input::placeholder {
    color: #888888;
}

[data-theme="dark"] .header {
    background: transparent !important;
}

[data-theme="dark"] .menu a {
    color: #E8E8E8 !important;
}

/* Blog specific styles */
.blog-hero {
    background: linear-gradient(180deg, var(--background-cream) 0%, var(--surface) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 141, 92, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--orange-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-orange);
}

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

.blog-card-content {
    padding: 32px;
}

.blog-date {
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.blog-read-more {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.blog-card:hover .blog-read-more {
    gap: 10px;
}

/* Article styles */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 32px;
}

.article-container h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.article-meta {
    color: var(--text-gray);
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.article-container h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 56px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.article-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-container p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.article-container ul,
.article-container ol {
    margin: 24px 0;
    padding-left: 24px;
}

.article-container li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.article-container strong {
    color: var(--primary-orange);
    font-weight: 600;
}

.article-cta {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--orange-dark) 100%);
    border-radius: 20px;
    padding: 48px;
    margin: 56px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.article-cta h3 {
    color: white;
    margin-top: 0;
    font-size: 28px;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto 24px;
}

.article-cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-orange);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.article-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Privacy & Terms page styles */
.legal-content {
    padding: 60px 0 100px;
    background: var(--background-cream);
    min-height: calc(100vh - 200px);
}

.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
}

.legal-wrapper h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.legal-wrapper .last-updated {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    margin-top: 40px;
}

.legal-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 28px;
}

.legal-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.legal-section ul {
    margin: 16px 0 16px 24px;
}

.legal-section li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.legal-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-highlight {
    background: linear-gradient(135deg, rgba(255, 141, 92, 0.1), rgba(255, 107, 53, 0.05));
    padding: 24px 28px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-orange);
    margin: 24px 0;
}

.legal-highlight p {
    margin-bottom: 0;
    color: var(--text-dark);
}

/* Page header with gradient */
.page-header {
    background: linear-gradient(180deg, var(--background-cream) 0%, var(--surface) 100%);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 141, 92, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header h1 {
    font-size: 56px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 600px;
}

/* Mobile dark mode adjustments */
@media (max-width: 768px) {
    .theme-toggle-wrapper {
        margin-left: auto;
    }
    
    .theme-toggle-label {
        display: none;
    }
    
    .legal-wrapper {
        padding: 32px 24px;
    }
    
    .legal-wrapper h1 {
        font-size: 32px;
    }
    
    .article-container h1 {
        font-size: 32px;
    }
    
    .article-cta {
        padding: 32px 24px;
    }
    
    .page-header {
        padding: 120px 0 40px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
}
