:root {
    --bg-color: #050505;
    --card-bg: #0f1012;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-yellow: #facc15; /* Matching the yellow tone */
    --accent-glow: rgba(250, 204, 21, 0.4);
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; /* Subtle grid background */
}

/* --- Layout Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-main);
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--text-main);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    justify-self: end;
}

.lang-switch span {
    color: var(--text-muted);
}

.lang-switch a {
    color: var(--text-muted);
    text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100svh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;
    padding: 80px 0;
}

/* Enhanced, natural background glow */
.hero::before {
    content: '';
    position: absolute;
    top: 36%;            /* slightly above center to align with X */
    left: 50%;
    transform: translate(-50%, -50%);

    width: 60vw;          /* responsive circular size */
    height: 60vw;
    max-width: 600px;     /* cap for very large screens */
    max-height: 600px;

    background: radial-gradient(circle,
        rgba(250, 204, 21, 0.15) 0%,   /* bright core */
        rgba(250, 204, 21, 0.075) 40%,  /* soft mid glow */
        rgba(250, 204, 21, 0.0) 80%      /* fades out naturally */
    );

    filter: blur(100px);  /* soft, neon-like glow */
    z-index: -1;
    pointer-events: none;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    align-self: center;
    border: 1px solid var(--accent-yellow);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    background: rgba(255,255,255,0.02);
    text-decoration: none;
    transition: color 0.5s ease;
}

.pill-badge i {
    color: var(--accent-yellow);
    font-size: 0.7rem;
}

.pill-badge:hover {
    color: var(--text-main); /* text turns white */
}

.pill-badge .external-link-icon {
    color: #555; /* default grey */
    transition: color 0.5s ease;
}

.pill-badge:hover .external-link-icon {
    color: var(--text-main); /* turns white on hover */
}

h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 20px;
    line-height: 1.1;
}

h1 .x-accent {
    color: var(--accent-yellow);
}

.hero p.subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-outline {
    background: #1a1a1a;
    color: var(--text-main);
    border: 1px solid #333;
}

.btn-outline:hover {
    background: #252525;
    border-color: #444;
}

.btn-primary {
    background: var(--accent-yellow);
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    /* The specific glow effect from image */
    box-shadow: 0 0 20px var(--accent-glow); 
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* --- Stats Section --- */
.stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    padding: 0 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent-yellow);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 100px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(250, 204, 21, 0.1); /* Low opacity yellow bg */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box i {
    color: var(--accent-yellow);
    font-size: 1.1rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-main);
}

.social-icons {
    display: flex;
    gap: 15px;
}

/* Apply styles to the <a> wrapping each icon */
.social-icons a {
    display: inline-flex;           /* allows flex centering inside the box */
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    color: inherit;                 /* keep icon color */
    text-decoration: none;          /* remove underline */
}

/* Hover effect for the link box */
.social-icons a:hover {
    border-color: #666;
    color: var(--text-main);        /* icon color changes on hover */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .logo,
    nav {
        display: none;
    }
    header {
        padding: 16px 0;
        grid-template-columns: 1fr;
    }
    .lang-switch {
        font-size: 0.7rem;
    }
    h1 { font-size: 3rem; }
    .stats-container {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
    .stat-item { flex: 1 1 40%; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; }

    /* Adjust hero glow for smaller screens */
    .hero::before {
        top: 23%;           /* slightly higher for mobile */
        width: 80vw;        /* fill more of the screen */
        height: 80vw;
        max-width: 400px;   /* cap for small screens */
        max-height: 400px;
        filter: blur(80px); /* slightly softer blur */
    }
}