:root {
    --bg: #0c0f16;
    --card: rgba(18, 22, 32, 0.72);
    --glass: rgba(255, 255, 255, 0.08);
    --text: #f4f4f5;
    --muted: #cbd5e1;
    --accent: #e11d48;
    --accent-2: #22c55e;
    --accent-3: #38bdf8;
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Changa', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(225, 29, 72, 0.14), transparent 28%), radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.16), transparent 30%), #0c0f16;
    color: var(--text);
    scroll-behavior: smooth;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

header.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 15, 22, 0.8) 0%, rgba(12, 15, 22, 0.35) 45%, rgba(12, 15, 22, 0.85) 100%);
    pointer-events: none;
}

nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px clamp(16px, 5vw, 42px);
}

nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

nav .brand img {
    width: clamp(90px, 14vw, 174px);
    height: auto;
    object-fit: contain;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

nav .brand .title {
    display: grid;
    gap: 4px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    font-size: clamp(22px, 3vw, 32px);
}
nav .brand .title small {
    font-size: clamp(14px, 2vw, 18px);
}

nav .links {
    display: flex;
    gap: 18px;
    align-items: center;
}

nav .links a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    font-weight: 600;
}

nav .links a:hover {
    background: rgba(225, 29, 72, 0.12);
    border-color: rgba(225, 29, 72, 0.35);
    transform: translateY(-2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(18px, 4vw, 28px) clamp(16px, 6vw, 72px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: clamp(18px, 4vw, 48px);
}

.hero-text h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.1;
}

.hero-text p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.9), rgba(56, 189, 248, 0.8));
    box-shadow: 0 15px 35px rgba(225, 29, 72, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button.secondary {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.9), rgba(56, 189, 248, 0.8));
    box-shadow: 0 15px 35px rgba(225, 29, 72, 0.35);
}

.button.liquid {
    position: relative;
    font-family: 'Changa', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    z-index: 0;
    overflow: hidden;
    isolation: isolate;
    background-size: 200% 200%;
    animation: liquidGradient 7s ease infinite;
}

.button.liquid::before {
    content: '';
    position: absolute;
    inset: -60% -40%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.28), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.18), transparent 55%),
        radial-gradient(circle at 25% 85%, rgba(0, 0, 0, 0.18), transparent 62%);
    filter: blur(16px);
    opacity: 0.9;
    transform-origin: center;
    animation: liquidBlob 9s linear infinite;
}

.button.liquid::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 55%);
    opacity: 0.85;
}

@keyframes liquidGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes liquidBlob {
    0% { transform: translate3d(-2%, -2%, 0) rotate(0deg); }
    50% { transform: translate3d(2%, 1%, 0) rotate(180deg); }
    100% { transform: translate3d(-2%, -2%, 0) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .button.liquid {
        animation: none;
    }
    .button.liquid::before {
        animation: none;
    }
}

.button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.35);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 14px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.floating {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating span {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, rgba(225, 29, 72, 0.18), rgba(56, 189, 248, 0.16));
    filter: blur(50px);
    border-radius: 50%;
    animation: drift 16s ease-in-out infinite;
}

.floating span:nth-child(2) {
    width: 180px;
    height: 180px;
    top: 12%;
    left: 8%;
    animation-delay: -5s;
}

.floating span:nth-child(3) {
    width: 240px;
    height: 240px;
    bottom: 8%;
    right: 10%;
    animation-delay: -9s;
}

@keyframes drift {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

.section {
    position: relative;
    z-index: 2;
    padding: clamp(30px, 6vw, 70px) clamp(16px, 6vw, 72px);
}

.section h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 36px);
}

.section .lead {
    margin: 0 0 26px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 900px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(16px, 3vw, 26px);
}

.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.08), transparent 40%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.05), transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card:hover::before { opacity: 1; }

.program-card .logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
    box-shadow: var(--shadow);
}

.program-card h3 {
    margin: 12px 0 6px;
    font-size: 22px;
}

.program-card .tagline {
    margin: 0 0 12px;
    color: var(--muted);
    font-weight: 600;
}

.program-card p {
    margin: 0 0 16px;
    line-height: 1.6;
    color: var(--muted);
}

.program-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.program-meta a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 700;
    color: var(--text);
    transition: all 0.25s ease;
}

.program-meta a:hover {
    background: rgba(225, 29, 72, 0.14);
    border-color: rgba(225, 29, 72, 0.45);
}

.program-meta .tone-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.program-section {
    position: relative;
    width: 100%;
    margin: 0 0 clamp(16px, 3vw, 28px);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 35%), linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    isolation: isolate;
}

.program-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.12));
    pointer-events: none;
}

.program-body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(16px, 3vw, 28px);
    padding: clamp(18px, 4vw, 36px);
    align-items: center;
}

.program-info h3 {
    margin: 10px 0 8px;
    font-size: clamp(24px, 3vw, 30px);
}

.program-info p {
    margin: 0 0 14px;
    line-height: 1.7;
    color: var(--muted);
}

.program-logo {
    width: clamp(160px, 22vw, 264px);
    height: auto;
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    object-fit: contain;
}

.program-thumb {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    aspect-ratio: 16 / 9;
    min-height: clamp(200px, 30vw, 320px);
}

.program-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.program-thumb .play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45));
    transition: background 0.3s ease;
}

.program-thumb .play::before {
    content: '';
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.program-thumb .play::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #fff;
    transform: translateX(4px);
}

.program-thumb:hover img {
    transform: scale(1.05);
    filter: brightness(1.04);
}

.program-thumb:hover .play {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.3));
}

.program-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.story {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.story .card strong {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 18px;
}

.ticker {
    display: flex;
    overflow: hidden;
    gap: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 10px;
    margin-top: 10px;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: 12px;
    animation: ticker 14s linear infinite;
    white-space: nowrap;
    min-width: max-content;
}

.ticker span {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(225, 29, 72, 0.14);
    border: 1px solid rgba(225, 29, 72, 0.25);
    font-weight: 700;
}

.ticker span:nth-child(2n) {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.25);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(56, 189, 248, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: clamp(24px, 5vw, 40px);
    box-shadow: var(--shadow);
}

.cta h3 {
    margin: 0 0 10px;
    font-size: clamp(22px, 3vw, 30px);
}

footer {
    padding: 24px 18px 36px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 720px) {
    nav .links { display: none; }
    .hero-actions { gap: 10px; }
    .program-meta { flex-direction: column; align-items: flex-start; }
    .program-meta a { width: 100%; text-align: center; }
    .program-body { grid-template-columns: 1fr; }
}
