/* 
  TitanFlash Design System (Vanilla CSS Version)
  Standard: Orzatty High-Fidelity Enterprise
  Font: Outfit & Inter
*/

:root {
    /* Brand Colors */
    --brand-navy: #004173;
    --brand-navy-dark: #002B49;
    --brand-orange: #F27435;
    --brand-orange-light: #FDB382;
    --brand-charcoal: #1A1C1E;
    --brand-neutral: #FDFBFF;
    --brand-surface: #F1F4F9;

    /* Gradients */
    --hero-gradient: linear-gradient(135deg, rgba(0, 65, 115, 0.95) 0%, rgba(0, 65, 115, 0.7) 50%, rgba(0, 65, 115, 0.4) 100%);
    --navy-overlay: linear-gradient(to right, rgba(0, 65, 115, 0.9), rgba(0, 65, 115, 0.6), transparent);

    /* Spacing */
    --container-max: 1400px;
    --section-py: 10rem;

    /* Transitions */
    --m3-transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--brand-neutral);
    color: var(--brand-charcoal);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: 'Outfit', sans-serif;
}

/* Layout Elements */
.max-w-7xl {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .max-w-7xl {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Grid Utilities */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-6 {
    gap: 2rem;
}

.gap-8 {
    gap: 3rem;
}

.gap-10 {
    gap: 3.5rem;
}

.gap-12 {
    gap: 5rem;
}

.gap-20 {
    gap: 8rem;
}

@media (max-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Components */
.pill-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    border-radius: 9999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.pill-nav a {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-navy);
    transition: color 0.3s ease;
}

.pill-nav a:hover {
    color: var(--brand-orange);
}

.btn-primary {
    background: var(--brand-navy);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--brand-navy-dark);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: var(--m3-transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--brand-navy-dark);
    transform: scale(1.05);
}

.btn-orange {
    background: var(--brand-orange);
    color: white;
    padding: 1.25rem 4rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: var(--m3-transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-orange:hover {
    background: #D9622D;
    transform: scale(1.02);
}

/* Typography Utilities */
.text-white {
    color: white;
}

.text-brand-navy {
    color: var(--brand-navy);
}

.text-brand-orange {
    color: var(--brand-orange);
}

.text-brand-charcoal {
    color: var(--brand-charcoal);
}

.text-gray-300 {
    color: #D1D5DB;
}

.text-gray-400 {
    color: #9CA3AF;
}

.text-gray-500 {
    color: #6B7280;
}

.text-gray-600 {
    color: #4B5563;
}

.text-blue-100 {
    color: #DBEAFE;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-7xl {
    font-size: 4.5rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.font-extrabold {
    font-weight: 800;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-tight {
    line-height: 1.25;
}

/* Spacing Utilities */
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pt-20 {
    padding-top: 5rem;
}

.pt-24 {
    padding-top: 6rem;
}

.pb-12 {
    padding-bottom: 3rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mt-20 {
    margin-top: 5rem;
}

/* Section Specifics */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--navy-overlay);
    z-index: 1;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.5);
    z-index: 0;
}

.hero-title-main {
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    color: white;
}

.hero-input-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.hero-input-container input {
    background: transparent;
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    width: 100%;
    outline: none;
    font-size: 0.875rem;
}

.hero-input-container input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Training Section Containers */
.training-main-container {
    background-color: var(--brand-navy);
    border-radius: 3rem;
    padding: 5rem;
    /* lg:p-20 */
    position: relative;
    overflow: hidden;
}

.training-item-backdrop {
    background: rgba(0, 43, 73, 0.4);
    /* brand-navy-dark/40 */
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

/* Modality Cards */
.modality-card {
    background: white;
    border-radius: 2.5rem;
    border: 12px solid rgba(254, 179, 130, 0.4);
    /* brand-orange-light/40 */
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--m3-transition);
}

.modality-card:hover {
    transform: translateY(-8px);
}

/* Form Elements */
.application-form-container {
    background-color: var(--brand-orange-light);
    border-radius: 2.5rem;
    padding: 1rem;
}

.form-input {
    width: 100%;
    background: white;
    border-radius: 1rem;
    padding: 1.25rem 2rem;
    border: none;
    font-style: italic;
    font-size: 0.875rem;
    color: #4B5563;
    transition: var(--m3-transition);
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(242, 116, 53, 0.2);
}

.doc-upload-card {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    height: 10rem;
    transition: var(--m3-transition);
}

.doc-upload-card:hover {
    border-color: var(--brand-navy);
}

.preview-container {
    position: absolute;
    inset: 0;
    display: none;
    z-index: 10;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
}

#mobile-menu.active {
    display: block;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 65, 115, 0.8);
    backdrop-filter: blur(20px);
}

/* M3 Loader */
.m3-loader-container {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(253, 251, 255, 0.9);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.m3-loader-blob {
    width: 80px;
    height: 80px;
    background: var(--brand-orange);
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    animation: morph 3s ease-in-out infinite alternate;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }

    50% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
        transform: rotate(360deg) scale(1.1);
    }
}

