/* CSS Variables for Light & Dark Mode */
:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    
    --brand-navy: #052049;
    --brand-teal: #00b4d8;
    --brand-teal-hover: #0096b4;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    --status-live: #10b981;
    --status-beta: #f59e0b;
    --status-dev: #6366f1;
}

body.dark-mode {
    --bg-main: #0a0f1c;
    --bg-surface: #111827;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --border-color: #1f2937;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.6);
    
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.justify-center { justify-content: center; }

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-teal), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-teal), #0077b6);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal);
}

.btn-outline {
    border-color: var(--text-main);
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-main);
}

.btn-outline-light {
    border-color: white;
    color: white;
}
.btn-outline-light:hover {
    background-color: white;
    color: var(--brand-navy);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}
.icon-btn:hover { color: var(--brand-teal); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: background 0.3s ease;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}
.lang-switch a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.lang-switch a.active, .lang-switch a:hover {
    color: var(--brand-teal);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 2rem 8rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: var(--text-main);
    background: rgba(0, 180, 216, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Abstract Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    top: -10%; left: -10%;
    width: 500px; height: 500px;
    background: var(--brand-teal);
}
.shape-2 {
    bottom: -20%; right: -10%;
    width: 600px; height: 600px;
    background: #3b82f6;
    opacity: 0.2;
}

/* Common Section */
.section { padding: 6rem 0; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 3rem; }

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
body.dark-mode .glass-card {
    background: linear-gradient(145deg, #111827, #1f2937);
}

.accent-icon {
    font-size: 3rem;
    color: var(--brand-teal);
    margin-bottom: 1.5rem;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.module-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-teal);
}

.module-icon {
    width: 60px; height: 60px;
    background: rgba(0, 180, 216, 0.1);
    color: var(--brand-teal);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.module-card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.module-card p { color: var(--text-muted); margin-bottom: 2rem; flex-grow: 1; }

.badge {
    align-self: flex-start;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-live { background: rgba(16, 185, 129, 0.1); color: var(--status-live); }
.status-beta { background: rgba(245, 158, 11, 0.1); color: var(--status-beta); }
.status-dev { background: rgba(99, 102, 241, 0.1); color: var(--status-dev); }

/* Footer CTA */
.footer-cta {
    background: var(--brand-navy);
    color: white;
    padding: 6rem 0 3rem;
    position: relative;
}

.footer-title { color: white; font-size: 2.5rem; margin-bottom: 1.5rem; }
.footer-desc {
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.footer-desc strong { color: #fff; }

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 8rem; }
    .nav-actions .btn-outline { display: none; } /* Hide login in nav on mobile, keep CTA in hero */
}
/* ==========================================================================
   Legal Pages (ÁSZF / Privacy Policy)
   ========================================================================== */

.legal-hero {
    position: relative;
    padding: 10rem 2rem 3rem;
    text-align: center;
    overflow: hidden;
}

.legal-hero .container { position: relative; z-index: 2; }

.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-teal);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}
.back-link:hover { gap: 0.8rem; }

.legal-section { padding: 2rem 0 6rem; }

.legal-content {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 3.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-color);
}
.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--brand-teal);
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    text-align: justify;
}

.legal-content strong { color: var(--text-main); }

.legal-content ul,
.legal-content ol {
    color: var(--text-muted);
    margin: 0 0 1.1rem 1.4rem;
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.5rem; text-align: justify; }

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    font-size: 0.92rem;
}
.legal-content th, .legal-content td {
    border: 1px solid var(--border-color);
    padding: 0.7rem 0.9rem;
    text-align: left;
    vertical-align: top;
    color: var(--text-muted);
}
.legal-content th {
    background: rgba(0, 180, 216, 0.08);
    color: var(--text-main);
    font-weight: 600;
}

.legal-content a { color: var(--brand-teal); text-decoration: underline; }

.placeholder-field {
    background: rgba(245, 158, 11, 0.12);
    color: var(--status-beta);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

.legal-content .info-box {
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.25);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.legal-content .info-box p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .legal-content { padding: 2rem 1.25rem; border-radius: 16px; }
}

/* Footer legal links */
.footer-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}
.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--brand-teal); }
.footer-links span { color: #475569; }
