﻿/**
 * DHL RateFlow - Professional Landing Page Styles
 * 
 * @description: Clean logistics-inspired design (blue/orange/white)
 * @version: 4.0.0
 * @author: DHL RateFlow
 */

/* ========== CSS VARIABLES ========== */
:root {
    /* Primary Brand Colors - Clean & Professional */
    --primary-blue: #2563EB;         /* Trust blue - primary brand */
    --primary-navy: #1E3A8A;         /* Deep navy - headings */
    --primary-light: #DBEAFE;        /* Light blue - backgrounds */
    
    /* Accent Colors - Energy & Action */
    --accent-orange: #F97316;        /* Energetic orange - CTAs */
    --accent-amber: #FBBF24;         /* Warm amber - highlights */
    --accent-green: #10B981;         /* Success green */
    
    /* Neutral Palette - Clean & Modern */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Shadows - Depth System */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored-blue: 0 10px 30px rgba(37, 99, 235, 0.2);
    --shadow-colored-orange: 0 10px 30px rgba(249, 115, 22, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
}

.btn-nav {
    background: var(--accent-orange);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.btn-nav:hover {
    background: #EA580C;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    padding: 120px 20px 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
}

.hero-background {
    display: none;
}

/* ========== DATA FLOW ANIMATION ========== */
.data-flow-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Flow section below hero content - centered, visible on all devices */
.flow-section {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 60px 20px 80px;
}

.flow-canvas {
    position: absolute;
    inset: 0;
    z-index: 1; /* below nodes (z=2) but above background */
    pointer-events: none;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    flex-shrink: 0;
}

.flow-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-icon.shopify { background: linear-gradient(135deg, #96bf48 0%, #5e8e3e 100%); }
.flow-icon.rateflow { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.flow-icon.dhl { background: linear-gradient(135deg, #ffcc00 0%, #d40511 100%); }
.flow-icon.checkout { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); }

/* Synchronized pulse animation triggered only when packet hits */
@keyframes nodePulseHit {
    0% { 
        transform: scale(1); 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
    40% { 
        transform: scale(1.15); 
        box-shadow: 0 12px 48px rgba(255, 255, 255, 0.6), 
                    0 0 30px rgba(249, 115, 22, 0.8),
                    0 0 60px rgba(249, 115, 22, 0.4);
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
}

.flow-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Connection lines between nodes - completely hidden */
.flow-connector {
    display: none;
}

/* Floating data particles */
.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(249, 115, 22, 0.5);
    border-radius: 50%;
    animation: floatParticle 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 25%; top: 70%; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(3) { left: 40%; top: 30%; animation-delay: 2s; animation-duration: 6s; }
.particle:nth-child(4) { left: 55%; top: 80%; animation-delay: 3s; animation-duration: 8s; }
.particle:nth-child(5) { left: 70%; top: 25%; animation-delay: 4s; animation-duration: 10s; }
.particle:nth-child(6) { left: 85%; top: 60%; animation-delay: 5s; animation-duration: 7s; }
.particle:nth-child(7) { left: 15%; top: 50%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(8) { left: 60%; top: 45%; animation-delay: 2.5s; animation-duration: 8s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    25% { transform: translateY(-30px) scale(1.2); opacity: 0.6; }
    50% { transform: translateY(-10px) scale(0.8); opacity: 0.4; }
    75% { transform: translateY(-40px) scale(1.1); opacity: 0.5; }
}

/* Grid overlay for tech feel */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Responsive flow diagram - keep horizontal on all devices */
@media (max-width: 768px) {
    .flow-diagram {
        flex-direction: row;
        gap: 20px;
        align-items: center;
        justify-content: center;
        overflow-x: auto;
        padding: 10px;
    }
    
    .flow-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        border-radius: 50%; /* Make glow circular on mobile */
    }
    
    .flow-label {
        font-size: 0.7rem;
    }
    
    /* Move DHLRATEFLOW label to the right to avoid animation path */
    .flow-node:nth-child(2) .flow-label {
        margin-left: 40px;
    }
    
    .flow-section {
        padding: 20px 10px 40px;
        margin-top: 30px;
    }
    
    .flow-node {
        min-width: 80px;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 32px;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease;
    backdrop-filter: blur(10px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease 0.2s both;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(15, 32, 39, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    position: relative;
    display: inline-block;
    color: #FFD700;
    text-shadow: 0 4px 12px rgba(255, 107, 53, 0.8), 0 2px 6px rgba(255, 107, 53, 0.6), 0 0 30px rgba(255, 215, 0, 0.5);
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: -4px;
    right: -4px;
    height: 16px;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.4), rgba(247, 127, 0, 0.5), rgba(255, 107, 53, 0.4));
    opacity: 0.8;
    z-index: -1;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 48px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
    font-weight: 400;
    color: #FFFFFF; /* pure white for maximum readability */
    text-shadow: none;
    -webkit-text-stroke: 0;
}

/* ========== BUTTONS ========== */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 70px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #EA580C 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #EA580C 0%, #DC2626 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
}

.btn-secondary:hover {
    background: var(--accent-orange);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored-blue);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.25rem;
}

/* ========== HERO STATS ========== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat {
    text-align: center;
    padding: 28px;
    background: var(--white);
    border-radius: 16px;
    border: 2px solid var(--accent-orange);
    transition: var(--transition-base), transform 0.2s ease-out;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.15);
    will-change: transform;
}

.stat:hover {
    border-color: #EA580C;
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.25);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #EA580C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ========== FEATURES SECTION ========== */
.features {
    padding: 100px 20px;
    background:
        radial-gradient(1200px 500px at 10% 0%, rgba(37,99,235,0.06) 0%, transparent 60%),
        radial-gradient(800px 400px at 90% 20%, rgba(249,115,22,0.06) 0%, transparent 70%),
        var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary-navy);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--gray-50);
    padding: 0;
    border-radius: 16px;
    transition: var(--transition-base), transform 0.1s ease-out;
    border: 2px solid var(--gray-200);
    overflow: hidden;
    will-change: transform;
    transform-style: preserve-3d;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
    background: var(--white);
}

.feature-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.feature-card:hover .feature-image {
    transform: scale(1.1);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-navy) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon-wrapper {
    /* Avoid scaling to prevent text/icon blur due to GPU compositing */
    transform: none;
    box-shadow: var(--shadow-colored-blue);
}

.feature-icon-wrapper i {
    font-size: 2rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--primary-navy);
    padding: 0 40px;
    padding-top: 24px;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1.05rem;
    padding: 0 40px 40px;
}

/* ========== VIDEO DEMO SECTION ========== */
.video-demo {
    padding: 100px 20px;
    background:
        radial-gradient(1200px 600px at 15% 10%, rgba(37,99,235,0.12) 0%, transparent 70%),
        radial-gradient(1000px 500px at 85% 90%, rgba(249,115,22,0.12) 0%, transparent 75%),
        linear-gradient(180deg, rgba(219,234,254,0.9) 0%, rgba(243,244,246,0.9) 50%, rgba(219,234,254,0.9) 100%);
    background-position: 50% 50%, 50% 50%, center;
    background-attachment: fixed, fixed, scroll;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-2xl);
    background: var(--gray-900);
    border: 3px solid var(--primary-blue);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

/* ========== PRICING SECTION ========== */
.pricing {
    padding: 100px 20px;
    background:
        radial-gradient(1000px 450px at 0% 30%, rgba(37,99,235,0.05) 0%, transparent 70%),
        radial-gradient(900px 400px at 100% 70%, rgba(249,115,22,0.05) 0%, transparent 70%),
        var(--gray-50);
    background-position: 50% 50%, 50% 50%, center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: var(--transition-base), transform 0.1s ease-out;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden; /* Reduce rendering artifacts when moving card */
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    border-color: var(--primary-blue);
    /* Move without scaling to avoid subpixel text blurring */
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    /* Remove scale to keep crisp text */
    transform: none;
}

.pricing-card.featured::before {
    transform: scaleX(1);
}

.badge {
    position: absolute;
    top: 10px; /* clearly visible inside card */
    right: 12px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 800;
    transform: none; /* avoid covering plan name */
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(249,115,22,0.35);
    border: 2px solid rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    z-index: 3;
}

.pricing-header {
    margin-bottom: 32px;
    padding-top: 18px; /* create room for badge */
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.plan-price {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 10px;
}

.currency {
    font-size: 2rem;
    vertical-align: super;
}

.plan-period {
    color: var(--gray-600);
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    margin: 32px 0;
    text-align: left;
}

.plan-features li {
    padding: 12px 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.plan-features i {
    color: var(--accent-green);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 100px 20px;
    /* Clean static background without animation */
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 50%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.15); opacity: 0.25; }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--white);
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 44px;
    opacity: 0.9;
    line-height: 1.8;
}

.cta-note {
    margin-top: 24px;
    font-size: 0.95rem;
    opacity: 0.7;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 70px 20px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 44px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 18px;
}

.footer-description {
    line-height: 1.8;
    opacity: 0.8;
    font-size: 1rem;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    padding-top: 44px;
    border-top: 1px solid var(--gray-700);
}

.footer-notice {
    margin-bottom: 24px;
    padding: 22px;
    background: var(--gray-800);
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.8;
    border: 1px solid var(--gray-700);
}

.footer-notice strong {
    color: var(--accent-orange);
}

.footer-copyright {
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.6;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .pricing-grid {
        gap: 20px;
    }
    
    .pricing-card {
        padding: 36px;
    }
    
    .plan-name {
        font-size: 1.35rem;
    }
    
    .plan-price {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    .pricing-grid {
        gap: 16px;
    }
    
    .pricing-card {
        padding: 32px;
    }
    
    .plan-name {
        font-size: 1.25rem;
    }
    
    .plan-price {
        font-size: 3rem;
    }
    
    .plan-features li {
        font-size: 0.9rem;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 90px 20px 70px;
        /* Avoid janky snapping on mobile: fixed backgrounds cause repaint issues */
        background-attachment: scroll;
        background-position: center;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
        padding: 0 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px;
    }
    
    .stat {
        padding: 20px 16px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        padding: 0 10px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 10px;
    }
    
    .feature-card {
        margin: 0;
    }
    
    .feature-title {
        padding: 0 20px;
        padding-top: 20px;
        font-size: 1.25rem;
    }
    
    .feature-description {
        padding: 0 20px 20px;
        font-size: 0.95rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
    
    .plan-name {
        font-size: 1.35rem;
    }
    
    .plan-price {
        font-size: 3rem;
    }
    
    .plan-features li {
        font-size: 0.95rem;
        padding: 10px 0;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .cta-title {
        font-size: 1.75rem;
        padding: 0 10px;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Disable fixed attachments in parallax sections for smoother mobile scrolling */
    .video-demo {
        background-attachment: scroll, scroll, scroll;
        background-position: center center, center center, center;
    }
    .pricing {
        background-attachment: scroll, scroll, scroll;
        background-position: center center, center center, center;
    }
    .cta-section {
        background-attachment: scroll;
        background-position: center;
    }
    
    /* Footer mobile adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-notice {
        padding: 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
.hero-title {
    font-size: 1.75rem;
}
    
.hero-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
}
    
.btn {
    padding: 12px 20px;
    font-size: 0.95rem;
}
    
.btn-large {
    padding: 14px 24px;
    font-size: 1rem;
}
    
.plan-price {
    font-size: 2.5rem;
}
    
.flow-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    border-radius: 50%; /* Ensure circular glow on smallest screens */
}
    
.flow-label {
    font-size: 0.65rem;
}
    
.stat-number {
    font-size: 1.75rem;
}
    
.section-title {
    font-size: 1.5rem;
}
    
.cta-title {
    font-size: 1.5rem;
}
    
    /* FAQ section mobile fixes */
    .faq-collapsible .container {
        padding: 0 10px;
    }
    
    #faqToggle {
        font-size: 0.9rem;
        padding: 10px 14px !important;
    }
    
    .faq-grid {
        gap: 12px !important;
    }
    
    .faq-card {
        padding: 12px !important;
    }
    
    .faq-q {
        font-size: 0.9rem !important;
    }
    
    .faq-a {
        font-size: 0.85rem !important;
    }
    
    /* Legal consent mobile fix */
    .legal-consent label {
        font-size: 0.85rem !important;
    }
}

/* Mobile flow overrides: canvas controls single bidirectional packet */
@media (max-width: 768px) {
  .flow-canvas { 
    z-index: 2; 
    opacity: 1;
    filter: brightness(1.1) contrast(1.1);
  }
  .flow-diagram { 
    position: relative; 
    z-index: 3;
  }
  /* Hide CSS connectors - canvas draws the single packet */
  .flow-connector::before { 
    display: none !important;
  }
  /* Ensure flow section has proper height on mobile */
  .flow-section {
    min-height: 200px;
  }
}

/* ========== ANIMATIONS ========== */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

.logo {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes magneticFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        background-position: 0% 50%;
    }
    25% {
        transform: translate(8%, -8%) rotate(5deg) scale(1.1);
        background-position: 25% 25%;
    }
    50% {
        transform: translate(-5%, 5%) rotate(-3deg) scale(0.95);
        background-position: 50% 75%;
    }
    75% {
        transform: translate(-8%, -5%) rotate(4deg) scale(1.05);
        background-position: 75% 25%;
    }
}

* {
    -webkit-tap-highlight-color: transparent;
}

a, button {
    -webkit-touch-callout: none;
}
