:root {
    --primary: #00ffea;
    --primary-rgb: 0, 255, 234;
    --secondary: #ff00ff;
    --accent: #7c3aed;
    --background: #000000;
    --card-bg: rgba(0, 0, 0, 0.7);
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #27272a;
    --success: #22c55e;
    --warning: #f59e0b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --insurance-blue: #0066cc;
    --insurance-gold: #ffd700;
    --emerald: #10b981;
    --trading-success: #00ff88;
    --trading-danger: #ff4444;
    --trading-warning: #ffaa00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Global Spotlight Effect */
.global-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(
        circle 250px at var(--mouse-x, -200px) var(--mouse-y, -200px),
        rgba(0, 255, 234, 0.15) 0%,
        rgba(0, 255, 234, 0.05) 50%,
        transparent 100%
    );
    transition: opacity 0.3s ease;
}

.container {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    border-bottom: 1px solid rgba(0, 255, 234, 0.15);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    height: 3.8rem;
    align-items: center;
    justify-content: space-between;
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    flex-shrink: 0;
    margin-right: auto;
}

.logo:hover {
    transform: scale(1.03);
}

.logo-icon-wrapper {
    position: relative;
    height: 4.4rem;
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 4.4rem;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-default {
    opacity: 1;
}

.logo-neon {
    position: absolute;
    left: 0;
    opacity: 0;
}

.logo:hover .logo-default {
    opacity: 0;
}

.logo:hover .logo-neon {
    opacity: 1;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, #4dd8c7 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: calc(0.25rem + 1px);
    margin-left: auto;
    flex-shrink: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
    white-space: nowrap;
}

/* Underline indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    opacity: 0;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(0, 255, 234, 0.08);
    transform: translateY(-1px);
    text-shadow: 0 0 12px rgba(0, 255, 234, 0.4);
}

.nav-link:hover::after {
    width: calc(100% - 1.5rem);
    opacity: 1;
    box-shadow: 0 0 8px rgba(0, 255, 234, 0.5);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(0, 255, 234, 0.08);
}

.nav-link.active::after {
    width: calc(100% - 1.5rem);
    opacity: 1;
    box-shadow: 0 0 8px rgba(0, 255, 234, 0.5);
}

.menu-button {
    background: transparent;
    border: 1px solid rgba(0, 255, 234, 0.3);
    color: var(--primary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem 0.625rem;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    line-height: 1;
}

.menu-button:hover {
    background: rgba(0, 255, 234, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height - accounts for mobile browser UI */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.hero-grid > div:first-child {
    margin-left: 0;
    text-align: left;
}

/* Centered hero layout */
.hero-centered {
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 2.5rem;
    padding-bottom: 9rem; /* Space for stats at bottom */
}

.hero-centered .hero-subtitle {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Hero background image */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* Base darker image */
.hero-bg-base {
    opacity: 0.25;
    filter: grayscale(0.4) brightness(0.6);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 90%, transparent 100%);
}

/* Bright image revealed by spotlight */
.hero-bg-bright {
    opacity: 0.8;
    filter: grayscale(0.1) brightness(1.1);
    mask-image: radial-gradient(
        circle 150px at var(--spotlight-x, -200px) var(--spotlight-y, -200px),
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.5) 50%,
        transparent 100%
    );
    -webkit-mask-image: radial-gradient(
        circle 150px at var(--spotlight-x, -200px) var(--spotlight-y, -200px),
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.5) 50%,
        transparent 100%
    );
    transition: mask-image 0.05s ease, -webkit-mask-image 0.05s ease;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 6vw + 1rem, 6.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1;
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3em;
}

.hero-word {
    display: block;
}

.hero-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.06em;
    line-height: 1;
}

.arrow-left,
.arrow-right {
    display: inline-block;
    font-size: 0.5em;
    font-weight: 700 !important;
    color: var(--primary);
    text-shadow:
        0 0 15px var(--primary),
        0 0 40px rgba(var(--primary-rgb), 0.4),
        0 0 60px var(--secondary),
        0 0 90px rgba(255, 0, 255, 0.3);
}

.arrow-left {
    animation: arrow-converge-left 2.5s ease-in-out infinite;
}

.arrow-right {
    animation: arrow-converge-right 2.5s ease-in-out infinite;
}

/* Updated hero subtitle */
.hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.65rem);
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 1050px;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Homepage2 style hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 280px));
    justify-content: center;
    gap: 1.5rem;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    padding: 0 2rem;
    z-index: 2;
}

.stat-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 0.95rem;
    padding: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    transform: scale(0.95);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-3);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: scale(0.95) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 234, 0.2);
}

.stat-value {
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    color: var(--primary);
    margin-bottom: 0.3rem;
    text-shadow: 0 0 20px var(--primary);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Network Graph Canvas */
#networkGraph {
    width: 100%;
    height: 100%;
    display: block;
}

/* BACKUP: Cube styles (uncomment to restore cube design)
.cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 15s infinite linear;
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.face-front { transform: translateZ(125px); }
.face-back { transform: rotateY(180deg) translateZ(125px); }
.face-right { transform: rotateY(90deg) translateZ(125px); }
.face-left { transform: rotateY(-90deg) translateZ(125px); }
.face-top { transform: rotateX(90deg) translateZ(125px); }
.face-bottom { transform: rotateX(-90deg) translateZ(125px); }
*/

