@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --color-primary: #3498db;
    --color-secondary: #2c3e50;
    --color-accent: #00d2ff;
    --color-bg-dark: #0f172a;
    --color-text-white: #f8fafc;
    --color-text-dim: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    line-height: 1.6;
}

/* Background Elements */
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

#blob1 {
    top: -10%;
    left: -10%;
}

#blob2 {
    bottom: -10%;
    right: -10%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Glass Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(to bottom, rgba(10, 15, 28, 0.5) 0%, rgba(10, 15, 28, 1) 100%), url('./assets/hero.png') center/cover no-repeat;
    padding-top: 80px;
}

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

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    color: var(--color-text-dim);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 48px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.5);
}

/* Reality Grid */
section {
    padding: 120px 0;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.reality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.reality-card {
    padding: 48px;
    text-align: center;
    transition: var(--transition);
}

.reality-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.reality-card h3 {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 16px;
}

/* Features Section */
#features {
    text-align: center;
}

.feature-img img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.feature-item h4 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* AQI Widget */
#aqi-widget-section {
    background: linear-gradient(180deg, var(--color-bg-dark), #1e293b);
}

.aqi-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
}

.aqi-display {
    font-size: 8rem;
    font-weight: 700;
    margin: 24px 0;
    color: var(--color-accent);
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    padding: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 24px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

/* App Section */
.app-mockup img {
    width: 100%;
    border-radius: 32px;
    transform: perspective(1000px) rotateX(10deg);
    transition: var(--transition);
}

.app-mockup:hover img {
    transform: perspective(1000px) rotateX(0deg);
}

/* Animation Classes */
.reveal,
.reveal-left,
.reveal-right,
.reveal-zoom,
.reveal-slide-up {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal,
.reveal-slide-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-zoom {
    transform: scale(0.9);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-zoom.active,
.reveal-slide-up.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Responsive */
@media (max-width: 968px) {
    #features {
        grid-template-columns: 1fr;
    }

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