/* ==========================================
   Reset & Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* App Soft Colors from Color.kt */
    --red-soft: #D25757;
    --blue-soft: #43ADFF;
    --yellow-soft: #FFEAA7;  /* Softer yellow for dark mode */
    --green-soft: #B8E6D5;   /* Softer green for light mode */

    /* Dark Theme */
    --dark-bg: #121212;
    --dark-surface: #1E1E1E;
    --dark-text: #E0E0E0;
    --dark-text-secondary: #A0A0A0;

    /* Light Theme */
    --light-bg: #FFFFFF;
    --light-surface: #F5F5F5;
    --light-text: #1f2937;
    --light-text-secondary: #6b7280;

    /* Default to Dark Theme */
    --bg-primary: var(--dark-bg);
    --bg-surface: var(--dark-surface);
    --text-primary: var(--dark-text);
    --text-secondary: var(--dark-text-secondary);
    --primary-accent: var(--blue-soft);
    --features-bg: var(--yellow-soft);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 1.5rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
}

/* Light Theme */
body.light-theme {
    --bg-primary: var(--light-bg);
    --bg-surface: var(--light-surface);
    --text-primary: var(--light-text);
    --text-secondary: var(--light-text-secondary);
    --primary-accent: var(--red-soft);       /* Red soft for light mode */
    --features-bg: var(--green-soft);        /* Green soft for features section */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid rgba(67, 173, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

body.light-theme .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav {
    padding: 1rem 0;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-accent);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.logo img {
    display: inline-block;
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    vertical-align: middle;
}

.logo a {
    color: var(--primary-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-accent);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--primary-accent);
    color: var(--bg-primary);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    background: var(--dark-bg);
    padding: 4rem 1.5rem;
    min-height: 600px;
}

body.light-theme .hero {
    background: var(--light-surface);
}

.hero-container {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 6rem;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 2rem;
}

/* Mobile Phone Frame */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 570px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.light-theme .phone-mockup {
    background: #2a2a2a;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

body.light-theme .phone-mockup::before {
    background: #2a2a2a;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    z-index: 3;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.google-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: none;
    margin-top: 2rem;
}

.google-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
}

.google-play-btn svg {
    width: 24px;
    height: 24px;
}

.hero-right {
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-accent);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-quote {
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-primary);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-accent);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

/* ==========================================
   Features Section (Yellow)
   ========================================== */
.features {
    padding: var(--section-padding);
    background: var(--features-bg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--features-bg);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 3px solid #000000;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0px #000000;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #000000;
}

.feature-card p {
    color: #1f2937;
    line-height: 1.6;
    font-weight: 500;
}

/* ==========================================
   About Section (Black - Why GenZ Dictionary)
   ========================================== */
.about {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

body.light-theme .about {
    background: var(--light-bg);
}

.about .section-title {
    color: var(--primary-accent);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-highlight {
    display: inline-block;
    color: var(--primary-accent);
    font-weight: 600;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--dark-surface);
    color: var(--dark-text);
    padding: 2rem 1.5rem;
}

body.light-theme .footer {
    background: #2a2a2a;
    color: #e0e0e0;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary-accent);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-email {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-email a {
    color: var(--primary-accent);
    text-decoration: underline;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(var(--primary-accent-rgb), 0.2);
}

/* ==========================================
   Privacy Policy Page
   ========================================== */
.privacy-page {
    padding: 2rem 1.5rem 4rem;
    background: var(--bg-primary);
    min-height: calc(100vh - 200px);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.privacy-content h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-accent);
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.privacy-intro {
    background: rgba(67, 173, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--primary-accent);
}

body.light-theme .privacy-intro {
    background: rgba(210, 87, 87, 0.1);
}

.privacy-intro p {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.privacy-intro p:last-child {
    margin-bottom: 0;
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-accent);
}

.privacy-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.privacy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-section ul {
    margin: 1rem 0 1rem 1.5rem;
    list-style-type: disc;
}

.privacy-section ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.privacy-highlight {
    background: rgba(67, 173, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-accent);
    margin: 1.5rem 0;
}

body.light-theme .privacy-highlight {
    background: rgba(210, 87, 87, 0.15);
}

.privacy-highlight strong {
    color: var(--primary-accent);
}

.contact-email {
    color: var(--primary-accent);
    font-weight: 600;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-left {
        order: 1;
        align-items: center;
        padding-left: 0;
    }

    .hero-right {
        order: 2;
        text-align: center;
    }

    .hero-quote {
        text-align: left;
    }

    .phone-mockup {
        width: 260px;
        height: 530px;
    }
}

@media (max-width: 768px) {
    .nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .phone-mockup {
        width: 240px;
        height: 490px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .privacy-content {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 1rem;
    }

    .privacy-content {
        padding: 1.5rem 1rem;
    }

    .privacy-section ul {
        margin-left: 1rem;
    }
}

/* ==========================================
   Utilities
   ========================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