/* Services Section - Using Homepage2 Style */
.services-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 1025px) {
    .services-section {
        margin-top: -20px;
    }
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: calc(1.5rem + 30px);
    text-align: center;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Latest Protocol Analysis Section */
.latest-analysis-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.latest-analysis-subtitle {
    font-size: calc(1.2rem + 2px);
    color: var(--text);
    margin-bottom: 3rem;
    line-height: 1.6;
    text-align: center;
}

.blog-section-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

/* Carousel Styles - Active only on screens >= 1500px */
.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.carousel-item {
    min-width: 0;
}

/* Enable carousel animation only on wide screens */
@media (min-width: 1500px) {
    .carousel-container {
        position: relative;
    }

    .carousel-viewport {
        overflow: hidden;
        padding: 1rem;
        margin: -1rem;
    }

    .carousel-track {
        display: flex;
        transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    }

    .carousel-item {
        flex: 0 0 calc((100% - 4rem) / 3);
    }
}

/* Grid layout for narrower screens - show only 3 items */
@media (max-width: 1499px) {
    .carousel-track {
        grid-template-columns: repeat(3, 1fr);
    }

    .carousel-item:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 1250px) {
    .carousel-track {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .carousel-track {
        gap: 1.5rem;
    }
}

.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 234, 0.15);
}

.blog-card-image {
    width: calc(100% + 4rem);
    margin: -2rem -2rem 1.5rem -2rem;
    border-radius: 0.9rem 0.9rem 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.tool-emoji {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.blog-card-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.blog-card-category {
    background: rgba(0, 255, 234, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--primary);
    font-weight: 500;
}

.blog-card-readtime {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.view-all-btn {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateX(100%) translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-all-btn .btn-default {
    display: inline;
}

.view-all-btn .btn-hover {
    display: none;
}

.view-all-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

.view-all-btn:hover .btn-default {
    display: none;
}

.view-all-btn:hover .btn-hover {
    display: inline;
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 0.65rem;
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

.carousel-nav-prev {
    left: 0;
    transform: translateX(calc(-100% - 1.5rem)) translateY(-50%);
}

.carousel-nav-next {
    right: 0;
    transform: translateX(calc(100% + 1.5rem)) translateY(-50%);
}

/* Centered View All Button */
.view-all-centered-btn {
    display: none;
    width: 70%;
    max-width: calc((100% - 4rem) / 3 * 0.7);
    margin: 2rem auto 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.view-all-centered-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

/* Show carousel nav buttons and centered link only on wide screens */
@media (min-width: 1500px) {
    .carousel-nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .view-all-link-btn {
        display: none;
    }

    .view-all-centered-btn {
        display: block;
    }
}

/* Cyan color accent for Research section buttons */
.services-section .carousel-nav-btn {
    background: rgba(0, 255, 234, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.services-section .carousel-nav-btn:hover {
    background: rgba(0, 255, 234, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.4);
}

.services-section .view-all-centered-btn {
    background: rgba(0, 255, 234, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.services-section .view-all-centered-btn:hover {
    background: rgba(0, 255, 234, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.4);
}

.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}

@media (max-width: 1650px) {
    .view-all-btn {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 1.5rem;
    }

    .view-all-btn .btn-default {
        display: none;
    }

    .view-all-btn .btn-hover {
        display: inline;
    }

    .blog-card-meta {
        gap: 0.5rem;
    }

    .blog-card-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .blog-card-readtime {
        font-size: 0.75rem;
    }
}

@media (max-width: 1250px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        aspect-ratio: 21 / 9;
        max-height: 220px;
    }

    .ls-explore-content .blog-card-image {
        display: none;
    }

    .blog-card-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .latest-analysis-title {
        font-size: 2rem;
    }

    .blog-card-category {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }

    .blog-card-readtime {
        font-size: 0.8rem;
    }
}

/* Tools & Applications Section */
.tools-apps-section {
    padding: 1rem 0 5rem;
}

/* Tool status colors with dots */
.tool-status-live,
.tool-status-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tool-status-live::before,
.tool-status-soon::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tool-status-live {
    color: #22c55e !important;
}

.tool-status-live::before {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

.tool-status-soon {
    color: #9ca3af !important;
}

.tool-status-soon::before {
    background: #9ca3af;
}

/* Tools section - swap cyan and magenta */
.tools-apps-section .blog-card-title,
.ls-phase-explore .blog-card-title {
    color: var(--secondary);
}

.tools-apps-section .blog-card-category,
.ls-phase-explore .blog-card-category {
    background: rgba(255, 0, 255, 0.2);
    color: var(--secondary);
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.tools-apps-section .blog-card:hover,
.ls-phase-explore .blog-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.15);
}

/* View All Tools button - cyan */
.view-all-tools-btn {
    background: rgba(0, 255, 234, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.view-all-tools-btn:hover {
    background: rgba(0, 255, 234, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.4);
}

@media (max-width: 1650px) {
    .view-all-tools-btn .btn-default {
        display: none;
    }

    .view-all-tools-btn .btn-hover {
        display: inline;
    }
}

/* Core Expertise / The Mission Section */
.core-expertise-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* The Mission section title spacing */
.core-expertise-section .latest-analysis-title {
    margin-bottom: calc(1.5rem + 10px);
}

.core-expertise-section .latest-analysis-subtitle {
    font-size: calc(1.2rem + 5px);
}

/* About Blurb */
.about-blurb {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    position: relative;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.3);
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-blurb {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
    }

    .about-image img {
        width: 120px;
        height: 120px;
    }

    .about-text p {
        font-size: 1rem;
    }
}

.expertise-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.expertise-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.expertise-card-1 {
    border-left: 4px solid var(--primary);
}

.expertise-card-2 {
    border-left: 4px solid var(--secondary);
}

.expertise-card-3 {
    border-left: 4px solid var(--primary);
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 234, 0.15);
}

.expertise-card-2:hover {
    box-shadow: 0 20px 40px rgba(255, 0, 255, 0.15);
}

.expertise-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.expertise-card-1 .expertise-card-title {
    color: var(--primary);
}

.expertise-card-2 .expertise-card-title {
    color: var(--secondary);
}

.expertise-card-3 .expertise-card-title {
    color: var(--primary);
}

.expertise-card-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.expertise-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.expertise-list li {
    padding: 0.6rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.expertise-list li:last-child {
    border-bottom: none;
}

.expertise-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    font-size: 0.7rem;
}

.expertise-card-1 .expertise-list li::before {
    color: var(--primary);
}

.expertise-card-2 .expertise-list li::before {
    color: var(--secondary);
}

.expertise-card-3 .expertise-list li::before {
    color: var(--primary);
}

@media (max-width: 1500px) {
    .expertise-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .expertise-cards-grid {
        grid-template-columns: 1fr;
    }

    .expertise-card {
        padding: 2rem;
    }

    .expertise-card-title {
        font-size: 1.25rem;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: calc(3rem + 30px);
}

.product-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card.cross-chain-tools {
    background: linear-gradient(135deg, rgba(0, 255, 234, 0.05) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.product-card.research-insights {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.05) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.product-card.cross-chain-tools::before {
    background: var(--gradient-3);
}

.product-card.research-insights::before {
    background: var(--gradient-2);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 234, 0.15);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 15px currentColor);
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
}

.product-card.cross-chain-tools .product-title {
    color: var(--primary);
}

.product-card.research-insights .product-title {
    color: var(--secondary);
}

.product-description {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.product-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.15rem;
    position: relative;
    padding-left: 2rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.product-card.cross-chain-tools .product-cta {
    background: var(--gradient-3);
    color: black;
}

.product-card.research-insights .product-cta {
    background: var(--gradient-2);
    color: black;
}

.product-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 234, 0.3);
}

/* AI Intelligence Section - V0 Style */
.cross-chain-expertise-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cross-chain-expertise-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: calc(1.5rem + 30px);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cross-chain-expertise-subtitle {
    text-align: center;
    font-size: 1.4rem;
    color: #e2e8f0;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cross-chain-solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.solution-category {
    text-align: left;
}

.solution-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.solution-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px currentColor);
    margin-left: 0;
}

.solution-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.bridge-security-category .solution-title {
    color: var(--primary);
}

.protocol-analysis-category .solution-title {
    color: var(--secondary);
}

.solution-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.solution-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.solution-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.bridge-security-category .solution-item-icon {
    background: rgba(0, 255, 234, 0.2);
    color: var(--primary);
}

.protocol-analysis-category .solution-item-icon {
    background: rgba(255, 0, 255, 0.2);
    color: var(--secondary);
}

.solution-item-content h4 {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.solution-item-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.4;
}

/* Split-Screen Comparison Cards */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.comparison-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.comparison-card.cross-chain-tools {
    border-left: 5px solid var(--primary);
}

.comparison-card.research-insights {
    border-left: 5px solid var(--secondary);
}

.comparison-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 234, 0.15);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comparison-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.comparison-card.cross-chain-tools .comparison-badge {
    background: rgba(0, 255, 234, 0.2);
    color: var(--primary);
}

.comparison-card.research-insights .comparison-badge {
    background: rgba(255, 0, 255, 0.2);
    color: var(--secondary);
}

.comparison-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.comparison-result {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.comparison-card.cross-chain-tools .comparison-result {
    color: var(--success);
}

.comparison-card.research-insights .comparison-result {
    color: var(--success);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.15rem;
}

.feature-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.comparison-card.cross-chain-tools .feature-list li::before {
    color: var(--primary);
}

.comparison-card.research-insights .feature-list li::before {
    color: var(--secondary);
}

/* Additional cards from homepage2 */
.ai-showcase-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.showcase-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.1);
    text-decoration: none !important;
}

.showcase-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.2);
}

.showcase-card h3 {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--secondary);
    text-decoration: none !important;
}

.showcase-card p {
    color: var(--text);
    font-size: 1.15rem;
    text-decoration: none !important;
}

/* Final CTA Section */
.cross-chain-cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 30, 0.9) 100%);
    border-radius: 2rem;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.ai-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), #7c3aed);
}

