/*
Theme Name: TorlyAI Theme
Theme URI: https://torly.ai
Author: TorlyAI Development Team
Author URI: https://torly.ai
Description: Premium Maximalist theme for TorlyAI - UK Innovator Visa AI Assistant Platform
Version: 3.0.0
License: GPL v2 or later
Text Domain: torlyai
*/

/* ============================================
   PREMIUM MAXIMALIST DESIGN SYSTEM
   ============================================ */

/* Google Fonts Import - Distinctive Typography */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

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

:root {
    /* Premium Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Neutrals (Granola palette) */
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --white: #ffffff;
    --black: #000000;

    /* Accent Colors (HSL for gradients) */
    --color-yellow: hsl(60, 100%, 50%);      /* #ffff00 */
    --color-green: hsl(108, 100%, 50%);      /* #66ff00 */
    --color-orange: hsl(30, 100%, 50%);      /* #ff9900 */
    --color-chat-green: #10b981;

    /* Legacy blue (keep for compatibility) */
    --primary-color: #2563eb;
    --secondary-color: #1e40af;

    /* Text Colors */
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-tertiary: rgba(0, 0, 0, 0.5);

    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;

    /* Premium Shadows with Yellow Tint */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --shadow-premium: 0 20px 40px -12px rgba(255, 255, 0, 0.15), 0 10px 25px -8px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --shadow-inset-white: inset -4px -4px 8px 0 #ffffff;

    /* Smooth Transitions */
    --transition-fast: all 75ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Typography */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Noise Texture Overlay for Premium Depth */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=');
    opacity: 0.4;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 9999;
}

/* All Headings Use Display Font */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .feature-title,
.testimonial-author, .card-title, .stage-title {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Premium Custom Cursor */
* {
    cursor: none;
}

a, button, .btn-primary, .btn-secondary,
.thumbnail-item, .result-card, .tab-btn,
.timeline-btn, .journey-stage-card {
    cursor: none;
}

.custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--color-yellow), var(--color-green));
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 1;
    mix-blend-mode: difference;
}

.custom-cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--color-yellow), var(--color-green)) 1;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    opacity: 0.6;
}

.custom-cursor-ring.hover {
    transform: scale(1.5);
    opacity: 1;
}

/* Fallback for mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }
    .custom-cursor,
    .custom-cursor-ring {
        display: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 72rem; /* 1152px */
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

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

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.site-logo:hover {
    opacity: 0.8;
}

.site-logo svg {
    width: 36px;
    height: 36px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-base);
}

.main-navigation a:hover {
    color: var(--text-secondary);
}

.cta-button {
    background: var(--text-primary);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    transform: translateZ(0);
}

.cta-button:hover {
    background: var(--text-secondary);
    transform: scale(1.01);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle:focus {
    outline: 2px solid var(--color-chat-green);
    outline-offset: 4px;
    border-radius: 4px;
}

.hamburger-line {
    width: 2rem;
    height: 0.1875rem;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger Animation when Active */
.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(0.625rem) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-1rem);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-0.625rem) rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        align-items: flex-start;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .main-navigation a:hover {
        color: var(--color-chat-green);
        transform: translateX(0.5rem);
    }

    .main-navigation .cta-button {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
        display: inline-block;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Overlay behind mobile menu */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(2px);
        z-index: 998;
        animation: fadeIn 0.3s ease;
    }

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

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-navigation ul {
        gap: 1.5rem;
    }

    .main-navigation a {
        font-size: 0.875rem;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    padding: 0.5rem 0 3rem;
    background: var(--white);
    background-image:
        radial-gradient(at 27% 37%, hsla(60,100%,50%,0.35) 0px, transparent 50%),
        radial-gradient(at 97% 21%, hsla(108,100%,50%,0.28) 0px, transparent 50%),
        radial-gradient(at 52% 99%, hsla(30,100%,50%,0.22) 0px, transparent 50%),
        radial-gradient(at 10% 29%, hsla(60,100%,50%,0.18) 0px, transparent 50%),
        radial-gradient(at 82% 67%, hsla(108,100%,50%,0.15) 0px, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Floating Blur Orb 1 - Yellow/Green */
.hero-section::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -8%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
        hsla(108,100%,50%,0.25) 0%,
        hsla(60,100%,50%,0.15) 40%,
        transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: floatOrb1 25s ease-in-out infinite;
}

/* Floating Blur Orb 2 - Orange/Yellow */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
        hsla(30,100%,50%,0.22) 0%,
        hsla(60,100%,50%,0.12) 40%,
        transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    animation: floatOrb2 30s ease-in-out infinite;
}

