/* ============================================
   AYO AI — Premium Landing Page Styles
   American Red, White & Blue Design System
   Inspired by Google Stitch Design
   ============================================ */

/* CSS Variables - Brand Tokens */
:root {
    /* Primary Colors - American Flag */
    --red: #DC2626;
    --red-light: #EF4444;
    --red-dark: #B91C1C;
    --blue: #1E3A8A;
    --blue-light: #2563EB;
    --blue-mid: #1D4ED8;
    --white: #FFFFFF;
    --off-white: #F8FAFC;

    /* Background & Panel */
    --bg-dark: #060D1A;
    --bg: #0A1628;
    --panel: #0F1F38;
    --panel-light: #142847;
    --border: rgba(255,255,255,0.08);
    --border-accent: rgba(220, 38, 38, 0.3);

    /* Neutral Colors */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Functional */
    --success: #059669;
    --warning: #D97706;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-red: 0 0 40px rgba(220, 38, 38, 0.25);
    --shadow-blue: 0 0 40px rgba(30, 58, 138, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4), 0 10px 10px -5px rgba(0,0,0,0.2);

    /* Gradients */
    --gradient-flag: linear-gradient(90deg, var(--red) 0%, var(--red) 33%, var(--white) 33%, var(--white) 66%, var(--blue) 66%, var(--blue) 100%);
    --gradient-hero: linear-gradient(135deg, var(--red) 0%, #7C1515 50%, var(--blue) 100%);
    --gradient-red: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    --gradient-blue: linear-gradient(135deg, var(--blue-light) 0%, var(--blue) 100%);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background glow */
.bg-glow {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(30, 58, 138, 0.12) 0%, transparent 50%);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--red) 0%, #FF6B6B 50%, var(--red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: linear-gradient(135deg, var(--blue-light) 0%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Flag Bar Utility
   ============================================ */
.flag-bar {
    height: 4px;
    background: var(--gradient-flag);
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0; right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-base);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-flag);
    opacity: 0.7;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
    background: var(--gradient-red);
    color: var(--white) !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding: calc(80px + var(--space-3xl)) var(--space-lg) var(--space-3xl);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.35);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--red-light);
    margin-bottom: var(--space-lg);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
    50% { opacity: 0.8; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    margin-bottom: var(--space-lg);
    color: var(--white);
    font-weight: 800;
    line-height: 1.1;
}

.hero-title .accent { color: var(--red); }

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-400);
    margin-bottom: var(--space-xl);
    max-width: 540px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
    background: var(--gradient-red);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(220,38,38,0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220,38,38,0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-blue {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}

.btn-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.5);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

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

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.07);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--red-light);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--red-light);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Visual */
.hero-visual { position: relative; }

.hero-image-container { position: relative; }

.hero-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(220,38,38,0.15);
    border: 1px solid rgba(220,38,38,0.2);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(12px);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    animation: float 3s ease-in-out infinite;
}

.card-1 { top: 10%; left: -20px; animation-delay: 0s; border-color: rgba(220,38,38,0.3); }
.card-2 { top: 42%; right: -30px; animation-delay: 0.7s; border-color: rgba(37,99,235,0.3); }
.card-3 { bottom: 15%; left: 8%; animation-delay: 1.4s; border-color: rgba(255,255,255,0.15); }

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

.card-icon { font-size: 1.5rem; }

.card-text { display: flex; flex-direction: column; }

.card-title { font-size: 0.72rem; color: var(--gray-400); }

.card-value {
    font-weight: 700;
    color: var(--red-light);
    font-size: 0.9rem;
}

.card-value.blue { color: #60A5FA; }

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--red-light);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(220,38,38,0.2);
}

.section-badge.blue {
    background: rgba(37,99,235,0.1);
    color: #60A5FA;
    border-color: rgba(37,99,235,0.2);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
    color: var(--white);
}

/* ============================================
   Services Section
   ============================================ */
.services {
    background: linear-gradient(180deg, var(--bg) 0%, var(--panel) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-red);
    opacity: 0;
    transition: var(--transition-base);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(220,38,38,0.04) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220,38,38,0.25);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(220,38,38,0.08);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; }

.service-card.featured {
    border-color: rgba(220,38,38,0.25);
    background: linear-gradient(135deg, rgba(220,38,38,0.06) 0%, rgba(30,58,138,0.08) 100%);
}