.cross-chain-cta-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.cross-chain-cta-description {
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cross-chain-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: black;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.cross-chain-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 234, 0.4);
}

/* Contact Section */
.cta {
    padding: 4rem 0;
}

.cta-container {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(20, 20, 30, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M0,100 L100,0" stroke="rgba(124, 58, 237, 0.1)" stroke-width="1"/></svg>');
    border-radius: 1rem;
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.cta-text {
    text-align: left;
    padding: 2rem;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.cta-description {
    color: #e2e8f0;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.2rem;
    margin-top: 2rem;
}

.contact-form {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 234, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: black;
    font-weight: 600;
    border-radius: 0.375rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.form-submit:hover {
    background-color: #00d6c4;
    transform: translateY(-2px);
}

.appointment-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 255, 234, 0.05);
    border: 1px solid rgba(0, 255, 234, 0.2);
    border-radius: 0.5rem;
}

.toggle-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.toggle-label {
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.appointment-fields {
    display: none;
    background: rgba(0, 255, 234, 0.05);
    border: 1px solid rgba(0, 255, 234, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.appointment-fields.show {
    display: block;
}

.appointment-header {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* Date/time picker styling */
input[type="datetime-local"] {
    cursor: pointer;
    position: relative;
    color: #a1a1aa;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    background: transparent;
    cursor: pointer;
}

input[type="datetime-local"]:focus {
    color: white;
}

input[type="datetime-local"]:valid {
    color: white;
}

/* Fixed dropdown styling */
select.form-input {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

select.form-input option {
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 0.5rem;
}

select.form-input option:hover {
    background: rgba(0, 255, 234, 0.2);
}

/* Footer Styles */
.custom-footer {
    background: rgba(0, 0, 0, 0.7);
    padding: 3rem 0 2rem 0;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
}

.social-section {
    flex: 1;
    text-align: center;
}

.social-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    transition: all 0.3s ease;
    margin: 5px;
}

.social-links a:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px var(--primary));
}

.social-links svg {
    transition: fill 0.3s ease;
}

.social-links a:hover svg {
    fill: var(--primary) !important;
}

.newsletter-section {
    flex: 1;
    text-align: center;
}

.newsletter-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #27272a;
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
    text-align: center;
}

.newsletter-input::placeholder {
    color: #a1a1aa;
    text-align: center;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 234, 0.2);
}

.newsletter-button {
    background: var(--primary);
    color: #000000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    background: #00d6c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 234, 0.3);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: #27272a;
    margin: 2rem 0 1.5rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-links {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links:hover {
    color: var(--primary);
}

.footer-text {
    color: #a1a1aa;
    font-size: 1rem;
}

.copyright {
    color: #a1a1aa;
    font-size: 1rem;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* Centered footer layout for research and tools pages */
.footer-centered {
    justify-content: center !important;
}

.social-centered {
    text-align: center;
    max-width: none;
}

.social-centered .social-title {
    text-align: center;
    margin-bottom: 1rem;
}

.social-centered .social-links {
    justify-content: center;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px var(--secondary));
    }
    50% {
        filter: drop-shadow(0 0 20px var(--secondary));
    }
}

@keyframes rotate {
    0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes glitch {
    2%, 64% { transform: translate(2px, 0) skew(0deg); }
    4%, 60% { transform: translate(-2px, 0) skew(0deg); }
    62% { transform: translate(0, 0) skew(5deg); }
}

@keyframes glitch-text {
    0% { text-shadow: 0 0 10px var(--primary); }
    2%, 64% { text-shadow: -2px 0 var(--secondary), 2px 0 var(--primary); }
    4%, 60% { text-shadow: 2px 0 var(--secondary), -2px 0 var(--primary); }
    62% { text-shadow: 0 0 10px var(--primary); }
}

/* Hero arrows: converge toward center */
@keyframes arrow-converge-left {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(0.15em); opacity: 1; }
}

@keyframes arrow-converge-right {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(-0.15em); opacity: 1; }
}

/* Media Queries */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: calc(0.25rem + 1px);
    }

    .menu-button {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .hero-visual {
        margin: 2rem auto 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cross-chain-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .footer-main {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .footer-bottom {
        justify-content: space-between;
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    position: absolute;
    top: 100%;
    right: 1rem;
    width: auto;
    min-width: 180px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 255, 234, 0.15);
    border-radius: 12px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    z-index: 50;
    padding: 0.5rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--primary);
    background: rgba(0, 255, 234, 0.08);
}

.mobile-nav-link.active {
    color: var(--primary);
    background: rgba(0, 255, 234, 0.1);
}

.close-menu {
    display: none;
}

/* Tablet Breakpoint */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .services-title,
    .cross-chain-expertise-title {
        font-size: 2.2rem;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .product-description {
        font-size: 1.15rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cross-chain-solutions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile Breakpoint */
@media (max-width: 767px) {
    .container {
        max-width: 95%;
        padding: 0 1rem;
    }
    
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero-centered {
        padding-bottom: 0;
    }

    .hero-subtitle {
        max-width: 100%;
        padding: 0 1.25rem;
        box-sizing: border-box;
        letter-spacing: 0.02em;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-grid > div:first-child {
        text-align: center;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 3rem;
        padding: 0 0.75rem;
        padding-bottom: 0.75rem;
    }

    .stat-card {
        transform: scale(0.85);
        padding: 0.6rem;
    }

    .stat-value {
        font-size: 1.2rem !important;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Cube hidden on mobile, removing redundant styles */
    
    .services-title,
    .cross-chain-expertise-title {
        font-size: 2rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-description {
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
    }

    .footer-links {
        font-size: 1rem;
    }
    
    .copyright {
        order: 1;
    }

    .cta-content {
        grid-template-columns: 1fr;
    }
    
    .form-submit {
        width: 100%;
    }
}

@media (min-width: 1025px) {
    .container {
        max-width: 70%;
    }
    
    
    .solution-icon {
        margin-left: 8rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 70%;
    }
    
    .nav-desktop {
        gap: 0.75rem;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 70%;
    }
}

/* Extra Small Screens (under 450px) */
@media (max-width: 450px) {
    .hero-stats {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .stat-card {
        transform: scale(1);
        padding: 0.75rem 1rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .stat-value {
        font-size: 1.4rem !important;
        margin-bottom: 0;
        order: 1;
        flex-shrink: 0;
    }

    .stat-label {
        font-size: 0.85rem;
        order: 2;
    }
}

/* Tiny Screens (under 350px) */
@media (max-width: 350px) {
    .hero-stats {
        display: none;
    }
}

/* Contact Page Specific Styles */
.contact-hero {
    padding: 3rem 0 1.5rem 0;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.6rem;
    color: #e2e8f0;
    max-width: 40rem;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
    font-weight: 600;
}

.contact-form-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.contact-form-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 700px;
    width: 100%;
}

.form-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.form-description {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form {
    max-width: 100%;
}

/* Success/Error Message Styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert.show {
    display: block;
}

/* Research Dashboard Specific Styles */
.container.research-page {
    max-width: 70%;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.hero-subtext {
    color: var(--text);
    font-style: italic;
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.hero-checkpoints {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.hero-checkpoint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-checkpoint .checkmark {
    color: var(--success);
    font-weight: bold;
}

.research-dashboard {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.research-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dash-title {
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
}

.dash-status {
    color: var(--success);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse-green 2s infinite;
}

.dashboard-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.metric-value {
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
}

.metric-value.positive {
    color: var(--success);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.metric-label-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.metric-value-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-bar {
    width: 100%;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 0.375rem;
    transition: width 0.8s ease;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* CTA Button Styles */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: black;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 234, 0.3);
}

.cta-button.secondary {
    background: linear-gradient(135deg, rgba(0, 255, 234, 0.1), rgba(255, 0, 255, 0.1));
    color: var(--text);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    padding-right: 3.5rem;
}

.cta-button.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0.5rem;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    -webkit-mask-composite: destination-out;
    z-index: -1;
}

.cta-button.secondary::after {
    content: '🤖';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.cta-button.secondary:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 255, 234, 0.2), rgba(255, 0, 255, 0.2));
    color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.3);
    transform: translateY(-3px) scale(1.02);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%);
    }
    40% {
        transform: translateY(-60%);
    }
    60% {
        transform: translateY(-55%);
    }
}

/* Demo Popup Styles */
.demo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.demo-popup.show {
    display: flex;
}

.demo-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 1rem;
    box-shadow: 0 0 50px rgba(0, 255, 234, 0.2);
}

.demo-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.demo-close:hover {
    background: var(--primary);
    color: black;
}

.demo-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.demo-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.demo-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.demo-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.2);
}

.demo-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.demo-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.demo-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.demo-highlight {
    background: rgba(0, 255, 234, 0.1);
    border: 1px solid rgba(0, 255, 234, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.demo-highlight h4 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.demo-highlight p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
}

.demo-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.comparison-item {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.comparison-old {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.comparison-new {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.comparison-item h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.comparison-old h5 {
    color: #ff6b6b;
}

.comparison-new h5 {
    color: #51cf66;
}

/* Who We Help Section */
.who-we-help-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.who-we-help-header {
    text-align: center;
    margin-bottom: 3rem;
}

.who-we-help-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.who-we-help-subtitle {
    color: var(--text);
    font-size: 1.25rem;
    max-width: 50rem;
    margin: 2rem auto 0 auto;
    line-height: 1.6;
    text-align: center;
}

.why-ai-content {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
}

.why-ai-intro {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.challenges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.challenge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(0, 255, 234, 0.1));
    border: 2px solid rgba(124, 58, 237, 0.4);
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15);
}

.challenge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 234, 0.15), transparent);
    transition: left 0.6s ease;
}

.challenge-item:hover::before {
    left: 100%;
}

.challenge-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 234, 0.25);
}

.challenge-icon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(0, 255, 234, 0.5));
}