/* Blur Orb Animations */
@keyframes floatOrb1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(-80px, 60px) scale(1.15) rotate(120deg);
    }
    66% {
        transform: translate(40px, -40px) scale(0.95) rotate(240deg);
    }
}

@keyframes floatOrb2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    40% {
        transform: translate(60px, -50px) scale(1.1) rotate(150deg);
    }
    80% {
        transform: translate(-40px, 30px) scale(0.9) rotate(300deg);
    }
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50px, -30px) scale(1.1);
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding: 1rem 0 4rem;
    }
}

.hero-content {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 0.9;
    letter-spacing: -0.020em;
    animation: fadeInUp 0.6s ease-out;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.4;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    width: auto;
    min-width: fit-content;
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-wrap: nowrap;
        gap: 2rem;
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;

    /* Typography */
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    /* Colors & Styling */
    color: var(--black);
    background: linear-gradient(135deg,
        hsla(60,100%,50%,0.25) 0%,
        hsla(108,100%,50%,0.25) 100%);

    /* Spacing */
    padding: 0.5rem 1rem;

    /* Borders & Radius */
    border-radius: 9999px;
    border: 1px solid rgba(0,0,0,0.1);

    /* Effects */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeInDown 0.6s ease-out;
}

.badge-icon {
    font-size: 1.25rem;
    line-height: 1;
}

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

/* ============================================
   BUTTONS (Granola.ai Style)
   ============================================ */

.btn-primary,
button.btn-primary {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
    padding: 0 2rem;
    height: 3rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-spring);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    transform: translateZ(0);
    border: 1px solid rgba(255, 255, 255, 0.95);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: visible;
}

/* Premium Glow Effect */
.btn-primary::before,
button.btn-primary::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--color-yellow), var(--color-green));
    border-radius: 9999px;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-primary:hover,
button.btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.03) translateZ(0);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.18),
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(255, 255, 0, 0.2);
}

.btn-primary:hover::before,
button.btn-primary:hover::before {
    opacity: 0.6;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        filter: blur(20px);
    }
    50% {
        opacity: 0.8;
        filter: blur(25px);
    }
}

@media (min-width: 1024px) {
    .btn-primary,
    button.btn-primary {
        height: 3.5rem;
        font-size: 1.0625rem;
    }
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--black);
    border-radius: 9999px;
    padding: 0 2rem;
    height: 3rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    transform: translateZ(0);
}

.btn-secondary::after {
    content: '→';
    transition: transform 0.2s ease;
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
    transform: scale(1.02) translateZ(0);
}

.btn-secondary:hover::after {
    transform: translateX(4px);
}

@media (min-width: 1024px) {
    .btn-secondary {
        height: 3.5rem;
        font-size: 1.0625rem;
    }
}

/* ============================================
   SECTIONS
   ============================================ */

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 0.95;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

/* ============================================
   SOCIAL PROOF / LOGO CAROUSEL
   ============================================ */

.social-proof-section {
    padding: 4rem 0;
    background: var(--neutral-50);
    overflow: hidden;
}

.social-proof-title {
    font-size: 0.875rem;
    text-align: center;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.logo-carousel {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.logo-carousel-reverse {
    animation: marquee-reverse 30s linear infinite;
}

.logo-carousel:hover {
    animation-play-state: paused;
}

.logo-item {
    opacity: 0.6;
    transition: var(--transition-base);
    min-width: clamp(150px, 20vw, 250px);
    text-align: center;
    font-weight: 600;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    white-space: nowrap;
    color: var(--text-secondary);
}

.logo-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    padding: 5rem 0;
    background: var(--white);
    background-image:
        radial-gradient(at 20% 50%, hsla(108,100%,50%,0.2) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(30,100%,50%,0.15) 0px, transparent 50%);
}

@media (min-width: 768px) {
    .features-section {
        padding: 6rem 0;
    }
}

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

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    transition: var(--transition-spring);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 24px 32px -8px rgba(0, 0, 0, 0.15),
        0 12px 16px -6px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(102, 255, 0, 0.1),
        0 0 40px -10px rgba(255, 255, 0, 0.15);
    border-color: rgba(102, 255, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-green), var(--color-chat-green));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--neutral-100) 0%, var(--white) 100%);
}

