/* ============================================================
   GLOBAL & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern warm palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    
    --surface: rgba(10, 10, 15, 0.8);
    --surface-light: rgba(20, 20, 30, 0.7);
    --surface-hover: rgba(35, 35, 50, 0.5);
    
    --warm: #f7dc6f;
    --amber: #f57f17;
    --coral: #e63946;
    --rose: #ff8c42;
    --emerald: #2a9d8f;
    --teal: #264653;
    --sage: #74b9c5;
    
    --primary: #f7dc6f;
    --primary-light: #f9e79f;
    --primary-dark: #f4c2c2;
    --primary-glow: rgba(247, 220, 111, 0.4);
    
    --text-primary: #fafafa;
    --text-secondary: rgba(250, 250, 250, 0.85);
    --text-muted: rgba(250, 250, 250, 0.6);
    
    --border: rgba(250, 250, 250, 0.08);
    --border-light: rgba(250, 250, 250, 0.18);
    --border-accent: rgba(247, 220, 111, 0.3);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --gradient-hero: linear-gradient(135deg, #f7dc6f 0%, #ee5a24 50%, #e63946 100%);
    --gradient-text: linear-gradient(135deg, #f7dc6f 0%, #ee5a24 50%, #e63946 100%);
    --gradient-card: linear-gradient(135deg, rgba(247, 220, 111, 0.12) 0%, rgba(229, 90, 36, 0.12) 50%, rgba(230, 57, 70, 0.10) 100%);
    --gradient-border: linear-gradient(135deg, #f7dc6f, #ee5a24, #e63946);
    --gradient-gold: linear-gradient(135deg, #f7dc6f 0%, #f57f17 50%, #e63946 100%);
    
    --success: #2a9d8f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

@media (pointer: coarse) {
    body {
        cursor: auto;
    }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

body.hovering .cursor-outline {
    width: 52px;
    height: 52px;
    border-color: var(--amber);
    background: rgba(247, 220, 111, 0.1);
}

/* ============================================================
   PRELOADER
   ============================================================ */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    max-width: 320px;
}

.loader-logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-bar {
    width: 220px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 16px;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-hero);
    animation: loadProgress 2.2s ease-out forwards;
    box-shadow: 0 0 30px rgba(247, 220, 111, 0.5);
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

.loader-content p {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ============================================================
   BACKGROUND
   ============================================================ */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 20%, rgba(247, 220, 111, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(229, 90, 36, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(230, 57, 70, 0.04) 0%, transparent 60%),
                var(--bg-primary);
}

.ambient-bg::before,
.ambient-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatOrb 25s ease-in-out infinite;
}

.ambient-bg::before {
    width: 500px;
    height: 500px;
    background: rgba(247, 220, 111, 0.2);
    top: -8%;
    left: -8%;
    animation-delay: 0s;
}

.ambient-bg::after {
    width: 400px;
    height: 400px;
    background: rgba(229, 90, 36, 0.15);
    bottom: -8%;
    right: -5%;
    animation-delay: -12.5s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, 35px) scale(1.05); }
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.03);
    z-index: 1000;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-hero);
    box-shadow: 0 0 12px rgba(247, 220, 111, 0.5);
    transition: width 0.1s linear;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav.visible {
    opacity: 1;
    transform: translateY(0);
    border-bottom-color: var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--gradient-hero);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 4px 20px rgba(247, 220, 111, 0.3);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-hero);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-small {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 15px;
}

.btn-primary {
    background: var(--gradient-hero);
    color: #0a0a0f;
    box-shadow: 0 4px 20px rgba(247, 220, 111, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(247, 220, 111, 0.4), 0 0 35px rgba(230, 57, 70, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(250, 250, 250, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(250, 250, 250, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.btn-full {
    width: 100%;
}

.btn-glow {
    box-shadow: 0 4px 20px rgba(247, 220, 111, 0.25), 0 0 40px rgba(230, 57, 70, 0.12);
}

.btn-glow:hover {
    box-shadow: 0 8px 28px rgba(247, 220, 111, 0.35), 0 0 50px rgba(230, 57, 70, 0.18);
}

/* ============================================================
   UTILITY
   ============================================================ */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   SECTIONS BASE
   ============================================================ */
.scroll-container {
    position: relative;
    z-index: 1;
}

.section {
    position: relative;
    min-height: 80vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 100px 40px;
}

.section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 64px;
}

.section-header.centered {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(247, 220, 111, 0.1);
    border: 1px solid rgba(247, 220, 111, 0.25);
    backdrop-filter: blur(8px);
    position: relative;
}

.section-label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--amber);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--amber);
}

.section-header h2 {
    font-size: clamp(40px, 5vw, 76px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: clamp(15px, 1.3vw, 18px);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.section-hero {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.hero-glow-1 {
    top: 15%;
    left: 25%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(247, 220, 111, 0.2) 0%, transparent 70%);
    animation: glowMove1 14s ease-in-out infinite;
}

.hero-glow-2 {
    bottom: 10%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.15) 0%, transparent 70%);
    animation: glowMove2 16s ease-in-out infinite;
}

@keyframes glowMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 25px) scale(1.1); }
}

