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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('track.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header */
header {
    text-align: center;
    padding: 30px 0 20px;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -2px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.tagline {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Tool Cards */
.tool-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(22px);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.tool-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 25px;
}

.tool-button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.tool-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
    background: linear-gradient(45deg, #ff5252, #ff7979);
}

/* Articles tool-card styling */
.tool-card.articles-card {
    background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.3));
    border-color: rgba(16,185,129,0.4);
}

.tool-card.articles-card:hover {
    background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(16,185,129,0.4));
}

.tool-card.articles-card .tool-button {
    background: linear-gradient(45deg, #34d399, #10b981);
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

.tool-card.articles-card .tool-button:hover {
    box-shadow: 0 6px 20px rgba(16,185,129,0.4);
    background: linear-gradient(45deg, #10b981, #059669);
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    background: white;
    animation: float 20s infinite linear;
}

.shape:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    top: 60%;
    right: 20%;
    width: 60px;
    height: 60px;
    border-radius: 30%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    bottom: 30%;
    left: 20%;
    width: 100px;
    height: 100px;
    border-radius: 20%;
    animation-delay: -10s;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* App Store Badge - Centered */
.app-store-badge {
    display: block;
    margin: 20px auto 0;
    width: fit-content;
}

.app-store-badge img {
    height: 48px;
    width: auto;
    display: block;
}

/* Consent Banner */
.consent-banner {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.9);
    color: white;
    backdrop-filter: blur(8px);
    padding: 12px 16px;
}

.consent-banner a {
    color: #ffd37a;
    text-decoration: underline;
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.consent-actions {
    display: flex;
    gap: 8px;
}

.btn-accept,
.btn-reject {
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-accept {
    background: #2ecc71;
    color: #0b2817;
}

.btn-reject {
    background: #f1f2f6;
    color: #222;
}

/* Ad Section */
.ad-section {
    margin: 24px 0;
}

.ad-container {
    min-height: 280px;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-card {
        padding: 30px 20px;
    }

    .consent-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .ad-container {
        min-height: 200px;
    }

    .app-store-badge img {
        height: 44px;
    }
}

@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(1px)) {
    .tool-card {
        background: rgba(255, 255, 255, 0.7);
    }
}