/* Background utilities */
.bg-brand-navy {
    background-color: var(--brand-navy);
}

.bg-brand-navy-dark {
    background-color: var(--brand-navy-dark);
}

.bg-brand-orange {
    background-color: var(--brand-orange);
}

.bg-brand-orange-light {
    background-color: var(--brand-orange-light);
}

.bg-brand-surface {
    background-color: var(--brand-surface);
}

.bg-white {
    background-color: white;
}

/* Border utilities */
.border-none {
    border: none;
}

.border-8 {
    border-width: 8px;
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.05);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-t {
    border-top-width: 1px;
}

/* Shape utilities */
.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-4xl {
    border-radius: 2rem;
}

.rounded-5xl {
    border-radius: 2.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Icon sizes */
.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

/* Glassmorphism Utilities */
.glass-logo {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.backdrop-blur-xl {
    backdrop-filter: blur(24px);
}

.bg-white-10 {
    background: rgba(255, 255, 255, 0.1);
}

.bg-white-20 {
    background: rgba(255, 255, 255, 0.2);
}

.fixed {
    position: fixed;
}

/* M3 Design Tokens - Only inline-specific values */
:root {
    --m3-elevation-1: 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --m3-elevation-2: 0 2px 6px 2px rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --m3-elevation-3: 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

/* Accessibility: Color Contrast Improvement for Orange background */
/* #D9622D is a darker orange that meets 4.5:1 ratio for white text more closely,
   but for full AA compliance (#F27435 with white is 2.5:1), we favor dark text on orange 
   or slightly darkening the brand orange for large text. */
.bg-brand-orange-aa {
    background-color: #E65100;
    /* Darker orange for better contrast */
    color: white;
}

/* M3 Card Component */
.m3-card {
    background-color: #f7f9fc;
    border-radius: 28px;
    box-shadow: var(--m3-elevation-1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.m3-card:hover {
    box-shadow: var(--m3-elevation-3);
    transform: translateY(-4px);
}

/* M3 Filled Button */
.m3-btn-filled {
    border-radius: 100px;
    padding: 12px 24px;
    font-weight: 500;
    letter-spacing: 0.1px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.m3-btn-filled:active {
    transform: scale(0.96);
}

/* M3 Loader */
.m3-loader-container {
    position: fixed;
    inset: 0;
    background: rgba(253, 251, 255, 0.95);
    backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.m3-loader-blob {
    width: 80px;
    height: 80px;
    background: #004173;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: m3-morph 3s infinite ease-in-out;
}

@keyframes m3-morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: scale(1);
    }

    50% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
        transform: scale(1.1) rotate(45deg);
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: scale(1);
    }
}

.success-checkmark {
    display: none;
    text-align: center;
    color: #004173;
}

/* Fade Animation with fallback visibility */
.fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.fade-up.init {
    opacity: 0;
    transform: translateY(30px);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dynamic Nav */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--m3-elevation-2);
}

.nav-pill-light {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 10px 30px rgba(0, 65, 115, 0.1);
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Progress Bar */
.upload-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(0, 65, 115, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
}

.upload-progress-bar {
    height: 100%;
    background: #F27435;
    width: 0%;
    transition: width 0.3s ease;
}

/* ─── OrzattyCloud Deployment Badge ──────────────────────────── */
.orzatty-cloud-badge {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: rgba(0, 43, 73, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
    user-select: none;
}

.orzatty-cloud-badge:hover {
    background: rgba(0, 43, 73, 0.95);
    border-color: rgba(242, 116, 53, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(242, 116, 53, 0.15),
        0 0 0 1px rgba(242, 116, 53, 0.2) inset;
    transform: translateY(-2px);
}

.orzatty-cloud-badge:active {
    transform: translateY(0) scale(0.98);
}

.orzatty-cloud-badge__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    filter: brightness(1.1);
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.orzatty-cloud-badge:hover .orzatty-cloud-badge__logo {
    transform: scale(1.15) rotate(-5deg);
}

.orzatty-cloud-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.orzatty-cloud-badge__label {
    font-size: 0.55rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.orzatty-cloud-badge__brand {
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.orzatty-cloud-badge__arrow {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    margin-left: 0.15rem;
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.orzatty-cloud-badge:hover .orzatty-cloud-badge__arrow {
    color: var(--brand-orange);
    transform: translate(2px, -2px);
}

/* Mobile: compact version */
@media (max-width: 480px) {
    .orzatty-cloud-badge {
        bottom: 1rem;
        left: 1rem;
        padding: 0.4rem 0.75rem 0.4rem 0.4rem;
        gap: 0.45rem;
    }

    .orzatty-cloud-badge__logo {
        width: 22px;
        height: 22px;
    }

    .orzatty-cloud-badge__label {
        font-size: 0.45rem;
    }

    .orzatty-cloud-badge__brand {
        font-size: 0.65rem;
    }

    .orzatty-cloud-badge__arrow {
        width: 12px;
        height: 12px;
    }
}

/* Accessibility: Focus indicators */
*:focus-visible {
    outline: 3px solid var(--brand-orange);
    outline-offset: 2px;
}