/* ════════════════════════════════════════════════════════════════════════
   PULSEAGENT SAAS PLATFORM — MOBILE-FIRST ENTERPRISE DESIGN SYSTEM
   100% Responsive from 320px Smartphones to 4K Ultra-Wide Monitors
   Featuring Morphing Animated Hamburger Icon & 60FPS Glassmorphic Drawer
   ════════════════════════════════════════════════════════════════════════ */

:root {
    /* Color Palette */
    --bg-dark: #07090e;
    --surface: #0e121d;
    --surface-elevated: #161b2a;
    --card-bg: rgba(22, 27, 42, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(139, 92, 246, 0.4);

    /* Accents */
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.35);
    --accent-teal: #10b981;
    --accent-cyan: #06b6d4;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    --gold: #fbbf24;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    /* Radii & Transitions */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

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

/* ════════════════ NAVBAR & ANIMATED HAMBURGER ════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    height: 68px;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 12px var(--accent-teal);
    animation: pulse 2s infinite;
}

.brand-logo span { color: var(--primary); }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Desktop Nav Links */
.nav-links {
    display: none;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-cta {
    display: none;
    align-items: center;
    gap: 12px;
}

/* 🌟 ANIMATED MORPHING HAMBURGER ICON (3 BARS -> X) */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    z-index: 2200;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: var(--transition);
}

.mobile-toggle:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.15);
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    transform-origin: center;
    pointer-events: none;
}

/* Morph to Close "X" Icon */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 🌟 ULTRA-SMOOTH GLASSMORPHIC MOBILE DRAWER (SCROLLABLE & SAFE CTA) */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(100%, 0, 0);
    -webkit-transform: translate3d(100%, 0, 0);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-transition: -webkit-transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
}

.mobile-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.mobile-drawer-links a {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    display: block;
    transition: var(--transition);
}

.mobile-drawer-links a.active,
.mobile-drawer-links a:hover {
    color: var(--text-white);
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
}

.mobile-drawer-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    padding-bottom: 30px;
}

@media (min-width: 868px) {
    .nav-links { display: flex; }
    .nav-cta { display: flex; }
    .mobile-toggle { display: none; }
    .mobile-drawer { display: none; }
}

/* ════════════════ BUTTON SYSTEM (TOUCH OPTIMIZED) ════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    min-height: 46px; /* Touch Target */
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-white);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: var(--text-white);
}

.btn-glow {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

/* ════════════════ HERO SECTION (RESPONSIVE CLAMP) ════════════════ */
.hero {
    position: relative;
    padding: 110px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    width: 90vw;
    max-width: 600px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, rgba(7, 9, 14, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 95%;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.hero-title span {
    background: linear-gradient(135deg, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    max-width: 380px;
    margin: 0 auto 48px;
}

@media (min-width: 540px) {
    .hero-actions {
        flex-direction: row;
        max-width: 100%;
    }
}

/* ════════════════ LIVE STREAM SIMULATOR (MOBILE OPTIMIZED) ════════════════ */
.simulator-wrap {
    margin-top: 20px;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    text-align: left;
}

.sim-header {
    background: var(--surface-elevated);
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sim-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-teal);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.sim-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .sim-grid {
        grid-template-columns: 360px 1fr;
    }
}

.sim-phone {
    padding: 24px 16px;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

.sim-screen {
    width: 100%;
    max-width: 280px;
    height: 480px;
    background: #000;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.sim-screen-header {
    height: 36px;
    background: #090b10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 10px;
    color: var(--text-muted);
}

.sim-frame-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #111827 0%, #030712 100%);
    position: relative;
}

.sim-sidebar {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid var(--card-border);
}

@media (min-width: 900px) {
    .sim-sidebar { border-top: none; border-left: 1px solid var(--card-border); }
}

.sim-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.sim-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sim-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.sim-metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 12px;
    border-radius: var(--radius-md);
}

.sim-metric-val {
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-cyan);
}

.sim-metric-lbl {
    font-size: 10px;
    color: var(--text-subtle);
    font-weight: 700;
}

/* ════════════════ FEATURES GRID (RESPONSIVE AUTO-FIT) ════════════════ */
.features-section {
    padding: 60px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.5px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-4px);
    -webkit-transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ════════════════ RESPONSIVE COMPARISON TABLE ════════════════ */
.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
}

.comp-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--card-bg);
}

.comp-table th, 
.comp-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
    font-size: 13px;
}

.comp-table th {
    background: var(--surface-elevated);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.check-green { color: var(--accent-teal); font-weight: 700; }
.cross-red { color: var(--accent-rose); font-weight: 700; }

/* ════════════════ PRICING GRID (STACKED MOBILE) ════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 868px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.25);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, var(--card-bg) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.plan-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.plan-features li {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ════════════════ FOOTER (RESPONSIVE GRID) ════════════════ */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--card-border);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-subtle);
}
