:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-vibrant: #6366f1;
    --success: #10b981;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.85);
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --card-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

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

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: 700;
    line-height: 1.3;
}

/* Header */
.header {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.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.4rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent);
}

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

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

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

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

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

.nav a.active {
    color: var(--accent);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    font-weight: 800;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-btn {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    background: var(--accent);
    color: white;
}

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

.section {
    margin-bottom: 6rem;
}

.section-tag {
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-10px);
    border-color: var(--accent);
}

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

.card:hover::after {
    height: 100%;
}

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

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

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

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

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.blog-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-decoration: none;
    display: block;
}

.blog-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 6rem 2rem 3rem;
}

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

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

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

.footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.footer a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-info p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
    text-align: center;
}

.footer-legal {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 600px;
    background: var(--primary);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

/* Legal Pages Styling */
.legal-page {
    background: var(--surface);
    padding: 5rem;
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 4rem auto;
}

.legal-page h1 { font-size: 3rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.75rem; margin-top: 3rem; margin-bottom: 1.5rem; }
.legal-page p { margin-bottom: 1.5rem; line-height: 1.8; }
.legal-page ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.legal-page li { margin-bottom: 0.5rem; }

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

@media (max-width: 768px) {
    .nav { display: none; }
    .hero { padding: 5rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .cookie-banner { bottom: 0; left: 0; right: 0; border-radius: 0; max-width: none; }
    .legal-page { padding: 3rem 1.5rem; margin: 2rem 1rem; }
}