@media (min-width: 768px) {
    .how-it-works-section {
        padding: 6rem 0;
    }
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 768px) {
    .process-timeline {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--neutral-200);
    z-index: 1;
    display: none;
}

@media (min-width: 768px) {
    .process-timeline::before {
        display: block;
    }
}

.process-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: scale(0.9);
}

.process-step.visible {
    opacity: 1;
    transform: scale(1);
    transition: var(--transition-slow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,
        hsla(60,100%,50%,0.25) 0%,
        hsla(30,100%,50%,0.25) 100%);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    padding: 5rem 0;
    background: var(--white);
}

@media (min-width: 768px) {
    .testimonials-section {
        padding: 6rem 0;
    }
}

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

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition-slow);
    opacity: 0;
    transform: translateY(20px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    border-color: var(--neutral-300);
    box-shadow: var(--shadow-md);
}

.testimonial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--neutral-100);
    margin-bottom: 1rem;
    object-fit: cover;
}

/* Testimonial photo gradients - Torly brand colors */
.testimonial-photo-1 {
    background: radial-gradient(circle at 30% 30%,
        hsla(60,100%,50%,0.4) 0%,
        hsla(108,100%,50%,0.25) 50%,
        hsla(30,100%,50%,0.15) 100%);
}

.testimonial-photo-2 {
    background: radial-gradient(circle at 30% 30%,
        hsla(108,100%,50%,0.4) 0%,
        hsla(30,100%,50%,0.25) 50%,
        hsla(60,100%,50%,0.15) 100%);
}

