/*
Theme Name: IMG Alt Gen Pro
Description: Professional WordPress theme for IMG Alt Gen Pro plugin landing page with dark theme, purple gradients, and modern design
Author: Arctic Fox Developments
Author URI: https://arcticfoxdevelopments.com
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: img-alt-gen-pro
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #0f0f23;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body > * {
    max-width: 100vw;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    padding-top: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Desktop: 80% width */
@media (min-width: 1024px) {
    .container {
        max-width: 80%;
        width: 80%;
    }
}

/* Tablet: 90% width */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 90%;
        width: 90%;
        padding: 0 2rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: #d1d5db;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Gradients */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #c084fc 50%, #e879f9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    border: 2px solid #8b5cf6;
    color: #a855f7;
    background: transparent;
}

.btn-secondary:hover {
    background: #8b5cf6;
    color: white;
    transform: translateY(-2px);
}

/* Glass Effect Cards */
.glass-card {
    backdrop-filter: blur(20px);
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    margin-top: 50px;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-4px);
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: transparent;
}

.site-header.scrolled {
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

/* Desktop Logo - Larger, more prominent */
.logo img,
.custom-logo-link img {
    height: 120px;
    width: auto;
    max-width: 350px;
    transition: all 0.3s ease;
}

/* Desktop Logo - Scrolled State (still readable) */
.site-header.scrolled .logo img,
.site-header.scrolled .custom-logo-link img {
    height: 80px;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.site-header.scrolled .logo-icon {
    width: 2rem;
    height: 2rem;
}

/* Tablet logo sizing */
@media (min-width: 768px) and (max-width: 1023px) {
    .logo img,
    .custom-logo-link img {
        height: 90px;
        max-width: 300px;
    }
    
    .site-header.scrolled .logo img,
    .site-header.scrolled .custom-logo-link img {
        height: 65px;
    }
    
    .logo-icon {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .site-header.scrolled .logo-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Mobile logo sizing - Good starting size, readable when scrolled */
@media (max-width: 767px) {
    .logo img,
    .custom-logo-link img {
        height: 70px;
        max-width: 250px;
    }
    
    /* Shrink logo when scrolled on mobile - still readable */
    .site-header.scrolled .logo img,
    .site-header.scrolled .custom-logo-link img {
        height: 50px;
    }
    
    .logo-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .site-header.scrolled .logo-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .logo span {
        font-size: 1.125rem;
    }
    
    .site-header.scrolled .logo span {
        font-size: 1rem;
    }
    
    /* Adjust header padding for better spacing */
    .site-header {
        padding: 1rem 0;
    }
    
    .site-header.scrolled {
        padding: 0.75rem 0;
    }
}

.main-nav {
    display: none;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #d1d5db;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.main-nav a:hover {
    color: #a855f7;
}

.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    color: #a855f7;
}

.header-actions {
    display: none;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #d1d5db;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu - Full Overlay with proper z-index */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    padding: 0;
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    animation: fadeIn 0.3s ease forwards;
}

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

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 6rem 2rem 2rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav li {
    margin: 0;
    padding: 0;
}

.mobile-nav a {
    color: #d1d5db;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(107, 114, 128, 0.2);
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
    font-weight: 500;
}

.mobile-nav a:hover {
    color: #a855f7;
    padding-left: 0.5rem;
}

/* Mobile Menu Button inside menu */
.mobile-nav .btn {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 50%, rgba(124, 58, 237, 0.1) 100%);
    pointer-events: none;
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-bg-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero-bg-effect:nth-child(1) {
    width: 18rem;
    height: 18rem;
    background: #8b5cf6;
    top: 10rem;
    left: 25%;
    animation-delay: 0s;
}

.hero-bg-effect:nth-child(2) {
    width: 24rem;
    height: 24rem;
    background: #7c3aed;
    top: 15rem;
    right: 25%;
    animation-delay: 2s;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 4xl;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #c084fc;
}

.hero-badge::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: #a855f7;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    color: #d1d5db;
    justify-self: center;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.hero-stat-icon {
    color: #a855f7;
}

/* Dashboard Mockup */
.hero-dashboard {
    margin-top: 4rem;
    position: relative;
    max-width: 5xl;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-container {
    position: relative;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(107, 114, 128, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.dashboard-header {
    background: rgba(55, 65, 81, 0.8);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(107, 114, 128, 0.5);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.window-control {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.window-control.red { background: #ef4444; }
.window-control.yellow { background: #f59e0b; }
.window-control.green { background: #10b981; }

.dashboard-title {
    margin-left: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.dashboard-content {
    padding: 2rem;
    display: grid;
    gap: 2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
}

/* Features Grid */
.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.5) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    color: white;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #c084fc;
}

.feature-description {
    color: #9ca3af;
    line-height: 1.6;
}

/* How It Works */
.steps-container {
    position: relative;
    max-width: 4xl;
    margin: 0 auto;
}

.steps-line {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.3) 0%, rgba(139, 92, 246, 0.5) 50%, rgba(124, 58, 237, 0.3) 100%);
    transform: translateY(-50%);
    z-index: -1;
}

.steps-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.step-card {
    position: relative;
    text-align: center;
    z-index: 10;
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.step-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

.step-title {
    color: white;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.step-card:hover .step-title {
    color: #c084fc;
}

/* Enhanced Pricing Grid - Support for 1-10 plans */
.pricing-grid {
    display: grid !important;
    gap: 2rem !important;
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    justify-items: center !important;
    align-items: start !important;
    width: 100% !important;
    padding: 0 1rem !important;
}

/* Mobile - Full width single column stack */
@media (max-width: 767px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
        justify-items: stretch !important;
    }
}

/* Tablet and up - responsive grid based on plan count */
@media (min-width: 768px) {
    .pricing-grid[data-plans="1"] {
        grid-template-columns: 1fr !important;
        max-width: 350px !important;
    }
    
    .pricing-grid[data-plans="2"] {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 750px !important;
    }
    
    .pricing-grid[data-plans="3"] {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 1100px !important;
    }
    
    .pricing-grid[data-plans="4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 750px !important;
    }
    
    .pricing-grid[data-plans="5"] {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1100px !important;
    }
    
    .pricing-grid[data-plans="6"] {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1100px !important;
    }
    
    .pricing-grid[data-plans="7"] {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1300px !important;
    }
    
    .pricing-grid[data-plans="8"] {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1300px !important;
    }
    
    .pricing-grid[data-plans="9"] {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1100px !important;
    }
    
    .pricing-grid[data-plans="10"] {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1300px !important;
        scrollbar-width: none;
    }
}

/* Desktop - optimize layout for larger screens */
@media (min-width: 1024px) {
    .pricing-grid[data-plans="4"] {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1400px !important;
    }
    
    .pricing-grid[data-plans="5"] {
        grid-template-columns: repeat(5, 1fr) !important;
        max-width: 1700px !important;
    }
    
    .pricing-grid[data-plans="6"] {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1100px !important;
    }
    
    .pricing-grid[data-plans="7"] {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1400px !important;
    }
    
    .pricing-grid[data-plans="8"] {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1400px !important;
    }
    
    .pricing-grid[data-plans="9"] {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1100px !important;
    }
    
    .pricing-grid[data-plans="10"] {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1700px !important;
        scrollbar-width: none;
    }
}

/* Large Desktop - ultra-wide support */
@media (min-width: 1280px) {
    .pricing-grid[data-plans="6"] {
        grid-template-columns: repeat(6, 1fr) !important;
        max-width: 2000px !important;
    }
    
    .pricing-grid[data-plans="7"] {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 2200px !important;
    }
    
    .pricing-grid[data-plans="8"] {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1400px !important;
    }
    
    .pricing-grid[data-plans="9"] {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1100px !important;
    }
    
    .pricing-grid[data-plans="10"] {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1700px !important;
        scrollbar-width: none;
    }
}

/* Handle overflow for very many plans on smaller screens */
@media (max-width: 1023px) {
    .pricing-grid[data-plans="7"],
    .pricing-grid[data-plans="8"],
    .pricing-grid[data-plans="9"],
    .pricing-grid[data-plans="10"] {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px !important;
    }
}

/* Ensure pricing cards adapt properly to screen size */
.pricing-card {
    min-width: 280px !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
    height: fit-content;
    transition: transform 0.3s ease;
    box-sizing: border-box !important;
}

/* Mobile pricing cards - Full width vertical stack */
@media (max-width: 767px) {
    .pricing-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    /* Standard padding for single column */
    .glass-card.pricing-card {
        padding: 2rem !important;
    }
    
    /* Standard text sizes for full-width cards */
    .pricing-name {
        font-size: 1.5rem !important;
    }
    
    .pricing-price {
        font-size: 2.5rem !important;
    }
    
    .pricing-tokens-count {
        font-size: 1.5rem !important;
    }
    
    .pricing-feature {
        margin-bottom: 0.75rem !important;
        font-size: 1rem !important;
    }
    
    .pricing-feature-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .pricing-badge {
        font-size: 0.875rem !important;
        padding: 0.5rem 1.5rem !important;
    }
    
    /* Standard button sizing */
    .pricing-card .btn {
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
        width: 100%;
    }
    
    /* Disable hover transform on mobile for better UX */
    .pricing-card:hover {
        transform: none;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: none;
    }
}

/* Very small screens - adjust further */
@media (max-width: 380px) {
    .glass-card.pricing-card {
        padding: 1.5rem !important;
    }
    
    .pricing-name {
        font-size: 1.5rem !important;
    }
    
    .pricing-price {
        font-size: 2.5rem !important;
    }
}

.pricing-card.featured {
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #a855f7;
    margin-bottom: 1rem;
}

.pricing-price-subtitle {
    color: #9ca3af;
    margin-left: 0.5rem;
}

.pricing-tokens {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.pricing-tokens-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.pricing-tokens-subtitle {
    font-size: 0.875rem;
    color: #c084fc;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pricing-feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    background: #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: white;
    font-size: 0.75rem;
}

.pricing-feature-text {
    color: #d1d5db;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 6xl;
    margin: 0 auto;
}

.testimonial-card {
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-star {
    color: #f59e0b;
    font-size: 1.25rem;
}

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
}

.testimonial-quote {
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    color: rgba(139, 92, 246, 0.3);
    font-size: 2rem;
}

.testimonial-text {
    padding-left: 1.5rem;
    color: #d1d5db;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.3);
    object-fit: cover;
}

.testimonial-author-info {
    flex: 1;
}

.testimonial-author-name {
    color: white;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author-role {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* FAQ */
.faq-container {
    max-width: 4xl;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.7) 0%, rgba(17, 24, 39, 0.7) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(139, 92, 246, 0.05);
}

.faq-toggle {
    color: #a855f7;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid rgba(107, 114, 128, 0.3);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: #d1d5db;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Technical Specs */
.tech-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    max-width: 6xl;
    margin: 0 auto;
}

.tech-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tech-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.tech-card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.tech-requirements {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tech-requirement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(107, 114, 128, 0.3);
}

.tech-requirement:last-child {
    border-bottom: none;
}

.tech-requirement-label {
    color: #9ca3af;
}

.tech-requirement-value {
    color: white;
    font-weight: 500;
}

.tech-integrations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.tech-integration {
    background: rgba(55, 65, 81, 0.5);
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    color: #d1d5db;
    font-size: 0.875rem;
}

.tech-performance-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-performance-item {
    background: rgba(55, 65, 81, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
}

.tech-performance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a855f7;
    margin-bottom: 0.25rem;
}

.tech-performance-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

.tech-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tech-info-item {
    display: flex;
    flex-direction: column;
}

.tech-info-label {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.tech-info-value {
    color: white;
    font-weight: 500;
}

.tech-info-value.purple {
    color: #a855f7;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    border-top: 1px solid rgba(107, 114, 128, 0.3);
    padding: 4rem 0 2rem;
}

.footer-main {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(55, 65, 81, 0.7);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: #8b5cf6;
    color: white;
}

.footer-section h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #a855f7;
}

.footer-developer {
    border-top: 1px solid rgba(107, 114, 128, 0.3);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.footer-developer-card {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.5) 0%, transparent 100%);
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.footer-developer-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-developer-item h4 {
    color: #c084fc;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-developer-value {
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.footer-developer-subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(107, 114, 128, 0.3);
}

.footer-copyright {
    color: #9ca3af;
    text-align: center;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #a855f7;
}

/* ========================================
   CRITICAL RESPONSIVE FIXES
   ======================================== */

/* Prevent all images from causing overflow */
img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* Prevent iframes and embeds from causing overflow */
iframe,
embed,
object {
    max-width: 100%;
    box-sizing: border-box;
}

/* Force all sections to respect viewport */
.section,
.hero,
.site-header,
.site-footer,
.blog-navigation {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Force all grid layouts to respect viewport */
.features-grid,
.steps-grid,
.pricing-grid,
.testimonials-grid,
.tech-grid,
.blog-posts-grid {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Mobile specific fixes */
@media (max-width: 767px) {
    /* Force text wrapping */
    p, h1, h2, h3, h4, h5, h6, span, a, li, div {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    /* Ensure header content doesn't overflow */
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    /* Mobile menu toggle button - ensure it's visible above menu */
    .mobile-menu-toggle {
        position: relative;
        z-index: 100001;
        background: transparent;
        padding: 0.5rem;
    }
    
    /* Hero section mobile */
    .hero {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    /* Buttons stack on mobile */
    .hero-actions {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    /* All cards respect viewport */
    .glass-card,
    .feature-card,
    .step-card,
    .pricing-card,
    .testimonial-card,
    .tech-card {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Grids stack on mobile */
    .features-grid,
    .steps-grid,
    .pricing-grid,
    .testimonials-grid,
    .tech-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin: 0 auto !important;
    }
    
    /* Pricing grid specific mobile fix */
    .pricing-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
    }
    
    /* Footer mobile */
    .site-footer {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .footer-main,
    .footer-bottom {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 2rem;
    }
    
    .hero-stat:not(:last-child)::after {
        content: '';
        width: 1px;
        height: 1.5rem;
        background: rgba(139, 92, 246, 0.3);
        margin-left: 2rem;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
    
    .header-actions {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .steps-line {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Debug styles - only visible with ?debug=1 in URL */
.pricing-debug {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    z-index: 9999;
    max-width: 300px;
}

.pricing-debug h4 {
    margin: 0 0 10px 0;
    color: #a855f7;
}

.pricing-debug ul {
    margin: 0;
    padding-left: 20px;
}

/* ========================================
   CRITICAL: Single Post Content Visibility
   Priority override to ensure content is always visible
   Only targets main article content, not header/footer
   ======================================== */

/* Prevent horizontal overflow on single posts */
body.single,
body.single-post {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body.single .single-post-article,
body.single-post .single-post-article,
body.single .entry-content,
body.single-post .entry-content {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

body.single .entry-content *,
body.single-post .entry-content * {
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Force all text elements to wrap properly */
body.single p,
body.single h1,
body.single h2,
body.single h3,
body.single h4,
body.single h5,
body.single h6,
body.single span,
body.single div,
body.single a,
body.single-post p,
body.single-post h1,
body.single-post h2,
body.single-post h3,
body.single-post h4,
body.single-post h5,
body.single-post h6,
body.single-post span,
body.single-post div,
body.single-post a {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* Prevent animations on single post content only */
body.single .single-post-main *,
body.single-post .single-post-main * {
    animation-duration: 0s !important;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   Blog Navigation Styles
   =================================== */

/* Blog Navigation Bar */
.blog-navigation {
    position: sticky;
    top: 200px; /* Below main header */
    z-index: 900;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95) 0%, rgba(15, 15, 35, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.blog-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.5) 50%, 
        transparent 100%);
}

/* Blog Nav Content Container */
.blog-nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blog Navigation Menu */
.blog-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-nav-menu li {
    margin: 0;
}

.blog-nav-menu a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    color: #d1d5db;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect with Gradient */
.blog-nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.blog-nav-menu a:hover::before {
    left: 0;
}

.blog-nav-menu a:hover {
    color: #ffffff;
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* Active/Current Menu Item */
.blog-nav-menu .current-menu-item > a,
.blog-nav-menu .current_page_item > a {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.blog-nav-menu .current-menu-item > a:hover,
.blog-nav-menu .current_page_item > a:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Submenu Support (Dropdown) */
.blog-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98) 0%, rgba(15, 15, 35, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 200px;
    margin-top: 0.5rem;
    list-style: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.blog-nav-menu .menu-item-has-children {
    position: relative;
}

.blog-nav-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.blog-nav-menu .sub-menu li {
    width: 100%;
}

.blog-nav-menu .sub-menu a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adjust Main Content Margin for Blog Pages */
body.blog .site-main,
body.archive .site-main,
body.single-post .site-main,
body.category .site-main,
body.tag .site-main {
    padding-top: 100px; /* Account for fixed header + blog nav */
}

/* Mobile Responsive Blog Navigation */
@media (max-width: 768px) {
    .blog-navigation {
        top: 75px; /* Adjusted for mobile header height */
        padding: 0.5rem 0;
    }
    
    .blog-nav-menu {
        gap: 0.25rem;
        overflow-x: auto;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
    }
    
    .blog-nav-menu::-webkit-scrollbar {
        height: 4px;
    }
    
    .blog-nav-menu::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .blog-nav-menu::-webkit-scrollbar-thumb {
        background: rgba(139, 92, 246, 0.5);
        border-radius: 10px;
    }
    
    .blog-nav-menu li {
        flex-shrink: 0;
    }
    
    .blog-nav-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    /* Hide submenus on mobile or convert to accordion */
    .blog-nav-menu .sub-menu {
        display: none !important;
    }
    
    body.blog .site-main,
    body.archive .site-main,
    body.single-post .site-main,
    body.category .site-main,
    body.tag .site-main {
        padding-top: 130px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .blog-nav-menu a {
        padding: 0.4rem 0.75rem;
        font-size: 0.813rem;
    }
}

/* When Header is Scrolled */
.site-header.scrolled ~ .blog-navigation {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Blog Navigation Animation on Page Load */
.blog-navigation {
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ArcticFox Developments Branding */
.footer-developer-brand {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-developer-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.5rem 0;
}

.footer-developer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-developer-link:hover {
    opacity: 0.8;
}

.footer-developer-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.footer-developer-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

button{
    background: linear-gradient(135deg, #9868E0 0%, #6740C5 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

input[type="password"], input[type="email"] {
    min-height: 30px;
    border-radius: 12px;
    width: 300px;
    padding: 10px;
}