.service-card.featured::before { opacity: 1; }

.featured-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--gradient-red);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
    color: var(--white);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: var(--space-xs) 0;
    color: var(--gray-300);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.service-features li::before {
    content: '✓';
    color: var(--red-light);
    font-weight: 800;
    flex-shrink: 0;
}

/* ============================================
   Industries Section (like Sectors in Socia)
   ============================================ */
.industries {
    background: var(--panel);
}

.industries-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--gray-300);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.tab-btn:hover {
    background: rgba(220,38,38,0.1);
    border-color: rgba(220,38,38,0.3);
    color: var(--white);
}

.tab-btn.active {
    background: var(--gradient-red);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(220,38,38,0.3);
}

.industries-content {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.industries-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-flag);
}

.tab-panel { display: none; }

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.tab-panel h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
    color: var(--red-light);
}

.tab-panel p {
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
    max-width: 700px;
    line-height: 1.7;
}

.panel-clients {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-content p {
    color: var(--gray-400);
    margin-bottom: var(--space-md);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-values {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.value { text-align: center; }

.value-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.value h4 {
    color: var(--red-light);
    font-size: 0.95rem;
    font-weight: 700;
}

/* About Visual — dark-theme image treatment */
.about-visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        var(--shadow-xl),
        0 0 60px rgba(220, 38, 38, 0.18),
        0 0 100px rgba(30, 58, 138, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.22);
}

/* Dark theme overlay — tints the bright office, hides the monitor at the bottom */
.about-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background:
        /* Bottom gradient — fades out desk/monitor area */
        linear-gradient(
            to top,
            rgba(6, 13, 26, 0.82) 0%,
            rgba(6, 13, 26, 0.45) 35%,
            transparent 65%
        ),
        /* Side vignette with brand colors */
        linear-gradient(
            135deg,
            rgba(30, 58, 138, 0.35) 0%,
            transparent 40%,
            rgba(220, 38, 38, 0.12) 100%
        );
    pointer-events: none;
    z-index: 1;
}

.about-image {
    width: 100%;
    display: block;
    border-radius: var(--radius-xl);
    /* Darken, desaturate, and boost contrast to match dark navy theme */
    filter: brightness(0.8) contrast(1.12) saturate(0.65);
    transition: filter var(--transition-slow);
}

.about-visual:hover .about-image {
    filter: brightness(0.88) contrast(1.1) saturate(0.75);
}

/* ============================================
   Mission Control Embed
   ============================================ */
.mission-control {
    background:
        radial-gradient(ellipse at 10% 20%, rgba(220,38,38,0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 80%, rgba(30,58,138,0.12) 0%, transparent 40%),
        linear-gradient(180deg, var(--bg) 0%, var(--panel) 100%);
}

.mission-copy {
    max-width: 820px;
    margin: 0 auto;
    color: var(--gray-300);
    font-size: 1.1rem;
    line-height: 1.7;
}

.mission-frame-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(220,38,38,0.3);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 40px rgba(220,38,38,0.06);
    background: rgba(6,13,26,0.8);
    margin-top: var(--space-3xl);
}

.mission-frame-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-flag);
    z-index: 2;
}

.mission-frame {
    width: 100%;
    height: 780px;
    border: none;
    background: #060D1A;
}

.mission-actions {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg) 50%, var(--panel) 100%);
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(220,38,38,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-flag);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: var(--space-md);
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta-section > .container > p {
    color: var(--gray-400);
    margin-bottom: var(--space-xl);
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ============================================
   Contact Section
   ============================================ */
.contact { background: var(--bg-dark); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-details { margin-top: var(--space-xl); }

.contact-item {
    padding: var(--space-md) 0;
    color: var(--gray-300);
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item a:hover { color: var(--red-light); }

.contact-form {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-flag);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.form-group { margin-bottom: var(--space-lg); }

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--gray-300);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    padding: var(--space-2xl) 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-flag);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-tagline {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--red-light); }

.footer-copy {
    color: var(--gray-600);
    font-size: 0.85rem;
    text-align: right;
}

/* ============================================
   Phone Float Button
   ============================================ */
.phone-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(220,38,38,0.45);
    z-index: 999;
    transition: var(--transition-base);
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
}

.phone-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(220,38,38,0.6);
}

/* ============================================
   Marquee Trust Bar
   ============================================ */