.testimonial-photo-3 {
    background: radial-gradient(circle at 30% 30%,
        hsla(30,100%,50%,0.4) 0%,
        hsla(60,100%,50%,0.25) 50%,
        hsla(108,100%,50%,0.15) 100%);
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.testimonial-title {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    padding: 4rem 0;
    background: var(--neutral-50);
    background-image:
        radial-gradient(at 50% 50%, hsla(60,100%,50%,0.15) 0px, transparent 50%);
}

@media (min-width: 768px) {
    .stats-section {
        padding: 5rem 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    opacity: 0;
    transform: scale(0.9);
}

.stat-item.visible {
    opacity: 1;
    transform: scale(1);
    transition: var(--transition-slow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-green), var(--color-chat-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

@media (min-width: 1024px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (min-width: 1024px) {
    .stat-label {
        font-size: 1.125rem;
    }
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-section {
    padding: 5rem 0;
    background: var(--neutral-50);
}

@media (min-width: 768px) {
    .blog-section {
        padding: 6rem 0;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.blog-date {
    color: var(--text-tertiary);
}

.blog-category {
    color: var(--color-chat-green);
}

.blog-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.blog-title a:hover {
    color: var(--color-chat-green);
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.read-more {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-base);
}

.read-more:hover {
    gap: 0.5rem;
    color: var(--color-chat-green);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 5rem 0;
    background: var(--text-primary);
    background-image:
        radial-gradient(at 30% 50%, hsla(60,100%,50%,0.2) 0px, transparent 50%),
        radial-gradient(at 70% 50%, hsla(108,100%,50%,0.2) 0px, transparent 50%);
    color: white;
    text-align: center;
    position: relative;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 6rem 0;
    }
}

.cta-content {
    max-width: 48rem;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .cta-content h2 {
        font-size: 4rem;
    }
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .cta-content p {
        font-size: 1.25rem;
    }
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .cta-buttons {
        flex-wrap: nowrap;
        gap: 2rem;
    }
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    width: fit-content;
}

.cta-section .btn-primary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 1);
}

.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
    border-width: 2px;
}

.cta-section .btn-secondary:hover {
    background: white;
    color: var(--text-primary);
}

.cta-section .btn-secondary::after {
    content: '→';
    transition: transform 0.2s ease;
    margin-left: 0.5rem;
}

.cta-section .btn-secondary:hover::after {
    transform: translateX(4px);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--neutral-50);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-base);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-200);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Social Media Links */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--color-chat-green);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.footer-company-info {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    opacity: 0.7;
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
    text-align: center;
}

.text-center .btn-primary,
.text-center .btn-secondary {
    width: auto;
    display: inline-flex;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* ============================================
   WORDPRESS SPECIFIC STYLES
   ============================================ */

.wp-block-group {
    margin-bottom: 2rem;
}

.wp-block-image {
    margin: 2rem 0;
}

.wp-block-button__link {
    background: var(--text-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.wp-block-button__link:hover {
    background: var(--text-secondary);
    transform: scale(1.01);
}

/* Blog Post Styles */
.single-post {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.post-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

@media (min-width: 768px) {
    .post-title {
        font-size: 2.5rem;
    }
}

.post-meta {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.post-content {
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .post-content h2 {
        font-size: 1.875rem;
    }
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

@media (min-width: 768px) {
    .post-content h3 {
        font-size: 1.5rem;
    }
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--color-chat-green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ============================================
   UK VISA STATISTICS SECTION
   ============================================ */

.uk-visa-stats-section {
    padding: 6rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9fc 100%);
}

.visa-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tablet: 2 per row */
@media (max-width: 1024px) {
    .visa-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 per row */
@media (max-width: 640px) {
    .visa-stats-grid {
        grid-template-columns: 1fr;
    }
}

.visa-stat-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.visa-stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.stat-number-large {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-green), var(--color-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.stat-label-primary {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.stat-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.visa-stat-card .stat-source {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.visa-stat-card .stat-source cite {
    font-style: normal;
    color: var(--text-tertiary);
}

.visa-stat-card .stat-source a {
    color: var(--color-chat-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.visa-stat-card .stat-source a:hover {
    color: var(--color-green);
    text-decoration: underline;
}

.stats-footer {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: 6rem 1.25rem;
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 3rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: grayscale(0.2);
    transition: transform 0.2s ease;
}

.faq-item:hover .faq-icon {
    transform: scale(1.1);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul {
    margin: 1rem 0 1rem 1.5rem;
    list-style-type: disc;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

.faq-source {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.faq-source cite {
    font-style: normal;
}

.faq-source a {
    color: var(--color-chat-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-source a:hover {
    color: var(--color-green);
    text-decoration: underline;
}

/* ============================================
   PRODUCT SHOWCASE SECTION
   ============================================ */

.product-showcase-section {
    padding: 6rem 0;
    background: linear-gradient(180deg,
        #ffffff 0%,
        #fefbf5 50%,
        #ffffff 100%
    );
    position: relative;
    overflow: hidden;
}

.product-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, hsla(60, 100%, 50%, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, hsla(108, 100%, 50%, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.product-showcase-section .container {
    position: relative;
    z-index: 1;
}

/* Showcase Header */
.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
}

.showcase-header .section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Category Tabs */
.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 24px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tab-btn:hover {
    background: linear-gradient(135deg,
        hsla(60, 100%, 50%, 0.15) 0%,
        hsla(108, 100%, 50%, 0.15) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg,
        var(--color-yellow) 0%,
        var(--color-green) 100%
    );
    color: var(--black);
    border-color: transparent;
    font-weight: 600;
    box-shadow:
        0 8px 20px rgba(255, 255, 0, 0.3),
        0 4px 12px rgba(102, 255, 0, 0.2);
}

.tab-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* Main Viewport */
.showcase-viewport {
    margin-bottom: 3rem;
    perspective: 1000px;
}

.viewport-frame {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 1rem;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.viewport-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        hsla(60, 100%, 50%, 0.1) 0%,
        hsla(108, 100%, 50%, 0.1) 100%
    );
    opacity: 0.5;
    pointer-events: none;
}

/* Browser Chrome */
.frame-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
    margin-bottom: 0.5rem;
}

.chrome-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #28ca42;
}

.chrome-title {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Viewport Display */
.viewport-display {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    padding: 0.5rem;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.5s ease-in-out;
    border-radius: 4px;
}

.showcase-image.fade-out {
    opacity: 0;
}

.viewport-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

/* Thumbnail Navigation */
.showcase-thumbnails {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.thumbnail-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.thumbnail-nav:hover {
    background: linear-gradient(135deg,
        hsla(60, 100%, 50%, 0.2) 0%,
        hsla(108, 100%, 50%, 0.2) 100%
    );
    border-color: var(--color-yellow);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 0, 0.2);
}

.thumbnail-nav svg {
    width: 24px;
    height: 24px;
}

.thumbnails-container {
    flex: 1;
    overflow: hidden;
}

.thumbnails-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Thumbnail Items */
.thumbnail-item {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.thumbnail-item:hover::before {
    opacity: 0;
}

.thumbnail-item.active::before {
    opacity: 0;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-item.active {
    border-color: var(--color-yellow);
    border-width: 4px;
    box-shadow:
        0 8px 24px rgba(255, 255, 0, 0.4),
        0 4px 12px rgba(102, 255, 0, 0.25),
        0 0 0 2px rgba(255, 255, 0, 0.2);
    transform: scale(1.08);
}

.thumbnail-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--text-secondary);
}

.thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    z-index: 2;
}

/* Feature Indicators */
.showcase-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: var(--text-tertiary);
    transform: scale(1.2);
}

.indicator.active {
    width: 32px;
    border-radius: 6px;
    background: linear-gradient(90deg,
        var(--color-yellow) 0%,
        var(--color-green) 100%
    );
}

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

.showcase-viewport {
    animation: fadeInUp 0.8s ease-out;
}

.showcase-tabs {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.showcase-thumbnails {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .thumbnail-item {
        width: 150px;
    }

    .showcase-tabs {
        gap: 0.75rem;
    }

    .tab-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 768px) {
    .product-showcase-section {
        padding: 4rem 0;
    }

    .showcase-tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .tab-icon {
        font-size: 1rem;
    }

    .viewport-frame {
        padding: 0.75rem;
    }

    .frame-chrome {
        padding: 0.5rem 0.75rem;
    }

    .chrome-title {
        font-size: 0.75rem;
    }

    .thumbnail-item {
        width: 120px;
    }

    .thumbnail-nav {
        width: 40px;
        height: 40px;
    }

    .thumbnail-nav svg {
        width: 20px;
        height: 20px;
    }

    .thumbnail-label {
        font-size: 0.65rem;
        padding: 0.375rem;
    }
}

@media (max-width: 480px) {
    .showcase-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .thumbnail-item {
        width: 100px;
    }

    .showcase-thumbnails {
        gap: 0.75rem;
    }
}

/* ============================================
   ASSESSMENT RESULTS SECTION
   ============================================ */

.assessment-results-section {
    padding: 6rem 0;
    background: linear-gradient(180deg,
        #ffffff 0%,
        #f6f9fc 100%
    );
    position: relative;
}

.assessment-results-section .results-header {
    text-align: center;
    margin-bottom: 4rem;
}

.assessment-results-section .section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Result Card */
.result-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: 2px solid var(--border-color);
    position: relative;
}

/* Gradient Border Glow Effect */
.result-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-yellow), var(--color-green), var(--color-orange));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.result-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 40px -8px rgba(0, 0, 0, 0.15),
        0 8px 16px -4px rgba(0, 0, 0, 0.1),
        0 0 60px -15px rgba(255, 255, 0, 0.3);
    border-color: transparent;
}

.result-card:hover::before {
    opacity: 1;
}

/* Card Image Wrapper */
.card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
    border: 2px solid var(--border-color);
    border-radius: 12px 12px 0 0;
}

.result-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 10px 10px 0 0;
    background: #f5f5f5;
}

.result-card:hover .result-screenshot {
    transform: scale(1.05);
}

/* Zoom Overlay */
.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        hsla(60, 100%, 50%, 0.9) 0%,
        hsla(108, 100%, 50%, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-card:hover .zoom-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.zoom-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--black);
}

/* Card Content */
.card-content {
    padding: 2rem;
}

.card-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-chat-green);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Lightbox Modal */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.screenshot-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-image-container {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow: auto;
}

.modal-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Assessment Results Responsive */
@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .assessment-results-section {
        padding: 4rem 0;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-image-container {
        padding: 0.5rem;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 1.125rem;
    }

    .card-description {
        font-size: 0.9375rem;
    }

    .zoom-icon {
        font-size: 2rem;
    }

    .zoom-text {
        font-size: 1rem;
    }
}

/* ============================================
   APPLICATION JOURNEY SECTION
   ============================================ */

.application-journey-section {
    padding: 6rem 0;
    background: linear-gradient(180deg,
        #ffffff 0%,
        #fefbf5 50%,
        #ffffff 100%
    );
    position: relative;
    overflow: hidden;
}

.application-journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, hsla(30,100%,50%,0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, hsla(108,100%,50%,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.application-journey-section .container {
    position: relative;
    z-index: 1;
}

.journey-header {
    text-align: center;
    margin-bottom: 3rem;
}

.journey-header .section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* Timeline Navigation */
.timeline-navigation {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.timeline-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.timeline-btn:hover {
    background: linear-gradient(135deg,
        hsla(60,100%,50%,0.1) 0%,
        hsla(30,100%,50%,0.1) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--color-orange);
}

.timeline-btn.active {
    background: linear-gradient(135deg,
        var(--color-orange) 0%,
        var(--color-yellow) 100%
    );
    color: var(--black);
    border-color: transparent;
    font-weight: 600;
    box-shadow:
        0 8px 20px rgba(255, 153, 0, 0.3),
        0 4px 12px rgba(255, 255, 0, 0.2);
}

.timeline-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.timeline-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Journey Stages Grid - 2 Rows Layout */
.journey-stages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Journey Stage Card - Compact Design */
.journey-stage-card {
    position: relative;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-height: auto;
}

.journey-stage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-green);
}

.journey-stage-card.active {
    background: linear-gradient(135deg,
        hsla(60,100%,50%,0.15) 0%,
        hsla(108,100%,50%,0.15) 100%
    );
    border-color: var(--color-green);
    box-shadow:
        0 8px 20px rgba(102, 255, 0, 0.2),
        0 4px 12px rgba(255, 255, 0, 0.15);
}

.stage-number {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        hsla(60,100%,50%,0.2) 0%,
        hsla(108,100%,50%,0.2) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.journey-stage-card.active .stage-number {
    background: linear-gradient(135deg,
        var(--color-yellow) 0%,
        var(--color-green) 100%
    );
    color: var(--black);
}

.stage-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.stage-content {
    margin-bottom: 0;
}

.stage-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.stage-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.stage-arrow {
    display: none; /* Hidden in 2-row layout */
}

/* Journey Viewport */
.journey-viewport {
    margin-bottom: 4rem;
}

.viewport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.viewport-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.viewport-header span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.journey-display-frame {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
}

.journey-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: opacity 0.5s ease-in-out;
}

.journey-screenshot.fade-out {
    opacity: 0;
}

/* Dashboard Section */
.journey-dashboard {
    margin-bottom: 4rem;
}

.dashboard-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.dashboard-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.dashboard-frame {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
}

.dashboard-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Timeline Overview */
.timeline-overview {
    text-align: center;
}

.overview-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.timeline-frame {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
}

.timeline-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Application Journey Responsive */
@media (max-width: 1024px) {
    .journey-stages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .application-journey-section {
        padding: 4rem 0;
    }

    .journey-stages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .journey-stage-card {
        padding: 1.25rem;
    }

    .stage-icon {
        font-size: 2rem;
    }

    .stage-title {
        font-size: 1rem;
    }

    .stage-duration,
    .stage-description {
        font-size: 0.8125rem;
    }
}

    .viewport-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .journey-display-frame,
    .dashboard-frame,
    .timeline-frame {
        padding: 1rem;
    }

    .dashboard-title,
    .overview-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .journey-stages-grid {
        grid-template-columns: 1fr;
    }

    .timeline-navigation {
        flex-direction: column;
        width: 100%;
    }

    .timeline-btn {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 1rem;
    }

    .timeline-icon {
        font-size: 1.25rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    /* Mobile menu styles moved to lines 222-311 - removed duplicate display:none */

    /* .main-navigation ul styles handled in mobile menu section above */

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: fit-content !important;
        padding: 0 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: fit-content !important;
        padding: 0 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

*:focus {
    outline: 2px solid var(--color-chat-green);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--color-chat-green);
    outline-offset: 2px;
}

function topy_ai_modify_main_query( $query ) {
        if ( $query->is_main_query() && ! is_admin() ) {
                $tax_query = array(
                        array(
                                'taxonomy' => 'post_tag',
                                'field'    => 'slug',
                                'terms'    => 'hidden',
                                'operator' => 'NOT IN',
                        ),
                );
                // Home (Blog)
                if ( $query->is_home() ) {
                        $query->set( 'tax_query', $tax_query );
                }
                // Archives (Category, Tag, Author, Date, etc.)
                if ( $query->is_archive() ) {
                        $query->set( 'tax_query', $tax_query );
                }
                // Search results
                if ( $query->is_search() ) {
                        $query->set( 'tax_query', $tax_query );
                }
        }
}
add_action( 'pre_get_posts', 'topy_ai_modify_main_query' );