.challenge-text {
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem;
}

.why-ai-solution {
    font-size: 1.25rem;
    color: var(--text);
    margin: 2rem 0;
    line-height: 1.6;
}

.professionals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem auto;
    max-width: 60rem;
}

.professional-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.professional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.professional-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.2);
}

.professional-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.professional-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.closing-statement {
    text-align: center;
    margin-top: 3rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.closing-text {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.6;
    font-style: italic;
}

/* Solutions Section */
.solutions-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.solutions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.solutions-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.2);
    border-color: var(--primary);
}

.solution-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.solution-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(0, 255, 234, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    border: 1px solid rgba(0, 255, 234, 0.3);
}

.solution-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.solution-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.6;
}

.solution-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.solution-features li {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.solution-features li:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 234, 0.05);
}

.solution-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

/* What Makes Us Different + How It Works Combined Section */
.different-works-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.different-works-header {
    text-align: center;
    margin-bottom: 3rem;
}

.different-works-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.different-works-content {
    max-width: 60rem;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 3rem;
}

.different-intro {
    margin-bottom: 2rem;
}

.different-problems {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.different-problem {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.problem-separator {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.different-solution-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(0, 255, 234, 0.1));
    border: 2px solid rgba(124, 58, 237, 0.4);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15);
}

.different-solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 234, 0.15), transparent);
    transition: left 0.6s ease;
}

