/* Base Design System */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --glass: rgba(15, 23, 42, 0.8);
    --border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.text-center { text-align: center; }
.section-padding { padding: 8rem 0; }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-title span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.6);
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #334155;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.full-width { width: 100%; display: block; text-align: center; }

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    padding-top: 12rem;
    padding-bottom: 10rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero .grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    color: var(--white);
}

.stat span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Hero Image & Floating Cards */
.hero-image {
    position: relative;
    perspective: 1000px;
}

.image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: visible;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transform: rotateX(10deg) rotateY(-10deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: rotateX(0deg) rotateY(0deg);
}

.image-wrapper img {
    width: 100%;
    border-radius: 1.5rem;
    display: block;
}

.floating-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    animation: float 4s ease-in-out infinite;
}

.floating-card i { color: var(--primary); width: 20px; height: 20px; }

.c-1 { top: 10%; left: -15%; }
.c-2 { bottom: 20%; right: -10%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Features Section */
.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.price-card {
    background: var(--bg-alt);
    padding: 3rem 2rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}

.price-card.featured {
    padding: 4rem 2rem;
    background: rgba(79, 70, 229, 0.05);
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.price-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
}

.price-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.price-promo {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.price-start {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.price-style {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 0.5rem;
}

.price-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.price span { font-size: 3.5rem; }

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
}

.price-card ul li {
    margin-bottom: 1rem;
    display: block;
    color: var(--text-muted);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.1rem;
}

.faq-answer {
    padding-top: 1rem;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-answer { display: block; }
.faq-item.active i { transform: rotate(180deg); transition: transform 0.3s; }

/* Final CTA */
.cta-box {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 5rem;
    border-radius: 3rem;
    color: var(--white);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.no-card {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Footer */
footer {
    background: #020617;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    margin-bottom: 4rem;
}

.footer-info p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover { color: var(--primary); }

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.8rem; }
.footer-links ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Flash Sale Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.modal-content {
    background: var(--bg-alt);
    max-width: 500px;
    width: 100%;
    padding: 3rem;
    border-radius: 2rem;
    border: 2px solid var(--primary);
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.5);
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-badge {
    background: linear-gradient(90deg, var(--accent), #ef4444);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

.modal-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.modal-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.modal-timer {
    font-size: 0.9rem;
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-note {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@media (max-width: 480px) {
    .modal-content { padding: 2rem 1.5rem; }
    .modal-content h2 { font-size: 1.8rem; }
}
