:root {
    --primary-h: 220;
    --primary-s: 70%;
    --primary-l: 50%;
    
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-light: hsl(var(--primary-h), var(--primary-s), 65%);
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 40%);
    
    --secondary: hsl(222, 47%, 11%);
    --text-main: hsl(215, 20%, 30%);
    --text-muted: hsl(215, 15%, 50%);
    --bg-light: hsl(210, 40%, 98%);
    --white: #ffffff;
    
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

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

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

/* Premium Navbar */
nav {
    background-color: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 10px 20px -5px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid hsl(214, 32%, 91%);
}

.btn-outline:hover {
    background-color: hsl(210, 40%, 96%);
    border-color: var(--primary-light);
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    text-align: center;
    background: radial-gradient(circle at top right, hsla(var(--primary-h), var(--primary-s), 95%, 0.5), transparent),
                radial-gradient(circle at bottom left, hsla(200, 70%, 95%, 0.5), transparent);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 850;
    color: var(--secondary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    animation: slideUpFade 0.8s ease-out;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    animation: slideUpFade 1s ease-out;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: slideUpFade 1.2s ease-out;
}

/* Hero Preview */
.hero-preview {
    margin-top: 5rem;
    position: relative;
    max-width: 1100px;
    margin-inline: auto;
    animation: slideUpFade 1.4s ease-out;
}

.hero-preview img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

/* Features */
.features {
    padding: 120px 0;
    background-color: var(--white);
}

.section-head {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: hsla(var(--primary-h), var(--primary-s), 50%, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 3rem;
    border-radius: 32px;
    background-color: var(--bg-light);
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background-color: var(--white);
    border-color: var(--primary-light);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

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

/* Pricing */
.pricing {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.price-card {
    background: var(--white);
    border-radius: 32px;
    padding: 4rem 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.price-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 40px 80px -20px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price-card h3 {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin: 2.5rem 0;
    flex-grow: 1;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: var(--text-main);
}

.price-features li svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: hsl(215, 20%, 60%);
    padding: 100px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 1024px) {
    .price-card.popular {
        transform: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero {
        padding: 140px 0 80px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
