/* ==========================================================================
   CLEARPATH VISUAL POLISH - Premium Enhancements
   ========================================================================== */

/* ==========================================================================
   1. HEADER GLASSMORPHISM
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
    padding: 0.5rem 0;
}

/* Hide header initially - homepage only */
body.homepage header:not(.scrolled) {
    transform: translateY(-100%);
    opacity: 0;
}

header.scrolled {
    transform: translateY(0);
    opacity: 1;
    background: rgba(15, 0, 54, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(47, 243, 224, 0.15) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0;
}

header.scrolled nav {
    padding: 1rem 2rem;
}

header.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.8) !important;
}

header.scrolled .nav-links a:hover {
    color: var(--cyber-cyan) !important;
}

header.scrolled .nav-links a.nav-cta {
    color: var(--deep-purple) !important;
}

header.scrolled .nav-logo {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   2. ENHANCED HERO SECTION
   ========================================================================== */
/* Homepage hero only - not about/other pages */
.hero:not(.hero-about):not(.hero-simple) {
    margin-top: 0;
    padding-top: 120px;
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #0F0036 0%,
        #1a0050 25%,
        #0F0036 50%,
        #0d002e 75%,
        #0F0036 100%
    ) !important;
    position: relative;
}

/* Mesh gradient overlay - homepage only */
.hero:not(.hero-about):not(.hero-simple)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(47, 243, 224, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(158, 255, 31, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Sparkle stars overlay - homepage only */
.hero:not(.hero-about):not(.hero-simple)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.8) 50%, transparent 100%),
        radial-gradient(2px 2px at 85% 15%, rgba(47, 243, 224, 0.9) 50%, transparent 100%),
        radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
        radial-gradient(2px 2px at 70% 45%, rgba(158, 255, 31, 0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 50% 85%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
        radial-gradient(2px 2px at 15% 55%, rgba(47, 243, 224, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 90% 70%, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
        radial-gradient(2px 2px at 40% 30%, rgba(158, 255, 31, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 65% 90%, rgba(47, 243, 224, 0.6) 50%, transparent 100%),
        radial-gradient(2px 2px at 25% 10%, rgba(255, 255, 255, 0.8) 50%, transparent 100%),
        radial-gradient(1px 1px at 78% 25%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
        radial-gradient(2px 2px at 5% 80%, rgba(47, 243, 224, 0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 95% 50%, rgba(158, 255, 31, 0.6) 50%, transparent 100%),
        radial-gradient(2px 2px at 55% 5%, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 35% 95%, rgba(47, 243, 224, 0.5) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: sparkle-twinkle 4s ease-in-out infinite;
}

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Keep the corner accents */
.hero-corner-tl,
.hero-corner-br {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.6;
    z-index: 1;
}

.hero-corner-tl {
    top: 40px;
    left: 40px;
    border-left: 2px solid var(--cyber-cyan);
    border-top: 2px solid var(--cyber-cyan);
}

.hero-corner-br {
    bottom: 40px;
    right: 40px;
    border-right: 2px solid var(--cyber-cyan);
    border-bottom: 2px solid var(--cyber-cyan);
}

.hero:not(.hero-about):not(.hero-simple) h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero:not(.hero-about):not(.hero-simple) .subheadline {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
}

.hero:not(.hero-about):not(.hero-simple) .hero-content {
    padding: 3rem 0;
}

.hero:not(.hero-about):not(.hero-simple) .hero-buttons {
    margin-top: 3rem;
    gap: 1.5rem;
}

/* Hero entrance animations */
.hero-content.animate-in .hero-text h1 {
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-content.animate-in .hero-text .subheadline:first-of-type {
    animation: heroFadeUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-content.animate-in .hero-text .subheadline:last-of-type {
    animation: heroFadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-content.animate-in .hero-buttons {
    animation: heroFadeUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   3. MICRO-INTERACTIONS & HOVER STATES
   ========================================================================== */

/* Buttons - enhanced hover */
.btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(158, 255, 31, 0.4), 0 0 25px rgba(158, 255, 31, 0.3);
}

.btn:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-outline {
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 243, 224, 0.3);
}

/* Nav CTA button */
.nav-cta {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(158, 255, 31, 0.4);
}

/* Links - underline animation */
.nav-links a {
    position: relative;
    transition: all 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyber-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Footer links hover */
.footer-links a {
    transition: all 0.2s ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 6px;
    height: 2px;
    background: var(--cyber-cyan);
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--deep-purple);
    padding-left: 8px;
}

.footer-links a:hover::before {
    transform: translateY(-50%) scaleX(1);
}

/* Cards - lift and shadow */
.column,
.why-item,
.pricing-card,
.accordion-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.column:hover,
.why-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 0, 54, 0.25);
}

/* Accordion hover */
.accordion-header {
    transition: all 0.2s ease;
}

.accordion-header:hover {
    background: var(--gray-50);
}

/* ==========================================================================
   4. SCROLL ANIMATIONS (AOS-style)
   ========================================================================== */

/* Base state for animated elements */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Section-specific animations */
.three-column .column {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.three-column.visible .column:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.three-column.visible .column:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.three-column.visible .column:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

.pricing-grid .pricing-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.pricing-grid.visible .pricing-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.pricing-grid.visible .pricing-card:nth-child(2) { opacity: 1; transform: scale(1.03) translateY(0); transition-delay: 0.2s; }
.pricing-grid.visible .pricing-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

.why-grid .why-item {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.why-grid.visible .why-item {
    opacity: 1;
    transform: translateY(0);
}

.why-grid.visible .why-item:nth-child(1) { transition-delay: 0.05s; }
.why-grid.visible .why-item:nth-child(2) { transition-delay: 0.1s; }
.why-grid.visible .why-item:nth-child(3) { transition-delay: 0.15s; }
.why-grid.visible .why-item:nth-child(4) { transition-delay: 0.2s; }
.why-grid.visible .why-item:nth-child(5) { transition-delay: 0.25s; }
.why-grid.visible .why-item:nth-child(6) { transition-delay: 0.3s; }

/* ==========================================================================
   5. PRODUCT SCREENSHOTS - Browser Mockup
   ========================================================================== */
.browser-mockup {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(47, 243, 224, 0.1);
}

.browser-header {
    background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #28ca41; }

.browser-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 12px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.browser-url-icon {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.browser-url-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.browser-content {
    position: relative;
    overflow: hidden;
    /* Fixed aspect ratio to prevent layout shift */
    aspect-ratio: 16 / 10;
    background: #1a1a2e;
}

.browser-content img,
.browser-content .features-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Replace features-carousel styling */
.features-carousel {
    cursor: zoom-in;
}

/* ==========================================================================
   6. TRUST BAR - Framework Badges
   ========================================================================== */
.trust-bar {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 4rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.trust-bar-title {
    text-align: center;
    font-family: 'Game Station', 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--deep-purple, #0F0036);
    margin-bottom: 2rem;
    font-weight: 600;
}

.trust-bar-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 140px;
}

.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--cyber-cyan);
}

/* Trust Badge Tooltips */
.trust-badge {
    position: relative;
}

.trust-badge-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: var(--deep-purple);
    color: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(15, 0, 54, 0.4);
}

.trust-badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--deep-purple);
}

.trust-badge:hover .trust-badge-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.trust-badge-tooltip strong {
    display: block;
    color: var(--cyber-cyan);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.trust-badge-tooltip span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge svg {
    width: 32px;
    height: 32px;
    fill: var(--deep-purple);
}

.trust-badge-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
}

/* Inline framework badges (in features section) */
.framework-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.framework-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.25s ease;
}

.framework-badge:hover {
    border-color: var(--deep-purple);
    color: var(--deep-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.framework-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   7. CIRCUIT BOARD CORNER ACCENTS
   ========================================================================== */
.circuit-accent {
    position: relative;
    overflow: visible;
}

.circuit-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 10;
}

.circuit-corner-tl {
    top: -10px;
    left: -10px;
}

.circuit-corner-br {
    bottom: -10px;
    right: -10px;
}

/* Glow effect on the circuit corners */
.circuit-corner svg {
    filter: drop-shadow(0 0 8px rgba(47, 243, 224, 0.5));
}

/* ==========================================================================
   8. PRICING SECTION ENHANCEMENTS
   ========================================================================== */
.pricing {
    padding: 6rem 0;
}

.pricing-card.featured {
    position: relative;
    border: 2px solid var(--deep-purple);
    background: linear-gradient(180deg, var(--white) 0%, rgba(47, 243, 224, 0.02) 100%);
    overflow: visible;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--deep-purple) 0%, #1a0050 100%);
    color: var(--white);
    font-family: 'Game Station', 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 20px rgba(15, 0, 54, 0.4);
    white-space: nowrap;
}

/* Subtle inner glow for featured card */
.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    background: radial-gradient(ellipse at 50% 0%, rgba(47, 243, 224, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ==========================================================================
   9. SECTION SPACING
   ========================================================================== */
section {
    padding: 5rem 0;
}

.problem-solution,
.features,
.why,
.about,
.pricing {
    padding: 6rem 0;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3.5rem;
}

/* Content containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Text content max-width */
.about-content,
.section-subtitle,
.features-subtitle {
    max-width: 700px;
}

/* ==========================================================================
   10. FOOTER ENHANCEMENTS
   ========================================================================== */
footer {
    background: #0a0020;
    color: var(--white);
    padding: 5rem 0 2rem;
    border-top: none;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cyber-cyan) 50%, transparent 100%);
}

.footer-section h3 {
    color: var(--white);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--cyber-cyan);
}

.footer-links a::before {
    background: var(--cyber-cyan);
}

.footer-brand .tagline {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
    margin-top: 1rem;
}

.footer-legal {
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
    color: var(--cyber-cyan);
}

.contact {
    color: rgba(255, 255, 255, 0.6);
}

.contact a {
    color: var(--cyber-cyan);
}

/* Footer logo filter for dark bg */
#footer-logo {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   11. TYPOGRAPHY POLISH
   ========================================================================== */
body {
    line-height: 1.7;
}

p {
    line-height: 1.75;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.4;
    font-weight: 600;
}

/* ==========================================================================
   12. PRE-FOOTER CTA
   ========================================================================== */
.pre-footer-cta {
    background: linear-gradient(135deg, var(--deep-purple) 0%, #1a0050 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pre-footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(47, 243, 224, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(158, 255, 31, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.pre-footer-cta h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.pre-footer-cta .btn {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   HIGHLIGHT TEXT - Neon cyan for key phrases
   ========================================================================== */
.highlight {
    color: var(--cyber-cyan, #2FF3E0);
    font-weight: 600;
}

/* ==========================================================================
   OFFER GRID - What We Offer Section
   ========================================================================== */
.features {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(15, 0, 54, 0.1) 50%, transparent 100%);
}

.features-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.features-layout > * {
    align-self: start;
}

.features-image-container {
    position: relative;
}

@media (max-width: 968px) {
    .features-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-image-container {
        position: relative;
        top: 0;
    }
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

/* Stacked layout for side-by-side with screenshots */
.offer-grid-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.offer-card {
    background: var(--white);
    border: 1px solid rgba(15, 0, 54, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 0, 54, 0.06);
    display: block;
    cursor: pointer;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(47, 243, 224, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.offer-card:hover {
    border-color: rgba(47, 243, 224, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 0, 54, 0.12);
}

.offer-card:hover::before {
    opacity: 1;
}

.offer-card[data-expanded="true"] {
    border-color: var(--cyber-cyan);
    box-shadow: 0 8px 32px rgba(47, 243, 224, 0.25);
}

.offer-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.offer-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--cyber-cyan) 0%, rgba(47, 243, 224, 0.7) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover .offer-card-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(47, 243, 224, 0.4);
}

.offer-card-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--deep-purple);
}

.offer-card-body {
    flex: 1;
    min-width: 0;
}

.offer-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--deep-purple, #0F0036);
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
    flex: 1;
    padding-right: 2rem;
}

/* No padding needed for static cards */
.values-grid .offer-card-title {
    padding-right: 0;
}

.offer-card:hover .offer-card-title {
    color: var(--deep-purple, #0F0036);
}

/* Default: expandable content (for What We Offer) */
.offer-card-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin 0.3s ease;
    margin-top: 0;
    padding-left: calc(40px + 1rem); /* icon width + gap */
}

.offer-card[data-expanded="true"] .offer-card-content {
    max-height: 300px;
    opacity: 1;
    margin-top: 0.75rem;
}

/* Static cards: always visible content (for Our Values) */
.values-grid .offer-card {
    cursor: default;
}

.values-grid .offer-card-content {
    max-height: none;
    opacity: 1;
    margin-top: 0.75rem;
    overflow: visible;
}

.values-grid .offer-card-toggle {
    display: none;
}

.offer-card-content p {
    font-size: 0.875rem;
    color: var(--charcoal, #222222);
    opacity: 0.75;
    line-height: 1.55;
    margin: 0;
}

.offer-card-toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 0, 54, 0.08);
    transition: all 0.3s ease;
}

.offer-card:hover .offer-card-toggle {
    background: rgba(47, 243, 224, 0.3);
}

.offer-card-toggle svg {
    width: 14px;
    height: 14px;
    fill: var(--deep-purple, #0F0036);
    transition: transform 0.3s ease;
}

.offer-card[data-expanded="true"] .offer-card-toggle {
    background: var(--cyber-cyan);
}

.offer-card[data-expanded="true"] .offer-card-toggle svg {
    transform: rotate(45deg);
}

/* Mobile responsive for offer grid */
@media (max-width: 768px) {
    .offer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .offer-grid-stacked {
        gap: 0.5rem;
    }

    .offer-card {
        padding: 1rem 1.25rem;
    }

    .offer-card-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .offer-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .offer-card-title {
        font-size: 0.9rem;
    }

    .offer-card-content {
        padding-left: calc(36px + 1rem); /* smaller icon width + gap */
    }

    .offer-card-content p {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subheadline {
        font-size: 1.1rem;
    }

    section {
        padding: 3.5rem 0;
    }

    h2 {
        font-size: 2rem;
    }

    .trust-bar-badges {
        gap: 1rem;
    }

    .trust-badge {
        min-width: 120px;
        padding: 1rem 1.25rem;
    }

    .circuit-corner {
        width: 50px;
        height: 50px;
    }

    .browser-mockup {
        transform: none;
    }

    .browser-mockup:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-outline {
        width: 100%;
        text-align: center;
    }

    .trust-badge {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: unset;
    }
}

/* Mobile fixes */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }

    /* Fix about page subtitle overflow */
    .hero-about-text .subtitle,
    .hero .subtitle {
        max-width: 100% !important;
        padding: 0 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Reduce animations on mobile */
@media (max-width: 768px) {
    /* Disable glitch animation on mobile */
    .glitch {
        animation: none !important;
    }

    .glitch::before,
    .glitch::after {
        display: none !important;
    }

    /* Simplify hero entrance animations */
    .hero-content.animate-in .hero-text h1,
    .hero-content.animate-in .hero-text .subheadline,
    .hero-content.animate-in .hero-buttons {
        animation: simpleFadeIn 0.6s ease forwards !important;
    }

    .hero-content.animate-in .hero-text .subheadline:first-of-type {
        animation-delay: 0.1s !important;
    }

    .hero-content.animate-in .hero-text .subheadline:last-of-type {
        animation-delay: 0.2s !important;
    }

    .hero-content.animate-in .hero-buttons {
        animation-delay: 0.3s !important;
    }

    @keyframes simpleFadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

/* ==========================================================================
   MOBILE-SPECIFIC FIXES - Hero & Header
   ========================================================================== */
@media (max-width: 768px) {
    /* Header - ensure proper mobile display */
    header nav {
        padding: 0.75rem 1rem !important;
    }

    header .nav-links {
        display: none !important;
    }

    header .mobile-menu-toggle {
        display: flex !important;
    }

    header.scrolled nav {
        padding: 0.75rem 1rem !important;
    }

    /* Hero - fix overflow and sizing */
    .hero:not(.hero-about):not(.hero-simple) {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-content {
        padding: 0 1rem !important;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    /* Fix hero text overflow - use viewport units */
    .hero:not(.hero-about):not(.hero-simple) h1,
    .hero h1 {
        font-size: 5.5vw !important;
        line-height: 1.25 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        padding: 0 0.25rem;
        display: block;
        letter-spacing: -0.02em;
    }

    .hero:not(.hero-about):not(.hero-simple) .subheadline,
    .hero .subheadline {
        font-size: 3.5vw !important;
        line-height: 1.5 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding: 0 0.25rem;
    }

    .hero p {
        font-size: 3.5vw !important;
        line-height: 1.6 !important;
        padding: 0 0.25rem;
        max-width: 100%;
    }

    /* Hero buttons - stack and fit width */
    .hero-buttons {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-outline {
        width: 100% !important;
        max-width: 280px;
        margin: 0 auto;
        text-align: center;
        font-size: 0.9rem !important;
        padding: 0.875rem 1.5rem !important;
    }

    /* Hide corner accents on mobile - they cause overflow */
    .hero-corner-tl,
    .hero-corner-br {
        display: none;
    }

    /* Container padding fix */
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .hero:not(.hero-about):not(.hero-simple) h1,
    .hero h1 {
        font-size: 5vw !important;
    }

    .hero:not(.hero-about):not(.hero-simple) .subheadline,
    .hero .subheadline {
        font-size: 3.2vw !important;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-outline {
        max-width: 240px;
        font-size: 3.5vw !important;
        padding: 0.75rem 1rem !important;
    }
}
