/* ============================================================
   TAM PROTOCOL - MIDNIGHT GOLD PRESTIGE THEME
   OPTIMIZED FOR SMOOTH SCROLLING
   ============================================================ */

:root {
    /* The Gold Palette */
    --primary: #D4AF37;
    --primary-bright: #FFD700;
    --primary-dim: rgba(212, 175, 55, 0.1);
    --secondary: #8E6E17;
    
    /* Deep Backgrounds */
    --bg: #030303;
    --card-bg: rgba(15, 15, 15, 0.7);
    --card-border: rgba(212, 175, 55, 0.12);
    --card-border-hover: rgba(212, 175, 55, 0.4);
    
    /* Text */
    --text-main: #FFFFFF;
    --text-dim: #A0A0A0;
    --text-gold: #E6BE8A;
    
    /* System */
    --glass: blur(20px) saturate(160%);
    --transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F2D479 50%, #B8860B 100%);
    --obsidian: #050505;
}

/* ============= SMOOTH SCROLLING CORE ============= */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* CRITICAL: Enable GPU acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    /* iOS momentum scrolling */
    -webkit-overflow-scrolling: touch;
}

/* ============= BACKGROUND SYSTEM - GPU OPTIMIZED ============= */
.ambient-container {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% -20%, #1a1608 0%, #030303 100%);
    z-index: -2;
    overflow: hidden;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: auto;
}

.noise-overlay {
    position: absolute;
    inset: -200%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.12;
    pointer-events: none;
    animation: noise-move 0.2s steps(2) infinite;
    /* Prevent animation lag */
    will-change: transform;
}

.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    /* GPU acceleration */
    transform: translateZ(0);
}

.blob {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    transition: transform 0.3s ease-out;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
}

.blob-1 { 
    top: -10%; 
    left: -10%; 
    background: var(--primary); 
}

.blob-2 { 
    bottom: -10%; 
    right: -10%; 
    background: var(--secondary); 
}

@keyframes noise-move {
    0% { transform: translate(0,0); }
    100% { transform: translate(10px, 10px); }
}

/* ============= FIXED HEADER - OPTIMIZED ============= */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(8px);
    /* CRITICAL: GPU acceleration for fixed elements */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    contain: layout style paint;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============= TAM LOGO ============= */
.tam-brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
}

.tam-logo {
    position: relative;
    display: flex;
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: -2px;
    text-decoration: none;
    color: transparent;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 1;
    /* GPU acceleration */
    transform: translateZ(0);
}

.tam-logo .a {
    margin-left: -2px;
    margin-right: -2px;
    position: relative;
    clip-path: polygon(50% 0%, 0% 100%, 15% 100%, 50% 25%, 85% 100%, 100% 100%);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
}

.logo-accent {
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 20px;
    height: 2px;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tam-brand-container:hover .logo-accent {
    width: 100%;
}

.logo-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #ffffff;
    letter-spacing: 6px;
    text-transform: uppercase;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
    opacity: 0.8;
}

/* ============= SIGN IN BUTTON ============= */
.btn-sign-in-small {
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 7px 16px; 
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.8rem; 
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    /* GPU acceleration */
    transform: translateZ(0);
}

.btn-sign-in-small:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
    transform: scale(0.98) translateZ(0);
}

/* ============= BUTTONS - OPTIMIZED ============= */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.2, 1, 0.3, 1),
                background 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #000;
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) translateZ(0);
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) translateZ(0);
}

.btn-outline {
    background: transparent;
    color: var(--text-gold);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
}

/* ============= HERO SECTION ============= */
.hero {
    display: flex;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 5%;
    min-height: 85vh;
    /* GPU acceleration */
    transform: translateZ(0);
}

.hero-content { 
    flex: 1.2; 
}

.badge-container { 
    margin-bottom: 25px; 
}

.badge {
    background: var(--primary-dim);
    color: var(--text-gold);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--card-border);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.badge-pulse {
    width: 6px; 
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary-bright);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot { 
    0%, 100% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.4; transform: scale(1.2); } 
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -3px;
    /* GPU acceleration */
    transform: translateZ(0);
}

.gradient-text {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 50%, #8E6E17 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.hero-description {
    color: var(--text-dim);
    font-size: 1.2rem;
    max-width: 580px;
    margin-bottom: 45px;
}

.cta-group { 
    display: flex; 
    gap: 20px; 
}

