/* ═══════════════════════════════════════════════════════════════════
   RocketOne — Shared Stylesheet
   Source of truth for design tokens, global reset, base typography,
   shared components, animations, and responsive utilities.
   All pages link to this file. Page-specific styles remain inline.
   ═══════════════════════════════════════════════════════════════════ */


/* ── GLOBAL RESET: NO ROUNDED CORNERS ──────────────────────────── */
*, *::before, *::after {
    border-radius: 0 !important;
}


/* ── CSS CUSTOM PROPERTIES (Design Tokens) ─────────────────────── */
:root {
    /* Brand Colors */
    --color-primary: #0F172A;
    --color-secondary: #334155;
    --color-accent: #2563EB;
    --color-accent-alt: #8B5CF6;
    --color-cyan: #06B6D4;

    /* Neutral Scale */
    --color-neutral-dark: #1E293B;
    --color-neutral-mid: #64748B;
    --color-neutral-light: #E2E8F0;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-bg-dark: #0F172A;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing (8px grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;

    /* Layout */
    --max-width: 1440px;
}


/* ── BASE TYPOGRAPHY ───────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
}


/* ── FOCUS STYLES ──────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}


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


/* ── SKIP TO CONTENT ───────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-accent);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    font-family: var(--font-body);
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   SCROLLBAR & UTILITY
   ═══════════════════════════════════════════════════════════════════ */

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.counter-value {
    font-variant-numeric: tabular-nums;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ═══════════════════════════════════════════════════════════════════
   BACKGROUND PATTERNS
   ═══════════════════════════════════════════════════════════════════ */

/* Dot Pattern */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Hero Mesh Gradient */
.hero-mesh-gradient {
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(20, 184, 166, 0.08) 0px, transparent 50%);
}

