/**
 * AITRAIN - AI Professional Accelerator
 * Light, Minimal, Professional Design
 */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    /* Light Neutral Palette */
    --color-bg: #fafafa;
    --color-bg-alt: #f2f2f2;
    --color-surface: #ffffff;
    --color-text: #4A4A4A;
    --color-text-dark: #1B1B27;
    --color-text-secondary: #5a5a5a;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-border: rgba(74, 74, 74, 0.1);
    --color-border-hover: rgba(74, 74, 74, 0.2);

    /* Brand Accent - AITRAIN Orange */
    --color-accent: #F26522;
    --color-accent-dark: #d55a1d;
    --color-accent-soft: rgba(242, 101, 34, 0.08);
    --color-gold: #D4A84B;

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing - Tighter */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3.5rem;

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.6rem;
    --radius-xl: 0.75rem;

    /* Shadows - subtle */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.06);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(20px) saturate(170%);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-text);
}

/* Hide particles */
.particles {
    display: none;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

@media (min-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 1.75rem; }
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-border);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.875rem var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 54px;
    width: auto;
}

.nav-logo:hover {
    opacity: 0.9;
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-portal {
    padding: 0.4rem 0.9rem;
    background: transparent;
    color: var(--color-accent) !important;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-portal:hover {
    background: rgba(242, 101, 34, 0.1);
    color: var(--color-accent) !important;
}

.nav-cta {
    padding: 0.4rem 0.9rem;
    background: var(--color-accent);
    color: white !important;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--color-accent-dark);
    color: white !important;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.menu-toggle {
    display: none;
}

/* Mobile menu */
@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
    }
}

.menu-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--color-text);
    transition: all 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg);
    gap: var(--space-md);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(56px + var(--space-xl)) var(--space-lg) var(--space-xl);
    background: #0a1628;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    animation: hero-zoom 24s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes hero-zoom {
    0%, 100% {
        transform: scale(1);
        opacity: 0.45;
    }
    40% {
        transform: scale(1.2);
        opacity: 0.15;
    }
    60% {
        transform: scale(1.2);
        opacity: 0.15;
    }
    100% {
        transform: scale(1);
        opacity: 0.45;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.4) 0%,
        rgba(10, 22, 40, 0.6) 50%,
        rgba(10, 22, 40, 0.85) 100%
    );
    animation: hero-darken 24s ease-in-out infinite;
}

@keyframes hero-darken {
    0%, 100% {
        opacity: 1;
    }
    42% {
        opacity: 1.3;
    }
    50% {
        opacity: 1.3;
    }
    92% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
}

/* Innovation Hub Badge - Centered at Top */
.badge {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem 0.3rem 0.7rem;
    background: rgba(242, 101, 34, 0.95);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    width: 11px;
    height: 11px;
    color: white;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

/* Tagline with Typewriter */
.tagline {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    font-style: normal;
    letter-spacing: -0.01em;
    height: 2.8em;
    text-align: left;
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .tagline {
        font-size: 1.15rem;
        height: 1.6em;
    }
}

.typewriter {
    border-right: 2px solid var(--color-accent);
    padding-right: 2px;
    animation: cursor-blink 1s ease-in-out infinite;
}

@keyframes cursor-blink {
    0%, 100% { border-color: var(--color-accent); }
    50% { border-color: transparent; }
}

/* Hero Cohort Box - Orange Bordered */
.hero-cohort-box {
    position: relative;
    display: inline-flex;
    min-width: 320px;
    padding: 0.75rem 2.5rem 0.75rem 2rem;
    margin-bottom: var(--space-xl);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-lg);
    background: rgba(242, 101, 34, 0.08);
    backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
    .hero-cohort-box {
        min-width: 380px;
    }
}

.cohort-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
}

.cohort-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cohort-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .cohort-date {
        font-size: 1.2rem;
    }
}

.hero-countdown {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-top: 0.1rem;
}

