:root {
    /* Color Palette */
    --bg-dark: #070b14;
    --bg-panel: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    
    --accent-cyan: #00f3ff;
    --accent-cyan-hover: #33f6ff;
    --accent-cyan-glow: rgba(0, 243, 255, 0.3);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --error: #ef4444;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Layout & Spacing */
    --max-width: 1200px;
    --content-width: 800px;
    --nav-height: 80px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 243, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover, a:focus {
    color: var(--accent-cyan-hover);
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

[hidden] {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* =========================================
   Global Components
   ========================================= */
.glass-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
}

.panel {
    padding: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.primary-cta {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.primary-cta:hover {
    background-color: var(--accent-cyan-hover);
    color: var(--bg-dark);
    box-shadow: 0 0 25px var(--accent-cyan-glow), inset 0 0 10px rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn-solid {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background-color: rgba(0, 243, 255, 0.05);
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(7, 11, 20, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.brand-link:hover {
    color: var(--text-main);
}

.brand-logo {
    color: var(--accent-cyan);
    transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo {
    transform: rotate(15deg) scale(1.1);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.desktop-nav {
    display: none;
}

.header-cta {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-list a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.mobile-nav-list a:hover,
.mobile-nav-list a[aria-current="page"] {
    color: var(--accent-cyan);
}

/* =========================================
   Home Page: Hero Section
   ========================================= */
main {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

.hero-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - var(--nav-height) - 100px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glass-orb {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 243, 255, 0.2), rgba(0, 243, 255, 0.01) 60%, transparent 80%);
    box-shadow: 
        0 0 60px rgba(0, 243, 255, 0.15), 
        inset 0 0 30px rgba(0, 243, 255, 0.3),
        inset 10px 10px 20px rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.glass-orb::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px; bottom: -20px; left: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 243, 255, 0.2);
    animation: spin 30s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* =========================================
   Home Page: Guides Section
   ========================================= */
.guides-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--accent-cyan);
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.glass-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.1);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
    transition: transform var(--transition-smooth);
}

.glass-card:hover .card-image {
    transform: scale(1.02);
}

.card-overlay {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to top, rgba(7, 11, 20, 0.8), transparent);
}

.card-tag {
    align-self: flex-start;
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.glass-card:hover .card-title {
    color: var(--accent-cyan);
}

.card-desc {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =========================================
   Home Page: Supporting Section
   ========================================= */
.supporting-section {
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.supporting-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
}

.supporting-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.supporting-content p {
    font-size: 1.1rem;
    text-align: left;
}

/* =========================================
   Article Pages
   ========================================= */
.article-page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.category-tag {
    display: inline-block;
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.article-lead {
    font-size: 1.2rem;
    color: var(--text-main);
    opacity: 0.9;
}

.article-featured-image {
    margin-bottom: 3rem;
}

.full-width-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-content h2 {
    font-size: 1.75rem;
    color: var(--accent-cyan);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.article-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.article-content li::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    color: var(--accent-cyan);
}

/* =========================================
   Legal Pages (TOS, Privacy, Cookies)
   ========================================= */
.legal-page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.legal-container {
    padding: 2.5rem;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
}

.legal-container > p:first-of-type {
    margin-bottom: 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-container section {
    margin-bottom: 2.5rem;
}

.legal-container h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.legal-container ul {
    padding-left: 1.5rem;
    list-style-type: disc;
    margin-bottom: 1.5rem;
}

.legal-container li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Table styles */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cookie-table th, 
.cookie-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.cookie-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-weight: 600;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================
   Contact Page
   ========================================= */
.contact-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.contact-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.2);
}

.error-message {
    display: block;
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.form-success {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    text-align: center;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-panel p {
    margin-bottom: 0.75rem;
}

.info-panel strong {
    color: var(--text-main);
}

.map-visual {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #020617;
}

.map-svg {
    display: block;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background: #040811;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 1.5rem 2rem;
    margin-top: auto;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .brand-name {
    display: inline-block;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.company-details, .contact-email {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* =========================================
   Cookie Banner
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--accent-cyan-glow);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cookie-banner-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =========================================
   Media Queries
   ========================================= */
@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 3fr 2fr;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .cookie-banner {
        max-width: 600px;
        left: auto;
    }
    
    .cookie-actions {
        justify-content: flex-end;
    }
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
    
    .desktop-nav {
        display: block;
    }
    
    .nav-list {
        display: flex;
        gap: 2rem;
    }
    
    .nav-list a {
        color: var(--text-main);
        font-weight: 500;
        transition: color var(--transition-fast);
    }
    
    .nav-list a:hover,
    .nav-list a[aria-current="page"] {
        color: var(--accent-cyan);
    }
    
    .header-cta {
        display: inline-flex;
    }
    
    .hero-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .glass-orb {
        width: 350px;
        height: 350px;
    }
    
    .glass-orb::after {
        top: -30px; right: -30px; bottom: -30px; left: -30px;
    }
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}