/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Base ── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #03050c;
    background-image: radial-gradient(ellipse 90% 55% at 50% -5%, rgba(70, 90, 210, 0.18), transparent);
    color: #cccccc;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ── Skip link ── */
.skip-link {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    padding: 8px 18px;
    background: #6366f1;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    z-index: 9999;
    text-decoration: none;
}

/* ── Legacy header (unused but kept) ── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #005aab 0%, #004b8d 100%);
    color: white;
    padding: 20px 40px 30px 40px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

header h1 { margin: 0; font-size: 2.2em; font-weight: 700; letter-spacing: 1px; }
header p { margin: 4px 0 0; font-size: 1.1em; color: #e9ecef; }
.header-content { display: flex; flex-direction: column; align-items: flex-start; }

/* ── Layout ── */
main.dashboard {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 25px;
}

/* ── Hero ── */
.hero-text {
    padding: 48px 0 52px;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
}

main h1 {
    text-align: center;
    font-size: 3.6em;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 0;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 30%, rgba(160, 180, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

main h2 {
    text-align: center;
    font-size: 1.15em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: filter 0.5s ease;
}

.intro-text {
    max-width: 660px;
    margin: 22px auto 0;
    font-size: 0.92em;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.85;
    text-align: center;
    padding: 18px 28px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 14px;
}

.intro-highlight {
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.intro-app-link {
    text-decoration: none;
    border-bottom: 1px solid rgba(167, 139, 250, 0.4);
    transition: border-color 0.2s;
}
.intro-app-link:hover {
    border-color: rgba(167, 139, 250, 0.9);
}

.intro-link {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(129, 140, 248, 0.4);
    transition: color 0.2s, border-color 0.2s;
}
.intro-link:hover {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.7);
}

@keyframes zoneOutBlur {
    0%, 100% { filter: blur(0px); opacity: 1; }
    50% { filter: blur(1.5px); opacity: 0.8; }
}

/* ── Grid ── */
.simulation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ── Cards ── */
@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sim-card {
    position: relative;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    animation: cardFadeUp 0.5s ease forwards;
    will-change: transform;
}

/* staggered entry */
.sim-card:nth-child(1)  { animation-delay: 0.05s; }
.sim-card:nth-child(2)  { animation-delay: 0.10s; }
.sim-card:nth-child(3)  { animation-delay: 0.15s; }
.sim-card:nth-child(4)  { animation-delay: 0.20s; }
.sim-card:nth-child(5)  { animation-delay: 0.25s; }
.sim-card:nth-child(6)  { animation-delay: 0.30s; }
.sim-card:nth-child(7)  { animation-delay: 0.35s; }
.sim-card:nth-child(8)  { animation-delay: 0.40s; }
.sim-card:nth-child(9)  { animation-delay: 0.45s; }
.sim-card:nth-child(10) { animation-delay: 0.50s; }
.sim-card:nth-child(11) { animation-delay: 0.55s; }
.sim-card:nth-child(12) { animation-delay: 0.60s; }
.sim-card:nth-child(13) { animation-delay: 0.65s; }
.sim-card:nth-child(14) { animation-delay: 0.70s; }
.sim-card:nth-child(15) { animation-delay: 0.75s; }

.sim-card:hover {
    background: #1a2338;
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ── Icons ── */
.sim-icon {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sim-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* icon overrides — icons that need a specific background to render correctly */
.calendar-icon { background: white; }
.math-icon     { background: white; }
.ide-icon      { background: #1e1e1e; }

/* ── Card text ── */
.sim-card h3 {
    font-size: 1.05em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

.sim-card p {
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.55);
    flex-grow: 1;
    margin-bottom: 0;
    line-height: 1.55;
}

/* ── "New" badge ── */
.badge-new {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    line-height: 1.4;
}

/* ── Footer ── */
footer {
    text-align: center;
    margin-top: 80px;
    padding: 30px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85em;
}

footer p { margin: 4px 0; }

/* ── Logo / social (kept from original) ── */
.header-tagline {
    font-size: 0.9em;
    color: #b0c4de;
    font-style: italic;
    margin: 2px 0 0 0;
    padding: 0;
    text-align: left;
}

.corner-triangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 80px solid #4a90d9;
    border-right: 80px solid transparent;
    text-decoration: none;
    z-index: 1001;
    transition: border-top-color 0.2s ease;
}

.corner-triangle:hover {
    border-top-color: #357abd;
}

.corner-triangle span {
    position: absolute;
    top: -72px;
    left: 4px;
    display: block;
    width: 65px;
    color: #fff;
    font-weight: 800;
    font-size: 9px;
    text-transform: uppercase;
    transform: rotate(-45deg);
    text-align: center;
    pointer-events: none;
}

.social-sharing-buttons {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-sharing-buttons a {
    display: inline-block;
    vertical-align: middle;
    transition: opacity 0.2s ease;
    line-height: 0;
}

.social-sharing-buttons a:hover { opacity: 0.8; }

.social-sharing-buttons img {
    height: 24px;
    width: auto;
    vertical-align: middle;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .corner-triangle { display: none; }
 }

@media (max-width: 768px) {
    main h1 { font-size: 2.8em; }
    main h2 { font-size: 1.05em; }

    .simulation-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    .sim-card { padding: 20px; }
    .top-logo { width: 18%; }
    .social-sharing-buttons img { height: 20px; }
    main.dashboard { padding: 0 15px; }
    footer { padding: 20px 15px; }
}

@media (max-width: 480px) {
    .top-logo {
        position: relative;
        display: block;
        width: 40%;
        max-width: 180px;
        top: 0; left: 0;
        margin: 15px auto 20px auto;
    }

    .social-sharing-buttons {
        position: relative;
        justify-content: center;
        top: 0; right: auto;
        margin-bottom: 30px;
        gap: 15px;
    }

    .social-sharing-buttons img { height: 28px; }

    main h1 { font-size: 2.2em; letter-spacing: 0; }
    main h2 { font-size: 1.0em; }

    .simulation-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sim-card { padding: 18px; }

    .sim-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 14px;
    }

    .sim-card h3 { font-size: 1.0em; }
    .sim-card p  { font-size: 0.85em; }
    footer { margin-top: 40px; }
}

/* ── Consent button (third-party) ── */
#ezPrivacyCenter {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
    background-color: #5fa624 !important;
    color: white !important;
    border-radius: 5px !important;
    z-index: 2147483647 !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
}
