/* ===================================================================
   FORGESHOP THEME — Digital Forge
   Industrial-luxe: dark backgrounds + forge-fire orange
   =================================================================== */

/* ===== BASE ===== */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A0A0A;
    background-image:
        radial-gradient(at 30% 15%, rgba(255, 107, 43, 0.04) 0px, transparent 50%),
        radial-gradient(at 70% 85%, rgba(255, 107, 43, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B2B, #FF8F5E);
    border-radius: 3px;
}

::selection {
    background: rgba(255, 107, 43, 0.25);
    color: #F5F0EB;
}


/* ===== TYPOGRAPHY ===== */

.forge-gradient-text {
    background: linear-gradient(135deg, #F5F0EB 0%, #FF8F5E 40%, #FF6B2B 70%, #F5F0EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.forge-headline {
    background: linear-gradient(135deg, #F5F0EB 0%, #FF8F5E 35%, #FF6B2B 50%, #FFB088 65%, #F5F0EB 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: metalShimmer 8s ease-in-out infinite;
}

@keyframes metalShimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ===== HEADER ===== */

.header-glass {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 43, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.forge-nav-link {
    color: #8A8A8A;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: color 0.2s ease;
    position: relative;
    text-decoration: none;
}

.forge-nav-link:hover,
.forge-nav-link.active {
    color: #F5F0EB;
}

.forge-nav-link.active {
    color: #FF6B2B;
}

.forge-mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #8A8A8A;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.forge-mobile-link:hover {
    color: #F5F0EB;
    background: rgba(255, 107, 43, 0.07);
}


/* ===== BUTTONS ===== */

.forge-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B2B 0%, #E55A1F 100%);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(255, 107, 43, 0.3);
    position: relative;
    overflow: hidden;
}

.forge-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.forge-btn-primary:hover {
    box-shadow: 0 0 35px rgba(255, 107, 43, 0.55), 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.forge-btn-primary:hover::before { opacity: 1; }
.forge-btn-primary:active { transform: translateY(0); }

.forge-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #F5F0EB;
    background: transparent;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.forge-btn-outline:hover {
    border-color: rgba(255, 107, 43, 0.4);
    background: rgba(255, 107, 43, 0.06);
    color: #F5F0EB;
    text-decoration: none;
}

.shadow-forge {
    box-shadow: 0 0 20px rgba(255, 107, 43, 0.4);
}


/* ===== FEATURE CARDS ===== */

.forge-feature-card {
    background: #161616;
    border: 1px solid #2A2A2A;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forge-feature-card:hover {
    border-color: rgba(255, 107, 43, 0.25);
    box-shadow: 0 8px 30px rgba(255, 107, 43, 0.1), 0 0 0 1px rgba(255, 107, 43, 0.08);
    transform: translateY(-3px);
}

.forge-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 107, 43, 0.1);
    border: 1px solid rgba(255, 107, 43, 0.2);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B2B;
    margin-bottom: 1rem;
}

.forge-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.forge-feature-list li {
    color: #8A8A8A;
    font-size: 0.8125rem;
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.forge-feature-list li::before {
    content: '\203A';
    position: absolute;
    left: 0;
    color: #FF6B2B;
    opacity: 0.6;
}


/* ===== FEATURE TABS ===== */

.forge-tab-base {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: 'Outfit', system-ui, sans-serif;
}

.forge-tab {
    color: #8A8A8A;
    background: transparent;
    border-color: #2A2A2A;
}

.forge-tab:hover {
    color: #F5F0EB;
    background: rgba(255, 107, 43, 0.05);
    border-color: rgba(255, 107, 43, 0.2);
}

.forge-tab-active {
    color: #FF6B2B;
    background: rgba(255, 107, 43, 0.1);
    border-color: rgba(255, 107, 43, 0.3);
}


/* ===== AI SECTION — TERMINAL MOCKUP ===== */

.forge-terminal {
    background: #161616;
    border: 1px solid #2A2A2A;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.forge-terminal-header {
    background: #1E1E1E;
    border-bottom: 1px solid #2A2A2A;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
}

.forge-tag {
    display: inline-flex;
    padding: 0.2rem 0.625rem;
    background: rgba(255, 107, 43, 0.08);
    border: 1px solid rgba(255, 107, 43, 0.2);
    border-radius: 9999px;
    font-size: 0.6875rem;
    color: #FF8F5E;
}


/* ===== INTEGRATION BADGES ===== */

.forge-integration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #161616;
    border: 1px solid #2A2A2A;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #F5F0EB;
    transition: all 0.2s ease;
}

.forge-integration-badge:hover {
    border-color: rgba(255, 107, 43, 0.3);
    color: #FF8F5E;
}

.forge-integration-badge-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 43, 0.04);
    border: 1px dashed rgba(255, 107, 43, 0.25);
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8A8A8A;
}