/* ============= TRUST INDICATORS ============= */
.trust-indicators { 
    display: flex; 
    gap: 40px; 
    margin-top: 60px; 
}

.trust-item { 
    display: flex; 
    flex-direction: column; 
}

.trust-number { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--primary); 
    line-height: 1.2; 
}

.trust-label { 
    font-size: 0.75rem; 
    color: var(--text-dim); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.trust-divider { 
    width: 1px; 
    height: 40px; 
    background: var(--card-border); 
}

/* ============= HERO VISUAL - OPTIMIZED ============= */
.hero-visual { 
    flex: 0.8; 
    display: flex; 
    justify-content: flex-end; 
    position: relative; 
}

.visual-container { 
    position: relative; 
    width: 450px; 
    height: 450px; 
    /* GPU acceleration */
    transform: translateZ(0);
}

.abstract-shape {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border: 1px solid var(--card-border);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
    animation: morph 15s infinite alternate;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: border-radius;
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%; }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.stat-card-preview {
    position: absolute;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: var(--glass);
    border: 1px solid var(--card-border);
    padding: 20px 25px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: float 6s infinite ease-in-out;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

@keyframes float { 
    0%, 100% { transform: translateY(0) translateZ(0); } 
    50% { transform: translateY(-20px) translateZ(0); } 
}

.card-1 { top: 10%; left: -10%; animation-delay: 0s; }
.card-2 { top: 50%; right: -5%; animation-delay: 1s; }
.card-3 { bottom: 5%; left: 5%; animation-delay: 2s; }

.icon-circle {
    width: 44px; 
    height: 44px;
    border-radius: 12px;
    background: var(--primary-dim);
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.details p { 
    font-size: 0.65rem; 
    color: var(--text-dim); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.details strong { 
    font-size: 1.2rem; 
    display: block; 
    color: var(--text-gold); 
}

/* ============= FEATURES SECTION - OPTIMIZED ============= */
.features-section { 
    padding: 120px 5%; 
    max-width: 1300px; 
    margin: 0 auto; 
    /* GPU acceleration */
    transform: translateZ(0);
}

.section-header { 
    text-align: center; 
    margin-bottom: 80px; 
}

.section-badge { 
    color: var(--primary); 
    font-size: 0.8rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

.section-header h2 { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 3.2rem; 
    margin: 15px 0; 
    letter-spacing: -1px; 
}

.section-description { 
    color: var(--text-dim); 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin: 0 auto; 
}

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.feat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 50px 40px;
    border-radius: 24px;
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1),
                background 0.3s cubic-bezier(0.2, 1, 0.3, 1),
                border-color 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.feat-card:hover {
    background: rgba(212, 175, 55, 0.04);
    border-color: var(--primary);
    transform: translateY(-10px) translateZ(0);
}

/* ============= IMAGE MEDALLION - LAZY LOAD READY ============= */
.feat-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-medallion {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary);
    z-index: 2;
    transition: transform 0.3s, border-color 0.3s;
    filter: saturate(1.2) brightness(1.1);
    opacity: 0;
    /* GPU acceleration */
    transform: translateZ(0);
}

.feat-medallion.loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.medallion-glow {
    position: absolute;
    inset: -5px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.15;
    z-index: 1;
    transition: opacity 0.3s, transform 0.3s;
}

.feat-card:hover .feat-medallion {
    transform: scale(1.05) rotate(2deg) translateZ(0);
    border-color: var(--primary-bright);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.feat-card:hover .medallion-glow {
    opacity: 0.4;
    transform: scale(1.2);
}

.feat-card h3 { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: var(--text-gold); 
    text-align: center;
}

.feat-card p { 
    color: var(--text-dim); 
    font-size: 1rem; 
    margin-bottom: 25px; 
    text-align: center;
}

.feat-link { 
    color: var(--primary); 
    font-size: 0.8rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    cursor: pointer; 
    display: block;
    text-align: center;
}
/* ============= SUB-FEATURES SECTION - OPTIMIZED ============= */
.sub-features-section {
    padding: 100px 5%;
    background: #050505;
    /* GPU acceleration */
    transform: translateZ(0);
}

.sub-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
}

.sub-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 1) 0%, rgba(10, 10, 10, 1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
}

.sub-card:hover {
    transform: translateY(-10px) translateZ(0);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.medallion-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.medallion-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.1);
    pointer-events: none;
}

.medallion-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(0.9) contrast(1.1);
    transition: transform 0.4s, filter 0.4s;
    opacity: 0;
    /* GPU acceleration */
    transform: translateZ(0);
}

