/* Orderlek Premium Landing Pages Showcase Style */

/* ==========================================
   1. Design System & Variables
   ========================================== */
:root {
    /* Color Palette */
    --primary-blue: #3B82F6;
    --sky-blue: #38BDF8;
    --mint-green: #34D399;
    --soft-cyan: #A7F3D0;
    --bg-base: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    
    /* Gaps & Borders */
    --border-radius-xs: 6px;
    --border-radius-sm: 10px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    /* Font Weights */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-black: 800;

    /* Shadows (Premium layered shadows) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 30px 60px -15px rgba(15, 23, 42, 0.08), 0 0 80px -10px rgba(59, 130, 246, 0.06);
    --shadow-glow: 0 0 40px -10px rgba(56, 189, 248, 0.3), 0 0 40px -10px rgba(52, 211, 153, 0.2);

    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Navbar height */
    --nav-height: 72px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ==========================================
   2. Background Elements (Noise, Aurora, Grid)
   ========================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: 80px 80px;
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    pointer-events: none;
    z-index: -2;
    mask-image: radial-gradient(circle 800px at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(circle 800px at 50% 50%, black, transparent);
}

.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -3;
    pointer-events: none;
    filter: blur(140px);
    opacity: 0.45;
}

.aurora {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    animation: aurora-float 20s infinite alternate ease-in-out;
}

.blob-blue {
    width: 60vw;
    height: 60vw;
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
}

.blob-mint {
    width: 50vw;
    height: 50vw;
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.3) 0%, transparent 75%);
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-cyan {
    width: 45vw;
    height: 45vw;
    top: 30%;
    left: 40%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 65%);
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes aurora-float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(5%, 10%) scale(1.1) rotate(180deg);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.9) rotate(360deg);
    }
}

/* ==========================================
   3. Typography & Gradients
   ========================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--sky-blue) 50%, var(--mint-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ==========================================
   4. Buttons & UI Elements
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: var(--weight-semibold);
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--sky-blue) 100%);
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
}

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

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

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, 0.15);
    box-shadow: var(--shadow-md);
    background: #F8FAFC;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
}

/* Icon Styles */
.icon-sparkle {
    width: 14px;
    height: 14px;
}
.icon-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.btn-primary:hover .icon-arrow {
    transform: translateX(4px);
}

/* ==========================================
   5. Sticky Glass Navbar
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    height: 64px;
}

.nav-container {
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--mint-green));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.nav-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--sky-blue));
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--nav-height));
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-20px);
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 80%;
    max-width: 320px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-link:hover {
    color: var(--primary-blue);
}

.mobile-divider {
    width: 100%;
    border: 0;
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
}

/* ==========================================
   6. Hero Section
   ========================================== */
.hero-section {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Free Badge styling */
.badge-free-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(52, 211, 153, 0.15);
}

.badge-glow-border {
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
    animation: badge-shine 4s infinite linear;
}

.badge-free-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: var(--weight-semibold);
    color: var(--mint-green);
    position: relative;
    z-index: 1;
}

@keyframes badge-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: var(--weight-black);
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-lbl {
    font-size: 0.8rem;
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
}

.metric-divider {
    width: 1px;
    height: 32px;
    background: rgba(15, 23, 42, 0.08);
}

/* Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   7. Browser Mockup & Mascot Placement
   ========================================== */
.hero-illustration-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
}

/* Aurora glow background specifically behind the browser & mascot */
.glow-bg-mascot {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(52, 211, 153, 0.2) 60%, transparent 100%);
    filter: blur(50px);
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* Desktop Browser Mockup Frame */
.browser-mockup {
    width: 100%;
    max-width: 520px;
    height: 380px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-lg);
    box-shadow: 
        0 4px 6px rgba(15, 23, 42, 0.02),
        0 20px 40px -10px rgba(15, 23, 42, 0.06),
        0 40px 80px -20px rgba(15, 23, 42, 0.12),
        0 0 100px -10px rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) scale(1.02);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) scale(1.04);
}

