:root {
    --bg-primary: #1A1A1A;
    --surface: #242424;
    --surface-light: #2D2D2D;
    --gold: #0567AA;
    --dark-gold: #ffffff;
    --text-primary: #ee2245;
    --text-secondary: #E3E3E3;
    --border: #3A3A3A;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Bebas Neue', cursive;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    overflow: hidden;
    min-height: 100vh;
    /* Prevent mobile pull-to-refresh and improve scrolling feel */
    overscroll-behavior-y: none;
}

/* Background Layers */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: blur(8px) brightness(0.6);
}

#particle-canvas {
    display: none;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Base Layout System */
.fixed { position: fixed; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.pointer-events-none { pointer-events: none; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Fluid Spacing & Sizing */
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.leading-none { line-height: 1; }

/* Responsive Grid/List */
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Typography */
.font-display { font-family: var(--font-display); }
.font-serif { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

/* Main Title - Fluid Clamp scaling */
#main-title {
    font-size: clamp(3.5rem, 15vw, 8.5rem);
    letter-spacing: -0.02em;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: perspective(400px) rotateX(-90deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
    will-change: transform, opacity;
    color: var(--text-primary);
}

.letter.active {
    opacity: 1;
    transform: perspective(400px) rotateX(0deg);
}

/* Logo Adaptive Sizing */
#logo-container {
    padding: 1rem;
    transition: var(--transition);
}

#logo-container img {
    height: auto;
    width: auto;
    max-width: clamp(180px, 40vw, 320px);
    max-height: 35vh;
}

#logo-container:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(238, 34, 69, 0.2));
}

/* Premium Buttons - Multi-resolution optimization */
.premium-btn {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    padding: clamp(0.9rem, 2vw, 1.25rem) clamp(1.2rem, 3vw, 2rem);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 340px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.premium-btn:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    background: var(--surface-light);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-name {
    font-size: clamp(0.6rem, 1.5vw, 0.7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.2rem;
}

.cta-text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    letter-spacing: 0.05em;
    color: var(--dark-gold);
}

/* Floating Elements Positioning */
.floating-cloud {
    position: absolute;
    background: var(--text-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    letter-spacing: 0.1em;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(238, 34, 69, 0.4);
    animation: fiber-float 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Layout Adjustments */
@media (min-width: 768px) { 
    .md\:flex-row { flex-direction: row; }
    .md\:max-w-5xl { max-width: 64rem; }
}

/* Height-based tweaks for tiny screens like iPhone SE */
@media (max-height: 650px) {
    #main-title { font-size: clamp(2.5rem, 10vh, 5rem); margin-bottom: 0.5rem; }
    .mb-12 { margin-bottom: 1.5rem; }
    #logo-container img { max-height: 25vh; }
    .mt-16 { margin-top: 2rem; }
}

@keyframes fiber-float {
    0% { opacity: 0; transform: translate(-50%, 40px) scale(0.8); }
    15% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -120px) scale(0.9); }
}
