/* ─── Grand Challenge Inkidia (/inkidia_challenge) ───────────────────── */

:root {
    /* Exact values from the design spec */
    --ikc-navy-start: #0B192C;
    --ikc-navy-end: #1E293B;
    --ikc-blue: #1E40AF;
    --ikc-blue-light: #2563EB;
    --ikc-yellow: #F59E0B;
    --ikc-yellow-light: #FBBF24;
    --ikc-green: #059669;
    --ikc-green-light: #10B981;
    --ikc-green-bg: #D1FAE5;
    --ikc-purple: #7C3AED;
    --ikc-purple-light: #8B5CF6;
    --ikc-purple-bg: #EDE9FE;
    --ikc-bg-soft: #F8FAFC;
    --ikc-text: #0F172A;
    --ikc-muted: #64748B;
    --ikc-border: #E2E8F0;
    --ikc-radius: 16px;
    --ikc-font-heading: 'Plus Jakarta Sans', 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
    --ikc-font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* This stylesheet is only linked on /inkidia_challenge, so scoping smooth-scroll to
   html is safe — it never leaks onto other pages. */
html { scroll-behavior: smooth; }
#ikc-root, #ikc-root * { box-sizing: border-box; }
#ikc-root {
    font-family: var(--ikc-font-body);
    color: var(--ikc-text);
    background: #fff;
    overflow-x: hidden;
}
#ikc-root h1, #ikc-root h2, #ikc-root h3, #ikc-root h4 {
    margin: 0; font-weight: 800; font-family: var(--ikc-font-heading);
}
#ikc-root p { margin: 0; }
#ikc-root a { text-decoration: none; color: inherit; }
#ikc-root ul { margin: 0; padding: 0; list-style: none; }

.ikc-hidden { display: none !important; }
.ikc-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.ikc-lang[dir="rtl"] { text-align: right; }
.ikc-lang[dir="rtl"] .ikc-nav-links,
.ikc-lang[dir="rtl"] .ikc-nav-right,
.ikc-lang[dir="rtl"] .ikc-hero-badges,
.ikc-lang[dir="rtl"] .ikc-faq-help-links { direction: rtl; }

/* ─── Buttons ─── */
.ikc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ikc-btn:hover { transform: translateY(-2px); }
.ikc-btn-primary { background: var(--ikc-blue-light); color: #fff; }
.ikc-btn-cta { background: var(--ikc-yellow); color: #1e293b; box-shadow: 0 10px 20px -6px rgba(245,180,0,0.5); }
.ikc-btn-cta:hover { background: #D97706; }
.ikc-btn-outline { background: #fff; border: 2px solid var(--ikc-blue-light); color: var(--ikc-blue-light); }
.ikc-btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }

/* ─── Nav ─── */
.ikc-nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--ikc-border); }
.ikc-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }
.ikc-brand { display: flex; flex-direction: column; line-height: 1.1; }
.ikc-brand-name { font-weight: 900; font-size: 20px; color: var(--ikc-blue); }
.ikc-brand-tagline { font-size: 10px; color: var(--ikc-muted); }
.ikc-nav-links { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.ikc-nav-links a:hover { color: var(--ikc-blue-light); }
.ikc-nav-right { display: flex; align-items: center; gap: 16px; }
.ikc-lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ikc-muted); }
.ikc-lang-btn { background: none; border: none; cursor: pointer; font-weight: 700; color: var(--ikc-muted); padding: 2px 4px; }
.ikc-lang-btn.active { color: var(--ikc-blue-light); }

@media (max-width: 860px) {
    .ikc-nav-links { display: none; }
}