.different-solution-card:hover::before {
    left: 100%;
}

.different-solution-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 255, 234, 0.25);
}

.different-solution {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.different-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 50rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(0, 255, 234, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    border: 1px solid rgba(0, 255, 234, 0.3);
}

.benefit-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.1rem;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    z-index: 10;
}

.process-step:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.2);
}

.step-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step-number {
    background: linear-gradient(135deg, rgba(0, 255, 234, 0.2), rgba(255, 0, 255, 0.1));
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 234, 0.3);
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-arrow {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    color: var(--primary);
    font-size: 3rem;
    z-index: 15;
    text-shadow: 0 0 10px var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.process-step:hover .step-arrow {
    opacity: 1;
    transform: translateX(0);
}

.process-step:last-child .step-arrow {
    display: none;
}

.step-content {
    text-align: center;
}

.process-section {
    border-top: 2px solid var(--border-color);
    padding: 3rem 0 0 0;
    margin-top: 3rem;
    position: relative;
}

.process-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.process-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 3rem;
}

.process-connection-line {
    position: absolute;
    top: 3rem;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateX(1rem);
    z-index: 0;
}

.step-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(0, 255, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 1rem auto;
    border: 1px solid rgba(0, 255, 234, 0.3);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1rem 1rem 0 0;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.2);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Animations */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Contact Page Media Queries */
@media (max-width: 1024px) {
    .contact-form-section {
        margin: 0 1rem;
    }
}

/* Research Page Media Queries */
@media (min-width: 640px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .challenges-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .professionals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-form {
        flex-direction: row;
    }
    
    .newsletter-input {
        flex: 1;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .demo-visual-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-comparison {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .professionals-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .demo-visual-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .professionals-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .step-content h3 {
        font-size: 1.25rem;
    }

    .demo-visual-grid {
        grid-template-columns: 1fr;
    }

    .demo-comparison {
        grid-template-columns: 1fr;
    }

    .process-connection-line {
        display: none;
    }
    
    .different-problems {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .different-problem {
        text-align: center;
    }

    .different-problems {
        flex-direction: column;
        gap: 1rem;
    }
    
    .problem-separator {
        display: none;
    }
}

/* Trading Suite Specific Styles */

/* Page Header - Trading */
.page-header {
    padding: 4rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background: none;
}

.hero-container {
    max-width: 70%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    padding: 0 2rem;
}

.hero-content {
    text-align: left;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-description {
    color: #e2e8f0;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-stats-mini {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.mini-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mini-stat-value {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
}

.mini-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 3.5rem;
}

.trading-dashboard-preview {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.trading-dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-preview {
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

/* Animation for the chart */
@keyframes drawLine {
    from {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
    }
}

.chart-svg polyline {
    animation: drawLine 3s ease-in-out infinite alternate;
}

/* Tab Navigation - Trading */
.tab-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0; 
    margin: 0 auto 3rem auto;
    padding: 1rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: thin;
    width: 100%;
}

.tab-navigation::-webkit-scrollbar {
    height: 4px;
}

.tab-navigation::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.tab-navigation::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.tab-label {
    color: #ff00ff;
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 11rem;
}

.tab-label::after {
    content: '▶';
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 255, 234, 0.5);
    padding-left: 0.5rem;
    animation: pulse-arrow 2s infinite;
}

@keyframes pulse-arrow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.tab-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    padding-right: 5rem;
    justify-content: flex-end;
}

.tab-btn {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn.active {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 255, 234, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* News Grid and Cards */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.news-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.2);
    transform: translateY(-5px);
}

.news-title {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-tag {
    background: rgba(0, 255, 234, 0.15);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 234, 0.3);
}

.news-content {
    color: #e2e8f0;
    line-height: 1.6;
}

/* Chart and Technical Analysis */
.chart-placeholder {
    height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-placeholder:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 234, 0.05);
}

.chart-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 234, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.chart-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.5;
}

