/* ==========================================================================
   KATRON MARKETING DESIGN SYSTEM - PURPLE TECH THEME
   Inspired by Mailop Technologies & fusbook MVC Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Brand Color Palette - Modern Royal Purple & Electric Indigo */
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-active: #5b21b6;
    --primary-light: #8b5cf6;
    --primary-soft: #ede9fe;
    --primary-subtle: rgba(124, 58, 237, 0.08);
    --primary-border: rgba(124, 58, 237, 0.18);
    
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.35);
    --secondary: #4f46e5;
    --secondary-hover: #4338ca;
    
    /* Dark Surface Tones (Night Sky Violet) */
    --dark-base: #0a0814;
    --dark-surface: #110d24;
    --dark-card: #181332;
    --dark-card-hover: #211a42;
    --dark-border: rgba(168, 85, 247, 0.16);
    --dark-border-hover: rgba(168, 85, 247, 0.38);

    /* Light Surface Tones */
    --bg-page: #faf8fd;
    --bg-surface: #ffffff;
    --bg-alt: #f4f0fa;
    --border-light: #e7e0f3;
    --border-subtle: #f0eaf8;

    /* Text Colors */
    --text-heading: #0f0b21;
    --text-body: #475569;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --text-inverse: #ffffff;
    --text-inverse-muted: #cbd5e1;

    /* Status & Alerts (True to Katron Codebase) */
    --status-critical: #ef4444;   /* Stock <= 2 */
    --status-low: #f59e0b;        /* Stock <= 4 */
    --status-medium: #3b82f6;     /* Stock <= 5 */
    --status-healthy: #10b981;    /* Good stock / profit margin */

    /* Typography & Spacing */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.05);
    --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.08);
    --shadow-lg: 0 16px 40px rgba(124, 58, 237, 0.12);
    --shadow-glow: 0 0 35px rgba(139, 92, 246, 0.35);

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p.lead {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.7;
}

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

a:hover {
    color: var(--primary-hover);
}

/* Global Layout Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-sm {
    padding: 3.5rem 0;
}

.section-dark {
    background-color: var(--dark-base);
    color: var(--text-inverse-muted);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--text-inverse);
}

.section-alt {
    background-color: var(--bg-alt);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem;
}

.section-header .badge {
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

/* Pill Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-purple {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.badge-purple-glow {
    background: rgba(168, 85, 247, 0.14);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.badge-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.badge-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-light {
    background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-heading);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-purple {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline-purple:hover {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.btn-dark {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.btn-dark:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1.05rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* Top Announcement Bar */
.topbar {
    background: #100c24;
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.topbar a {
    color: #cbd5e1;
    font-weight: 500;
}
.topbar a:hover {
    color: #c084fc;
}

/* Header & Sticky Navbar */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff; /* Solid opaque background to ensure readable text with 0 bleed */
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(15, 11, 33, 0.04);
    transition: var(--transition);
}

.site-header.scrolled {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    position: relative;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    z-index: 1002;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: var(--transition);
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.04);
}

.brand-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

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

.brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

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

.brand-subtext {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-subtle);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-mobile-cta {
    display: none;
}

/* Nested Dropdowns (Desktop & Mobile) */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.dropdown-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 2px;
    transition: transform 0.25s ease;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(-135deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
    border: 1px solid var(--border-light);
    padding: 0.6rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-body);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--primary-subtle);
    color: var(--primary);
    padding-left: 1.45rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile Nav Hamburger Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    color: var(--text-heading);
    z-index: 1002;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-toggle:hover {
    background: var(--primary-subtle);
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2.5px;
    margin: 5px 0;
    background-color: var(--text-heading);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
}

/* Morph Hamburger to 'X' */
.mobile-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--primary);
}

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

.mobile-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--primary);
}

