:root {
    --primary-color: #714D34;
    --primary-light: #F1EDEB;
    --accent-color: #F27641;

    /* Light Mode */
    --bg-color: #F4F6F5;
    --surface-color: #ffffff;
    --text-main: #121622;
    --text-muted: #60646D;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(113, 77, 52, 0.08);
}

.dark-theme {
    /* Dark Mode */
    --bg-color: #111111;
    --surface-color: #1C1C1C;
    --surface-card: #242424;
    --text-main: #F4F6F5;
    --text-muted: #A1A6B0;
    --glass-bg: rgba(28, 28, 28, 0.6);
    --glass-border: rgba(64, 64, 64, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cabinet Grotesk', sans-serif;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 10px;
}

.logo-img-footer {
    height: 60px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
    border-radius: 14px;
}

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

.header-slogan {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    padding-left: 1.5rem;
    border-left: 2px solid var(--glass-border);
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.theme-btn:hover {
    background: var(--glass-border);
}

.hidden {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 60%);
    opacity: 0.1;
    filter: blur(60px);
    z-index: 0;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 60%);
    opacity: 0.15;
    filter: blur(60px);
    z-index: 0;
    border-radius: 50%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.pill-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glass-border);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

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

.subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 90%;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--text-main);
    color: var(--bg-color);
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.store-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.dark-theme .store-btn {
    box-shadow: 0 8px 24px rgba(113, 77, 52, 0.3);
}

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

.btn-text span {
    font-size: 0.65rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-text strong {
    font-size: 1.1rem;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 700;
}

.hero-images {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: var(--text-main);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--glass-shadow);
    position: relative;
    transform: rotate(5deg) scale(0.95);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1);
}

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

.mockup-content {
    width: 100%;
    height: 100%;
    position: relative;
}

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

/* Scan Animation representing AI Try-On */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color), 0 0 30px var(--accent-color);
    animation: scan 3s ease-in-out infinite alternate;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Features */
.features {
    padding: 8rem 8%;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark-theme .glass-card:hover {
    box-shadow: 0 20px 40px rgba(113, 77, 52, 0.2);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.dark-theme .icon-wrapper {
    background: rgba(113, 77, 52, 0.2);
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

/* Privacy & Terms Pages */
.page-container {
    padding: 120px 5% 4rem;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 80vh;
}

.page-content {
    line-height: 1.8;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.page-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.page-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--surface-card);
    padding: 4rem 8% 2rem;
    border-top: 1px solid var(--glass-border);
}

.dark-theme footer {
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo p.footer-slogan {
    color: var(--text-main);
    margin-top: 1rem;
    font-weight: 600;
    max-width: 350px;
}

.footer-logo p.footer-detail {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 400px;
}

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

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

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

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

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin-bottom: 4rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .subtitle {
        margin: 0 auto 2rem;
    }

    .store-buttons {
        justify-content: center;
    }

    .hero-images {
        justify-content: center;
        width: 100%;
    }

    .header-slogan {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {

    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}