@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color & Theme Variables */
:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Dark Mode Defaults (Matching the dark violet UI) */
    --bg-main: #060413;
    --bg-card: rgba(13, 10, 42, 0.7);
    --bg-card-hover: rgba(22, 17, 68, 0.85);
    --border-card: rgba(124, 58, 237, 0.15);
    --border-card-hover: rgba(124, 58, 237, 0.4);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --gradient-purple-blue: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    --gradient-orange-red: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    --gradient-card: linear-gradient(145deg, rgba(13, 10, 42, 0.8) 0%, rgba(6, 4, 19, 0.95) 100%);
    --gradient-accent: linear-gradient(90deg, #7c3aed, #06b6d4);

    --primary: #7c3aed;
    --primary-glow: rgba(124, 58, 237, 0.45);
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.45);
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;

    --shadow-glow: 0 8px 32px 0 rgba(124, 58, 237, 0.12);
    --transition-speed: 0.3s;
    --border-radius: 16px;

    --bg-input: rgba(13, 10, 42, 0.85);
    --border-input: rgba(255, 255, 255, 0.1);
}

/* Light Mode Variables */
body.light-mode {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --border-card: rgba(124, 58, 237, 0.12);
    --border-card-hover: rgba(124, 58, 237, 0.35);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);

    --primary-glow: rgba(124, 58, 237, 0.25);
    --secondary-glow: rgba(6, 182, 212, 0.25);

    --shadow-glow: 0 8px 24px 0 rgba(124, 58, 237, 0.08);

    --bg-input: #ffffff;
    --border-input: rgba(0, 0, 0, 0.15);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: all var(--transition-speed);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Gradients and Typography Helpers */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple-blue {
    background: var(--gradient-purple-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-orange-red {
    background: var(--gradient-orange-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-card);
    color: var(--primary);
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.badge-yellow {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-yellow);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-purple-blue);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    border: 1px solid var(--border-card-hover);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

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

.btn-outline {
    border: 1px solid var(--border-card);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
    transform: translateY(-2px);
}

/* Card Styling */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius);
    padding: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-card-hover);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.15);
    background: var(--bg-card-hover);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 4, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

