/* SmileFix Premium Dark Design System */

:root {
    --bg-color: #0D0E07;
    --bg-secondary: #141510;
    --bg-surface: #1a1b14;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --accent-color: #EFFF00;
    --accent-glow: rgba(239, 255, 0, 0.3);
    --border-color: rgba(255, 255, 255, 0.08);
    --nav-height: 64px;
    --max-width: 1100px;
    --radius-xl: 32px;
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 400;
    overflow-x: hidden;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-color);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.15;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: #00ff88;
    bottom: 20%;
    right: -100px;
    opacity: 0.08;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(40px, 8vw, 72px);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(13, 14, 7, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 9999;
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

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

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

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

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-color);
    background: rgba(239, 255, 0, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(239, 255, 0, 0.2);
    margin-bottom: 32px;
}

.hero-badge i {
    font-size: 12px;
}

.hero-title {
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a8ff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 19px;
    max-width: 580px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

/* App Store Button */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 14px 28px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.app-store-btn.large {
    padding: 18px 36px;
}

.app-store-btn i {
    font-size: 28px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-small {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
}

.btn-large {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

/* Hero Image */
.hero-image {
    margin-top: 60px;
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2a2b24 0%, #1a1b14 100%);
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    border-radius: 34px;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    padding: 12px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.floating-badge i {
    color: var(--accent-color);
}

.badge-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 30%;
    right: 10%;
    animation-delay: 1.5s;
}

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

/* Features Section */
.features {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto;
}

/* Showcase Grid */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.showcase-card {
    background: var(--bg-surface);
    border-radius: var(--radius-l);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.showcase-card:hover {
    border-color: rgba(239, 255, 0, 0.2);
    transform: translateY(-4px);
}

.comparison {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.comparison-item {
    flex: 1;
    position: relative;
    border-radius: var(--radius-m);
    overflow: hidden;
}

.comparison-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.comparison-divider {
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    font-size: 14px;
    flex-shrink: 0;
}

.label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.label-after {
    background: var(--accent-color);
    color: var(--bg-color);
}

.showcase-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.showcase-info p {
    font-size: 14px;
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-l);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(239, 255, 0, 0.2);
    transform: translateY(-4px);
}

.feature-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
}

.feature-large .feature-icon {
    margin-bottom: 0;
}

.feature-large h3 {
    margin-bottom: 8px;
}

.feature-large p {
    max-width: 600px;
}

.feature-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(239, 255, 0, 0.1);
    border-radius: var(--radius-m);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 20px;
    border: 1px solid rgba(239, 255, 0, 0.2);
}

.feature-card h3 {
    font-size: 18px;
}

.feature-card p {
    font-size: 15px;
    margin: 0;
}

/* CTA Section */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    background: linear-gradient(145deg, var(--bg-surface) 0%, rgba(26, 27, 20, 0.5) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.cta-content h2 {
    margin-bottom: 12px;
}

.cta-content p {
    margin-bottom: 32px;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

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

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* Legal Pages */
.legal-container {
    max-width: 720px;
    margin: 140px auto 100px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.legal-container h1 {
    font-size: 40px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.legal-container h2 {
    font-size: 24px;
    margin-top: 40px;
}

.legal-container p,
.legal-container li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-container ul {
    padding-left: 24px;
}

.legal-container li {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-large {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .floating-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
    }

    .showcase-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-large {
        grid-column: span 1;
    }

    .comparison {
        flex-direction: column;
    }

    .comparison-divider {
        transform: rotate(90deg);
    }

    .comparison-item img {
        height: 160px;
    }

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

    .nav-links {
        gap: 20px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

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

    .app-store-btn {
        padding: 12px 20px;
    }

    .btn-large {
        font-size: 16px;
    }

    .feature-card {
        padding: 24px;
    }
}