@keyframes glowMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35px, -45px) scale(1.12); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 28px;
    padding: 10px 18px;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    background: var(--surface);
    backdrop-filter: blur(16px);
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--emerald);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.25); }
}

.hero-title {
    font-size: clamp(44px, 6vw, 110px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.hero-title .line {
    display: block;
}

.hero-title .gradient-text {
    display: inline-block;
    white-space: nowrap;
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.7;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 44px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 14px 22px;
    background: rgba(250, 250, 250, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    min-width: 120px;
}

.hero-stat-number {
    display: block;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, var(--amber), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   TRUST SECTION
   ============================================================ */
.section-trust {
    min-height: auto;
    padding: 80px 40px;
    text-align: center;
}

.trust-text {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.trust-industries {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.trust-industries span {
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.trust-industries span:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 220, 111, 0.15);
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: rgba(250, 250, 250, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.section-services .section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 28px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(247, 220, 111, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.service-card.featured {
    border-color: rgba(247, 220, 111, 0.35);
    background: var(--gradient-card);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.icon-blue {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.3), rgba(38, 70, 83, 0.15));
    border: 1px solid rgba(42, 157, 143, 0.4);
    box-shadow: 0 6px 25px rgba(42, 157, 143, 0.2);
}

.icon-purple {
    background: linear-gradient(135deg, rgba(122, 52, 183, 0.3), rgba(173, 73, 232, 0.15));
    border: 1px solid rgba(122, 52, 183, 0.4);
    box-shadow: 0 6px 25px rgba(122, 52, 183, 0.2);
}

.icon-pink {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.3), rgba(244, 63, 94, 0.15));
    border: 1px solid rgba(230, 57, 70, 0.4);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.2);
}

.service-number {
    position: absolute;
    top: 28px;
    right: 28px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.service-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 22px;
    position: relative;
    border-top: 1px solid var(--border);
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--amber);
    font-weight: 700;
}

/* ============================================================
   TEMPLATES SECTION
   ============================================================ */
.section-templates .section-content {
    display: flex;
    flex-direction: column;
}

.templates-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px var(--border);
    border-radius: 100px;
    background: rgba(250, 250, 250, 0.03);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(247, 220, 111, 0.15);
    border-color: rgba(247, 220, 111, 0.5);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(247, 220, 111, 0.15);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.template-card {
    background: var(--surface);
    border: 1px var(--border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.template-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.template-card.hidden {
    display: none;
}

.template-preview {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-view {
    padding: 8px 16px;
    background: rgba(247, 220, 111, 0.12);
    color: var(--primary);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.template-content {
    padding: 20px;
}

.template-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(247, 220, 111, 0.12);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.template-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.template-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.template-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.template-features span {
    padding: 4px 8px;
    background: rgba(250, 250, 250, 0.04);
    border-radius: 5px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.templates-cta {
    text-align: center;
    padding: 32px;
    background: var(--surface);
    border: 1px var(--border);
    border-radius: 20px;
    backdrop-filter: blur(16px);
}

.templates-cta p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Template Modal */
.template-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.template-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    background: var(--surface);
    border: 1px var(--border-light);
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.85) translateY(25px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.template-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(250, 250, 250, 0.05);
    border: 1px solid var(--border);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(250, 250, 250, 0.1);
    transform: rotate(90deg);
}

.modal-preview {
    min-height: 340px;
    background: linear-gradient(135deg, #111122 0%, #0f0a1a 50%, #1e1633 100%);
}

.modal-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
}

.modal-tag {
    display: inline-block;
    width: fit-content;
    padding: 5px 12px;
    background: rgba(247, 220, 111, 0.12);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.modal-info h3 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.modal-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.modal-features span {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.modal-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }
    .modal-preview {
        min-height: 180px;
    }
    .modal-info {
        padding: 24px;
    }
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 968px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.why-content h2 {
    font-size: clamp(38px, 4vw, 60px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.why-content .section-subtitle {
    margin-bottom: 40px;
}

.why-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(250, 250, 250, 0.02);
    border: 1px var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.why-point:hover {
    background: rgba(250, 250, 250, 0.04);
    border-color: var(--border-light);
    transform: translateX(4px);
}

.why-point-marker {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gradient-hero);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #0a0a0f;
    box-shadow: 0 4px 16px rgba(247, 220, 111, 0.35);
}

.why-point h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.why-point p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.why-stats-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 520px) {
    .why-stats-panel {
        grid-template-columns: 1fr;
    }
}

.why-stat {
    background: var(--surface);
    border: 1px var(--border);
    border-radius: 20px;
    padding: 32px 20px;
    text-align: center;
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.why-stat:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.why-stat-number {
    display: block;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.why-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================================
   WORK SECTION
   ============================================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

.work-card {
    background: var(--surface);
    border: 1px var(--border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.work-card.large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

@media (max-width: 968px) {
    .work-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.work-card.large .work-image {
    flex: 1;
    min-height: 280px;
}

.work-image {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.work-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 15, 0.9) 100%);
}

.work-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: rgba(42, 157, 143, 0.18);
    border: 1px rgba(42, 157, 143, 0.3);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    color: var(--emerald);
    z-index: 1;
    backdrop-filter: blur(8px);
}

.work-content {
    padding: 24px;
}

.work-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(247, 220, 111, 0.12);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.work-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.work-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.work-result {
    font-size: 13px;
    font-weight: 600;
    color: var(--emerald);
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}

@media (max-width: 968px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--surface);
    border: 1px var(--border);
    border-radius: 24px;
    padding: 36px 28px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
}

.pricing-card.popular {
    border-color: rgba(247, 220, 111, 0.5);
    background: linear-gradient(180deg, rgba(247, 220, 111, 0.08), var(--surface));
    transform: scale(1.02);
    padding-top: 50px;
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-6px);
}

.popular-badge {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-hero);
    color: #0a0a0f;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(247, 220, 111, 0.4);
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-header h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.pricing-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.pricing-price .currency {
    font-size: 22px;
    font-weight: 500;
    margin-top: 6px;
    margin-right: 1px;
    color: var(--text-muted);
}

.pricing-price .period {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 3px;
    margin-top: auto;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.pricing-features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 22px;
    position: relative;
    border-bottom: 1px var(--border);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--emerald);
    font-weight: 800;
    font-size: 13px;
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    padding: 20px;
    background: var(--surface);
    border: 1px var(--border);
    border-radius: 16px;
    backdrop-filter: blur(16px);
}

.pricing-note p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--amber), var(--primary), var(--coral), transparent);
}

.process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    position: relative;
}

.step-marker {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: var(--gradient-hero);
    color: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 0 40px rgba(247, 220, 111, 0.4);
    z-index: 1;
}

.step-content {
    background: var(--surface);
    border: 1px var(--border);
    border-radius: 18px;
    padding: 24px;
    flex: 1;
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.step-content:hover {
    border-color: var(--border-light);
    transform: translateX(6px);
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.step-time {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(247, 220, 111, 0.1);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: var(--surface);
    border: 1px var(--border);
    border-radius: 22px;
    padding: 32px 24px;
    backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-stars {
    color: var(--amber);
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.testimonial-card > p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 28px;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1px;
}

.author-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--surface);
    border: 1px var(--border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-item.active {
    border-color: rgba(247, 220, 111, 0.3);
    background: linear-gradient(180deg, rgba(247, 220, 111, 0.05), var(--surface));
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    padding-right: 20px;
}

.faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: var(--primary-light);
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 250px;
}

.faq-answer p {
    padding: 0 28px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.section-contact {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.contact-panel {
    background: var(--surface);
    border: 1px var(--border);
    border-radius: 30px;
    padding: 60px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-panel::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(247, 220, 111, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-panel h2 {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    position: relative;
}

.contact-panel p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.contact-email {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.contact-form .hidden {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(250, 250, 250, 0.5);
    border: 1px var(--border);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(250, 250, 250, 0.7);
    box-shadow: 0 0 0 3px rgba(247, 220, 111, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.form-success {
    display: none;
    padding: 16px;
    background: rgba(42, 157, 143, 0.1);
    border: 1px rgba(42, 157, 143, 0.2);
    border-radius: 10px;
    color: var(--emerald);
    font-weight: 500;
}

.form-success.active {
    display: block;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
    min-height: 100vh;
    padding: 120px 40px 80px;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.legal-page-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.legal-page .legal-date {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-page p,
.legal-page li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-page ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.legal-page a {
    color: var(--primary);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 80px 24px 60px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    padding: 60px 40px 40px;
    gap: 60px;
}

@media (max-width: 968px) {
    .footer-content {
        gap: 40px;
        padding: 40px 24px 32px;
    }
}

.footer-brand {
    flex: 1;
}

.footer-brand a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon-footer {
    width: 30px;
    height: 30px;
    background: var(--gradient-hero);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: row;
        gap: 32px;
    }
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px var(--border);
}

.footer-column a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding: 24px 40px;
    background: var(--bg-primary);
    border-top: 1px var(--border);
}

@media (max-width: 768px) {
    .footer-bottom {
        padding: 16px 24px;
    }
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.footer-legal {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .footer-legal {
        justify-content: center;
        gap: 16px;
    }
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 99;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 24px;
        font-weight: 500;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 28px;
        height: 28px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 101;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        transform-origin: center;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-hero);
    border: none;
    color: #0a0a0f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    box-shadow: 0 8px 30px rgba(247, 220, 111, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(247, 220, 111, 0.4), 0 0 40px rgba(230, 57, 70, 0.2);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
}

/* ============================================================
   CONTACT FORM - CLOUDFLARE COMPATIBLE
   ============================================================ */
.contact-form[data-netlify="true"] {
    /* Netlify styles kept for compatibility */
}

.contact-form:not([data-netlify="true"]) .form-success {
    display: none;
}

.contact-form:not([data-netlify="true"]) .form-success.active {
    display: block;
}

/* ============================================================
   NEWSLETTER SIGNUP
   ============================================================ */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(250, 250, 250, 0.5);
    border: 1px var(--border);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary);
    background: rgba(250, 250, 250, 0.7);
    box-shadow: 0 0 0 3px rgba(247, 220, 111, 0.1);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    width: 100%;
}

/* ============================================================
   SOCIAL SHARE BUTTONS
   ============================================================ */
.social-share {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.social-share-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(20px);
    padding: 24px 40px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 24px;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   PERFORMANCE MODE TOGGLE
   ============================================================ */
.performance-toggle {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: all 0.3s ease;
}

.performance-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.performance-toggle.active {
    background: var(--gradient-hero);
    border-color: transparent;
    color: #0a0a0f;
}

@media (max-width: 768px) {
    .performance-toggle {
        bottom: 88px;
        right: 24px;
        width: 44px;
        height: 44px;
    }
}

/* ============================================================
   PERFORMANCE MODE STYLES
   ============================================================ */
body.performance-mode .ambient-bg::before,
body.performance-mode .ambient-bg::after,
body.performance-mode .hero-glow,
body.performance-mode .cursor,
body.performance-mode .scroll-progress {
    display: none !important;
}

body.performance-mode #webgl {
    display: none !important;
}

body.performance-mode .template-preview,
body.performance-mode .work-image,
body.performance-mode .service-icon,
body.performance-mode .work-badge,
body.performance-mode .popular-badge {
    opacity: 0.7;
}

body.performance-mode * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
}

/* ============================================================
   FOCUS STATES FOR ACCESSIBILITY
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus-visible,
.filter-btn:focus-visible,
.menu-toggle:focus-visible,
.faq-question:focus-visible,
.modal-close:focus-visible,
.back-to-top:focus-visible,
.performance-toggle:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.newsletter-form input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ============================================================
   REDUCED MOTION SUPPORT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .cursor,
    .scroll-progress {
        display: none !important;
    }
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-transition-overlay.active {
    transform: scaleY(1);
}

.page-transition-overlay.exiting {
    transform-origin: bottom;
    transform: scaleY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        gap: 16px;
    }
    
    .step-marker {
        margin-bottom: 12px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .why-stats-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 24px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-panel {
        padding: 40px 24px;
    }
}