.medallion-img.loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in, transform 0.4s, filter 0.4s;
}

.sub-card:hover .medallion-img {
    filter: brightness(1.1) saturate(1.2);
    transform: scale(1.05) translateZ(0);
}

.sub-card:hover .medallion-wrapper {
    border-color: #D4AF37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.sub-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: #D4AF37;
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.sub-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============= CTA SECTION - OPTIMIZED ============= */
.cta-section {
    padding: 150px 5%;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.07) 0%, transparent 70%);
    /* GPU acceleration */
    transform: translateZ(0);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 50%; 
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(212, 175, 55, 0.03),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine-sweep 8s infinite;
    /* Prevent animation lag */
    will-change: transform;
}

@keyframes shine-sweep {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.cta-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: -2px;
}

.cta-content p {
    color: var(--text-dim);
    font-size: 1.25rem;
    margin-bottom: 45px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.1rem;
    border-radius: 14px;
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative;
}

.btn-primary.btn-large::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: var(--primary);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
    transition: opacity 0.3s, transform 0.3s;
}

.btn-primary.btn-large:hover::after {
    opacity: 0.6;
    transform: scale(1.1);
}

/* ============= HERO SECTION (BOTTOM) ============= */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #050505;
    position: relative;
    overflow: hidden;
    /* GPU acceleration */
    transform: translateZ(0);
}

.status-badge {
    font-family: 'Space Mono', monospace;
    color: var(--primary);
    font-size: 0.7rem;
    letter-spacing: 3px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 5px 15px;
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 50px;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

.gold-text {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.hero-section p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ============= FOOTER - OPTIMIZED ============= */

.site-footer {
    background: #000000;
    position: relative;
    padding: 80px 0 30px;
    margin-top: 100px;
    color: #ffffff;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    /* GPU acceleration */
    transform: translateZ(0);
}

.footer-top-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1.5fr;
    gap: 60px;
    padding: 0 5%;
}

.footer-brand h2 {
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.6;
}

.system-status {
    margin-top: 25px;
    font-size: 0.7rem;
    font-family: 'Space Mono', monospace;
    color: #00ff00;
    letter-spacing: 1px;
}

.status-dot {
    height: 8px;
    width: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 8px #00ff00;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
}

.footer-col h5 {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-col a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 12px;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 1px;
}

/* ============= PERFORMANCE OPTIMIZATION CLASSES ============= */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.perf-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    will-change: scroll-position;
    contain: layout style paint;
}

/* Disable transitions during scroll for better performance */
.scrolling * {
    transition: none !important;
}

/* ============= RESPONSIVE DESIGN ============= */
@media (max-width: 1024px) {
    .hero { 
        flex-direction: column; 
        text-align: center; 
        padding-top: 60px; 
    }
    
    .hero-content { 
        margin-bottom: 80px; 
        width: 100%; 
    }
    
    .hero-visual { 
        width: 100%; 
        justify-content: center; 
    }
    
    .cta-group { 
        justify-content: center; 
    }
    
    .trust-indicators { 
        justify-content: center; 
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title { 
        font-size: 3.5rem; 
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .sub-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title { 
        font-size: 2.8rem; 
    }
    
    .cta-group { 
        flex-direction: column; 
    }
    
    .btn-sign-in-small span {
        display: none;
    }
    
    .btn-sign-in-small {
        padding: 8px 10px;
    }
    
    .tam-logo {
        font-size: 1.8rem;
    }
    
    .footer-bottom {
        font-size: 0.6rem;
        padding: 20px 10%;
        line-height: 1.5;
    }
}

/* ============= ACCESSIBILITY & REDUCED MOTION ============= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .blob,
    .abstract-shape,
    .stat-card-preview,
    .noise-overlay,
    .badge-pulse {
        animation: none !important;
    }
}

/* ============= LAZY LOADING PLACEHOLDER ============= */
img[data-src] {
    background: rgba(212, 175, 55, 0.05);
}

img.loaded {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============= TOUCH OPTIMIZATION ============= */
@media (hover: none) {
    .btn-primary:active {
        background-color: #FFD700;
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    }
    
    .btn-secondary:active {
        background: rgba(212, 175, 55, 0.15);
    }
}