body.light-mode header {
    background: rgba(248, 250, 252, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.logo-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    border-color: var(--border-card-hover);
    box-shadow: 0 0 15px var(--primary-glow);
}

body.light-mode .logo-icon {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.logo-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    justify-content: center;
}

.logo-name {
    font-size: 1.4rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .logo-name {
    background: linear-gradient(to right, #0f172a, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--primary);
    text-transform: uppercase;
}

.logo-slogan {
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-speed);
}

.nav-link:hover svg {
    transform: translateY(2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-card);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    transition: all var(--transition-speed);
}

.theme-toggle:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.08);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Hide toggle icon states */
.theme-toggle .sun-icon {
    display: none;
}

body.light-mode .theme-toggle .moon-icon {
    display: none;
}

body.light-mode .theme-toggle .sun-icon {
    display: block;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(6, 182, 212, 0.02) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero h1 span {
    display: block;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
    margin-right: -12px;
    object-fit: cover;
}

.proof-info {
    display: flex;
    flex-direction: column;
}

.proof-stars {
    color: var(--accent-yellow);
    display: flex;
    gap: 2px;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.proof-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Interactive Call Flow Simulation (Right Side of Hero) */
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.call-flow-widget {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: 24px;
    background: radial-gradient(100% 100% at 0% 0%, rgba(22, 17, 68, 0.4) 0%, rgba(6, 4, 19, 0.8) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.flow-title-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #7c3aed;
    color: #fff;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Incoming Call Card */
.flow-node {
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    border: 1px solid var(--border-card);
    background: rgba(13, 10, 42, 0.6);
}

.flow-node.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background: rgba(124, 58, 237, 0.15);
}

.node-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.node-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Connector Paths */
.flow-connectors {
    position: relative;
    height: 60px;
    margin: 10px 0;
}

.svg-connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.connector-path {
    fill: none;
    stroke: var(--border-card);
    stroke-width: 2;
    stroke-dasharray: 6 4;
    transition: stroke 0.4s, stroke-width 0.4s;
}

.connector-path.active {
    stroke: var(--primary);
    stroke-width: 3;
    stroke-dasharray: none;
    animation: flow-pulse 2s infinite linear;
}

.connector-pulse {
    fill: var(--primary);
    r: 4;
    display: none;
}

.connector-pulse.active {
    display: block;
}

@keyframes flow-pulse {
    to {
        stroke-dashoffset: -20;
    }
}

/* Welcome Node Extra */
.welcome-node {
    width: 100%;
    border-radius: 12px;
    padding: 14px;
    margin: 15px 0;
}

.welcome-msg-box {
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    font-family: monospace;
    font-size: 0.75rem;
    text-align: left;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.welcome-msg-line {
    margin-bottom: 4px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.welcome-msg-line:hover {
    background: rgba(124, 58, 237, 0.2);
    color: #fff;
}

.welcome-msg-line.selected {
    background: rgba(124, 58, 237, 0.4);
    color: #fff;
    border-left: 2px solid var(--secondary);
}

/* Department Grid Node */
.dept-nodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.dept-node {
    border-radius: 12px;
    padding: 12px 6px;
    font-size: 0.8rem;
    cursor: pointer;
    background: rgba(13, 10, 42, 0.5);
    border: 1px solid var(--border-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.dept-node:hover {
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(22, 17, 68, 0.6);
}

.dept-node.active {
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
    background: rgba(6, 182, 212, 0.15);
}

.dept-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s ease;
}

.dept-node.active .dept-badge {
    background: var(--gradient-purple-blue);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.dept-icon-wrapper {
    color: var(--text-muted);
}

.dept-node.active .dept-icon-wrapper {
    color: var(--secondary);
}

.dept-node.active .dept-desc {
    color: var(--text-primary);
}

.dept-node svg {
    width: 18px;
    height: 18px;
}

.dept-title {
    font-weight: 600;
}

.dept-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
}

/* Waveform Visual Background */
.waveform-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

/* Stat Counter Bar */
.stats-bar {
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.05);
}

.stat-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

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

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Solutions Grid Section */
.solutions {
    padding: 80px 0;
    position: relative;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.section-title-wrapper {
    max-width: 600px;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 8px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.solution-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.solution-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, rgba(0, 0, 0, 0) 80%);
    top: 0;
    left: 0;
}

.solution-card:hover .solution-icon {
    background: var(--gradient-purple-blue);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px var(--primary-glow);
}

.solution-icon svg {
    width: 24px;
    height: 24px;
    z-index: 1;
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.solution-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(6, 4, 19, 0) 0%, rgba(13, 10, 42, 0.2) 50%, rgba(6, 4, 19, 0) 100%);
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.how-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 8px;
    margin-bottom: 16px;
}

.how-desc {
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* How Interactive Area */
.how-visualizer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 24px;
    border-radius: 24px;
    background: rgba(13, 10, 42, 0.4);
    border: 1px solid var(--border-card);
    position: relative;
    min-height: 260px;
}

.how-node-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.how-node-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.5s ease;
}

.how-node-circle.customer .how-node-icon {
    background: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.how-node-circle.receptionist .how-node-icon {
    background: #7c3aed;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.how-node-icon svg {
    width: 28px;
    height: 28px;
}

.how-node-label {
    position: absolute;
    bottom: -28px;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.how-arrow-line {
    flex-grow: 1;
    height: 2px;
    background: var(--border-card);
    position: relative;
    margin: 0 10px;
    display: flex;
    align-items: center;
}

.how-arrow-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--border-card);
    border-right: 2px solid var(--border-card);
    transform: rotate(45deg);
    right: 0;
}

.how-arrow-line.active {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.how-arrow-line.active::after {
    border-color: var(--primary);
}

.how-arrow-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    left: 0;
    display: none;
}

.how-arrow-line.active .how-arrow-dot {
    display: block;
    animation: move-dot 1.5s infinite linear;
}

@keyframes move-dot {
    100% {
        left: 100%;
    }
}

.how-branches {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 180px;
}

.how-branch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(13, 10, 42, 0.6);
    border: 1px solid var(--border-card);
    transition: all 0.3s ease;
    cursor: pointer;
}

.how-branch-item:hover {
    border-color: var(--border-card-hover);
    background: rgba(22, 17, 68, 0.8);
}

.how-branch-item.active {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.12);
    box-shadow: 0 0 15px var(--primary-glow);
}

.how-branch-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.how-branch-item.sales .how-branch-num {
    background: #10b981;
}

.how-branch-item.support .how-branch-num {
    background: #3b82f6;
}

.how-branch-item.billing .how-branch-num {
    background: #f59e0b;
}

.how-branch-info {
    display: flex;
    flex-direction: column;
}

.how-branch-title {
    font-size: 0.8rem;
    font-weight: 600;
}

.how-branch-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.how-branch-icon {
    margin-left: auto;
    color: var(--text-muted);
}

.how-branch-item.active .how-branch-icon {
    color: var(--primary);
}

.how-branch-icon svg {
    width: 14px;
    height: 14px;
}

/* Built for Performance (Benefits & illustration) */
.benefits {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}

/* Floating Web Illustration on Left */
.benefits-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefits-illustration {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 380px;
}

.illustration-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px var(--primary-glow));
    animation: float-slow 6s ease-in-out infinite;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

.floating-card {
    position: absolute;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(13, 10, 42, 0.85);
    border: 1px solid rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.floating-card-1 {
    top: 20%;
    left: -5%;
    animation: float-relative 4s ease-in-out infinite;
}

.floating-card-2 {
    bottom: 20%;
    right: -5%;
    animation: float-relative 4.5s ease-in-out infinite alternate;
}

@keyframes float-relative {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.floating-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card-icon svg {
    width: 16px;
    height: 16px;
}

.floating-card-text {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Benefits list on Right */
.benefits-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 8px;
    margin-bottom: 24px;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-check svg {
    width: 12px;
    height: 12px;
}

.benefit-info h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.benefit-info p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Industries Served */
.industries {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.light-mode .industries {
    border-color: rgba(0, 0, 0, 0.05);
}

.industries-title {
    text-align: center;
    margin-bottom: 40px;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.industry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border-radius: 12px;
    background: rgba(13, 10, 42, 0.4);
    border: 1px solid var(--border-card);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.industry-card:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.08);
}

body.light-mode .industry-card {
    background: #ffffff;
    border-color: rgba(124, 58, 237, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

body.light-mode .industry-card:hover {
    background: rgba(124, 58, 237, 0.04);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.1);
}

.industry-icon {
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.industry-card:hover .industry-icon {
    color: var(--primary);
}

.industry-icon svg {
    width: 24px;
    height: 24px;
}

.industry-name {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Our Process and Dashboard split */
.process-dashboard {
    padding: 80px 0;
}

.process-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}

/* Process Section */
.process-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 8px;
    margin-bottom: 40px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.process-steps::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 20px;
    bottom: 24px;
    width: 2px;
    background: var(--border-card);
    z-index: 1;
}

.process-step-item {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.step-number-node {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.process-step-item:hover .step-number-node {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.step-info {
    padding-top: 4px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Real-Time Dashboard Mock */
.dashboard-preview {
    display: flex;
    flex-direction: column;
}

.dashboard-title-row {
    margin-bottom: 24px;
}

.dashboard-mock {
    border-radius: 20px;
    background: #09071c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 60px 1fr;
    overflow: hidden;
}

body.light-mode .dashboard-mock {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* Dashboard Sidebar */
.dash-sidebar {
    background: rgba(13, 10, 42, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

body.light-mode .dash-sidebar {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.05);
}

.dash-sb-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dash-sb-icon.active,
.dash-sb-icon:hover {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

.dash-sb-icon svg {
    width: 16px;
    height: 16px;
}

/* Dashboard Content */
.dash-body {
    padding: 24px;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-stat-card {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

body.light-mode .dash-stat-card {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.dash-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dash-stat-val {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 4px 0;
    font-family: var(--font-heading);
}

.dash-stat-trend {
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

.trend-up {
    color: var(--accent-green);
}

.trend-down {
    color: var(--accent-orange);
}

/* Charts Row */
.dash-charts-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
}

.dash-chart-card {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

body.light-mode .dash-chart-card {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 0.8rem;
    font-weight: 600;
}

.chart-badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 600;
    background: rgba(6, 182, 212, 0.15);
    color: var(--secondary);
    text-transform: uppercase;
}

.chart-canvas-wrapper {
    flex-grow: 1;
    position: relative;
    width: 100%;
    height: 120px;
}

.svg-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.donut-chart-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.donut-center-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.donut-center-val {
    font-size: 1.1rem;
    font-weight: 700;
}

.donut-center-lbl {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-name-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-val {
    font-weight: 600;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    position: relative;
}

.testi-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.testi-slider-wrapper .testi-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 300%;
    /* 3 slides */
}

.testi-slider-wrapper .testi-slide {
    width: 33.333%;
    padding: 0 12px;
}

.testi-card {
    max-width: 650px;
    margin: 0 auto;
    height: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testi-stars {
    color: var(--accent-yellow);
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testi-stars svg {
    width: 16px;
    height: 16px;
}

.testi-quote {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testi-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.testi-meta {
    display: flex;
    flex-direction: column;
}

.testi-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.testi-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.testi-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-card);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.testi-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Pricing Plans */
.pricing {
    padding: 80px 0;
}

.pricing-title {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
    background: radial-gradient(100% 100% at 50% 0%, rgba(22, 17, 68, 0.8) 0%, rgba(6, 4, 19, 0.95) 100%);
}

.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gradient-purple-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pricing-card.popular .pricing-name {
    color: var(--primary);
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.pricing-price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.pricing-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.pricing-feat-item svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.pricing-card.popular .pricing-feat-item svg {
    color: var(--secondary);
}

/* Call to Action Banner */
.cta-banner {
    padding: 80px 0;
}

.cta-box {
    border-radius: 24px;
    padding: 60px 48px;
    background: radial-gradient(120% 120% at 0% 0%, rgba(22, 17, 68, 0.9) 0%, rgba(6, 4, 19, 0.98) 100%);
    border: 1px solid rgba(124, 58, 237, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 48px;
    overflow: hidden;
    position: relative;
}

.cta-waves {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-wave-svg {
    width: 180px;
    height: 180px;
    overflow: visible;
}

.cta-info {
    max-width: 600px;
}

.cta-info h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-info p {
    font-size: 1.05rem;
    margin-bottom: 32px;
    color: var(--text-secondary);
}

.cta-btns {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Footer styling */
footer {
    background: #03020c;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 0 32px 0;
}

body.light-mode footer {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-btn:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
}

.social-btn svg {
    width: 16px;
    height: 16px;
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
    color: var(--text-muted);
}

body.light-mode .footer-bottom {
    border-color: rgba(0, 0, 0, 0.05);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

/* Modal Popup Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 2, 12, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    background: #09071c;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-speed) ease;
}

body.light-mode .modal-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    outline: none;
}

/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-bubble-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-purple-blue);
    box-shadow: 0 8px 24px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-bubble-btn:hover {
    transform: scale(1.05) rotate(5deg);
}

.chat-bubble-btn svg {
    width: 28px;
    height: 28px;
}

.chat-window {
    width: 350px;
    height: 450px;
    border-radius: 16px;
    background: #09071c;
    border: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 16px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: bottom right;
}

body.light-mode .chat-window {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.chat-window.active {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
}

.chat-header-bar {
    padding: 16px;
    background: var(--gradient-purple-blue);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar-status {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chat-avatar-status svg {
    width: 20px;
    height: 20px;
}

.chat-avatar-status::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #7c3aed;
    bottom: 0;
    right: 0;
}

.chat-agent-info {
    display: flex;
    flex-direction: column;
}

.chat-agent-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.chat-agent-status {
    font-size: 0.65rem;
    opacity: 0.8;
}

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

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.chat-msg.agent {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

body.light-mode .chat-msg.agent {
    background: #f1f5f9;
}

.chat-msg.user {
    background: var(--gradient-purple-blue);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-quick-replies {
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

body.light-mode .chat-quick-replies {
    border-color: rgba(0, 0, 0, 0.05);
}

.quick-reply-btn {
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-card);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
}

.quick-reply-btn:hover {
    background: var(--primary);
    color: #fff;
}

.chat-input-bar {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 8px;
}

body.light-mode .chat-input-bar {
    border-color: rgba(0, 0, 0, 0.05);
}

.chat-input {
    flex-grow: 1;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
}

/* Animations */
@keyframes dash-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: dash-pulse 2s infinite;
    margin-right: 6px;
    vertical-align: middle;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {

    .hero-grid,
    .how-grid,
    .benefits-grid,
    .process-dashboard-grid,
    .cta-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 32px auto;
    }

    .hero-btns,
    .social-proof {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }

    .pricing-card.enterprise {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: 1.5fr repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: span 3;
        align-items: center;
        text-align: center;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-card);
        gap: 20px;
        align-items: flex-start;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-nav-toggle {
        display: flex;
    }

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

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

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

    .nav-actions {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-grid,
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.enterprise {
        grid-column: span 1;
    }

    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dash-charts-grid {
        grid-template-columns: 1fr;
    }

    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .testi-card {
        max-width: 480px;
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .nav-actions .btn {
        display: none;
    }

    .hero-btns,
    .cta-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .hero-btns .btn,
    .cta-btns .btn {
        width: 100%;
    }

    .dashboard-mock {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        flex-direction: row;
        justify-content: space-around;
        padding: 12px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    body.light-mode .dash-sidebar {
        border-bottom-color: rgba(0, 0, 0, 0.05);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .modal-box {
        width: calc(100% - 32px);
        margin: 16px;
        padding: 24px;
    }
}

@media (max-width: 480px) {

    .stats-grid,
    .dash-stats-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-logo-img {
        height: 32px !important;
    }

    .benefits-illustration {
        max-width: 320px;
        height: 280px;
        margin: 0 auto;
    }

    .floating-card-1 {
        left: 0;
    }

    .floating-card-2 {
        right: 0;
    }

    .testi-card {
        max-width: 310px;
        padding: 20px;
    }

    .testi-quote {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-window {
        width: calc(100vw - 32px);
        height: 400px;
        right: 0;
    }
}

@media (max-width: 600px) {
    .how-visualizer {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        padding: 32px 16px;
    }

    .how-arrow-line {
        width: 2px;
        height: 40px;
        flex-grow: 0;
        margin: 8px 0;
        align-self: center;
        justify-content: center;
    }

    .how-arrow-line::after {
        left: -3px;
        right: auto;
        top: auto;
        bottom: 0;
        transform: rotate(135deg);
    }

    .how-arrow-line.active .how-arrow-dot {
        animation: move-dot-vertical 1.5s infinite linear;
    }

    .how-arrow-dot {
        left: -2px;
        top: 0;
    }

    .how-branches {
        width: 100%;
        max-width: 280px;
    }
}

@keyframes move-dot-vertical {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

/* ==========================================================================
   ADDITIONAL CORPORATE IT SERVICES STYLES
   ========================================================================== */

/* Globe Animation Canvas (Pure Visual - Match image) */
.globe-canvas-container {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.18) 0%, rgba(6, 4, 19, 0) 70%);
}

body.light-mode .globe-canvas-container {
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
}

#globe-3d-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
}

#globe-3d-canvas:active {
    cursor: grabbing;
}

/* Tech Stack Showcase Tabs & Grid */
.tech-stack-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(6, 4, 19, 0) 0%, rgba(13, 10, 42, 0.1) 50%, rgba(6, 4, 19, 0) 100%);
}

.tech-tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tech-tab-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 9999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    transition: all 0.3s ease;
}

.tech-tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-card-hover);
    background: rgba(255, 255, 255, 0.05);
}

.tech-tab-btn.active {
    color: #fff;
    background: var(--gradient-purple-blue);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.tech-card.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.85);
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: var(--bg-card-hover);
}

.tech-icon-box {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: color 0.3s ease;
}

.tech-card:hover .tech-icon-box {
    color: var(--secondary);
}

.tech-icon-box svg {
    width: 32px;
    height: 32px;
}

.tech-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tech-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: center;
}

/* Feature Spotlight on IT Landing */
.feature-spotlight {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 20px;
}

.spotlight-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
}

.spotlight-icon svg {
    width: 20px;
    height: 20px;
}

.spotlight-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.spotlight-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    margin-left: auto;
    font-size: 0.8rem;
}

.spotlight-link:hover {
    color: var(--secondary);
}

/* Live Terminal Console Panel */
.console-panel {
    background: #05030f;
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 12px;
    padding: 12px;
    font-family: monospace;
    font-size: 0.7rem;
    color: #a78bfa;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    height: 90px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 15px;
}

body.light-mode .console-panel {
    background: #f1f5f9;
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: #475569;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.console-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 6px;
}

body.light-mode .console-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.console-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.console-dot.red {
    background: #ef4444;
}

.console-dot.yellow {
    background: #f59e0b;
}

.console-dot.green {
    background: #10b981;
}

.console-title {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-left: 5px;
}

.console-body {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: none;
}

.console-body::-webkit-scrollbar {
    display: none;
}

.console-log-line {
    line-height: 1.4;
    opacity: 0.9;
    animation: console-fade-in 0.3s ease forwards;
}

@keyframes console-fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.console-log-line .log-tag {
    font-weight: bold;
    margin-right: 4px;
}

.console-log-line .log-tag.info {
    color: #3b82f6;
}

.console-log-line .log-tag.success {
    color: #10b981;
}

.console-log-line .log-tag.warn {
    color: #f59e0b;
}

.console-log-line .log-tag.sec {
    color: #8b5cf6;
}

/* Isometric Node Animations */
@keyframes pulse-led {

    0%,
    100% {
        fill: #ef4444;
        opacity: 0.3;
    }

    50% {
        fill: #10b981;
        opacity: 1;
        filter: drop-shadow(0 0 4px #10b981);
    }
}

.led-light {
    animation: pulse-led 1.5s infinite alternate;
}

.led-light:nth-child(2n) {
    animation-delay: 0.4s;
}

.led-light:nth-child(3n) {
    animation-delay: 0.8s;
}

/* Keyframe Animations for Network Grid */
@keyframes connection-flow-anim {
    to {
        stroke-dashoffset: -164;
    }
}

@keyframes hub-pulse-anim {
    0% {
        r: 6px;
        opacity: 0.8;
        stroke-width: 2px;
    }

    100% {
        r: 24px;
        opacity: 0;
        stroke-width: 0.5px;
    }
}

/* Tech Stack Infinite Marquee */
.tech-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.tech-marquee-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: marquee-scroll 28s infinite linear;
}

.tech-marquee-track:hover {
    animation-play-state: paused;
}

.tech-marquee-group {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 170px;
    padding: 24px 16px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.tech-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: var(--bg-card-hover);
}

.tech-card.dimmed {
    opacity: 0.25;
    filter: grayscale(80%);
    transform: scale(0.95);
    pointer-events: none;
}

.tech-card.highlighted {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
        /* Seamless half shift loop */
    }
}

/* Globe Wireframe & Satellites Styles */
.meridian-line {
    fill: none;
    stroke: rgba(124, 58, 237, 0.15);
    stroke-width: 0.75;
    transform-origin: center;
}

body.light-mode .meridian-line {
    stroke: rgba(124, 58, 237, 0.22);
}

body.light-mode .globe-sphere {
    fill: url(#globe-body-light);
    stroke: rgba(124, 58, 237, 0.35);
}

.meridian-line.m1 {
    animation: rotate-meridian 12s infinite linear;
}

.meridian-line.m2 {
    animation: rotate-meridian 12s infinite linear -3s;
}

.meridian-line.m3 {
    animation: rotate-meridian 12s infinite linear -6s;
}

.meridian-line.m4 {
    animation: rotate-meridian 12s infinite linear -9s;
}

@keyframes rotate-meridian {
    0% {
        rx: 80px;
    }

    50% {
        rx: 0px;
    }

    100% {
        rx: 80px;
    }
}

.sat-pulse {
    animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
    0% {
        r: 6px;
        opacity: 1;
    }

    100% {
        r: 16px;
        opacity: 0;
    }
}

.sat-node.s1 {
    animation: drift-sat-1 8s infinite ease-in-out alternate;
}

.sat-node.s2 {
    animation: drift-sat-2 9s infinite ease-in-out alternate;
}

.sat-node.s3 {
    animation: drift-sat-3 10s infinite ease-in-out alternate;
}

.sat-node.s4 {
    animation: drift-sat-4 7s infinite ease-in-out alternate;
}

@keyframes drift-sat-1 {
    from {
        transform: translate(-85px, -40px);
    }

    to {
        transform: translate(-75px, -50px);
    }
}

@keyframes drift-sat-2 {
    from {
        transform: translate(85px, 30px);
    }

    to {
        transform: translate(75px, 40px);
    }
}

@keyframes drift-sat-3 {
    from {
        transform: translate(-40px, 65px);
    }

    to {
        transform: translate(-50px, 55px);
    }
}

@keyframes drift-sat-4 {
    from {
        transform: translate(50px, -60px);
    }

    to {
        transform: translate(60px, -50px);
    }
}

.globe-arc-line {
    fill: none;
    stroke: rgba(6, 182, 212, 0.15);
    stroke-width: 1;
}

body.light-mode .globe-arc-line {
    stroke: rgba(6, 182, 212, 0.25);
}

.globe-flow-line {
    fill: none;
    stroke-linecap: round;
    stroke-width: 1.5;
    stroke: var(--primary);
    stroke-dasharray: 10 80;
    stroke-dashoffset: 100;
    animation: flow-run 3s infinite linear;
}

.globe-flow-line.f1 {
    stroke: var(--primary);
    animation-duration: 3.5s;
}

.globe-flow-line.f2 {
    stroke: var(--secondary);
    animation-duration: 2.8s;
}

.globe-flow-line.f3 {
    stroke: var(--secondary);
    animation-duration: 4s;
}

.globe-flow-line.f4 {
    stroke: var(--primary);
    animation-duration: 3s;
}

@keyframes flow-run {
    from {
        stroke-dashoffset: 120;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Light Mode Contrast Overrides */
body.light-mode .cta-box {
    background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.98) 100%);
    border: 1px solid rgba(124, 58, 237, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

body.light-mode .floating-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

body.light-mode .global-network-widget {
    background: radial-gradient(100% 100% at 0% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.98) 100%);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

body.light-mode .network-map-container {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .network-tab-btn {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-secondary);
    border-color: var(--border-card);
}

body.light-mode .network-tab-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

body.light-mode .network-tab-btn.active {
    color: #fff;
    background: var(--gradient-purple-blue);
}

body.light-mode .console-log-line {
    color: #334155;
}

body.light-mode .console-log-line .log-tag.info {
    color: #2563eb;
}

body.light-mode .console-log-line .log-tag.success {
    color: #059669;
}

body.light-mode .console-log-line .log-tag.warn {
    color: #d97706;
}

body.light-mode .console-log-line .log-tag.sec {
    color: #7c3aed;
}

/* Country Code Sizing & Symmetrical Wrap */
.country-code-select {
    width: 120px;
    flex-shrink: 0;
    max-width: 130px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.country-code-select option {
    white-space: normal;
    word-wrap: break-word;
}

/* ==========================================================================
   Light Mode Contrast Overrides for Call Flow Widget & Animations
   ========================================================================== */
body.light-mode .call-flow-widget {
    background: radial-gradient(100% 100% at 0% 0%, rgba(124, 58, 237, 0.05) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light-mode .flow-node {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(124, 58, 237, 0.15);
}

body.light-mode .flow-node.active {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

body.light-mode .connector-path {
    stroke: rgba(124, 58, 237, 0.22);
}

body.light-mode .connector-path.active {
    stroke: var(--primary);
}

body.light-mode .welcome-msg-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}

body.light-mode .welcome-msg-line:hover {
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary);
}

body.light-mode .welcome-msg-line.selected {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
    border-left-color: var(--secondary);
}

body.light-mode .dept-node {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(124, 58, 237, 0.15);
}

body.light-mode .dept-node:hover {
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .dept-node.active {
    border-color: var(--secondary);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

body.light-mode .dept-badge {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

body.light-mode .dept-node.active .dept-badge {
    background: var(--gradient-purple-blue);
    color: #ffffff;
}

body.light-mode .how-visualizer {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(124, 58, 237, 0.15);
    box-shadow: var(--shadow-glow);
}

body.light-mode .how-branch-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(124, 58, 237, 0.12);
}

body.light-mode .how-branch-item:hover {
    background: rgba(124, 58, 237, 0.03);
    border-color: rgba(124, 58, 237, 0.35);
}

body.light-mode .how-branch-item.active {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--primary);
}

/* Logo Theme Display Configuration */
.light-logo {
    display: none !important;
}

body.light-mode .dark-logo {
    display: none !important;
}

body.light-mode .light-logo {
    display: block !important;
}

/* Testimonials Enhanced Background & Theme adaptability */
#testimonials {
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
    transition: background-color var(--transition-speed);
}

/* Abstract floating blur blobs for testimonials background */
#testimonials::before,
#testimonials::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    transition: all var(--transition-speed);
}

#testimonials::before {
    top: -15%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: var(--primary);
    /* purple */
}

#testimonials::after {
    bottom: -15%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    /* cyan */
}

/* Light mode adjustments for testimonials background glow blobs */
body.light-mode #testimonials::before {
    background: #c084fc;
    /* lighter purple */
    opacity: 0.2;
}

body.light-mode #testimonials::after {
    background: #bae6fd;
    /* lighter cyan */
    opacity: 0.25;
}

/* Grid overlay pattern inside testimonials */
.testimonials-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(var(--border-card) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-card) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

/* Testimonials responsive slider styles */
.testimonials-slider-container {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    width: 100%;
}

.testimonials-slider-container .testi-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    /* 4 slides in total, default is 1 visible at a time */
    width: 400%;
}

.testimonials-slider-container .testi-slide {
    width: 25%;
    padding: 0 16px;
    display: flex;
    justify-content: center;
}

.testi-card {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 32px;
    min-height: 270px;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.testi-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-glow);
}

/* Desktop view: Show 2 cards at the same time */
@media (min-width: 993px) {
    .testimonials-slider-container .testi-track {
        /* With 2 cards shown per view, 4 cards total need 2 full viewports width (4 * 50% = 200%) */
        width: 200%;
    }

    .testimonials-slider-container .testi-slide {
        width: 25%;
        /* 25% of 200% = 50% of parent container */
        padding: 0 20px;
    }
}

/* CTA Animation Styles & Keyframes */
.radar-beam {
    transform-origin: center;
    animation: spin-clockwise 6s infinite linear;
}

.gear-outer {
    transform-origin: center;
    animation: spin-clockwise 15s infinite linear;
}

.gear-inner {
    transform-origin: center;
    animation: spin-counter-clockwise 12s infinite linear;
}

.trust-shield {
    transform-origin: center;
    animation: pulse-shield 2.5s infinite ease-in-out;
}

.checkmark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: check-draw 4s infinite ease-in-out;
}

@keyframes spin-clockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-counter-clockwise {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes pulse-shield {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(124, 58, 237, 0.4));
    }

    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.8));
    }
}

@keyframes check-draw {

    0%,
    10% {
        stroke-dashoffset: 50;
        opacity: 0;
    }

    30%,
    80% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    90%,
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* ==========================================================================
   OPTIMIZATION & PERFORMANCE MIGRATION CLASSES
   ========================================================================== */

/* Logo links */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Explore suite button sizing in header */
.btn-header-explore {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Flagship Solution Spotlight Card */
.solution-card.spotlight {
    border: 1px dashed var(--primary);
    background: rgba(124, 58, 237, 0.03);
}

.solution-icon.spotlight {
    background: var(--gradient-purple-blue);
    color: #ffffff;
}

/* Benefits Card Style */
.floating-card-benefits {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

/* Testimonial container overlay spacing */
.testimonials-container-wrapper {
    position: relative;
    z-index: 1;
}

.testi-quote-style {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

/* Phone input container inside modals */
.phone-input-wrapper {
    display: flex;
    gap: 8px;
}

.phone-input-number {
    flex-grow: 1;
}

/* Submit buttons */
.modal-submit-btn {
    width: 100%;
    margin-top: 8px;
}

/* Legal Modals */
.modal-box.legal {
    max-width: 700px;
}

.modal-desc.legal {
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    padding-right: 8px;
}

/* Semantic address styles */
.footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tel-link:hover,
.footer-address a:hover {
    color: var(--text-primary);
}

.testi-controls {
    margin-top: 30px;
}