.browser-header {
    height: 40px;
    background: rgba(15, 23, 42, 0.03);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    padding: 0 16px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots .red { background-color: #FF5F56; }
.browser-dots .yellow { background-color: #FFBD2E; }
.browser-dots .green { background-color: #27C93F; }

.browser-address {
    height: 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid rgba(15, 23, 42, 0.04);
    max-width: 260px;
    margin: 0 auto;
    width: 100%;
}

.icon-lock {
    width: 10px;
    height: 10px;
}

.browser-actions-right {
    display: flex;
    justify-content: flex-end;
}

.browser-actions-right svg {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.browser-content {
    flex: 1;
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Interior Mock Page Details for Hero illustration */
.mock-page {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mock-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mock-logo {
    width: 48px;
    height: 8px;
    background: rgba(15, 23, 42, 0.1);
    border-radius: 4px;
}

.mock-links {
    display: flex;
    gap: 8px;
}

.mock-links span {
    width: 24px;
    height: 5px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 2px;
}

.mock-btn {
    width: 32px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 4px;
}

.mock-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.mock-tag {
    width: 80px;
    height: 10px;
    background: rgba(56, 189, 248, 0.15);
    border-radius: 100px;
    margin-bottom: 12px;
}

.mock-title {
    width: 160px;
    height: 16px;
    background: var(--text-primary);
    border-radius: 4px;
    margin-bottom: 8px;
}

.mock-text {
    width: 200px;
    height: 8px;
    background: rgba(15, 23, 42, 0.1);
    border-radius: 2px;
    margin-bottom: 20px;
}

.mock-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.mock-btns span {
    width: 50px;
    height: 16px;
    border-radius: 4px;
}

.mock-btns span:first-child { background: var(--primary-blue); }
.mock-btns span:last-child { background: rgba(15, 23, 42, 0.05); }

/* Decorative graphical elements in mock screen */
.mock-graphic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

.mock-card {
    height: 60px;
    background: var(--bg-white);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.03);
    padding: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.mock-card.card-a .dot {
    width: 12px;
    height: 12px;
    background: var(--mint-green);
    border-radius: 50%;
    margin-bottom: 8px;
}

.mock-card.card-a .line {
    height: 4px;
    width: 80%;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 2px;
    margin-bottom: 4px;
}

.mock-card.card-a .line.short {
    width: 50%;
}

.mock-card.card-b {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 8px;
}

.chart-bar {
    width: 8px;
    background: var(--sky-blue);
    border-radius: 2px 2px 0 0;
    transition: height 0.5s ease;
}

.chart-bar.bar-1 { height: 20px; }
.chart-bar.bar-2 { height: 35px; background: var(--primary-blue); }
.chart-bar.bar-3 { height: 25px; }

.mock-card.card-c {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(52, 211, 153, 0.05));
    justify-content: center;
    align-items: center;
}

.glow-point {
    width: 16px;
    height: 16px;
    background: var(--mint-green);
    border-radius: 50%;
    box-shadow: 0 0 16px var(--mint-green);
}

.animate-pulse-glow {
    animation: mock-pulse 2s infinite alternate ease-in-out;
}

@keyframes mock-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* Mascot Wrapper & Layout (sitting on browser frame) */
.mascot-wrapper {
    position: absolute;
    /* Container height matches browser, so 100% is top of browser */
    /* Sit robot with legs overlapping ~30px into the browser header */
    bottom: calc(100% - 65px); 
    right: 60px;
    width: 140px;
    height: auto;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Apply gentle floating/breathing animation (Y-axis only) */
    animation: mascot-breathe-hero 3.5s infinite ease-in-out;
    pointer-events: none;
    /* Drop shadow to cast on the browser */
    filter: drop-shadow(0 20px 15px rgba(15, 23, 42, 0.22));
}

@keyframes mascot-breathe-hero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Responsive drop shadow on the browser mockup cast by the robot */
.mascot-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Digital Glowing Eyes Layer overlayed exactly on the robot eyes */
.mascot-eyes {
    position: absolute;
    top: 50px; /* Adjust top coordinate to fit mascot face */
    width: 80px;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.mascot-eyes .eye {
    width: 12px;
    height: 12px;
    background: #00F3FF;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, height 0.08s ease;
}

.mascot-eyes .pupil {
    width: 4px;
    height: 4px;
    background: #FFFFFF;
    border-radius: 50%;
}

/* Mascot Blinking toggle class */
.mascot-eyes.blink .eye {
    height: 1px !important;
    overflow: hidden;
}

/* Mascot float breathing keyframes */
@keyframes mascot-float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-8px);
    }
}

/* ==========================================
   8. Marketplace Section Header
   ========================================== */
.marketplace-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 56px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tagline {
    font-size: 0.9rem;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: var(--weight-bold);
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Categories Filter Bar */
.filter-bar {
    display: inline-flex;
    padding: 4px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--border-radius-md);
    margin-top: 32px;
    gap: 4px;
    backdrop-filter: blur(8px);
    position: relative;
}

.filter-slider {
    position: absolute;
    top: 4px;
    left: 4px; /* Default starting position */
    height: calc(100% - 8px);
    width: 120px; /* Default starting width, will be updated by JS */
    background: var(--bg-white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    color: var(--text-primary);
}

/* ==========================================
   9. Bento Grid Marketplace Cards
   ========================================== */
/* ==========================================
   9. Bento Grid Marketplace Cards (Luxury Reconstitution)
   ========================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 140px 40px; /* Large vertical gap so robots don't overlap row above */
    padding-top: 120px; /* Extra top padding for first row robots */
    max-width: 1200px;
    margin: 0 auto;
}

/* Luxury Premium Glass Card */
.bento-card {
    /* Glassmorphism surface */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Thinner border */
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Let mascot overlap card top edge */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* Multi-layer premium shadow stack */
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.02),
        0 8px 20px -4px rgba(15, 23, 42, 0.06),
        0 24px 48px -12px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(15, 23, 42, 0.03);
    /* Entry animation initial state */
    opacity: 0;
    --card-tilt-y: 6deg;
    --card-tilt-z: -1deg;
    transform: perspective(1500px) rotateX(12deg) rotateY(var(--card-tilt-y)) rotateZ(var(--card-tilt-z)) translateY(40px);
    transform-style: preserve-3d;
}

.bento-card:nth-child(even) {
    --card-tilt-y: -6deg;
    --card-tilt-z: 1deg;
}

.bento-card.animated {
    opacity: 1;
    transform: perspective(1500px) rotateX(12deg) rotateY(var(--card-tilt-y)) rotateZ(var(--card-tilt-z)) translateY(0);
}

/* Luxury Card Hover Micro-interactions */
.bento-card:hover {
    transform: perspective(1500px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(-6px);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.02),
        0 16px 32px -8px rgba(15, 23, 42, 0.10),
        0 40px 80px -20px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(59, 130, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(15, 23, 42, 0.03);
    background: rgba(255, 255, 255, 0.75);
}

/* Mouse cursor spotlight canvas overlay */
.card-spotlight-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(59, 130, 246, 0.075), transparent 70%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.bento-card:hover .card-spotlight-glow {
    opacity: 1;
}

/* Gradient Border appearing on hover */
.card-hover-border {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 32px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(52, 211, 153, 0.45));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    pointer-events: none;
}

.bento-card:hover .card-hover-border {
    opacity: 1;
}

/* Card Glass Badges on Top Corners */
.card-glass-badges {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    z-index: 12;
    pointer-events: none;
}

.badge-free-glass, .badge-new-glass {
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 100px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255,255,255,1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-free-glass {
    color: var(--primary-blue);
}

.badge-new-glass {
    color: var(--primary-purple);
}

/* ============================================
   Mascot Container — sits on card top border
   Robot image: 789x1082px, feet at ~row 1070
   Rendered at 130px wide → height = 130*(1082/789) = ~178px
   We want feet 20px INTO card top (legs overlap)
   So top = -(178 - 20) = -158px
   ============================================ */
.card-mascot-container {
    position: absolute;
    /* Feet land ~20px below card top border (realistic leg overlap) */
    bottom: calc(100% - 65px); /* bottom of container = 65px inside card top */
    left: 50%;
    /* Use a wrapper div for animation so translateX is never overridden */
    transform: translateX(-50%);
    width: 130px;      /* Rendered width */
    height: auto;      /* Let aspect ratio determine height ~178px */
    z-index: 10;
    pointer-events: none;
    /* Animate the wrapper for hover lift */
    transition: bottom 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* On hover, robot lifts slightly */
.bento-card:hover .card-mascot-container {
    bottom: calc(100% - 59px);
}

.card-mascot-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 3;
    /* Idle breathing — only Y, no translateX so no conflict */
    animation: mascot-breathe 3.5s ease-in-out infinite;
    /* Realistic shadow casting down onto card surface */
    filter: drop-shadow(0 18px 16px rgba(15, 23, 42, 0.20))
            drop-shadow(0 6px 6px rgba(15, 23, 42, 0.10));
}

/* Idle floating breath — Y axis only */
@keyframes mascot-breathe {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-4px); }
}

/* Contact shadow ellipse cast on card surface under feet */
.mascot-legs-shadow {
    position: absolute;
    /* Sits at card top surface, centered under robot */
    bottom: calc(100% - 59px);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 10px;
    background: radial-gradient(ellipse, rgba(15, 23, 42, 0.22) 0%, transparent 80%);
    filter: blur(3px);
    z-index: 9; /* Below mascot, above card surface */
    border-radius: 50%;
    transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .mascot-legs-shadow {
    width: 68px;
    bottom: calc(100% - 18px);
    opacity: 0.7;
}

/* Glowing aurora blob behind robot */
.mascot-aurora-glow {
    position: absolute;
    bottom: calc(100% - 50px);
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 50% 60%,
        rgba(56, 189, 248, 0.22) 0%,
        rgba(52, 211, 153, 0.10) 55%,
        transparent 100%);
    filter: blur(12px);
    z-index: 8;
    opacity: 0.7;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.bento-card:hover .mascot-aurora-glow {
    opacity: 1;
}

/* Digital LED eye blink overlay — hidden by default, eyes rendered in image */
.mascot-digital-eyes { display: none; }
.digital-eye { display: none; }

/* Card Screenshot visual box (occupies 60% card height) */
.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 400px; /* 60% of card height */
    overflow: hidden; /* Hide overflow to remove empty space effect */
    border-radius: 28px 28px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-screenshot-holder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 16px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Micro-interaction: Straighten and float up */
.bento-card:hover .card-screenshot-holder {
    transform: scale(1.02);
}

.bento-card:hover .card-screenshot-img {
    transform: scale(1.02); /* Slight zoom on image */
}

.iframe-click-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Glass border-shine overlay on card screenshot */
.glass-reflection {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 5;
}

.bento-card:hover .glass-reflection {
    left: 150%;
}

/* Card Template Info details (40% height) */
.card-info {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    z-index: 3;
    /* Match glassmorphism, not solid white */
    background: rgba(255, 255, 255, 0.80);
    border-radius: 0 0 28px 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.card-meta-top {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.category-tag-blue {
    font-size: 0.65rem;
    font-weight: var(--weight-bold);
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: 1.25;
}

.card-rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.03);
    padding: 2px 6px;
    border-radius: 6px;
    flex-shrink: 0;
}

.star-icon {
    width: 12px;
    height: 12px;
    color: #FBBF24;
}

.card-description {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Actions Live Preview full width button styling */
.card-actions-wrapper {
    width: 100%;
}

.btn-live-preview-gradient {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue)) !important;
    color: var(--bg-white) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
    border-radius: 100px;
    font-weight: var(--weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-live-preview-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.25),
        0 0 12px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.35) !important;
}

.btn-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.btn-live-preview-gradient:hover .btn-arrow {
    transform: translateX(3px);
}

/* (Stagger rules handled above — no duplicate needed) */

/* ==========================================
   10. Features Section & Grid
   ========================================== */
.features-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(15, 23, 42, 0.03);
    border-bottom: 1px solid rgba(15, 23, 42, 0.03);
    padding: 120px 24px;
}

