/* ============================================
   Visionary Dictionary — Website Styles
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --accent-1: #6c63ff;
    --accent-2: #e040fb;
    --accent-3: #00e5ff;
    --border-color: #2a2a3e;
    --max-width: 1100px;
    --nav-height: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-1);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-2);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
}

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

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background: radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(224, 64, 251, 0.06) 0%, transparent 60%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

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

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

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

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--bg-secondary);
    border-radius: 40px;
    border: 3px solid var(--border-color);
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.camera-notch {
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
}

.scan-overlay {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.scan-frame {
    width: 200px;
    height: 80px;
    border: 2px solid rgba(108, 99, 255, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(108, 99, 255, 0.05);
}

.scan-word {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.scan-line {
    position: absolute;
    bottom: 8px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
    animation: scanPulse 2s ease-in-out infinite;
}

@keyframes scanPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.definition-preview {
    padding: 16px 20px;
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.def-word {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.def-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.def-meaning {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* --- Features Section (Redesigned) --- */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(108, 99, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.features::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(224, 64, 251, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.features-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(224, 64, 251, 0.15));
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.features-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* --- Feature Rows (Showcase Layout) --- */
.features-showcase {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-row-reverse {
    direction: rtl;
}

.feature-row-reverse > .feature-row-content {
    direction: ltr;
}

.feature-row-reverse > .feature-row-visual {
    direction: ltr;
}

.feature-row-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-row-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-1);
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.feature-row-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.feature-row-content > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 4px;
}

.feature-row-list {
    list-style: none;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-row-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.feature-row-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: 600;
}

/* --- Feature Illustrations --- */
.feature-row-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-illustration {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-illustration:hover {
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.06);
}

/* Tap Illustration */
.tap-illustration .il-phone {
    width: 160px;
    height: 280px;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 2px solid var(--border-color);
    padding: 10px;
    position: relative;
}

.tap-illustration .il-screen {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: linear-gradient(180deg, #0d0d1a, #1a1a2e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    position: relative;
}

.il-text-line {
    height: 6px;
    background: linear-gradient(90deg, var(--border-color), rgba(108, 99, 255, 0.15));
    border-radius: 3px;
    opacity: 0.6;
}

.il-tap-ripple {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent-1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: tapRipple 2s ease-out infinite;
    opacity: 0;
}

.il-tap-ripple-2 {
    animation-delay: 1s;
}

.il-tap-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
}

@keyframes tapRipple {
    0% { width: 20px; height: 20px; opacity: 0.6; }
    100% { width: 100px; height: 100px; opacity: 0; }
}

/* Save / Card Stack Illustration */
.save-illustration {
    perspective: 800px;
}

.il-card-stack {
    position: relative;
    width: 200px;
    height: 200px;
}

.il-card {
    position: absolute;
    width: 180px;
    height: 56px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.il-card:hover {
    border-color: var(--accent-1);
}

.il-card-1 { top: 0; transform: translateX(-50%) rotateZ(-4deg); z-index: 4; }
.il-card-2 { top: 36px; transform: translateX(-50%) rotateZ(2deg); z-index: 3; }
.il-card-3 { top: 72px; transform: translateX(-50%) rotateZ(-1deg); z-index: 2; }
.il-card-4 { top: 108px; transform: translateX(-50%) rotateZ(3deg); z-index: 1; }

.il-card-word {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.il-card-check {
    font-size: 0.8rem;
    color: #4ade80;
    font-weight: 700;
}

/* Privacy / Shield Illustration */
.privacy-illustration {
    position: relative;
}

.il-shield {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.il-shield-icon {
    font-size: 3rem;
    z-index: 2;
    position: relative;
}

.il-shield-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(108, 99, 255, 0.2);
    border-radius: 50%;
    animation: shieldPulse 3s ease-in-out infinite;
}

.il-shield-ring-2 {
    width: 140%;
    height: 140%;
    animation-delay: 1.5s;
    border-color: rgba(224, 64, 251, 0.1);
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.il-device-badge {
    position: absolute;
    bottom: 30px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(0, 229, 255, 0.1));
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-3);
    letter-spacing: 0.03em;
}

/* --- CTA Section --- */
.cta {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
}

.cta-content h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.3);
    color: #fff;
}

/* --- Page Header (Privacy & Contact) --- */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.06) 0%, transparent 70%);
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

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

/* --- Content Section (Privacy Policy) --- */
.content-section {
    padding: 0 0 100px;
}

.content-body {
    max-width: 780px;
    margin: 0 auto;
}

.content-body p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.content-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--text-primary);
}

.content-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.content-body ul {
    margin: 0 0 20px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.content-body li {
    margin-bottom: 8px;
}

.content-body strong {
    color: var(--text-primary);
}

.content-body code {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-3);
    border: 1px solid var(--border-color);
}

.content-body a {
    color: var(--accent-1);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-body a:hover {
    color: var(--accent-2);
}

.contact-email {
    font-size: 1.1rem !important;
    font-weight: 600;
    margin-top: 8px;
}

.contact-email a {
    color: var(--accent-1);
    text-decoration: none;
}

.contact-email a:hover {
    color: var(--accent-2);
}

/* --- Contact Grid --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-1);
}

.contact-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.contact-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-link {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.25);
    color: #fff;
}

.response-note {
    text-align: center;
    margin-top: 48px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-badges {
        justify-content: center;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .feature-row-reverse {
        direction: ltr;
    }

    .feature-row-content {
        order: 2;
    }

    .feature-row-visual {
        order: 1;
    }

    .feature-row-list {
        align-items: center;
    }

    .feature-row-content h3 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 16px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .features-subtitle {
        font-size: 0.95rem;
    }

    .feature-row-content h3 {
        font-size: 1.3rem;
    }

    .features-showcase {
        gap: 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 32px;
        padding: 8px;
    }

    .phone-screen {
        border-radius: 24px;
    }

    .feature-illustration {
        max-width: 280px;
    }
}