.trust-bar {
    background: var(--panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg) 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.trust-track {
    display: flex;
    gap: var(--space-3xl);
    animation: marquee 25s linear infinite;
    white-space: nowrap;
    width: fit-content;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.trust-item span { color: var(--red-light); font-size: 1rem; }

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

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    background: linear-gradient(180deg, var(--bg) 0%, var(--panel) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.pricing-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gray-600);
    opacity: 0.5;
}

.pricing-card.gold::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); opacity: 1; }
.pricing-card.platinum::before { background: var(--gradient-flag); opacity: 1; }

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.pricing-header {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.tier-name {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: var(--space-sm);
    display: block;
}

.gold .tier-name { color: #FBBF24; }
.platinum .tier-name { color: var(--red-light); }

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-sm);
}

.price-val {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    font-family: var(--font-display);
}

.price-val::before {
    content: attr(data-currency) " $";
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--red-light);
    margin-right: 6px;
    vertical-align: middle;
}

.price-suffix {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-description {
    color: var(--gray-400);
    font-size: 0.95rem;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-2xl);
    flex-grow: 1;
}

.pricing-features li {
    padding: var(--space-sm) 0;
    color: var(--gray-300);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li i {
    color: var(--success);
    font-size: 1.1rem;
}

.pricing-features li.premium-feature {
    color: var(--white);
    font-weight: 600;
}

.pricing-features li.premium-feature i {
    color: var(--red-light);
}

.latency-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    color: var(--gray-300);
    margin-top: 4px;
}

.gold .latency-badge { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.platinum .latency-badge { background: rgba(220, 38, 38, 0.15); color: var(--red-light); }

.platinum-highlight {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--red);
    color: white;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 800;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero-subtitle { margin: 0 auto var(--space-xl); }
    .hero-ctas { justify-content: center; }
    .hero-stats { justify-content: center; }

    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .floating-card { display: none; }

    .about-grid,
    .contact-grid { grid-template-columns: 1fr; }

    .mission-frame { height: 640px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-copy { text-align: center; }
}

@media (max-width: 768px) {
    .logo-img { height: 40px; }

    .nav-menu {
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(10,22,40,0.98);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        transform: translateY(-150%);
        transition: var(--transition-base);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        backdrop-filter: blur(20px);
    }

    .nav-menu.active { transform: translateY(0); }
    .nav-toggle { display: flex; }

    .hero-stats { flex-direction: column; gap: var(--space-lg); align-items: center; }
    .services-grid { grid-template-columns: 1fr; }
    .about-values { flex-direction: column; align-items: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn-large { width: 100%; justify-content: center; }
    .mission-frame { height: 540px; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ============================================
   Chatbot Widget
   ============================================ */
.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(30, 58, 138, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-radius 0.3s ease;
}

.chatbot-widget.collapsed {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
    background: var(--gradient-red);
    border: none;
    overflow: hidden;
}

.chatbot-widget.collapsed .chatbot-body,
.chatbot-widget.collapsed .chatbot-header {
    display: none;
}

.chatbot-bubble-only {
    display: none;
}

.chatbot-widget.collapsed .chatbot-bubble-only {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    cursor: grab;
    user-select: none;
}
.chatbot-widget.collapsed .chatbot-bubble-only:active {
    cursor: grabbing;
}

.chatbot-header {
    background: var(--panel-light);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.chatbot-title {
    display: flex;
    align-items: center;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    cursor: grab;
    user-select: none;
    flex: 1;
}

.chatbot-title:active {
    cursor: grabbing;
}

.chatbot-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-ctrl-btn {
    background: transparent;
    border: none;
    color: var(--gray-300);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.chatbot-ctrl-btn:hover {
    color: var(--white);
}

.chatbot-body {
    display: flex;
    flex-direction: column;
    height: 400px;
    background: var(--bg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bot .msg-bubble {
    background: var(--panel-light);
    color: var(--gray-100);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.user .msg-bubble {
    background: var(--blue-mid);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    padding: 16px;
    background: var(--panel);
    border-top: 1px solid var(--border);
    gap: 10px;
}

#chat-input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    color: var(--white);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

#chat-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

#chat-send {
    background: var(--red);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

#chat-send:hover {
    background: var(--red-light);
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .chatbot-widget:not(.collapsed) {
        width: calc(100% - 32px) !important;
        left: 16px !important;
        right: 16px !important;
        z-index: 10001; /* Above mobile elements */
    }
}