.chart-text {
    text-align: center;
    color: var(--text-muted);
}

.chart-text h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Trading Tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tool-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.2);
}

.tool-title {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tool-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.tool-placeholder {
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-placeholder:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 234, 0.05);
    color: var(--primary);
}

.placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

/* Calculator Forms */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-display {
    background: rgba(0, 255, 234, 0.1);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.result-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.result-value {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Chart Container Styles */
.chart-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 234, 0.1);
}

.controls-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

select, .trading-suite select, .trading-suite button {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

select:hover, .trading-suite select:hover, .trading-suite button:hover {
    background: rgba(0, 255, 234, 0.1);
    border-color: var(--primary);
}

select:focus, .trading-suite select:focus, .trading-suite button:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 234, 0.2);
}

.upgrade-notice {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.upgrade-btn {
    background: var(--warning);
    color: black;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    background: #ffcc00;
    transform: translateY(-1px);
}

/* Access Gate Modal */
.access-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.access-gate.show {
    display: flex;
}

.gate-content {
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 255, 234, 0.3);
    position: relative;
}

.gate-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.gate-title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.gate-message {
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.gate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gate-btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gate-btn.primary {
    background: var(--primary);
    color: black;
    border: 2px solid var(--primary);
}

.gate-btn.primary:hover {
    background: #00d6c4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 234, 0.3);
}

.gate-btn.secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border-color);
}

.gate-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 255, 234, 0.1);
}