.features-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-white);
    padding: 36px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: var(--weight-bold);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ==========================================
   11. Pricing Section (Three Plans + Toggle)
   ========================================== */
.pricing-section {
    padding: 120px 24px;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-toggle-container {
    margin-top: 36px;
}

.pricing-tabs {
    display: inline-flex;
    padding: 4px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--border-radius-md);
    gap: 4px;
    backdrop-filter: blur(8px);
}

.pricing-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-tab-btn:hover {
    color: var(--text-primary);
}

.pricing-tab-btn.active {
    background: var(--bg-white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    margin-top: 56px;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured-plan {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: var(--shadow-premium), var(--shadow-glow);
    transform: scale(1.03);
    z-index: 2;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured-plan:hover {
    transform: translateY(-4px) scale(1.03);
}

.popular-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 100px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255,255,255,1);
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: var(--weight-bold);
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    margin-bottom: 20px;
}

.price-currency {
    font-size: 1.8rem;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    transform: translateY(-8px);
}

.price-val {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: var(--weight-black);
    color: var(--text-primary);
    letter-spacing: -2px;
    line-height: 1;
    transition: all 0.3s ease;
}

.price-period {
    font-size: 0.95rem;
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    margin-left: 4px;
    transition: all 0.3s ease;
}

.pricing-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.45;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.pricing-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.pricing-features svg {
    width: 16px;
    height: 16px;
    color: var(--mint-green);
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    margin-top: auto;
}

/* ==========================================
   12. Morphing Fullscreen Preview Modal
   ========================================== */
.preview-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

/* Modal Content Container */
.preview-modal-container {
    width: 94vw;
    height: 90vh;
    background: var(--bg-base);
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 24px 60px -10px rgba(15, 23, 42, 0.25),
        0 0 100px -20px rgba(59, 130, 246, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    /* Morph Animation starting point placeholder */
    transform: scale(0.92) translateY(20px);
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preview-modal-backdrop.open .preview-modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Header details */
.preview-modal-header {
    height: 76px;
    background: var(--bg-white);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.preview-template-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.preview-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: var(--weight-bold);
    color: var(--mint-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    padding: 2px 10px;
    background: rgba(52, 211, 153, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(52, 211, 153, 0.2);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.15);
}

.preview-free-badge svg {
    width: 12px;
    height: 12px;
}

#modal-template-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.2px;
}

#modal-template-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Viewport Device Size Tabs */
.viewport-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.03);
    padding: 4px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.viewport-tab {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.viewport-tab svg {
    width: 16px;
    height: 16px;
}

.viewport-tab:hover {
    color: var(--text-primary);
}

.viewport-tab.active {
    background: var(--bg-white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.btn-close-modal {
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.btn-close-modal:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.15);
    transform: rotate(90deg);
}

.btn-close-modal svg {
    width: 18px;
    height: 18px;
}

/* Modal Body / Viewport Frame container */
.preview-modal-body {
    flex: 1;
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
}

/* Responsive Device Frame sizing */
.simulated-device-frame {
    display: flex;
    flex-direction: column;
    background: #0F172A; /* Outer mock device color */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    height: 100%;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin 0.4s ease;
    margin: 0 auto;
}

.simulated-device-frame.desktop-view {
    width: 100%;
    border-radius: 12px;
}

.simulated-device-frame.tablet-view {
    width: 768px;
    border-radius: 24px;
    border: 8px solid #0F172A;
}

.simulated-device-frame.mobile-view {
    width: 375px;
    border-radius: 36px;
    border: 12px solid #0F172A;
}

/* Device Address Bar */
.mock-frame-bar {
    height: 32px;
    background: rgba(15, 23, 42, 0.02);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

.mock-frame-bar .dots {
    display: flex;
    gap: 4px;
    position: absolute;
    left: 16px;
}

.mock-frame-bar .dots::before,
.mock-frame-bar .dots::after,
.mock-frame-bar .dots {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(15, 23, 42, 0.2);
    border-radius: 50%;
}

.mock-frame-address {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-white);
    border-radius: 6px;
    padding: 3px 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    margin: 0 auto;
    width: fit-content;
    max-width: 65%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Scrollable template body inside modal */
.simulated-scrollable-content {
    flex: 1;
    background: #ffffff; /* Actual white background for iframe */
    height: calc(90vh - 76px - 32px - 80px - 32px); /* Calc space minus headers and CTAs */
    position: relative;
    overflow: hidden; /* Iframe handles scrolling */
}

/* Modal Iframe Viewer styles */
.modal-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Sticky Modal CTA banner */
.preview-sticky-cta {
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.cta-left {
    display: flex;
    flex-direction: column;
}

.cta-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: var(--weight-bold);
    color: var(--mint-green);
    line-height: 1;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
}

.cta-license {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cta-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Redesigned minimal ghost button for Back to Directory */
.btn-back-directory {
    background: transparent !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: var(--text-secondary) !important;
    border-radius: 100px !important;
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-back-directory:hover {
    background: rgba(15, 23, 42, 0.03) !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: var(--text-primary) !important;
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.icon-back {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.btn-back-directory:hover .icon-back {
    transform: translateX(-2px);
}

/* Live Preview Action button */
.btn-live-preview {
    border-radius: 100px !important;
    padding: 10px 22px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

.icon-launch {
    width: 14px;
    height: 14px;
}

/* Live Iframe container inside modal preview */
.modal-live-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #FFF;
}

/* ==========================================
   13. Simulated Templates CSS Mockups (Rendered in preview modal)
   ========================================== */
.preview-page-container {
    padding: 48px;
    font-family: var(--font-sans);
}

.preview-hero {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.preview-badge-pill {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: var(--weight-semibold);
    border-radius: 100px;
    margin-bottom: 16px;
}

.preview-hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: var(--weight-bold);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.preview-hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

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

.preview-hero-btns .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Mock Dashboard Preview Graphic */
.preview-dashboard-mock {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.preview-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.preview-header-logo {
    width: 60px;
    height: 12px;
    background: rgba(15, 23, 42, 0.1);
    border-radius: 4px;
}

.preview-header-menu {
    display: flex;
    gap: 12px;
}

.preview-header-menu span {
    width: 32px;
    height: 6px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 2px;
}

.preview-grid-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.preview-widget {
    background: #F8FAFC;
    border-radius: var(--border-radius-sm);
    padding: 20px;
    border: 1px solid rgba(15, 23, 42, 0.03);
    min-height: 140px;
}

.preview-widget h4 {
    font-size: 0.85rem;
    font-weight: var(--weight-bold);
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.preview-widget-line {
    height: 8px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 4px;
    margin-bottom: 8px;
    width: 100%;
}

.preview-widget-line.short {
    width: 60%;
}

/* ==========================================
   14. Minimal Premium Footer
   ========================================== */
.footer {
    background: var(--bg-white);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding: 80px 24px 40px 24px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 16px 0 24px 0;
    line-height: 1.45;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.footer-socials a:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 16px;
    height: 16px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-group h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-group a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-group a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================
   15. Responsive Styling (Media Queries)
   ========================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .hero-container {
        gap: 32px;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on Tablet / Medium screen */
        grid-auto-rows: auto;
        gap: 90px 24px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 860px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }
    .hero-content {
        align-items: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-metrics {
        justify-content: center;
        width: 100%;
    }
    .hero-illustration-container {
        justify-content: center;
        margin-top: 48px;
    }
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on small tablets */
        gap: 80px 20px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .bento-grid {
        grid-template-columns: 1fr; /* 1 Column on Mobile */
        grid-auto-rows: auto;
        gap: 70px 20px;
    }
    
    .bento-card {
        --card-tilt-y: 0deg !important;
        --card-tilt-z: 0deg !important;
    }
    .preview-modal-header {
        padding: 0 16px;
        height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .viewport-tabs {
        justify-content: center;
    }
    .preview-modal-body {
        padding: 16px;
    }
    .preview-sticky-cta {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 16px;
        align-items: stretch;
        text-align: center;
    }
    .cta-right {
        flex-direction: column;
        gap: 8px;
    }
    .cta-right .btn {
        width: 100%;
    }
    .pricing-card {
        padding: 32px 16px;
    }
} 

/* Preview error message styling */
.preview-error {
    color: #ff4d4f;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 12px;
}
.preview-error a {
    color: #60a5fa;
    text-decoration: underline;
}

/* Premium iframe fallback styling */
.iframe-fallback-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 40px 24px;
    background: radial-gradient(120% 120% at 50% 10%, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fallback-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.fallback-mascot {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
    animation: bounce 3s ease-in-out infinite;
}

.fallback-mascot-img {
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.fallback-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.fallback-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    max-width: 320px;
    line-height: 1.5;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.fallback-btn {
    position: relative;
    z-index: 2;
    padding: 12px 24px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.fallback-btn:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

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

/* ==========================================
   Pricing Section Tabs & Slider Animation
   ========================================== */
.pricing-tabs {
    display: inline-flex;
    padding: 4px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--border-radius-md);
    position: relative;
    backdrop-filter: blur(8px);
}

.pricing-slider {
    position: absolute;
    top: 4px;
    left: 4px; /* Updated by JS */
    height: calc(100% - 8px);
    width: 100px; /* Updated by JS */
    background: var(--bg-white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.pricing-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-tab-btn:hover {
    color: var(--text-primary);
}

.pricing-tab-btn.active {
    color: var(--text-primary);
}

/* ==========================================
   14. About Us Section
   ========================================== */
.about-section {
    padding: 120px 24px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.03), transparent 70%),
                radial-gradient(circle at bottom left, rgba(52, 211, 153, 0.03), transparent 70%);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.premium-about-block {
    max-width: 800px;
    margin: 0 auto 80px auto;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.03);
    backdrop-filter: blur(12px);
    text-align: left;
}

html[dir="rtl"] .premium-about-block {
    text-align: right;
}

.premium-about-highlight {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.premium-about-block p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.premium-about-block p:last-child {
    margin-bottom: 0;
}

.premium-about-block strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .premium-about-block {
        padding: 32px 24px;
    }
    .premium-about-highlight {
        font-size: 1.25rem;
    }
    .premium-about-block p {
        font-size: 1.05rem;
    }
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Founders Grid */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.founder-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

.founder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
}

.founder-img-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(52, 211, 153, 0.1));
    border: 4px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.founder-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.founder-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.founder-card p {
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Impact Metrics */
.impact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.metric-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.03);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.metric-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--sky-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.impact-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 100px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Two Column Features */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.about-feature-box {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.about-feature-box h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-feature-box p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-feature-box ul {
    list-style: none;
    padding: 0;
}

.about-feature-box li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.about-feature-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--mint-green);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Meta Partnership */
.meta-partnership-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 28px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #fff;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.meta-partnership-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.2), transparent 50%);
    pointer-events: none;
}

.meta-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.meta-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 16px;
}

.meta-content p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
}

.meta-highlight {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-blue);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 4px;
}

.highlight-text {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.meta-logo {
    width: 120px;
    height: 120px;
    color: #fff;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 860px) {
    .founders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-features-grid {
        grid-template-columns: 1fr;
    }
    .meta-partnership-card {
        flex-direction: column;
        text-align: center;
    }
    .meta-highlight {
        border-left: none;
        border-top: 4px solid var(--primary-blue);
        border-radius: 12px;
    }
}
@media (max-width: 580px) {
    .founders-grid {
        grid-template-columns: 1fr;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .metric-card {
        padding: 24px 16px;
    }
    .meta-partnership-card {
        padding: 32px 20px;
    }
}

/* ==========================================
   RTL Styles for Arabic (index-ar.html)
   ========================================== */
html[dir="rtl"] {
    font-family: 'Cairo', 'Inter', sans-serif; /* Recommended Arabic font */
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3 {
    font-family: 'Cairo', 'Outfit', sans-serif;
    letter-spacing: 0;
}

html[dir="rtl"] .bento-card {
    text-align: right;
}

html[dir="rtl"] .nav-links {
    flex-direction: row;
}

html[dir="rtl"] .browser-actions-right {
    justify-content: flex-start;
}

html[dir="rtl"] .mock-nav, html[dir="rtl"] .card-meta-top, html[dir="rtl"] .footer-container {
    text-align: right;
}

html[dir="rtl"] .card-actions-wrapper .btn-arrow,
html[dir="rtl"] .hero-actions .icon-arrow {
    transform: rotate(180deg);
}

/* ==========================================
   Language Dropdown (Desktop)
   ========================================== */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-toggle svg {
    width: 16px;
    height: 16px;
}

.lang-toggle .chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.lang-dropdown:hover .chevron {
    transform: rotate(180deg);
}

.lang-dropdown:hover .lang-toggle {
    background: rgba(15, 23, 42, 0.05);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    min-width: 140px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    font-weight: 600;
}

/* ==========================================
   Language Dropdown (Mobile)
   ========================================== */
.mobile-lang-selector {
    margin: 16px 0;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.mobile-lang-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 500;
}

.mobile-lang-options {
    display: flex;
    gap: 8px;
}

.lang-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.03);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: #fff;
    color: var(--primary-blue);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

/* ==========================================
   RTL Additional Layout Fixes
   ========================================== */
html[dir="rtl"] .popular-badge {
    right: auto;
    left: 24px;
}

html[dir="rtl"] .badge-free-text {
    right: auto;
    left: 12px;
}

html[dir="rtl"] .about-feature-box ul li::before {
    margin-right: 0;
    margin-left: 12px;
    float: right;
    margin-top: 4px;
}
html[dir="rtl"] .about-feature-box ul li {
    padding-right: 32px;
    padding-left: 0;
}
html[dir="rtl"] .about-feature-box ul li::before {
    position: absolute;
    right: 0;
    left: auto;
}

html[dir="rtl"] .feature-card ul li::before {
    margin-right: 0;
    margin-left: 12px;
    float: right;
}
html[dir="rtl"] .feature-card ul li {
    padding-right: 32px;
    padding-left: 0;
}
html[dir="rtl"] .feature-card ul li::before {
    position: absolute;
    right: 0;
    left: auto;
}

html[dir="rtl"] .plan-features li::before {
    margin-right: 0;
    margin-left: 12px;
}
html[dir="rtl"] .plan-features li {
    padding-right: 32px;
    padding-left: 0;
}
html[dir="rtl"] .plan-features li::before {
    position: absolute;
    right: 0;
    left: auto;
}

html[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

html[dir="rtl"] .mobile-toggle {
    margin-left: 0;
    margin-right: auto; /* Push to the left in RTL if logo is on right */
}

/* Modern Sleek Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.02); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary-blue), var(--accent-purple)); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #1d4ed8, #6d28d9); box-shadow: 0 0 8px rgba(37, 99, 235, 0.3); }


/* ==========================================
   THEME TOGGLE BUTTON & DARK MODE SYSTEM
   ========================================== */
.theme-toggle {
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 8px;
    height: 38px;
    width: 38px;
}
.theme-toggle:hover {
    color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}
html[dir="rtl"] .theme-toggle {
    margin-left: 0;
    margin-right: 8px;
}
.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle:hover svg {
    transform: rotate(15deg) scale(1.1);
}
.icon-sun { display: none; color: #FBBF24; }
.icon-moon { display: block; color: #64748B; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
}

/* ==========================================
   DARK MODE COLOR SYSTEM & OVERRIDES (V6 LUXURY OBSIDIAN)
   ========================================== */
[data-theme="dark"] {
    --bg-base: #07090E; /* Obsidian deep dark night */
    --bg-white: #0F172A; /* Rich slate */
    --text-primary: #FFFFFF; /* Crisp pure white */
    --text-secondary: #CBD5E1; /* Bright silver-slate for high readability! */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
    --shadow-premium: 0 30px 60px -15px rgba(0, 0, 0, 0.9), 0 0 80px -10px rgba(56, 189, 248, 0.2);
}

[data-theme="dark"] body {
    background-color: var(--bg-base);
    color: var(--text-primary);
}

/* Background Grid in Dark Mode */
[data-theme="dark"] .background-grid {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Navbar in Dark Mode */
[data-theme="dark"] .navbar {
    background: rgba(7, 9, 14, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .navbar.scrolled {
    background: rgba(7, 9, 14, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7) !important;
}

/* ==========================================
   SECTION TIERING & DEPTH IN DARK MODE (V6 Glow separation)
   ========================================== */
[data-theme="dark"] .marketplace-section,
[data-theme="dark"] .pricing-section,
[data-theme="dark"] .about-section {
    background: transparent !important;
}

/* "Why Orderlek Templates" Features Section */
[data-theme="dark"] .features-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(7, 9, 14, 0.7) 50%, rgba(15, 23, 42, 0.45) 100%) !important;
    border-top: 1px solid rgba(56, 189, 248, 0.08) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.08) !important;
    position: relative;
}

/* Unified seamless background for about page features grid */
[data-theme="dark"] .about-features-grid {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ==========================================
   1. HERO SECTION & BROWSER MOCKUP (Fixed!)
   ========================================== */
[data-theme="dark"] .hero-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .about-header h2,
[data-theme="dark"] .subsection-title,
[data-theme="dark"] .premium-about-highlight {
    color: #FFFFFF !important;
}
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .impact-subtitle,
[data-theme="dark"] .impact-footer,
[data-theme="dark"] .pricing-desc {
    color: #CBD5E1 !important;
}
[data-theme="dark"] .browser-mockup {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 100px -10px rgba(56, 189, 248, 0.25) !important;
}
[data-theme="dark"] .browser-header {
    background: rgba(11, 15, 25, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .browser-address {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}
[data-theme="dark"] .browser-content {
    background: #07090E !important;
}
[data-theme="dark"] .mock-logo,
[data-theme="dark"] .mock-links span,
[data-theme="dark"] .mock-text,
[data-theme="dark"] .mock-card,
[data-theme="dark"] .mock-line {
    background: rgba(255, 255, 255, 0.15) !important;
}
[data-theme="dark"] .mock-title {
    background: #FFFFFF !important;
}
[data-theme="dark"] .mock-btn {
    background: var(--primary-blue) !important;
}

/* ==========================================
   2. OBSIDIAN GLASS CARDS (Bento Cards, Features, Pricing, About, Founders, Metrics)
   ========================================== */
[data-theme="dark"] .bento-card,
[data-theme="dark"] .template-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .founder-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .premium-about-block,
[data-theme="dark"] .about-feature-box,
[data-theme="dark"] .filter-bar,
[data-theme="dark"] .search-input-wrapper {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.85) 0%, rgba(11, 15, 25, 0.95) 100%) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .bento-card:hover,
[data-theme="dark"] .template-card:hover,
[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .pricing-card:hover,
[data-theme="dark"] .founder-card:hover,
[data-theme="dark"] .metric-card:hover,
[data-theme="dark"] .about-feature-box:hover {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.95), 0 0 40px -5px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-6px);
}

/* Card Info (the description part of the card!) in Dark Mode */
[data-theme="dark"] .card-info {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(7, 9, 14, 0.98) 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .card-rating-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .card-title {
    color: #FFFFFF !important;
}
[data-theme="dark"] .card-description {
    color: #CBD5E1 !important;
}
[data-theme="dark"] .badge-free-wrapper,
[data-theme="dark"] .badge-free-glass,
[data-theme="dark"] .badge-new-glass {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #38BDF8 !important;
}

/* Text inside cards & About Feature Box */
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .pricing-card h3,
[data-theme="dark"] .stat-card h3,
[data-theme="dark"] .value-card h3,
[data-theme="dark"] .founder-card h4,
[data-theme="dark"] .template-card h3,
[data-theme="dark"] .faq-item h3,
[data-theme="dark"] .about-feature-box h4 {
    color: #FFFFFF !important;
}
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .pricing-card p,
[data-theme="dark"] .stat-card p,
[data-theme="dark"] .value-card p,
[data-theme="dark"] .founder-card p,
[data-theme="dark"] .template-card p,
[data-theme="dark"] .faq-item p,
[data-theme="dark"] .premium-about-block p,
[data-theme="dark"] .about-feature-box p {
    color: #CBD5E1 !important;
}
[data-theme="dark"] .about-feature-box li {
    color: #F8FAFC !important;
}
[data-theme="dark"] .about-feature-box li::before {
    color: #38BDF8 !important;
}

/* ==========================================
   3. PRICING & TABS & BADGES (Fixed!)
   ========================================== */
[data-theme="dark"] .pricing-tabs {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .pricing-tab-btn {
    color: #94A3B8 !important;
}
[data-theme="dark"] .pricing-tab-btn.active {
    background: #1E293B !important;
    color: #38BDF8 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="dark"] .pricing-features li {
    color: #CBD5E1 !important;
}
[data-theme="dark"] .pricing-features li svg {
    color: #38BDF8 !important;
}
[data-theme="dark"] .feature-icon {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38BDF8 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2) !important;
}

/* ==========================================
   4. METRICS & ABOUT US ELEMENTS (Fixed!)
   ========================================== */
[data-theme="dark"] .metric-number {
    background: linear-gradient(135deg, #38BDF8, #A7F3D0) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
[data-theme="dark"] .metric-label {
    color: #94A3B8 !important;
}
[data-theme="dark"] .founder-role {
    color: #38BDF8 !important;
}

/* ==========================================
   5. BUTTONS, BADGES & SECONDARY ELEMENTS (Fixed Hover Bug!)
   ========================================== */
[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
[data-theme="dark"] .btn-secondary:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38BDF8 !important;
    border-color: #38BDF8 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3) !important;
}
[data-theme="dark"] .btn-ghost {
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
[data-theme="dark"] .filter-btn {
    color: var(--text-secondary);
}
[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    color: var(--text-primary);
}
[data-theme="dark"] .filter-slider {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .lang-menu {
    background: #1E293B !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
}
[data-theme="dark"] .lang-option:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

/* ==========================================
   6. MODALS & POPUPS (Kept untouched & intact!)
   ========================================== */
[data-theme="dark"] .preview-modal-content {
    background: #0B0F19 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .preview-sticky-cta {
    background: rgba(11, 15, 25, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .mock-frame-address {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .modal-header,
[data-theme="dark"] .simulated-browser-header {
    background: rgba(17, 24, 39, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .simulated-device-frame {
    background: #0F172A !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8) !important;
}
[data-theme="dark"] .viewport-tab {
    color: var(--text-secondary);
}
[data-theme="dark"] .viewport-tab.active,
[data-theme="dark"] .viewport-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Mobile Menu & Footer in Dark Mode */
[data-theme="dark"] .mobile-nav-overlay {
    background: rgba(11, 15, 25, 0.98) !important;
}
[data-theme="dark"] .mobile-link {
    color: var(--text-primary) !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] footer,
[data-theme="dark"] .footer-content,
[data-theme="dark"] .footer-bottom {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .card-category,
[data-theme="dark"] .rating-count {
    color: var(--text-secondary) !important;
}
[data-theme="dark"] .search-input {
    color: var(--text-primary) !important;
    background: transparent !important;
}
[data-theme="dark"] .search-input::placeholder {
    color: var(--text-secondary) !important;
}


/* ==========================================
   PREMIUM VIEWPORT TABS & POPUP MODAL UPGRADES
   ========================================== */
.viewport-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.04);
    padding: 4px;
    border-radius: 100px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.viewport-tab {
    border: none;
    background: transparent;
    padding: 8px 18px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: var(--weight-bold);
    color: var(--text-secondary);
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.viewport-tab svg {
    width: 15px;
    height: 15px;
    transition: transform 0.25s ease;
}

.viewport-tab:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.03);
}

.viewport-tab:hover svg {
    transform: scale(1.1);
}

.viewport-tab.active {
    background: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Dark Mode Viewport Tabs Overrides */
[data-theme="dark"] .viewport-tabs {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .viewport-tab:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .viewport-tab.active {
    background: #38BDF8 !important;
    color: #07090E !important;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35) !important;
    font-weight: 700;
}

/* FIX: Hide redundant glowing eyes overlay on hero robot */
/* The robot image already has built-in cyan eyes, so the extra overlay circles are unnecessary */
.mascot-eyes {
    display: none !important;
}

/* ==========================================
   COMPREHENSIVE RESPONSIVE FIXES
   ========================================== */

/* Extra small mobile (iPhone SE / small Android) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem !important;
        letter-spacing: -0.5px;
    }
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    .section-title {
        font-size: 1.6rem !important;
    }
    .filter-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .filter-bar::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    .preview-modal-container {
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }
    .preview-modal-header {
        height: auto !important;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px !important;
    }
    .viewport-tabs {
        display: none !important;
    }
    .preview-sticky-cta {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
    }
    .preview-sticky-cta .cta-right {
        width: 100%;
    }
    .preview-sticky-cta .cta-right .btn {
        width: 100%;
    }
    .pricing-switcher-container .pricing-tab-btn {
        font-size: 0.7rem;
        padding: 8px 10px;
    }
    .footer-links-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet landscape specific fix */
@media (min-width: 861px) and (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 80px 24px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* RTL responsive overrides */
[dir="rtl"] .hero-actions {
    flex-direction: row-reverse;
}
@media (max-width: 580px) {
    [dir="rtl"] .hero-actions {
        flex-direction: column;
    }
}

/* Modal on tablet portrait */
@media (max-width: 768px) {
    .simulated-device-frame.tablet-view {
        width: 100% !important;
    }
    .simulated-device-frame.mobile-view {
        width: 320px !important;
    }
    .preview-modal-body {
        padding: 16px !important;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly tap targets (minimum 44px for accessibility) */
@media (pointer: coarse) {
    .nav-link, .filter-btn, .viewport-tab, .pricing-tab-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .btn-close-modal {
        width: 44px;
        height: 44px;
    }
}