.forge-coming-soon-badge {
    display: inline-flex;
    padding: 0.125rem 0.5rem;
    background: rgba(255, 107, 43, 0.15);
    border: 1px solid rgba(255, 107, 43, 0.3);
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    color: #FF8F5E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ===== THEME CARDS ===== */

.forge-theme-card {
    background: #161616;
    border: 1px solid #2A2A2A;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forge-theme-card:hover {
    border-color: rgba(255, 107, 43, 0.25);
    box-shadow: 0 8px 30px rgba(255, 107, 43, 0.08);
    transform: translateY(-4px);
}

.forge-theme-preview {
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
}


/* ===== CONTACT CARDS ===== */

.forge-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: #161616;
    border: 1px solid #2A2A2A;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forge-contact-card:hover {
    border-color: rgba(255, 107, 43, 0.3);
    box-shadow: 0 8px 25px rgba(255, 107, 43, 0.1);
    transform: translateY(-2px);
}


/* ===== CONTACT FORM OVERRIDES ===== */

.forge-contact-form-wrapper .bg-gray-50,
.forge-contact-form-wrapper .bg-white {
    background: #161616 !important;
}

.forge-contact-form-wrapper input:not([type="radio"]):not([type="checkbox"]):not(.hp-field),
.forge-contact-form-wrapper textarea,
.forge-contact-form-wrapper select {
    background: #1E1E1E !important;
    border: 1px solid #2A2A2A !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1rem !important;
    color: #F5F0EB !important;
    transition: all 0.3s ease !important;
}

.forge-contact-form-wrapper input:focus,
.forge-contact-form-wrapper textarea:focus {
    border-color: rgba(255, 107, 43, 0.5) !important;
    box-shadow: 0 0 15px rgba(255, 107, 43, 0.1) !important;
    outline: none !important;
}

.forge-contact-form-wrapper input::placeholder,
.forge-contact-form-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

.forge-contact-form-wrapper label {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

.forge-contact-form-wrapper button[type="submit"] {
    background: linear-gradient(135deg, #FF6B2B, #E55A1F) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(255, 107, 43, 0.3) !important;
    border-radius: 0.75rem !important;
}

.forge-contact-form-wrapper button[type="submit"]:hover {
    box-shadow: 0 0 30px rgba(255, 107, 43, 0.5) !important;
}


/* ===== GRID BACKGROUND (hero) ===== */

.forge-grid-bg {
    background-image:
        linear-gradient(rgba(255, 107, 43, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 43, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 75%);
}


/* ===== FORGE SPARKS ===== */

@keyframes sparkRise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    5% { opacity: 1; }
    50% {
        transform: translateY(calc(var(--rise) * 0.5)) translateX(var(--drift)) scale(0.7);
        opacity: 0.8;
    }
    90% { opacity: 0.1; }
    100% {
        transform: translateY(var(--rise)) translateX(var(--drift-end)) scale(0.2);
        opacity: 0;
    }
}

.forge-spark {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkRise var(--dur) var(--delay) ease-out infinite;
}


/* ===== SCROLL ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-on-scroll {
    opacity: 0;
}

.fade-on-scroll.is-visible {
    animation: fadeInUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


/* ===== SCROLLBAR HIDE (tabs) ===== */

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }


/* ===== DIAGONAL SEPARATORS ===== */

.forge-separator-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    pointer-events: none;
}

.forge-separator-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    pointer-events: none;
}


/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .forge-headline {
        animation: none;
        background-position: 0% 50%;
    }
    .fade-on-scroll {
        opacity: 1;
    }
}
