:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --success: #10b981;
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --hero-gradient: radial-gradient(circle at top right, #1e1b4b 0%, #0f172a 100%);
    --glass: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    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;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Header */
.header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav a:hover::after, .nav a.active::after {
    width: 100%;
}

.nav a:hover, .nav a.active {
    color: var(--text);
}

/* Hero */
.hero {
    background: var(--hero-gradient);
    color: white;
    padding: 10rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
    animation: fadeIn 1s ease-out backwards;
}

.hero-btn {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    animation: fadeIn 1.2s ease-out backwards;
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

/* Main Content */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section {
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Cards Grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Blog List Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.blog-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.blog-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-link:hover {
    text-decoration: underline;
}

/* Article Styles */
.article-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: var(--hero-gradient);
}

.article-header h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    max-width: 900px;
    margin: 0 auto 2rem;
}

.article-container {
    max-width: 800px;
    margin: -4rem auto 6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 4rem;
    position: relative;
    z-index: 10;
}

.article-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    text-align: left;
    background: none;
    -webkit-text-fill-color: initial;
    color: white;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #070b14;
    padding: 6rem 2rem 3rem;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-legal {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Contact Page Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    background: var(--surface);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}

.form-btn {
    width: 100%;
    background: var(--accent-gradient);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Privacy Page */
.legal-container {
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.legal-card {
    background: var(--surface);
    border-radius: 32px;
    border: 1px solid var(--border);
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Cookie Banner Refined */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border-radius: 20px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeIn 0.5s ease-out;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
}

.cookie-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .cookie-btn {
        width: 100%;
    }
}
