@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --accent: #0ea5e9; 
    --accent-glow: rgba(14, 165, 233, 0.5);
    
    /* Light Theme (Default) */
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f8fafc;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #f1f5f9;
    
    --radius: 16px;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] {
    /* Dark Theme */
    --accent: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.5);
    
    --background: #09090b;
    --foreground: #f8fafc;
    --muted: #18181b;
    --muted-foreground: #a1a1aa;
    --border: #27272a;
    --card-bg: rgba(24, 24, 27, 0.5);
    --footer-bg: #000000;
    
    --glass: rgba(9, 9, 11, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.05), transparent 25%);
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.05), transparent 25%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

nav ul {
    display: flex;
    gap: 32px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--foreground);
}

.cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Theme Toggle Button */
#theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--muted);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--muted);
    border-color: var(--muted-foreground);
}

.btn-accent {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow) inset;
}

.btn-accent:hover {
    background: var(--accent);
    color: var(--background);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 80px;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: linear-gradient(to right, var(--foreground), var(--muted-foreground));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.hero p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 40px;
    max-width: 700px;
    margin-inline: auto;
}

.hero-image {
    margin-top: 80px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    background: var(--muted);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
    z-index: 1;
    pointer-events: none;
}

/* Features/Products Grid */
.product-cards, .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

[data-theme="dark"] .card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,240,255,0.05);
}

.card .icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--primary);
}

[data-theme="dark"] .card .icon {
    color: var(--primary-light);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.card p {
    color: var(--muted-foreground);
    margin-bottom: 24px;
    font-size: 1rem;
}

.card .badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--muted);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.1);
}

.pricing-card .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    margin-bottom: 30px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 16px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

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

.pricing-features {
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--muted-foreground);
}

.pricing-features li i {
    color: var(--accent);
    margin-top: 4px;
}

/* Detail Pages */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.detail-grid.reverse {
    direction: rtl;
}

.detail-grid.reverse > * {
    direction: ltr;
}

.detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    line-height: 1.2;
}

.detail-content p {
    color: var(--muted-foreground);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--foreground);
}

.feature-list li i {
    color: var(--primary);
}

[data-theme="dark"] .feature-list li i {
    color: var(--primary-light);
}

/* Section Headings */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--muted-foreground);
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info p {
    color: var(--muted-foreground);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--foreground);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--muted-foreground);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

[data-theme="dark"] .footer-links ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 48px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .contact-container {
    box-shadow: none;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--muted-foreground);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Responsive */
@media (max-width: 968px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .detail-grid.reverse {
        direction: ltr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    header nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