/* Geometric Pattern */
.geometric-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%232563eb' stroke-width='0.5' stroke-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Glass Badge */
.glass-badge {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn-accent {
    background-color: var(--color-accent);
    color: #FFFFFF;
    transition: background-color 0.2s ease;
}
.btn-accent:hover {
    background-color: #1D4ED8;
}

.btn-cyan {
    background-color: var(--color-cyan);
    color: #FFFFFF;
    transition: background-color 0.2s ease;
}
.btn-cyan:hover {
    background-color: #0891B2;
}

.btn-ghost-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    transition: background-color 0.2s ease;
}
.btn-ghost-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .btn-accent, .btn-cyan, .btn-ghost-light, button {
        min-height: 44px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   BADGE
   ═══════════════════════════════════════════════════════════════════ */

.badge-sharp {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}


/* ═══════════════════════════════════════════════════════════════════
   SECTION SPACING (Responsive)
   ═══════════════════════════════════════════════════════════════════ */

.section-pad {
    padding-top: 48px;
    padding-bottom: 48px;
}
@media (min-width: 768px) {
    .section-pad {
        padding-top: 64px;
        padding-bottom: 64px;
    }
}
@media (min-width: 1025px) {
    .section-pad {
        padding-top: 96px;
        padding-bottom: 96px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   DARK SECTIONS
   ═══════════════════════════════════════════════════════════════════ */

.hero-dark {
    background-color: var(--color-bg-dark);
    position: relative;
}

.career-dark {
    background-color: var(--color-bg-dark);
}

.cta-dark {
    background-color: var(--color-bg-dark);
}


/* ═══════════════════════════════════════════════════════════════════
   HERO COMPONENTS
   ═══════════════════════════════════════════════════════════════════ */

.hero__ai-first {
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
}

/* Stats divider (horizontal stat strip) */
.stats-divider {
    width: 2px;
    height: 24px;
    background-color: var(--color-accent);
}


/* ═══════════════════════════════════════════════════════════════════
   CARD COMPONENTS
   ═══════════════════════════════════════════════════════════════════ */

/* Value Journey Cards */
.value-card {
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border-left: 2px solid transparent;
}
.value-card:hover {
    background-color: var(--color-bg-alt);
    border-left-color: var(--color-accent);
}
.value-card:hover .value-card__icon {
    transform: scale(1.1);
}
.value-card__icon {
    transition: transform 0.2s ease;
}

/* Bootcamp Card */
.bootcamp-card-sharp {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bootcamp-card-sharp:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

/* Testimonial Card */
.testimonial-card {
    border-top: 2px solid var(--color-cyan);
}

/* Instructor Card */
.instructor-img {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}
.instructor-card:hover .instructor-img {
    filter: grayscale(0%);
}

/* B2B Panels */
.b2b-panel-blue {
    border-top: 2px solid var(--color-accent);
}
.b2b-panel-cyan {
    border-top: 2px solid var(--color-cyan);
}

/* Image Placeholder */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 16px;
}


/* ═══════════════════════════════════════════════════════════════════
   CAREER TRANSFORMATION (Dark Tab + Panel)
   ═══════════════════════════════════════════════════════════════════ */

/* Tab bar base line */
.domain-tab-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Domain tabs */
.domain-card {
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    border-bottom: 2px solid transparent;
}
.domain-card:hover {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
.domain-card.active {
    color: #FFFFFF;
    border-bottom-color: var(--color-cyan);
    background-color: rgba(255, 255, 255, 0.03);
}
.domain-card .tab-icon {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
}
.domain-card.active .tab-icon {
    color: var(--color-cyan);
}

/* Hide scrollbar for mobile tab strip */
.domain-tab-bar::-webkit-scrollbar { display: none; }
.domain-tab-bar { scrollbar-width: none; }

/* Transformation panel */
.transformation-panel-dark {
    border-top: 2px solid var(--color-cyan);
    background: rgba(30, 41, 59, 0.5);
}


/* ═══════════════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════════ */

.faq-item {
    border-left: 2px solid transparent;
    transition: border-color 0.2s ease;
}
.faq-item.active {
    border-left-color: var(--color-accent);
}
.faq-item .faq-answer {
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-item.active .expand-icon {
    transform: rotate(180deg);
}
.expand-icon {
    transition: transform 0.2s ease;
}


/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */

/* Text Slide (Hero Rotation) */
.text-anim-enter-active {
    animation: slideUpIn 0.4s ease-out forwards;
}
.text-anim-exit-active {
    animation: slideUpOut 0.3s ease-in forwards;
}

@keyframes slideUpIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUpOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Panel Enter (Career Transformation) */
.transformation-enter {
    animation: panelIn 0.3s ease-out forwards;
}
.transformation-fade {
    animation: panelIn 0.3s ease-out;
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo Scroll */
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.logo-scroll {
    animation: scroll-logos 20s linear infinite;
}
.logo-scroll:hover {
    animation-play-state: paused;
}

/* Carousel */
.carousel-container {
    will-change: transform;
}
@media (max-width: 767px) {
    .carousel-touch {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .carousel-touch::-webkit-scrollbar { display: none; }
    .carousel-card {
        scroll-snap-align: start;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE STICKY CTA
   ═══════════════════════════════════════════════════════════════════ */

.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    display: none;
}
@media (max-width: 767px) {
    .sticky-mobile-cta { display: block; }
    body { padding-bottom: 72px; }
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Reset & Foundation
   ═══════════════════════════════════════════════════════════════════ */

.r1-footer *, .r1-footer *::before, .r1-footer *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
}
.r1-footer {
    background: #0F172A;
    color: #E2E8F0;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.r1-footer a {
    color: #E2E8F0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.r1-footer a:hover {
    opacity: 0.7;
}
.r1-footer ul {
    list-style: none;
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Zone 1: Brand Strip
   ═══════════════════════════════════════════════════════════════════ */

.r1-footer__brand {
    border-top: 1px solid #2563EB;
    padding: 48px 0;
}
.r1-footer__brand-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}
.r1-footer__brand-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.r1-footer__wordmark {
    font-family: 'Space Grotesk', 'Fjalla One', 'Inter', sans-serif;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.r1-footer__declaration {
    font-size: 20px;
    font-weight: 400;
    color: #E2E8F0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.r1-footer__declaration span {
    display: block;
}
.r1-footer__origin-badge {
    margin-top: 16px;
    padding: 8px 16px;
    border-top: 2px solid #2563EB;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563EB;
    background: transparent;
    display: inline-block;
    width: fit-content;
    max-width: fit-content;
}
.r1-footer__social {
    display: flex;
    align-items: center;
    gap: 24px;
    align-self: flex-end;
    margin-top: auto;
}
.r1-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #94A3B8;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.r1-footer__social a:hover {
    color: #2563EB;
    opacity: 1;
}
.r1-footer__social svg {
    width: 20px;
    height: 20px;
    display: block;
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Zone 2: Stat Bar
   ═══════════════════════════════════════════════════════════════════ */

.r1-footer__stats {
    background: #1E293B;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.r1-footer__stats-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.r1-footer__stat {
    text-align: center;
    padding: 40px 24px;
    font-size: 0.9375rem;
    color: #CBD5E1;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.r1-footer__stat + .r1-footer__stat {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.r1-footer__stat-number {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #FFFFFF;
    display: block;
    margin-bottom: 4px;
}
.r1-footer__stat-label {
    font-size: 0.875rem;
    color: #CBD5E1;
    max-width: 240px;
    margin: 0 auto;
}
.r1-footer__stat-label strong {
    color: #FFFFFF;
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Zone 3: Navigation Grid
   ═══════════════════════════════════════════════════════════════════ */

.r1-footer__nav {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 40px 0;
}
.r1-footer__nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}
.r1-footer__nav-primary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.r1-footer__nav-heading {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748B;
    margin-bottom: 16px;
}
.r1-footer__nav-heading--primary {
    font-size: 0.8125rem;
    color: #2563EB;
    letter-spacing: 0.08em;
}
.r1-footer__nav-list li {
    margin-bottom: 8px;
}
.r1-footer__nav-list a {
    font-size: 0.875rem;
    color: #E2E8F0;
    padding: 4px 0;
    display: inline-block;
    transition: opacity 0.2s ease;
}
.r1-footer__nav-list a:hover {
    opacity: 0.65;
}
.r1-footer__nav-toggle {
    display: none;
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Zone 4: Bottom Bar
   ═══════════════════════════════════════════════════════════════════ */

.r1-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}
.r1-footer__bottom-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.r1-footer__copyright {
    font-size: 0.8125rem;
    color: #64748B;
}
.r1-footer__legal-links {
    display: flex;
    gap: 24px;
    align-items: center;
}
.r1-footer__legal-links a {
    font-size: 0.8125rem;
    color: #64748B;
    transition: color 0.2s ease;
}
.r1-footer__legal-links a:hover {
    color: #94A3B8;
    opacity: 1;
}
.r1-footer__contact {
    font-size: 0.8125rem;
    color: #64748B;
    text-align: right;
    justify-self: end;
}
.r1-footer__contact a {
    color: #64748B;
}
.r1-footer__contact a:hover {
    opacity: 0.7;
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Responsive: Desktop (1025+)
   ═══════════════════════════════════════════════════════════════════ */

@media (min-width: 1025px) {
    .r1-footer__nav-inner {
        padding: 0 64px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Responsive: Tablet (768-1024)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .r1-footer__nav-primary {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 48px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Responsive: Mobile (< 768)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    /* Brand strip */
    .r1-footer__brand {
        padding: 48px 0;
    }
    .r1-footer__brand-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 16px;
        gap: 16px;
    }
    .r1-footer__declaration {
        font-size: 17px;
    }
    .r1-footer__social {
        margin-top: 16px;
        gap: 16px;
    }
    .r1-footer__origin-badge {
        font-size: 0.75rem;
    }

    /* Stats: keep 3-col horizontal on mobile */
    .r1-footer__stats-inner {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 16px;
    }
    .r1-footer__stat {
        padding: 16px 8px;
    }
    .r1-footer__stat-number {
        font-size: 1.125rem;
    }
    .r1-footer__stat-label {
        font-size: 0.6875rem;
    }
    .r1-footer__stat + .r1-footer__stat {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Nav: single column accordion */
    .r1-footer__nav {
        padding: 32px 0;
    }
    .r1-footer__nav-inner {
        padding: 0 16px;
    }
    .r1-footer__nav-primary {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    .r1-footer__nav-category {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .r1-footer__nav-primary .r1-footer__nav-category:first-child {
        border-top: none;
    }
    .r1-footer__nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: none;
        border: none;
        border-radius: 0;
        cursor: pointer;
        padding: 16px 0;
        color: #64748B;
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-family: inherit;
    }
    .r1-footer__nav-toggle--primary {
        color: #2563EB;
        font-size: 0.8125rem;
        letter-spacing: 0.08em;
    }
    .r1-footer__nav-toggle::after {
        content: '+';
        font-size: 1rem;
        font-weight: 400;
        color: #475569;
        transition: transform 0.2s ease;
    }
    .r1-footer__nav-toggle[aria-expanded="true"]::after {
        content: '\2212';
    }
    .r1-footer__nav-heading {
        display: none;
    }
    .r1-footer__nav-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding-bottom: 0;
    }
    .r1-footer__nav-list.is-open {
        max-height: 400px;
        padding-bottom: 16px;
    }
    .r1-footer__nav-list a {
        padding: 8px 0;
        display: block;
        min-height: 44px;
        line-height: 28px;
    }

    /* Bottom bar: stack */
    .r1-footer__bottom-inner {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 0 16px;
        gap: 8px;
    }
    .r1-footer__contact {
        text-align: left;
        justify-self: start;
    }
    .r1-footer__legal-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Reduced Motion & Focus
   ═══════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .r1-footer * {
        transition: none !important;
        animation: none !important;
    }
}

.r1-footer a:focus-visible,
.r1-footer button:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}