/* Mobile Backdrop Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 8, 20, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.nav-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6.5rem 0 5.5rem;
    background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                var(--bg-page);
    overflow: hidden;
}

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

.hero-content h1 {
    margin: 1.25rem 0 1.5rem;
}

.hero-content .lead {
    margin-bottom: 2.25rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.stat-item h4 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.stat-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 500;
}

/* Hero Showcase Mockup Card */
.hero-preview-card {
    background: var(--dark-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--dark-border);
    box-shadow: 0 25px 60px rgba(15, 11, 33, 0.25), var(--shadow-glow);
    overflow: hidden;
    color: #ffffff;
    transition: var(--transition);
}

.preview-topbar {
    background: #110c26;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-dots {
    display: flex;
    gap: 0.4rem;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #10b981; }

.preview-screen-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #d8b4fe;
    font-family: var(--font-mono);
}

.preview-body {
    padding: 1.5rem;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-chip {
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* Feature Grid Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-border);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.feature-highlights {
    list-style: none;
    margin-top: 0.5rem;
}

.feature-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-body);
    margin-bottom: 0.55rem;
}

.feature-highlights li svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Interactive Tabs Section */
.tab-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-alt);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    flex-shrink: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.04);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--bg-surface);
    border-bottom-color: var(--primary);
}

.tab-content-panel {
    display: none;
    padding: 2.5rem;
}

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

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

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* Industry Solutions Cards */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.industry-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.industry-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.industry-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.industry-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Accordion FAQ */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-sm);
}

.faq-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-heading);
    transition: var(--transition);
    user-select: none;
}

.faq-header:hover {
    color: var(--primary);
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--primary);
    color: #ffffff;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-body {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Contact Form & Cards */
.contact-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.75rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.45rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-heading);
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px var(--primary-soft);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.contact-info-card {
    background: linear-gradient(135deg, #16102e 0%, #20153f 100%);
    border-radius: var(--radius-xl);
    padding: 2.75rem;
    color: #ffffff;
    border: 1px solid var(--dark-border);
    box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 0.2rem;
}

.contact-info-item p {
    font-size: 0.92rem;
    color: #ffffff;
    margin-bottom: 0;
}

.contact-info-item a {
    color: #ffffff;
}
.contact-info-item a:hover {
    color: #d8b4fe;
}

/* Flash Messages Alert */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Callout CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #100b24 0%, #201445 100%);
    border-radius: var(--radius-xl);
    padding: 4.5rem 3rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    box-shadow: var(--shadow-glow);
}

.cta-banner h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: #d8b4fe;
    max-width: 620px;
    margin: 0 auto 2.25rem;
    font-size: 1.15rem;
}

/* Footer Section (Consistent with Mailop Corporate Standard) */
.site-footer {
    background: #0d0a1c;
    color: #94a3b8;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.16);
}

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

.footer-col h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    min-height: 38px; /* Comfortable finger touch target for mobile */
    padding: 0.25rem 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #c084fc;
    padding-left: 6px;
}

.footer-contact-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    display: block;
    margin-top: 0.2rem;
}

.footer-contact-link:hover {
    color: #d8b4fe !important;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.88rem;
}

.footer-copyright {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #94a3b8;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #c084fc;
}

/* Breadcrumb Header */
.page-hero {
    padding: 4.5rem 0 3.5rem;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
                #110c26;
    color: #ffffff;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.page-hero h1 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.page-hero .lead {
    color: #d8b4fe;
    max-width: 650px;
    margin: 0 auto;
}

.breadcrumb-trail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.breadcrumb-trail a {
    color: #c084fc;
}

/* AI Standout Feature Card & Badges */
.badge-ai {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
}

.ai-spotlight-card {
    position: relative;
    background: linear-gradient(145deg, #160f2e 0%, #0d0a1c 100%);
    border: 2px solid rgba(168, 85, 247, 0.45);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.25), 0 0 24px rgba(6, 182, 212, 0.15);
    overflow: hidden;
    color: #ffffff;
}

.ai-spotlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateGlow 15s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-swap {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition);
}

.dashboard-stat-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
}