.close-gate {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-gate:hover {
    color: var(--primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.2);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
}

/* Trading Suite Media Queries */
@media (min-width: 768px) {
    .page-header {
        padding: 4rem 2rem;
    }
    
    .page-title {
        font-size: 3.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        max-width: 70%;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-stats-mini {
        gap: 3rem;
    }
    
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .tab-label {
        justify-content: center;
        font-size: 1.2rem;
        padding-left: 0;
    }
    
    .tab-buttons {
        justify-content: center;
        flex-wrap: wrap;
        padding-right: 0;
    }
    
    .gate-content {
        padding: 4rem;
    }
}

@media (min-width: 1024px) {
    .page-header {
        padding: 5rem 2rem;
    }
    
    .page-title {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .hero-container {
        max-width: 70%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .tab-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .tab-label {
        justify-content: center;
        font-size: 1.2rem;
        padding-left: 0;
    }
    
    .tab-buttons {
        justify-content: center;
        flex-wrap: wrap;
        padding-right: 0;
    }
}

/* Blog Page Specific Styles */
.page-header {
    text-align: center;
    padding: 1.5rem 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2rem;
    margin: 0;
    color: #ffffff;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 0;
    font-weight: 400;
}

/* Blog Content */
.featured-section {
    margin-top:0.5rem;
    margin-bottom: 3rem;
    display: none;
}

.section-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.posts-title {
    font-size: 1.6rem;
    color: #ffffff;
    text-shadow: none;
    margin: 0;
    text-align: left;
    flex: 1;
}

.posts-count {
    color: #a1a1aa;
    font-size: 1.1rem;
    font-weight: 400;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .posts-title {
        font-size: 1.5rem;
    }
    
    .posts-count {
        align-self: flex-end;
        font-size: 0.8rem;
    }
}

.featured-post {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: stretch;
}

.featured-post:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 255, 234, 0.2);
}

.featured-image {
    width: 60%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
    flex-shrink: 0;
    aspect-ratio: 16/9;
    min-height: 300px;
}

/* Responsive image adjustments */
@media (min-width: 1200px) {
    .featured-image {
        min-height: 400px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .featured-image {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .featured-post {
        flex-direction: column;
    }
    
    .featured-image {
        width: 100% !important;
        min-height: 250px !important;
        border-radius: 12px 12px 0 0 !important;
        aspect-ratio: 16/9 !important;
    }
    
    .featured-content {
        justify-content: flex-start !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .featured-image {
        min-height: 200px !important;
    }
}

.post-image {
    width: 100%;
    height: 250px; /* Increased height for grid posts */
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* Add lazy loading styles */
.image-loading {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0.3;
    animation: pulse-loading 1.5s ease-in-out infinite;
}

@keyframes pulse-loading {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.image-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.image-error {
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.image-error::after {
    content: "Image unavailable";
}

.featured-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

/* Content ordering and spacing for featured post */
.featured-content .post-title {
    margin-bottom: 0 !important;
    order: 1;
    font-size: 2rem !important;
}

.featured-content .post-excerpt {
    margin-bottom: 0 !important;
    order: 2;
}

.featured-content .post-meta {
    margin-bottom: 0 !important;
    order: 3;
}

.featured-content .read-more-btn {
    order: 4;
    align-self: flex-start !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-title {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more-btn {
    background: var(--primary);
    color: black;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.read-more-btn:hover {
    background: #00d6c4;
    transform: translateY(-2px);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 255, 234, 0.2);
}

.post-content {
    padding: 1.5rem;
}

.post-card .post-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.post-card .post-excerpt {
    margin-bottom: 1rem;
}

.category-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-tag {
    background: rgba(0, 255, 234, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--primary);
    color: black;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.error-message {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 1rem;
    color: #ff4444;
    text-align: center;
    margin: 2rem 0;
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide cube on devices smaller than 950px */
@media (max-width: 950px) {
    .hero-visual {
        display: none;
    }
}

/* =========================================
   Live Systems Scroll-Driven Showcase
   ========================================= */

/* Scroll reveal for sections below the showcase */
.scroll-reveal {
    opacity: 0;
    transform: translateY(-60px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.scroll-reveal[data-sr-delay="1"] { transition-delay: 0.35s; }
.scroll-reveal[data-sr-delay="2"] { transition-delay: 0.65s; }
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Section reveal title — matches Live Systems aesthetic */
.section-reveal-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--text);
    padding-bottom: 0.1em;
}
.sr-title-accent {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Explore All Tools phase layout */
.ls-phase-explore {
    flex-direction: column;
    padding: 2rem;
    overflow: hidden;
}
.ls-explore-inner {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
}
.ls-explore-title {
    text-align: center;
    will-change: transform;
    margin-bottom: 1.5rem;
}
.ls-explore-content {
    opacity: 0;
    will-change: opacity, transform;
}
.ls-mission-content .about-blurb {
    max-height: 70vh;
    overflow-y: auto;
}
.ls-explore-content .blog-card {
    padding: 1.2rem;
}
.ls-explore-content .blog-card-image {
    width: 100%;
    height: 180px;
    margin: 0 0 1rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: unset;
}
.ls-explore-content .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.ls-explore-content .blog-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
}
.ls-explore-content .blog-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Outer runway — creates scroll distance */
.ls-scroll-section {
    position: relative;
    height: 1800vh;
    margin-top: -15vh;
}

/* Sticky viewport pinned to screen */
.ls-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Each phase layered on top of each other */
.ls-phase {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    will-change: opacity, transform;
    transition: none; /* JS drives animation */
    pointer-events: none;
}

.ls-phase-title {
    opacity: 0; /* JS drives fade-in on scroll */
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
    padding: 0 2rem;
    justify-content: center;
}

/* Re-enable pointer events on title */
.ls-phase-title {
    pointer-events: auto;
}

/* Desc and CTA start hidden — JS reveals them on scroll */
.ls-tool-desc,
.ls-tool-cta {
    will-change: opacity, transform;
}

/* --- Title Phase --- */
.ls-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.25;
    display: flex;
    align-items: baseline;
    gap: 0.3em;
    padding-bottom: 0.1em;
}

.ls-title-word {
    color: var(--text);
}

.ls-title-accent {
    background: linear-gradient(
        90deg,
        var(--primary) 0%,
        var(--secondary) 40%,
        #fff 50%,
        var(--secondary) 60%,
        var(--primary) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 25px rgba(0, 255, 234, 0.3));
    padding-bottom: 0.05em;
    animation: ls-shimmer 4s ease-in-out infinite;
}

@keyframes ls-shimmer {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
}

/* Subtle glow pulse on "Live" word */
.ls-title-word {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
    animation: ls-glow 3s ease-in-out infinite;
}

@keyframes ls-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.05); }
    50% { text-shadow: 0 0 40px rgba(0, 255, 234, 0.15), 0 0 80px rgba(0, 255, 234, 0.05); }
}

.ls-title-sub {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 0.3em;
    will-change: opacity, transform;
}

.ls-sub-item {
    font-size: clamp(1.35rem, 2.3vw, 1.65rem);
    color: var(--text);
    font-weight: 400;
    line-height: 1.5;
    will-change: opacity, transform;
}

.ls-star {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1em;
    margin-right: 0.15em;
}

/* --- Tool Phase Layout --- */
.ls-tool-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1300px;
    width: 100%;
    padding: 0 3rem;
}

.ls-row-reverse {
    flex-direction: row-reverse;
}

/* Preview column */
.ls-preview-wrap {
    flex: 1;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(6, 8, 13, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Text column */
.ls-text-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ls-tool-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    padding-bottom: 0.05em;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ls-tool-desc {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: var(--text);
    line-height: 1.7;
    max-width: 520px;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
}

.ls-tool-cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: rgba(0, 255, 234, 0.1);
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 234, 0.35);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: fit-content;
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.08);
    opacity: 0.9;
}

.ls-tool-cta:hover {
    opacity: 1;
    background: rgba(0, 255, 234, 0.2);
    color: #fff;
    border-color: rgba(0, 255, 234, 0.6);
    box-shadow: 0 4px 25px rgba(0, 255, 234, 0.25);
}

.ls-cta-arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s ease;
    font-size: 17px;
}

.ls-tool-cta:hover .ls-cta-arrow {
    transform: translateX(5px);
}

/* --- Pipeline "How It Works" inside preview --- */
.ls-pipeline {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    margin-top: auto;
}

.ls-pipe-header {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    opacity: 0.7;
}

.ls-pipe-steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.ls-pipe-step {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    opacity: 0.35;
    transition: opacity 0.5s ease, color 0.5s ease;
}

.ls-pipe-step.ls-pipe-active {
    opacity: 1;
}

.ls-pipe-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: background 0.5s ease, color 0.5s ease;
}

.ls-pipe-step.ls-pipe-active .ls-pipe-num {
    background: rgba(0, 255, 234, 0.2);
    color: var(--primary);
}

.ls-pipe-icon {
    font-size: 13px;
    line-height: 1;
}

.ls-pipe-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.5s ease;
}

.ls-pipe-step.ls-pipe-active .ls-pipe-label {
    color: var(--primary);
}

.ls-pipe-arrow {
    margin: 0 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    transition: color 0.5s ease;
}

/* Light up arrow after the active step */
.ls-pipe-step.ls-pipe-active ~ .ls-pipe-arrow:first-of-type {
    color: rgba(0, 255, 234, 0.3);
}

/* Pulse indicator on active step number */
.ls-pipe-step.ls-pipe-active .ls-pipe-num::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 255, 234, 0.15);
    animation: ls-pipe-pulse 2s ease-in-out infinite;
}

.ls-pipe-num {
    position: relative;
}

@keyframes ls-pipe-pulse {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.8); opacity: 1; }
}