.hc-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
}

.hc-sep {
    color: var(--color-accent);
    font-weight: 400;
    margin: 0 0.2rem;
    opacity: 0.6;
}

/* Program Stats */
.program-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-bottom: var(--space-xl);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 560px) {
    .program-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    background: rgba(10, 22, 40, 0.6);
    text-align: center;
    padding: var(--space-md) var(--space-sm);
}

.stat-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.125rem;
}

.stat-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero CTA */
.hero-cta {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--color-accent);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.hero-cta:hover {
    background: var(--color-accent-dark);
    color: white;
    transform: translateY(-1px);
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */
.content-section {
    padding: var(--space-3xl) 0;
}

.content-section.alt-bg {
    background: var(--color-bg-alt);
}

.section-grid {
    display: grid;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 800px) {
    .section-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .section-grid.reverse {
        direction: rtl;
    }

    .section-grid.reverse > * {
        direction: ltr;
    }
}

.section-header {
    margin-bottom: var(--space-md);
}

.section-header.centered {
    text-align: center;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.section-number {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.08em;
}

.section-body .lead,
.lead.centered {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-lg);
}

.lead.centered {
    text-align: center;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Image */
.section-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.section-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-image:hover img {
    transform: scale(1.02);
}

/* ==========================================
   TRACKS
   ========================================== */
.tracks h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.track-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .track-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.track-card {
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease;
}

.track-card:hover {
    border-color: var(--color-accent);
}

.track-icon {
    width: 28px;
    height: 28px;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
}

.track-icon svg {
    width: 100%;
    height: 100%;
}

.track-card h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.track-card p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ==========================================
   FEATURE LIST
   ========================================== */
.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.feature-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--color-accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-list li span:last-child {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ==========================================
   DELIVERABLES
   ========================================== */
.deliverables-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: var(--space-xl);
}

@media (min-width: 560px) {
    .deliverables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 800px) {
    .deliverables-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.deliverable-card {
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: border-color 0.15s ease;
}

.deliverable-card:hover {
    border-color: var(--color-accent);
}

.deliverable-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto var(--space-sm);
    color: var(--color-accent);
}

.deliverable-icon svg {
    width: 100%;
    height: 100%;
}

.deliverable-card h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.deliverable-card p {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ==========================================
   CERTIFICATIONS
   ========================================== */
.cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: var(--space-xl);
}

@media (min-width: 560px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cert-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease;
}

.cert-card:hover {
    border-color: var(--color-accent);
}

.cert-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-accent-soft);
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

.cert-badge svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

.cert-details {
    flex: 1;
    min-width: 0;
}

.cert-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1px;
    line-height: 1.25;
}

.cert-issuer {
    font-size: 0.7rem;
    color: var(--color-text-light);
}

.cert-more {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: var(--space-lg);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    position: relative;
    padding: var(--space-3xl) 0;
    background: #0a1628;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.7) 0%,
        rgba(10, 22, 40, 0.85) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 380px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.125rem;
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 1.375rem;
    }
}

.cta-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .countdown {
        gap: var(--space-sm);
    }

    .countdown-item {
        min-width: 55px;
        padding: var(--space-sm);
    }

    .countdown-value {
        font-size: 1.25rem;
    }
}

.cta-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: left;
    margin-bottom: var(--space-xl);
}

.cta-option {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.cta-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.cta-text a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cta-text a:hover {
    color: white;
}

.enroll-button {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--color-accent);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.enroll-button:hover {
    background: var(--color-accent-dark);
    color: white;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr auto auto;
        gap: var(--space-2xl);
    }
}

.footer-logo-img {
    height: 61px;
    width: auto;
}

.footer-brand p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

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

.footer-contact p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.125rem;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    font-size: 0.7rem;
    color: var(--color-text-light);
}

/* ==========================================
   ANIMATIONS (Very Subtle)
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