/* ─── Hero ─── */
.ikc-hero {
    background: linear-gradient(135deg, var(--ikc-navy-start) 0%, var(--ikc-navy-end) 55%, var(--ikc-blue) 100%);
    color: #fff;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.ikc-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.ikc-hero-title { font-size: 42px; line-height: 1.15; color: #dbe4ff; }
.ikc-hero-title-accent { color: #fff; }
.ikc-hero-subtitle { font-size: 20px; font-weight: 600; color: #dbe4ff; margin-top: 14px; }
.ikc-hero-subtitle strong { color: var(--ikc-yellow-light); font-weight: 800; }
.ikc-hero-desc { font-size: 15px; color: #c7d2fe; margin-top: 12px; max-width: 480px; line-height: 1.6; }
.ikc-hero-desc strong { color: #fff; font-weight: 700; }
.ikc-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ikc-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
}
.ikc-hero .ikc-btn-cta { margin-top: 26px; }

.ikc-hero-visual { position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.ikc-hero-illustration {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
}
.ikc-hero-emoji { font-size: 64px; display: block; }
.ikc-hero-apps { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.ikc-app-badge { padding: 10px 18px; border-radius: 14px; font-weight: 800; font-size: 13px; color: #fff; }
.ikc-app-iquiz { background: var(--ikc-blue-light); }
.ikc-app-moalim { background: var(--ikc-green); }
.ikc-hero-trophy { position: absolute; top: -10px; right: 40%; font-size: 36px; }
.ikc-hero-decor {
    position: absolute;
    font-size: 13px;
    font-weight: 700;
    color: #fde68a;
    font-style: italic;
}
.ikc-hero-decor-1 { top: 10px; right: -10px; }
.ikc-hero-decor-2 { bottom: 10px; right: -20px; }
.ikc-lang[dir="rtl"] .ikc-hero-decor-1,
.ikc-lang[dir="rtl"] .ikc-hero-decor-2 { right: auto; left: -10px; }

@media (max-width: 860px) {
    .ikc-hero-grid { grid-template-columns: 1fr; }
    .ikc-hero-title { font-size: 32px; }
    .ikc-hero-decor { display: none; }
}

/* ─── Features strip ─── */
.ikc-features { background: #eef2ff; padding: 30px 0; }
.ikc-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ikc-feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.ikc-feature-icon { font-size: 30px; }
.ikc-feature-title { font-size: 13px; font-weight: 700; color: var(--ikc-text); }
@media (max-width: 760px) {
    .ikc-features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── How it works ─── */
.ikc-how { padding: 64px 0 40px; }
.ikc-section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.ikc-section-head h2 { font-size: 28px; }
.ikc-section-head p { color: var(--ikc-muted); margin-top: 8px; }
.ikc-steps { display: flex; align-items: flex-start; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ikc-step { flex: 1; min-width: 160px; max-width: 220px; text-align: center; }
.ikc-step-dot {
    width: 44px; height: 44px; border-radius: 50%; background: var(--ikc-blue-light);
    color: #fff; font-weight: 800; font-size: 18px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.ikc-step:nth-child(3) .ikc-step-dot { background: var(--ikc-green); }
.ikc-step:nth-child(5) .ikc-step-dot { background: var(--ikc-blue-light); }
.ikc-step:nth-child(7) .ikc-step-dot { background: var(--ikc-purple); }
.ikc-step-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.ikc-step h3 { font-size: 15px; margin-bottom: 6px; }
.ikc-step p { font-size: 13px; color: var(--ikc-muted); line-height: 1.5; }
.ikc-step-arrow { align-self: center; color: var(--ikc-border); font-size: 22px; margin-top: 22px; }
@media (max-width: 760px) {
    .ikc-step-arrow { display: none; }
    .ikc-steps { flex-direction: column; align-items: center; }
}

/* ─── Tour cards ─── */
.ikc-tours { padding: 20px 0 60px; }
.ikc-tours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ikc-tour-card { border-radius: var(--ikc-radius); padding: 26px; }
.ikc-tour-card h3 { font-size: 19px; margin-bottom: 4px; }
.ikc-tour-subtitle { font-size: 13px; color: var(--ikc-muted); margin-bottom: 16px; }
.ikc-tour-card .ik-check-list li {
    font-size: 13px; padding: 5px 0 5px 22px; position: relative; color: var(--ikc-text);
}
.ikc-tour-card .ik-check-list li::before {
    content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--ikc-green);
}
.ikc-lang[dir="rtl"] .ikc-tour-card .ik-check-list li { padding: 5px 22px 5px 0; }
.ikc-lang[dir="rtl"] .ikc-tour-card .ik-check-list li::before { left: auto; right: 0; }
.ikc-tour-card .ikc-btn { margin-top: 18px; }
.ikc-tour-slogan { margin-top: 16px; font-size: 12px; font-style: italic; font-weight: 700; color: var(--ikc-purple); }
.ikc-store-badges { display: flex; gap: 8px; margin-top: 14px; }
.ikc-store-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: #0f172a; color: #fff; border-radius: 8px;
    padding: 6px 10px; font-size: 11px; font-weight: 700;
}
.ikc-tour-card-0 { background: #eff6ff; border: 1px solid #bfdbfe; }
.ikc-tour-card-0 h3 { color: var(--ikc-blue-light); }
.ikc-tour-card-1 { background: var(--ikc-green-bg); border: 1px solid #a7f3d0; }
.ikc-tour-card-1 h3 { color: var(--ikc-green); }
.ikc-tour-card-1 .ikc-btn-outline { border-color: var(--ikc-green); color: var(--ikc-green); }
.ikc-tour-card-2 { background: var(--ikc-purple-bg); border: 1px solid #ddd6fe; }
.ikc-tour-card-2 h3 { color: var(--ikc-purple); }
@media (max-width: 900px) {
    .ikc-tours-grid { grid-template-columns: 1fr; }
}

/* ─── Rewards ─── */
.ikc-rewards { background: var(--ikc-bg-soft); padding: 60px 0; }
.ikc-rewards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ikc-reward-card {
    background: #fff; border-radius: var(--ikc-radius); padding: 24px;
    text-align: center; border: 1px solid var(--ikc-border);
    transition: transform 0.15s ease;
}
/* Podium feel: 1st place sits taller and more prominent than 2nd/3rd */
.ikc-reward-card:nth-child(1) {
    border: 2px solid #eab308; box-shadow: 0 12px 24px -8px rgba(234,179,8,0.35);
    transform: translateY(-10px);
}
.ikc-reward-card:nth-child(2) { border-top: 4px solid #94a3b8; }
.ikc-reward-card:nth-child(3) { border-top: 4px solid #b45309; }
.ikc-reward-medal { font-size: 32px; display: block; margin-bottom: 8px; }
.ikc-reward-card h3 { font-size: 15px; margin-bottom: 6px; }
.ikc-reward-subtitle { font-size: 12px; color: var(--ikc-muted); line-height: 1.5; }
.ikc-reward-card:nth-child(4) { text-align: start; background: #eff6ff; border: 1px solid #bfdbfe; }
.ikc-reward-card .ik-check-list li { font-size: 12px; padding: 4px 0 4px 18px; position: relative; }
.ikc-reward-card .ik-check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ikc-green); font-weight: 800; }
.ikc-lang[dir="rtl"] .ikc-reward-card .ik-check-list li { padding: 4px 18px 4px 0; }
.ikc-lang[dir="rtl"] .ikc-reward-card .ik-check-list li::before { left: auto; right: 0; }
@media (max-width: 900px) {
    .ikc-rewards-grid { grid-template-columns: repeat(2, 1fr); }
    .ikc-reward-card:nth-child(1) { transform: none; }
}

/* ─── Calendar / timeline ─── */
.ikc-calendar { padding: 60px 0; }
.ikc-timeline { display: flex; justify-content: space-between; position: relative; padding-top: 10px; flex-wrap: wrap; gap: 24px; }
.ikc-timeline::before {
    content: ""; position: absolute; top: 32px; left: 5%; right: 5%; height: 2px; background: var(--ikc-border);
}
.ikc-timeline-item { flex: 1; min-width: 120px; text-align: center; position: relative; }
.ikc-timeline-icon { font-size: 22px; display: block; }
.ikc-timeline-dot {
    width: 12px; height: 12px; border-radius: 50%; background: var(--ikc-blue-light);
    margin: 8px auto; position: relative; z-index: 1; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ikc-blue-light);
}
.ikc-timeline-item h4 { font-size: 13px; margin-bottom: 4px; }
.ikc-timeline-date { font-size: 12px; color: var(--ikc-muted); }

/* ─── CTA banner ─── */
.ikc-cta-banner {
    background: linear-gradient(120deg, var(--ikc-navy-start), var(--ikc-navy-end));
    color: #fff; padding: 50px 0; overflow: hidden; position: relative;
}
.ikc-cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.ikc-cta-banner-copy h2 { font-size: 26px; }
.ikc-cta-banner-copy p { color: #c7d2fe; margin-top: 8px; max-width: 440px; }
.ikc-cta-banner-badge {
    display: inline-block; margin-top: 16px; padding: 8px 16px;
    background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.4);
    border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ikc-yellow-light);
    max-width: 440px;
}
.ikc-cta-banner-copy .ikc-btn { margin-top: 20px; display: flex; width: fit-content; }
.ikc-cta-banner-visual { position: relative; font-size: 46px; opacity: 0.9; }

/* ─── FAQ ─── */
.ikc-faq { padding: 60px 0; }
.ikc-faq h2 { font-size: 26px; margin-bottom: 24px; }
.ikc-faq-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.ikc-faq-list { display: flex; flex-direction: column; gap: 10px; }
.ikc-faq-item { border: 1px solid var(--ikc-border); border-radius: 12px; overflow: hidden; }
.ikc-faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: #f8fafc; border: none; cursor: pointer;
    font-weight: 700; font-size: 14px; color: var(--ikc-text); text-align: start;
}
.ikc-faq-chevron { transition: transform 0.2s ease; color: var(--ikc-muted); }
.ikc-faq-item.ikc-open .ikc-faq-chevron { transform: rotate(180deg); }
.ikc-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.ikc-faq-item.ikc-open .ikc-faq-answer { max-height: 300px; }
.ikc-faq-answer p { padding: 14px 18px; font-size: 13px; color: var(--ikc-muted); line-height: 1.6; }
.ikc-faq-help {
    background: var(--ikc-blue); color: #fff; border-radius: var(--ikc-radius);
    padding: 24px;
}
.ikc-faq-help h4 { font-size: 16px; margin-bottom: 8px; }
.ikc-faq-help p { font-size: 13px; color: #c7d2fe; margin-bottom: 16px; }
.ikc-faq-help-links { display: flex; gap: 14px; margin-top: 18px; font-size: 12px; color: #c7d2fe; flex-wrap: wrap; }
@media (max-width: 860px) {
    .ikc-faq-grid { grid-template-columns: 1fr; }
}

/* ─── Footer ─── */
.ikc-footer { background: #0f172a; color: #cbd5e1; padding: 36px 0 20px; }
.ikc-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ikc-footer-logo { font-weight: 900; font-size: 18px; color: #fff; }
.ikc-footer-tagline { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.ikc-footer-links { display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; }
.ikc-footer-links a:hover { color: #fff; }
.ikc-footer-social { display: flex; gap: 12px; font-size: 16px; }
.ikc-footer-bottom { display: flex; justify-content: space-between; padding-top: 16px; font-size: 12px; color: #64748b; flex-wrap: wrap; gap: 8px; }
.ikc-footer-bottom a { color: #94a3b8; }
.ikc-footer-bottom a:hover { color: #fff; }
