/* ==========================================================================
   VendorIQ CSS Design System (Freshworks-inspired modern SaaS)
   ========================================================================== */

:root {
    /* Color Palette aligned with VendorIQ Logo */
    --primary: #0062ff;            /* Royal Blue */
    --primary-light: #eaf2ff;      /* Light Blue tint */
    --primary-hover: #004ecc;
    --secondary: #76B82A;          /* Lime Green */
    --secondary-light: #f1f8e9;    /* Light Green tint */
    --accent: #002D62;             /* Dark Navy Blue */
    --accent-light: #e6ebf2;       /* Light Navy tint */
    --warning: hsl(38, 95%, 50%);  /* Amber warning */
    --danger: hsl(355, 85%, 55%);  /* Coral red */
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --grad-success: linear-gradient(135deg, var(--secondary) 0%, #5e9c1c 100%);
    
    /* Neutrals */
    --bg-main: hsl(210, 40%, 98%);
    --bg-card: hsl(0, 0%, 100%);
    --text-main: #0A2540;          /* Navy Slate for main text */
    --text-muted: hsl(215, 16%, 47%);    /* Cool gray text */
    --border: hsl(214, 32%, 91%);        /* Thin line gray */
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(11, 92, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(11, 92, 255, 0.05), 0 8px 16px -6px rgba(0, 0, 0, 0.01);
    --shadow-lg: 0 20px 40px -10px rgba(11, 92, 255, 0.08), 0 10px 20px -10px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 20px rgba(11, 92, 255, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: hsl(214, 32%, 91%);
    --glass-border-light: hsl(214, 32%, 88%);
    --glass-blur: blur(20px);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    padding-top: 80px; /* Header spacing */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.25;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

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

.text-center {
    text-align: center;
}

.grid-container {
    display: grid;
    gap: 32px;
}

/* Common Components */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid hsl(224, 90%, 92%);
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 48px auto;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 92, 255, 0.25);
}

.btn-primary.loading {
    position: relative;
}

.btn-primary.loading .btn-text {
    opacity: 0;
}

.btn-primary .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
}

.btn-primary.loading .spinner {
    display: block;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

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

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

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

/* Dropdown Menu */
.nav-item.dropdown {
    position: relative;
}

.dropdown-trigger {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 0;
}

.dropdown-trigger .chevron {
    transition: transform var(--transition-fast);
}

.nav-item.dropdown:hover .dropdown-trigger .chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 480px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    pointer-events: none;
    z-index: 110;
    padding: 16px;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dropdown-link {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.dropdown-link:hover {
    background-color: var(--bg-main);
    transform: translateY(-2px);
}

.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    flex-shrink: 0;
}

.gst-icon { background-color: var(--primary-light); color: var(--primary); }
.pan-icon { background-color: var(--secondary-light); color: var(--secondary); }
.msme-icon { background-color: var(--accent-light); color: var(--accent); }
.mca-icon { background-color: hsl(38, 95%, 94%); color: var(--warning); }

.dropdown-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.dropdown-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    z-index: 120;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 200;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.mobile-drawer.open {
    right: 0;
}

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

.drawer-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.drawer-close {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.drawer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.drawer-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 8px;
}

.drawer-link {
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
}

.drawer-divider {
    border: none;
    border-top: 1px solid var(--border);
}

.drawer-nav-link {
    font-size: 16px;
    font-weight: 600;
    padding: 8px 0;
}

.drawer-actions {
    margin-top: 32px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-info {
    max-width: 580px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-feature-item .check-icon {
    width: 16px;
    height: 16px;
    color: var(--secondary);
}

/* Dashboard Mockup (Hero Graphic) */
.hero-visual {
    perspective: 1000px;
}

.dashboard-mockup {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotateX(5deg) rotateY(-10deg) rotateZ(2deg);
    transition: var(--transition-slow);
}

.dashboard-mockup:hover {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1.02);
}

.mockup-header {
    background-color: var(--bg-main);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background-color: var(--danger); }
.mockup-dots span:nth-child(2) { background-color: var(--warning); }
.mockup-dots span:nth-child(3) { background-color: var(--secondary); }

.mockup-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-body {
    padding: 20px;
    background-color: var(--bg-card);
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 8px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-val {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0;
}

.stat-trend {
    font-size: 11px;
    font-weight: 600;
}

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

.mockup-table-container {
    overflow-x: auto;
}

.mockup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.mockup-table th {
    padding: 8px 12px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.mockup-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.mock-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
}

.badge-green { background-color: var(--secondary-light); color: var(--secondary); }
.badge-yellow { background-color: hsl(38, 95%, 94%); color: var(--warning); }
.badge-red { background-color: hsl(355, 85%, 94%); color: var(--danger); }

.health-green { color: var(--secondary); font-weight: 600; }
.health-yellow { color: var(--warning); font-weight: 600; }
.health-red { color: var(--danger); font-weight: 600; }

/* Products Section */
.products-section {
    padding: 40px 0 80px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tabs-container {
    margin-top: 48px;
}

.tabs-nav {
    display: inline-flex;
    background-color: var(--bg-main);
    padding: 6px;
    border-radius: 50px;
    margin-bottom: 48px;
    border: 1px solid var(--border);
}

.tab-btn {
    border: none;
    background: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition-normal);
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    background-color: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-panels {
    text-align: left;
}

.tab-panel {
    animation: fadeIn 0.4s ease-out;
}

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

.panel-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.panel-details {
    padding-right: 48px;
}

.panel-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.panel-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.panel-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.panel-list {
    list-style: none;
}

.panel-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 15px;
}

.panel-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Sandbox Box Widget */
.sandbox-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.sandbox-header {
    background-color: var(--bg-main);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.sandbox-status {
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sandbox-status::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--secondary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.sandbox-body {
    padding: 28px;
}

.sandbox-body label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.input-group input {
    flex-grow: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    background-color: var(--bg-main);
    transition: var(--transition-fast);
}

.input-group input:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.helper-text {
    font-size: 12px;
    color: var(--text-muted);
}

.demo-seed {
    background-color: var(--bg-main);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px dashed var(--border);
    transition: var(--transition-fast);
}

.demo-seed:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

/* Loader bar */
.sandbox-loading {
    margin-top: 24px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: var(--border);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--grad-primary);
    border-radius: 50px;
    transition: width 0.3s ease;
}

.loading-status-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    animation: flash 1.2s infinite;
}

@keyframes flash {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Result box */
.sandbox-result {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    animation: slideUp 0.3s ease-out;
}

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

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

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

.result-tag {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.result-tag.tag-active { background-color: var(--secondary-light); color: var(--secondary); }
.result-tag.tag-warning { background-color: hsl(38, 95%, 94%); color: var(--warning); }
.result-tag.tag-inactive { background-color: hsl(355, 85%, 94%); color: var(--danger); }

.result-title {
    font-size: 16px;
    font-weight: 700;
}

.result-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 12px;
}

.result-details-table td {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.result-details-table td:nth-child(1) {
    color: var(--text-muted);
    font-weight: 500;
    width: 40%;
}

.result-details-table td:nth-child(2) {
    font-weight: 600;
    text-align: right;
}

/* Pricing Section */
.pricing-section {
    padding: 32px 0 80px;
    background-color: var(--bg-main);
}

.billing-toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-card);
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid var(--border);
    margin-bottom: 48px;
}

.billing-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.billing-label.active {
    color: var(--text-main);
}

.discount-badge {
    background-color: var(--secondary);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
    margin-left: 4px;
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round, .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Pricing Grid */
.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 60px;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.recommended {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.pricing-card.recommended:hover {
    box-shadow: 0 20px 45px -10px rgba(11, 92, 255, 0.12);
}

.popular-tag {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(11, 92, 255, 0.2);
}

.card-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 42px;
}

.price-container {
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
}

.price-container .currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-right: 2px;
}

.price-container .price-val {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.price-container .duration {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 4px;
}

.custom-pricing-txt {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    min-height: 58px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--bg-main);
}

.pricing-features li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: 800;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    opacity: 0.65;
}

.pricing-features li.disabled::before {
    content: "×";
    color: var(--text-muted);
    font-size: 16px;
}

/* Custom Calculator */
.calculator-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.calc-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.calc-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.slider-wrapper {
    margin-bottom: 32px;
}

.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--border);
    outline: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(11, 92, 255, 0.3);
    transition: transform 0.1s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-indicators {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 8px;
}

.calc-outputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

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

.calc-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.calc-stat-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

.calc-stat.highlight .calc-stat-val {
    color: var(--primary);
}

/* Demo Simulator Section */
.demo-section {
    padding: 32px 0 80px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.demo-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
}

.demo-steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.demo-step {
    display: flex;
    gap: 20px;
    opacity: 0.6;
    transition: var(--transition-normal);
}

.demo-step.active {
    opacity: 1;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.demo-step.active .step-num {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.step-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-muted);
}

.demo-sandbox-wrapper {
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    min-height: 380px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.demo-screen {
    animation: fadeIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.screen-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 24px;
}

.drop-zone {
    flex-grow: 1;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition-fast);
}

.drop-zone:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.drop-zone:hover .upload-icon {
    color: var(--primary);
}

.drop-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.file-spec {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Console logs screen */
.processing-console {
    background-color: #0f172a;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 250px;
}

.console-header {
    background-color: #1e293b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
}

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

.console-dot.red { background-color: var(--danger); }
.console-dot.yellow { background-color: var(--warning); }
.console-dot.green { background-color: var(--secondary); }

.console-filename {
    color: #94a3b8;
    font-family: monospace;
    font-size: 11px;
    margin-left: 12px;
}

.console-body {
    padding: 16px;
    color: #38bdf8;
    font-family: monospace;
    font-size: 12px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.console-line {
    white-space: pre-wrap;
    line-height: 1.4;
}

.console-line.success { color: var(--secondary); }
.console-line.warn { color: var(--warning); }
.console-line.info { color: #38bdf8; }

/* Dashboard results */
.results-dashboard {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.results-summary-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.summary-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    transition: var(--transition-fast);
}

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

.summary-card .label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.summary-card .val {
    font-size: 24px;
    font-weight: 800;
    display: block;
}

.summary-card.card-total { background-color: var(--primary-light); border-color: hsl(224, 90%, 90%); color: var(--primary); }
.summary-card.card-active { background-color: var(--secondary-light); border-color: hsl(158, 95%, 90%); color: var(--secondary); }
.summary-card.card-cancelled { background-color: hsl(355, 85%, 96%); border-color: hsl(355, 85%, 90%); color: var(--danger); }
.summary-card.card-suspended { background-color: hsl(38, 95%, 94%); border-color: hsl(38, 95%, 88%); color: var(--warning); }
.summary-card.card-duplicates { background-color: var(--accent-light); border-color: hsl(265, 85%, 90%); color: var(--accent); }

.summary-card.card-total .val { color: var(--primary); }
.summary-card.card-active .val { color: var(--secondary); }
.summary-card.card-cancelled .val { color: var(--danger); }
.summary-card.card-suspended .val { color: var(--warning); }
.summary-card.card-duplicates .val { color: var(--accent); }

.audited-list-wrapper {
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-card);
    overflow: hidden;
    margin-bottom: 24px;
}

.audited-item {
    display: grid;
    grid-template-columns: 1.5fr 1.1fr 1fr 1fr;
    padding: 10px 16px;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
}

.audited-item.mvp-table-columns {
    grid-template-columns: 0.5fr 1.2fr 0.8fr 1.2fr 1fr 1fr;
}

.audited-item:last-child {
    border-bottom: none;
}

.audited-item.header {
    background-color: var(--bg-main);
    font-weight: 700;
    color: var(--text-muted);
}

.audited-list {
    max-height: 140px;
    overflow-y: auto;
}

.demo-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Contact Us Section */
.contact-section {
    padding: 32px 0 80px;
    background-color: var(--bg-main);
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.contact-info {
    padding-right: 48px;
}

.contact-details {
    margin: 32px 0 48px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-item h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion-container h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.faq-question .chevron {
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-question .chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer p {
    padding-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Contact Form Card */
.contact-form-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contact-form-card {
    padding: 40px;
}

.contact-form-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--bg-main);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Footer styling */
.main-footer {
    background-color: var(--bg-card);
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 24px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-col ul a:hover {
    color: var(--primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  min-width: 320px;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideInRight 0.35s ease;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;
  position: relative;
}

.toast.toast-exiting {
  animation: slideOutRight 0.3s ease forwards;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.toast.toast-success::before { background: var(--secondary); }
.toast.toast-error::before { background: var(--danger); }
.toast.toast-info::before { background: var(--primary); }

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

.toast.toast-success .toast-icon { color: var(--secondary); }
.toast.toast-error .toast-icon { color: var(--danger); }
.toast.toast-info .toast-icon { color: var(--primary); }

.toast .toast-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast .toast-message {
  flex: 1;
  line-height: 1.4;
}

/* Auto-dismiss progress bar on toast */
.toast .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 0 0 0 3px;
  animation: toastCountdown var(--toast-duration, 3s) linear forwards;
}

@keyframes toastCountdown {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Homepage custom grid containers */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
    text-align: left;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

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

/* Size scaling for homepage dashboard mockup */
.hero-visual .summary-card {
    padding: 20px 12px;
}

.hero-visual .summary-card .val {
    font-size: 28px;
}

.hero-visual .summary-card .label {
    font-size: 11px;
}

.hero-visual .audited-item {
    padding: 12px 16px;
    font-size: 13px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    body { padding-top: 70px; }
    .main-header { height: 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero-info { max-width: 100%; margin: 0 auto; }
    .hero-ctas { justify-content: center; }
    .hero-features { justify-content: center; }
    .hero-visual { max-width: 580px; margin: 0 auto; }
    
    .panel-grid { grid-template-columns: 1fr; gap: 48px; }
    .panel-details { padding-right: 0; }
    
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 48px auto; }
    .demo-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-info { padding-right: 0; }
    
    .footer-container { flex-direction: column; gap: 48px; }
    .footer-links-grid { gap: 24px; }
    
    /* custom homepage grids */
    .products-grid { grid-template-columns: 1fr; }
    .value-props-grid { grid-template-columns: 1fr; gap: 24px; }
    .bulk-promo-grid { grid-template-columns: 1fr; gap: 32px; }

    /* Flatten 3D perspective angle to avoid horizontal overflow on tablets/mobile */
    .dashboard-mockup {
        transform: none !important;
    }
    .dashboard-mockup:hover {
        transform: none !important;
    }
    
    /* Make results summary cards layout 2-columns on tablets/mobile */
    .results-summary-cards { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important;
    }
    .results-summary-cards .card-total {
        grid-column: span 2;
    }
    
    /* Scale down hero mockup dashboard for tablets/mobile */
    .hero-visual .summary-card {
        padding: 14px 10px;
    }
    .hero-visual .summary-card .val {
        font-size: 22px;
    }
    .hero-visual .summary-card .label {
        font-size: 10px;
    }
    .hero-visual .audited-item {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .nav-links, .header-actions .btn-outline { display: none; }
    .mobile-menu-toggle { display: flex; }
    
    .hero-title { font-size: 38px; }
    .hero-subtitle { font-size: 16px; }
    .section-title { font-size: 30px; }
    
    .tabs-nav { flex-direction: column; border-radius: 12px; width: 100%; padding: 4px; }
    .tab-btn { border-radius: 8px; width: 100%; padding: 8px 16px; }
    
    .calc-outputs { grid-template-columns: 1fr; gap: 16px; text-align: center; }
    
    /* Scroll tables horizontally on mobile so columns are not squished */
    .audited-list-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .audited-item {
        min-width: 600px;
    }
    
    .footer-links-grid { grid-template-columns: 1fr; }

    /* Onboarding Demo Simulator responsive adjustments */
    .demo-sandbox-wrapper {
        padding: 16px !important;
        min-height: auto !important;
        border-radius: 12px !important;
    }
    .drop-zone {
        padding: 24px 16px !important;
    }
    .demo-actions {
        flex-direction: column;
        gap: 10px;
    }
    .demo-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Narrow mobile screens padding */
    .container {
        padding: 0 16px;
    }
    .calculator-card {
        padding: 24px 16px !important;
    }
    .contact-form-card {
        padding: 32px 16px !important;
    }
    
    /* Stack input groups vertically */
    .input-group {
        flex-direction: column;
        gap: 8px;
    }
    .input-group button {
        width: 100%;
        padding: 12px;
    }
    
    /* Make results summary cards layout 2-columns on mobile instead of stacking vertically */
    .results-summary-cards { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important;
    }
    .results-summary-cards .card-total {
        grid-column: span 2;
    }
    
    /* Adjust text size on narrow viewports */
    .hero-title {
        font-size: 32px;
    }
    .section-title {
        font-size: 24px;
    }
    
    /* Header layout optimization */
    body { padding-top: 60px !important; }
    .main-header { height: 60px !important; }
    .logo-text { font-size: 16px; }
    .header-actions .btn-primary {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    /* Onboarding mock-up padding adjustment */
    .mockup-body {
        padding: 12px !important;
    }
}

/* ------------------------------------------
   Modal / Loading Overlay
   ------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.visible {
  display: flex;
}

.modal {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  min-width: 320px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: slideUp 0.4s ease;
}

/* Custom Login Modal Close Button */
.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 10;
}

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