:root {
    --bg-dark: #0f0518;
    --bg-card: #1a0b2e;
    --primary: #8b2df2;
    --primary-glow: #b249f8;
    --secondary: #00f0ff;
    --text-main: #ffffff;
    --text-muted: #a39eb5;
    --gradient-1: linear-gradient(135deg, #8b2df2 0%, #4c1d95 100%);
    --gradient-text: linear-gradient(to right, #fff, #c4b5fd);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    color: var(--text-main);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(15, 5, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 45, 242, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 45, 242, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav-cta {
        display: inline-block;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Hero */
.hero {
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Background blob */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 45, 242, 0.2) 0%, rgba(15, 5, 24, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: rgba(139, 45, 242, 0.15);
    color: #c4b5fd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(139, 45, 242, 0.3);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-micro {
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.app-screen {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.glow-effect {
    position: absolute;
    inset: 20px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
}

/* Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.grid-3>.card:nth-child(4):last-child {
    grid-column: 2 / 3;
}

@media (max-width: 900px) {
    .grid-3>.card:nth-child(4):last-child {
        grid-column: auto;
    }
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    background: linear-gradient(180deg, rgba(26, 11, 46, 1) 0%, rgba(35, 15, 60, 1) 100%);
    border-color: rgba(139, 45, 242, 0.2);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.card p {
    color: var(--text-muted);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* Brand Divider */
.brand-divider {
    padding: 4rem 0;
}

.brand-icon {
    width: 80px;
    height: 80px;
    opacity: 0.8;
    filter: drop-shadow(0 4px 20px rgba(139, 45, 242, 0.4));
    margin-bottom: 1rem;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.brand-logo .dot {
    color: var(--primary);
}

/* Features */
.features {
    padding: 8rem 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

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

.feature-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.feature-visual {
    flex: 1;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    border: none;
    box-shadow: none;
}

.phone-frame-small {
    width: 260px;
    border-radius: 30px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}

.phone-frame-small::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 5%;
    right: 5%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(139, 45, 242, 0.4) 0%, transparent 70%);
    filter: blur(15px);
    z-index: -1;
}

.phone-frame-small img {
    width: 100%;
    display: block;
    border-radius: 30px;
}

.store-badge {
    height: 90px;
    transition: transform 0.2s;
}

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

.download-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Feature Graphics replaced by images */

/* How It Works with connecting lines */
.how-it-works {
    padding-top: 8rem;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(139, 45, 242, 0.3);
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(139, 45, 242, 0.3);
    margin: 0 1rem;
    transform: translateY(-30px);
}

/* Smart Wake */
.smart-wake {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #230f3c 100%);
    text-align: center;
}

.smart-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

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

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

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .feature-row {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }

    .feature-visual {
        width: 100%;
    }

    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-line {
        width: 2px;
        height: 50px;
        margin: 0;
        transform: none;
    }

    .nav-links {
        display: none;
    }
}

/* Science Section */
.science-backed {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(139, 45, 242, 0.03) 50%, var(--bg-dark) 100%);
}

.science-header {
    margin-bottom: 4rem;
}

.science-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.science-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(139, 45, 242, 0.15);
    transition: all 0.3s;
    text-align: center;
}

.science-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 45, 242, 0.4);
    box-shadow: 0 20px 40px rgba(139, 45, 242, 0.15);
}

.science-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0);
}

.science-benefit {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00f0ff, #8b2df2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.science-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.science-link {
    color: #a39eb5;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.science-link:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* Privacy First Section */
.privacy-first {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(139, 45, 242, 0.05) 50%, var(--bg-dark) 100%);
}

.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-intro {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 1rem auto 3rem;
    font-weight: 600;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.privacy-item {
    text-align: center;
}

.privacy-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0);
}

.privacy-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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