/* 
   Sleek Dark & Silver Theme 
   Ultra Modern Polish V3
*/

:root {
    --bg-dark: #030303;
    --bg-card: rgba(20, 20, 20, 0.4);
    --bg-card-hover: rgba(30, 30, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-main: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-glow: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Noise Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* Animations */
@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
h1,
h2,
h3 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 20%, #666 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 0.8rem 1.5rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    /* Pill shape */
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    top: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
}

@media(max-width:768px) {
    .nav-links {
        display: none;
    }
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.btn-nav {
    background: #fff;
    color: #000;
    padding: 0.5rem 1.2rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-nav:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    padding: 0 1.5rem;
}

.hero h1 {
    animation: titleReveal 1s ease forwards;
}

.hero p {
    animation: titleReveal 1s ease 0.1s forwards;
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
}

/* Product Switcher */
.product-controls {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    animation: titleReveal 1s ease 0.2s forwards;
    opacity: 0;
}

.product-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-btn.active,
.product-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    gap: 1rem;
    opacity: 0;
    animation: titleReveal 1s ease 0.3s forwards;
}

.btn-primary,
.btn-secondary {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Features & Grid */
.features {
    padding: 6rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-inline: auto;
}

.product-view {
    display: none;
}

.product-view.active {
    display: block;
    animation: titleReveal 0.6s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    /* Prevents stretching */
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}

/* Mouse spotlight fallback/base */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.03), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: 0.3s;
    opacity: 0.7;
}

.feature-card:hover .feature-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: 0.2s;
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* Pricing Section */
.pricing {
    padding: 6rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pricing-card.premium {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 40px -10px rgba(0, 0, 0, 0.5);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 1rem 0 2rem;
    letter-spacing: -0.05em;
}

.features-list {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.features-list li {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    font-size: 0.95rem;
}

.features-list svg {
    stroke: #fff;
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Footer */
footer {
    padding: 4rem 1.5rem;
    background: #020202;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.2rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero {
        padding: 6rem 1.5rem;
        height: auto;
        display: block;
    }

    .nav-links {
        display: none;
    }
}