/* Print simulation badge */
.badge-pdf {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT RULES (Mobile & Tablet Breakpoints)
   ========================================================================== */

/* Tablet & Mobile Nav Breakpoint (991px and below) */
@media (max-width: 991px) {
    /* Navbar Hamburger & Drawer */
    .mobile-toggle {
        display: block;
    }

    .nav-actions {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: #ffffff !important; /* Solid opaque background matching brand */
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1.25rem 2.5rem;
        gap: 0.35rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 20px 40px rgba(15, 11, 33, 0.16);
        z-index: 999;
        
        /* Smooth Drawer Slide & Fade Animation */
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    opacity 0.25s ease, 
                    visibility 0.25s ease;
    }

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

    .nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1.05rem;
        font-weight: 600;
        padding: 0.85rem 1.25rem;
        min-height: 48px; /* Standard 48px mobile touch target */
        border-radius: var(--radius-sm);
        text-align: left;
    }

    .nav-link:hover, .nav-link:focus {
        background: var(--primary-soft);
        color: var(--primary);
    }

    .nav-mobile-cta {
        display: block;
        margin-top: 1rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--border-light);
    }

    .nav-mobile-cta .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        font-size: 1rem;
    }

    /* Nested Mobile Submenu Accordions */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--bg-alt);
        padding: 0.4rem 0.5rem;
        margin: 0.35rem 0 0.5rem 1rem;
        border-radius: var(--radius-sm);
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 0.7rem 1rem;
        min-height: 42px;
        display: flex;
        align-items: center;
        border-radius: 6px;
    }

    /* Hero & Page Layout */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-content .lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .tab-grid {
        grid-template-columns: 1fr;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }

    /* Footer Grid Tablet Reflow */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Small Screens & Mobile Phones (640px and below) */
@media (max-width: 640px) {
    .site-header {
        height: auto;
    }

    .navbar {
        height: 68px;
    }

    .brand-logo-img {
        height: 38px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .topbar .container {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }

    .topbar-left, .topbar-right {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .topbar-left span, .topbar-right span {
        display: block;
        font-size: 0.8rem;
    }

    .hero {
        padding: 4rem 0 3.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .container {
        padding: 0 1.15rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .tab-content-panel {
        padding: 1.5rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer Single-Column Phone Reflow */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        margin-bottom: 2.5rem;
    }

    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 1.75rem;
    }

    .footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding-top: 1.5rem;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 1.25rem;
    }

    .cta-banner {
        padding: 3rem 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }
}

/* ==========================================================================
   PROFESSIONAL ANIMATIONS & MOTION SYSTEM
   ========================================================================== */

/* 1. Page-Load Subtle Hero Entrance */
@keyframes heroEntranceFadeUp {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > span.badge {
    animation: heroEntranceFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards;
}

.hero-content h1 {
    animation: heroEntranceFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards;
}

.hero-content .lead {
    animation: heroEntranceFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.hero-actions {
    animation: heroEntranceFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.28s backwards;
}

.hero-stats {
    animation: heroEntranceFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.36s backwards;
}

/* 2. Scroll-Triggered Reveal Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Smooth Interactive Micro-Animations & Hover States */
.btn {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.25s ease, 
                background 0.25s ease, 
                color 0.2s ease, 
                border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.feature-card,
.pillar-card,
.dashboard-stat-box,
.tab-content-panel {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s ease, 
                border-color 0.25s ease;
}

.feature-card:hover,
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.12);
}

.faq-header {
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-header svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-header svg {
    transform: rotate(180deg);
}

.tab-btn {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn:hover {
    transform: translateY(-1px);
}

/* 4. Accessibility: Respect User's Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-content > span.badge,
    .hero-content h1,
    .hero-content .lead,
    .hero-actions,
    .hero-stats {
        animation: none !important;
    }

    .btn:hover,
    .btn:active,
    .feature-card:hover,
    .pillar-card:hover {
        transform: none !important;
    }
}
