/*
 * HEORACLE Landing Page — Aligned with AIdeSolutions Design System
 * Dark navy theme · Newsreader / Outfit / Inter typography
 */

:root {
    /* Color Palette — matches AIdeSolutions company site */
    --bg-dark: #0B1120;
    --bg-card: #1E293B;
    --bg-footer: #020617;
    --primary: #3B82F6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #64748B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #334155;

    /* Gradients */
    --gradient-accent: linear-gradient(90deg, #3B82F6, #8B5CF6);

    /* Typography */
    --font-display: 'Newsreader', serif;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* ═══════════════════════════  RESET & BASE  ═══════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2 {
    font-family: var(--font-display);
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ═══════════════════════════  BUTTONS  ═══════════════════════════ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ═══════════════════════════  NAVBAR  ═══════════════════════════ */
.navbar {
    height: var(--header-height);
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.nav-brand img {
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    transition: transform 0.3s ease;
}

.nav-brand img:hover {
    transform: scale(1.05);
}

.nav-brand-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.nav-brand-text span {
    color: #22d3ee;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-cta {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ═══════════════════════════  HERO  ═══════════════════════════ */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    background: radial-gradient(circle at 50% 40%, rgba(59, 130, 246, 0.1) 0%, rgba(11, 17, 32, 0) 55%);
    text-align: center;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.4));
    object-fit: contain;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ═══════════════════════════  SECTIONS  ═══════════════════════════ */
.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ═══════════════  VALUE PROPOSITION (split layout)  ═══════════════ */
.value-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.value-content {
    flex: 1;
}

.value-content .label {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: inline-block;
    font-family: var(--font-heading);
}

.value-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.value-content p {
    color: var(--text-muted);
}

.value-highlight {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.value-highlight p {
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 500;
}

.value-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.value-image img {
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

/* ═══════════════════════  FOUR PILLARS GRID  ═══════════════════════ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 18px;
}

.pillar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.pillar-subtitle {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 14px;
    display: block;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* ═══════════════════════  FEATURES LIST  ═══════════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.feature-item h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ═══════════════════════  VIDEO GRID  ═══════════════════════ */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.video-card .video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-card .video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-card h4 {
    padding: 16px 20px 2px;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.video-card p {
    padding: 0 20px 16px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-heading);
    margin-bottom: 0;
}

/* ═══════════════════════  CTA BANNER  ═══════════════════════ */
.cta-banner {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, rgba(11, 17, 32, 0) 60%);
}

.cta-banner h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.cta-banner p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto 32px;
}

/* ═══════════════════════════  FOOTER  ═══════════════════════════ */
footer {
    background: var(--bg-footer);
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.footer-brand img {
    height: 60px;
    opacity: 0.85;
    margin-bottom: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 280px;
    margin-bottom: 0;
}

.footer-links-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-links-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-links-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ═══════════════════════  FADE-IN ANIMATIONS  ═══════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════  RESPONSIVE  ═══════════════════════ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .value-layout {
        flex-direction: column;
        gap: 32px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}