/* ==========================================================================
   SKYFALL V3 - UNIFIED THEME CSS
   All CSS variables and global styles in one place
   Font: Poppins only
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES
   ========================================================================== */
:root {
    /* --------------------------------
       COLORS - Primary Palette
    -------------------------------- */
    --sf-primary: #EA580C;
    --sf-primary-light: #f97316;
    --sf-primary-dark: #c2410c;
    --sf-primary-rgb: 234, 88, 12;

    /* Secondary Colors */
    --sf-purple: #6366F1;
    --sf-blue: #3b82f6;
    --sf-red: #ef4444;
    --sf-red-rgb: 239, 68, 68;
    --sf-green: #22c55e;

    /* Neutral Colors */
    --sf-white: #ffffff;
    --sf-black: #000000;
    --sf-bg: #050505;
    --sf-bg-card: #0a0a0a;
    --sf-bg-elevated: #121212;

    /* Gray Scale */
    --sf-gray-50: #fafafa;
    --sf-gray-100: #f4f4f5;
    --sf-gray-200: #e4e4e7;
    --sf-gray-300: #d4d4d8;
    --sf-gray-400: #a1a1aa;
    --sf-gray-500: #71717a;
    --sf-gray-600: #52525b;
    --sf-gray-700: #3f3f46;
    --sf-gray-800: #27272a;
    --sf-gray-900: #18181b;

    /* --------------------------------
       GRADIENTS
    -------------------------------- */
    --sf-gradient-primary: linear-gradient(to right, var(--sf-primary-dark), var(--sf-primary));
    --sf-gradient-hero: linear-gradient(to right, var(--sf-primary-light), var(--sf-purple));
    --sf-gradient-chrome: linear-gradient(to right, #ffffff, #9CA3AF);
    --sf-gradient-red: linear-gradient(to right, #ffffff, #EF4444);

    /* --------------------------------
       SHADOWS
    -------------------------------- */
    --sf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --sf-shadow-md: 0 4px 15px rgba(234, 88, 12, 0.3);
    --sf-shadow-lg: 0 6px 20px rgba(234, 88, 12, 0.5);
    --sf-shadow-glow: 0 0 30px rgba(234, 88, 12, 0.2);

    /* --------------------------------
       TYPOGRAPHY
    -------------------------------- */
    --sf-font: 'Poppins', sans-serif;

    /* Font Sizes */
    --sf-text-xs: 0.75rem;
    --sf-text-sm: 0.875rem;
    --sf-text-base: 1rem;
    --sf-text-lg: 1.125rem;
    --sf-text-xl: 1.25rem;
    --sf-text-2xl: 1.5rem;
    --sf-text-3xl: 2rem;
    --sf-text-4xl: 2.5rem;
    --sf-text-5xl: 2.9rem;
    --sf-text-6xl: 4rem;

    /* --------------------------------
       SPACING & LAYOUT
    -------------------------------- */
    --sf-radius-sm: 4px;
    --sf-radius-md: 8px;
    --sf-radius-lg: 12px;
    --sf-radius-xl: 16px;
    --sf-radius-full: 9999px;

    /* Transitions */
    --sf-transition-fast: 0.15s ease;
    --sf-transition-base: 0.3s ease;
    --sf-transition-slow: 0.5s ease;
    --sf-transition-bounce: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* --------------------------------
       TAILWIND COMPATIBILITY
    -------------------------------- */
    --background: 0 0% 2%;
    --foreground: 0 0% 100%;
    --card: 0 0% 7%;
    --card-foreground: 0 0% 100%;
    --primary: 24 95% 53%;
    --primary-foreground: 0 0% 100%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 24 95% 53%;
    --radius: 0.75rem;
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sf-font);
    background-color: var(--sf-bg);
    color: var(--sf-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: rgba(234, 88, 12, 0.3);
    color: #fed7aa;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sf-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--sf-gray-800);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sf-primary);
}

/* ==========================================================================
   3. TYPOGRAPHY CLASSES
   ========================================================================== */

/* Hero Heading */
.sf-heading-hero {
    font-family: var(--sf-font);
    font-size: 3.85rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--sf-white);
}

@media (max-width: 768px) {
    .sf-heading-hero {
        font-size: var(--sf-text-4xl);
    }
}

/* Section Heading (H2) */
.sf-heading-2 {
    font-family: var(--sf-font);
    font-size: var(--sf-text-5xl);
    font-weight: 700;
    color: var(--sf-white);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .sf-heading-2 {
        font-size: var(--sf-text-3xl);
    }
}

/* H3 */
.sf-heading-3 {
    font-family: var(--sf-font);
    font-size: var(--sf-text-2xl);
    font-weight: 600;
    color: var(--sf-white);
    line-height: 1.3;
}

/* Gradient Text */
.sf-text-gradient,
.text-gradient {
    background: var(--sf-gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.sf-text-gradient-chrome {
    background: var(--sf-gradient-chrome);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.sf-text-gradient-red {
    background: var(--sf-gradient-red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Paragraphs */
.sf-lead {
    font-family: var(--sf-font);
    font-size: var(--sf-text-xl);
    color: var(--sf-white);
    line-height: 1.625;
    max-width: 42rem;
}

/* Hero Lead Text (under H1) - matches V1 so-text-hero-lead */
.sf-text-hero-lead {
    font-family: var(--sf-font);
    font-size: var(--sf-text-xl);
    color: var(--sf-white);
    line-height: 1.625;
    max-width: 42rem;
}

/* Paragraph Lead (under H2) - matches V1 so-paragraph-lead */
.sf-paragraph-lead {
    font-family: var(--sf-font);
    font-size: var(--sf-text-xl);
    color: var(--sf-white);
    line-height: 1.625;
    max-width: 42rem;
}

@media (max-width: 768px) {
    .sf-paragraph-lead {
        font-size: var(--sf-text-lg);
    }
}

.sf-paragraph {
    font-family: var(--sf-font);
    font-size: var(--sf-text-base);
    color: var(--sf-white);
    line-height: 1.75;
}

.sf-paragraph-light {
    font-family: var(--sf-font);
    font-size: var(--sf-text-base);
    color: var(--sf-white);
    line-height: 1.75;
}

.sf-paragraph-sm {
    font-family: var(--sf-font);
    font-size: var(--sf-text-sm);
    color: var(--sf-white);
    line-height: 1.625;
}

.sf-small {
    font-family: var(--sf-font);
    font-size: var(--sf-text-sm);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* ==========================================================================
   4. BUTTON STYLES
   ========================================================================== */
.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--sf-font);
    font-weight: 600;
    font-size: var(--sf-text-base);
    border-radius: var(--sf-radius-full);
    transition: all var(--sf-transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.sf-btn-primary {
    background: var(--sf-gradient-primary);
    color: var(--sf-white);
    box-shadow: var(--sf-shadow-md);
}

.sf-btn-primary:hover {
    box-shadow: var(--sf-shadow-lg);
    transform: translateY(-2px);
}

.sf-btn-secondary {
    background: transparent;
    color: var(--sf-white);
    border: 1px solid var(--sf-gray-700);
}

.sf-btn-secondary:hover {
    border-color: var(--sf-primary);
    background: rgba(234, 88, 12, 0.1);
}

/* Pulse Animation for CTA */
.sf-btn-pulse {
    animation: sf-pulse 2s infinite;
}

@keyframes sf-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(234, 88, 12, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
    }
}

/* ==========================================================================
   5. UTILITY CLASSES
   ========================================================================== */

/* Container */
.sf-container {
    width: 95%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Glass Panel Effect */
.sf-glass {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Background Glow */
.sf-glow-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(120, 40, 20, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* Reveal Animation Class */
.sf-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.sf-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Badge */
.sf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--sf-radius-full);
    font-family: var(--sf-font);
    font-size: var(--sf-text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sf-badge-primary {
    background: rgba(234, 88, 12, 0.1);
    color: var(--sf-primary);
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.sf-badge-red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--sf-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Flashing Dot */
.sf-dot-flash {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    animation: sf-dot-flash 1s ease-in-out infinite;
    box-shadow: 0 0 8px currentColor;
}

@keyframes sf-dot-flash {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px currentColor;
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 2px currentColor;
    }
}

/* ==========================================================================
   6. SECTION STYLES
   ========================================================================== */

/* Section Base */
.sf-section {
    position: relative;
    padding: 6rem 0;
}

/* Section with grid background */
.sf-section-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/grid-pattern.png');
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
}

/* ==========================================================================
   7. LEGAL PAGE STYLES
   ========================================================================== */
.sf-legal-section {
    margin-bottom: 3rem;
}

.sf-legal-section h3 {
    color: var(--sf-primary-light);
    font-size: var(--sf-text-2xl);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}

.sf-legal-section h4 {
    color: var(--sf-white);
    font-size: var(--sf-text-lg);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.sf-legal-section p,
.sf-legal-section ul,
.sf-legal-section ol {
    color: var(--sf-gray-400);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.sf-legal-section a {
    color: var(--sf-primary-light);
    text-decoration: underline;
    transition: color var(--sf-transition-fast);
}

.sf-legal-section a:hover {
    color: #fb923c;
}

.sf-legal-highlight {
    background: rgba(249, 115, 22, 0.1);
    border-left: 3px solid var(--sf-primary-light);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--sf-radius-sm);
}

.sf-legal-date {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: var(--sf-primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--sf-radius-full);
    font-size: var(--sf-text-sm);
    font-weight: 600;
}

.sf-legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.sf-legal-table th,
.sf-legal-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-legal-table th {
    background: rgba(249, 115, 22, 0.1);
    color: var(--sf-primary-light);
    font-weight: 700;
}

.sf-legal-table td {
    color: var(--sf-gray-400);
}

/* ==========================================================================
   8. FOOTER STYLES
   ========================================================================== */
.sf-footer {
    background: var(--sf-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.sf-footer-heading {
    color: var(--sf-white);
    font-weight: 700;
    font-size: var(--sf-text-base);
    margin-bottom: 1.5rem;
}

.sf-footer-link {
    color: var(--sf-gray-500);
    font-size: var(--sf-text-sm);
    font-weight: 500;
    transition: color var(--sf-transition-fast);
    display: inline-block;
}

.sf-footer-link:hover {
    color: var(--sf-primary-light);
}

.sf-footer-text {
    color: var(--sf-gray-400);
    font-size: var(--sf-text-sm);
    line-height: 1.6;
}

.sf-footer-social {
    display: flex;
    gap: 0.75rem;
}

.sf-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.1);
    color: var(--sf-primary-light);
    transition: all var(--sf-transition-fast);
}

.sf-footer-social-link:hover {
    border-color: var(--sf-primary-light);
    background: rgba(249, 115, 22, 0.2);
}

/* ==========================================================================
   9. NAVIGATION ACTIVE STATES
   ========================================================================== */
header nav a.nav-active {
    color: var(--sf-primary) !important;
}

.mobile-menu-link.active-page {
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.15) 0%, rgba(234, 88, 12, 0.05) 100%) !important;
    border-color: var(--sf-primary) !important;
    position: relative;
}

.mobile-menu-link.active-page::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--sf-primary);
}

/* ==========================================================================
   10. LAZY LOADING
   ========================================================================== */
.sf-lazy {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sf-lazy.loaded {
    opacity: 1;
}

img.sf-lazy:not(.loaded) {
    background: linear-gradient(135deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
    background-size: 200% 200%;
    animation: sf-lazy-gradient 2s ease infinite;
}

@keyframes sf-lazy-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