/* --- Preview Mockup Styles (shared between both tools) --- */
.preview-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-dots {
    display: flex;
    gap: 5px;
}

.preview-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.preview-url {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
    opacity: 0.6;
}

.preview-body {
    padding: 14px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
}

/* Launch button below preview mockup */
.ls-preview-btn {
    display: block;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 255, 234, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.ls-preview-btn:hover {
    background: rgba(0, 255, 234, 0.14);
    color: #fff;
}

/* Shared preview elements */
.prev-tabs {
    display: flex;
    gap: 2px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 2px;
}

.prev-tab {
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.prev-tab.active {
    background: rgba(0, 255, 234, 0.12);
    color: var(--primary);
}

/* Market Analysis preview */
.prev-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.prev-stat {
    background: rgba(12, 14, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prev-stat-label {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prev-stat-val {
    font-size: 13px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.prev-stat-val.regime { color: var(--primary); }
.prev-stat-val.win { color: #22c55e; }
.prev-stat-val.conf { color: var(--secondary); }
.prev-stat-val.alerts { color: #f59e0b; }

.prev-alert {
    background: rgba(12, 14, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid #22c55e;
    border-radius: 6px;
    padding: 10px;
    flex: 1;
}

.prev-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.prev-alert-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.prev-badge {
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.badge-green {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.prev-alert-body {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.prev-alert-tags {
    display: flex;
    gap: 4px;
}

.prev-tag {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
}

.tag-cyan {
    background: rgba(0, 255, 234, 0.12);
    color: var(--primary);
}

.tag-magenta {
    background: rgba(255, 0, 255, 0.12);
    color: var(--secondary);
}

.tag-dim {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.prev-discord-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.15);
    border-radius: 5px;
}

.prev-discord-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5865f2;
    flex-shrink: 0;
}

.prev-discord-msg {
    font-size: 10px;
    color: #a5b0f0;
    flex: 1;
}

.prev-discord-time {
    font-size: 9px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* API Trading preview */
.prev-market-info {
    background: rgba(12, 14, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 10px;
}

.prev-market-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.prev-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.prev-price-box {
    padding: 8px;
    border-radius: 6px;
    text-align: center;
}

.prev-price-box.yes {
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.prev-price-box.no {
    background: rgba(255, 68, 68, 0.06);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.prev-price-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.prev-price-box.yes .prev-price-label { color: #00ff88; }
.prev-price-box.no .prev-price-label { color: #ff4444; }

.prev-price-val {
    font-size: 16px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.prev-price-box.yes .prev-price-val { color: #00ff88; }
.prev-price-box.no .prev-price-val { color: #ff4444; }

.prev-order-form {
    background: rgba(12, 14, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 8px;
}

.prev-toggle-row {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    align-items: center;
}

.prev-toggle {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.prev-toggle.active-yes {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.prev-toggle.active-buy {
    background: rgba(0, 255, 234, 0.15);
    color: var(--primary);
}

.prev-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 2px;
}

.prev-input-row {
    display: flex;
    gap: 6px;
}

.prev-input {
    flex: 1;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text);
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
}

.prev-order-btn {
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--primary), #00b8d4);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
}

.prev-portfolio {
    background: rgba(12, 14, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 8px;
}

.prev-port-header {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.prev-port-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.prev-port-label {
    font-size: 10px;
    color: var(--text-muted);
}

.prev-port-val {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}

.prev-port-val.pnl-pos { color: #22c55e; }

/* --- Mobile: disable sticky, stack vertically --- */
@media (max-width: 900px) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ls-scroll-section {
        height: auto;
    }

    .ls-sticky {
        position: relative;
        height: auto;
        flex-direction: column;
        gap: 4rem;
        padding: 3rem 0;
    }

    .ls-phase {
        position: relative;
        inset: auto;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto;
        overflow: visible;
    }

    .ls-explore-content,
    .ls-phase-explore .ls-explore-content {
        opacity: 1 !important;
        transform: none !important;
    }

    .ls-explore-title,
    .ls-phase-explore .ls-explore-title {
        text-align: left !important;
        transform: none !important;
    }

    .ls-phase-title {
        opacity: 1 !important;
        transform: none !important;
        padding: 1rem 2rem;
        margin-top: 2rem;
    }

    .ls-sub-item {
        opacity: 1 !important;
        transform: none !important;
    }

    .ls-phase-tool .ls-tool-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
        overflow: visible;
    }

    .ls-row-reverse {
        flex-direction: column;
    }

    /* Flatten text-wrap children into the grid */
    .ls-text-wrap {
        display: contents;
        text-align: center;
    }

    /* Mobile order: title → desc → preview → CTA */
    .ls-tool-title {
        order: 1;
        text-align: center;
    }

    .ls-tool-desc {
        order: 2;
        text-align: center;
        max-width: 100%;
        overflow: visible;
        white-space: normal;
        text-overflow: unset;
        opacity: 1 !important;
        transform: none !important;
    }

    .ls-preview-wrap {
        order: 3;
        max-width: 85vw;
        width: 100%;
        justify-self: center;
    }

    .ls-tool-cta {
        order: 4;
        justify-self: center;
        opacity: 1 !important;
        transform: none !important;
    }

}

@media (max-width: 480px) {
    .ls-title {
        font-size: 2.4rem;
        flex-direction: row;
        gap: 0.3em;
    }

    .ls-tool-title {
        font-size: 1.8rem;
    }

    .preview-body {
        min-height: 240px;
        padding: 10px;
        gap: 6px;
    }

    .prev-stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .prev-price-val {
        font-size: 14px;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .ls-phase,
    .ls-tool-cta {
        transition: none;
    }
}

