/**
 * Stocky Landing Page — Comprehensive Design System
 * Inspired by Graphite, Apple Pro, and Linear aesthetics.
 */

@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');

/* =====================================================================
   1. DESIGN TOKENS (DARK MODE DEFAULT)
   ===================================================================== */
:root,
[data-mode="dark"] {
    /* Surfaces */
    --bg: #0e0e11;
    --bg-secondary: #141418;
    --card: #1c1c22;
    --card-inner: #24242c;
    --card-hover: #262630;
    --border: #2c2c36;
    --border-subtle: #23232c;

    /* Text */
    --fg: #f5f5f7;
    --fg-secondary: #d1d1d8;
    --muted: #8e8e99;
    --muted-darker: #63636e;

    /* Interactive / States */
    --hover: #262630;
    --input-bg: #141418;
    --nav-bg: rgba(14, 14, 17, 0.75);

    /* Stocky Default Indigo Accent */
    --accent: #9b99ff;
    --accent-light: #4f4dd9;
    --btn-primary: #5e5ce6;
    --btn-primary-hover: #4d4bc8;
    --accent-glow: rgba(94, 92, 230, 0.28);

    /* Status */
    --success: #32d74b;
    --success-bg: rgba(50, 215, 75, 0.12);
    --warning: #ff9f0a;
    --warning-bg: rgba(255, 159, 10, 0.12);
    --danger: #ff7a72;
    --danger-bg: rgba(255, 122, 114, 0.12);
    --info: #64d2ff;
    --info-bg: rgba(100, 210, 255, 0.12);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 0 0 1px var(--border), 0 12px 32px rgba(0, 0, 0, 0.4);

    color-scheme: dark;
}

/* Light Mode Overrides */
[data-mode="light"] {
    --bg: #f8f9fc;
    --bg-secondary: #f0f2f7;
    --card: #ffffff;
    --card-inner: #f5f6fa;
    --card-hover: #fafbfe;
    --border: #e3e6ee;
    --border-subtle: #ebedf5;

    --fg: #14151b;
    --fg-secondary: #2d303a;
    --muted: #64748b;
    --muted-darker: #94a3b8;

    --hover: #f0f2f7;
    --input-bg: #ffffff;
    --nav-bg: rgba(248, 249, 252, 0.88);

    --accent: #4f46e5;
    --accent-light: #4338ca;
    --btn-primary: #4f46e5;
    --btn-primary-hover: #4338ca;
    --accent-glow: rgba(79, 70, 229, 0.16);

    /* Accessible high-contrast status tokens for light surfaces */
    --success: #15803d;
    --success-bg: rgba(21, 128, 61, 0.12);
    --warning: #b45309;
    --warning-bg: rgba(180, 83, 9, 0.12);
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.12);
    --info: #0284c7;
    --info-bg: rgba(2, 132, 199, 0.12);

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 0 0 1px var(--border), 0 8px 24px rgba(0, 0, 0, 0.06);

    color-scheme: light;
}

/* =====================================================================
   2. GLOBAL RESET & BASE STYLES
   ===================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
}

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

/* Ambient Background Mesh */
.ambient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-sphere-1 {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 780px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
}

.ambient-sphere-2 {
    position: absolute;
    top: 45%;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(100px);
    opacity: 0.5;
}

/* =====================================================================
   3. NAVIGATION BAR
   ===================================================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.site-nav.scrolled {
    border-bottom-color: var(--border);
    background: var(--nav-bg);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    flex-wrap: nowrap;
    gap: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--fg);
    flex-shrink: 0;
    white-space: nowrap;
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 4px 14px var(--accent-glow);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin: 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
}

.nav-links a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
    color: #ffffff;
    font-weight: 600;
    background: var(--card);
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* Light Mode Navbar Enhancements (Fix Invisible Text Issue) */
[data-mode="light"] .nav-links {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--border);
}

[data-mode="light"] .nav-links a {
    color: var(--muted);
}

[data-mode="light"] .nav-links a:hover {
    color: var(--fg);
    background: rgba(0, 0, 0, 0.05);
}

[data-mode="light"] .nav-links a.active {
    color: var(--accent);
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(79, 70, 229, 0.18), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.icon-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.icon-btn-circle:hover {
    background: var(--hover);
    border-color: var(--accent);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--fg);
    align-items: center;
    justify-content: center;
}

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 72px);
    background: var(--bg);
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    z-index: 999;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    display: flex;
}

.mobile-nav-drawer a {
    font-size: 18px;
    font-weight: 600;
    color: var(--fg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

/* =====================================================================
   4. BUTTONS & PILLS
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: var(--btn-primary);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--accent-glow);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1.5px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--hover);
    border-color: var(--accent);
    transform: translateY(-1.5px);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12.5px;
    border-radius: 9px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 15.5px;
    border-radius: 14px;
}

/* Tag / Feature Pill */
.feature-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* =====================================================================
   5. HERO SECTION
   ===================================================================== */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 130px 0 60px;
}

/* 2-Column Split Grid for Hero Header */
.hero-split-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    text-align: left;
}

.hero-text-col {
    text-align: left;
}

.hero-headline {
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--fg);
    text-wrap: balance;
    word-break: keep-all;
    hyphens: none;
}

.nowrap-text {
    white-space: nowrap;
}

.gradient-text {
    background: linear-gradient(135deg, var(--fg) 25%, var(--accent) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(15px, 1.4vw, 17.5px);
    color: var(--muted);
    max-width: 580px;
    margin: 0 0 32px 0;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.trust-badge-strip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 10px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

/* =====================================================================
   5B. HERO INTERACTIVE ANIMATED STAGE (RIGHT COLUMN)
   ===================================================================== */
.hero-visual-col {
    position: relative;
    perspective: 1200px;
}

.hero-interactive-stage {
    position: relative;
    width: 100%;
    max-width: 610px;
    margin: 0 auto;
    padding: 32px 22px 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.stage-backdrop-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.6;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

/* Floating Live Stock In & Out Pills (Positioned with clear breathing space) */
.hero-float-pill {
    position: absolute;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 15px 7px 9px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    animation: floatGentle 5s ease-in-out infinite;
}

[data-mode="dark"] .hero-float-pill {
    background: rgba(20, 20, 28, 0.94);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 0, 0, 0.4);
}

[data-mode="light"] .hero-float-pill {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.float-stock-in {
    top: -18px;
    left: 24px;
    border-color: rgba(50, 215, 75, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(50, 215, 75, 0.18);
}

.float-stock-out {
    bottom: -18px;
    left: 24px;
    border-color: rgba(255, 159, 10, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 159, 10, 0.18);
    animation-delay: -2.5s;
}

.float-pill-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.float-pill-icon.in-icon {
    background: rgba(50, 215, 75, 0.18);
    color: var(--success);
}

.float-pill-icon.out-icon {
    background: rgba(255, 159, 10, 0.18);
    color: var(--warning);
}

.float-pill-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.float-pill-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.float-pill-val {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--fg);
    white-space: nowrap;
}

.float-pill-tag {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.float-pill-tag.in-tag {
    background: rgba(50, 215, 75, 0.15);
    color: var(--success);
}

.float-pill-tag.out-tag {
    background: rgba(255, 159, 10, 0.15);
    color: var(--warning);
}

/* Live Profit & Loss Fluctuate Card */
.hero-pnl-floating-card {
    position: relative;
    z-index: 10;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hero-pnl-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.hero-pnl-live {
    font-size: 11px;
    font-weight: 700;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-pnl-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(155, 153, 255, 0.16);
    color: var(--accent);
    border: 1px solid rgba(155, 153, 255, 0.3);
}

.hero-pnl-metrics {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
    align-items: center;
}

.hero-pnl-left {
    border-right: 1px solid var(--border-subtle);
    padding-right: 10px;
}

.hero-profit-title,
.hero-loss-title {
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.hero-profit-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--success);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-profit-ticker {
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    margin-top: 3px;
    transition: all 0.3s ease;
}

.hero-loss-number {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 2px;
}

.hero-loss-sub {
    font-size: 10px;
    color: var(--muted);
}

/* Ensemble Devices Container (Neatly separated devices) */
.hero-devices-ensemble {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

/* Ensemble Mini Laptop */
.ensemble-mini-laptop {
    flex: 1.15;
    position: relative;
}

.mini-laptop-bezel {
    background: #14141c;
    border: 6px solid #232332;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.mini-laptop-topbar {
    background: #1c1c28;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.mini-mac-dots {
    display: flex;
    gap: 3.5px;
}

.mini-mac-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.mini-mac-dots span:nth-child(1) {
    background: #ff5f56;
}

.mini-mac-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mini-mac-dots span:nth-child(3) {
    background: #27c93f;
}

.mini-topbar-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--muted);
}

.mini-title-logo {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.mini-live-status {
    font-size: 9px;
    font-weight: 700;
    color: var(--success);
}

.mini-laptop-screen-content {
    background: var(--bg);
    padding: 8px;
}

.mini-chart-card {
    background: var(--card-inner);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 9px 5px;
    margin-bottom: 6px;
}

.mini-chart-card-head {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.mini-chart-title {
    color: var(--fg);
}

.mini-chart-rate {
    color: var(--success);
}

.mini-svg-chart-wrap {
    position: relative;
    width: 100%;
    height: 60px;
}

.mini-smooth-chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.chart-stroke-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 0;
    animation: drawChartLine 3s ease-in-out infinite alternate;
}

@keyframes drawChartLine {
    0% {
        stroke-dashoffset: 40;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.chart-pulse-head {
    animation: chartPulse 1.8s infinite;
}

@keyframes chartPulse {

    0%,
    100% {
        r: 4px;
        opacity: 1;
    }

    50% {
        r: 7px;
        opacity: 0.6;
    }
}

.mini-animated-bars {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 32px;
    padding: 0 4px;
    z-index: 2;
    pointer-events: none;
}

.mbar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: 100%;
    justify-content: flex-end;
    flex: 1;
}

.mbar-fill {
    width: 8px;
    height: var(--bar-h, 50%);
    border-radius: 3px 3px 0 0;
    background: rgba(155, 153, 255, 0.28);
    transition: height 0.5s ease;
    animation: barFluctuate 4s ease-in-out infinite alternate;
}

@keyframes barFluctuate {
    0% {
        transform: scaleY(0.9);
    }

    100% {
        transform: scaleY(1.08);
    }
}

.mbar-fill.active-mbar {
    background: linear-gradient(180deg, var(--accent) 0%, var(--btn-primary) 100%);
    box-shadow: 0 0 8px var(--accent-glow);
}

.mbar-col span {
    font-size: 7.5px;
    color: var(--muted);
    font-weight: 600;
}

.mini-invoice-fast-row {
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9.5px;
}

.fast-inv-id {
    color: var(--accent);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.fast-inv-name {
    color: var(--fg);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.fast-inv-val {
    font-weight: 700;
    color: var(--fg);
}

.fast-inv-wa {
    font-size: 8.5px;
    color: #25d366;
    font-weight: 700;
}

.mini-laptop-stand {
    height: 8px;
    background: linear-gradient(180deg, #2b2b3a 0%, #161622 100%);
    border-radius: 0 0 8px 8px;
    max-width: 95%;
    margin: 0 auto;
}

/* Ensemble Floating Mini Phone */
.ensemble-mini-phone {
    width: 138px;
    flex-shrink: 0;
    background: #0d0d14;
    border: 5px solid #282836;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
}

.mini-phone-notch-pill {
    width: 38px;
    height: 8px;
    background: #000;
    border-radius: 10px;
    margin: 3px auto 2px;
}

.mini-phone-screen-body {
    padding: 4px 6px 8px;
}

.mini-phone-top-bar {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    font-weight: 700;
    color: #f5f5f7;
    margin-bottom: 4px;
    padding: 0 2px;
}

.mini-phone-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    text-align: center;
}

.mini-phone-app-tag {
    font-size: 7px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.mini-phone-bill-title {
    font-size: 8px;
    font-weight: 700;
    color: var(--fg);
}

.mini-phone-amount {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--accent);
    margin: 3px 0;
}

.mini-phone-wa-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: #25d366;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 5px;
    border-radius: 5px;
    margin-bottom: 4px;
}

.mini-phone-stock-status {
    font-size: 7.5px;
    font-weight: 700;
    color: var(--success);
}

/* Light Mode Adaptations for Hero Interactive Stage & Devices */
[data-mode="light"] .hero-interactive-stage {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-mode="light"] .hero-pnl-floating-card {
    background: var(--card-inner);
    border-color: var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-mode="light"] .mini-laptop-bezel {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

[data-mode="light"] .mini-laptop-topbar {
    background: #f1f5f9;
    border-bottom-color: #e2e8f0;
}

[data-mode="light"] .mini-topbar-title {
    color: var(--fg);
}

[data-mode="light"] .mini-laptop-stand {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
}

[data-mode="light"] .mini-chart-card {
    background: #ffffff;
    border-color: var(--border);
}

[data-mode="light"] .ensemble-mini-phone {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

[data-mode="light"] .mini-phone-notch-pill {
    background: #334155;
}

[data-mode="light"] .mini-phone-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-mode="light"] .mini-phone-top-bar {
    color: var(--fg);
}

/* =====================================================================
   6. HERO DUAL DEVICE SHOWCASE: LAPTOP & SMARTPHONE
   ===================================================================== */
.devices-hero-showcase {
    position: relative;
    margin: 40px auto 0;
    max-width: 1120px;
    padding-bottom: 20px;
}

/* Laptop Mockup Wrapper (Enhanced minor width & balanced aspect ratio) */
.laptop-device-frame {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
}

.laptop-screen-lid {
    background: #13131a;
    border: 12px solid #20202c;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.laptop-screen-bezel {
    position: relative;
    background: var(--bg);
}

.laptop-camera-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 7px;
    background: #14141c;
    border-radius: 0 0 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.laptop-lens-dot {
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: #2b3d58;
    box-shadow: inset 0 0 1px #4da3ff;
}

.laptop-mini-app-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.laptop-base-chassis {
    height: 16px;
    background: linear-gradient(180deg, #2c2c3a 0%, #171722 100%);
    border-radius: 0 0 18px 18px;
    margin: 0 auto;
    max-width: 960px;
    position: relative;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.laptop-base-notch {
    width: 100px;
    height: 5px;
    background: #0f0f15;
    border-radius: 0 0 6px 6px;
    margin: 0 auto;
}

.laptop-desk-shadow {
    height: 22px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
    margin: -3px auto 0;
    max-width: 940px;
}

/* Device Pill Badges (STOCK, PROFIT, LOSS, INVOICES, REPORT) */
.device-pill-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}

.badge-profit {
    background: rgba(50, 215, 75, 0.16);
    color: var(--success);
    border: 1px solid rgba(50, 215, 75, 0.3);
}

.badge-stock {
    background: rgba(100, 210, 255, 0.16);
    color: var(--info);
    border: 1px solid rgba(100, 210, 255, 0.3);
}

.badge-loss {
    background: rgba(155, 153, 255, 0.16);
    color: var(--accent);
    border: 1px solid rgba(155, 153, 255, 0.3);
}

.badge-invoices {
    background: rgba(255, 159, 10, 0.16);
    color: var(--warning);
    border: 1px solid rgba(255, 159, 10, 0.3);
}

.badge-report {
    background: rgba(155, 153, 255, 0.16);
    color: var(--accent);
    border: 1px solid rgba(155, 153, 255, 0.3);
}

.pill-wa-sent {
    font-size: 10.5px;
    font-weight: 700;
    color: #25d366;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.laptop-panel-card {
    background: var(--card-inner);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}

/* Mini Visual Chart Strip in Laptop */
.mini-chart-strip {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 72px;
    padding: 8px 12px 0;
    background: var(--card);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    gap: 8px;
}

.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.chart-col span {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
}

.chart-bar-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: color-mix(in srgb, var(--accent) 30%, var(--card-inner));
    transition: height 0.3s ease;
}

.chart-bar-fill.active-bar {
    background: linear-gradient(180deg, var(--accent) 0%, var(--btn-primary) 100%);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Floating Smartphone Showcase (iPhone 16 Pro) */
.mobile-phone-showcase {
    position: absolute;
    right: -24px;
    bottom: 0px;
    width: 285px;
    z-index: 20;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease;
}

.mobile-phone-showcase:hover {
    transform: translateY(-4px) scale(1.02);
}

.mobile-phone-body {
    background: #0f0f15;
    border: 8px solid #232330;
    border-radius: 36px;
    padding: 8px 12px 14px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.mobile-dynamic-island {
    width: 76px;
    height: 18px;
    background: #000000;
    border-radius: 20px;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.island-camera {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #17243b;
}

.island-sensor {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #101018;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--fg);
    padding: 0 4px 6px;
}

.phone-status-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-battery-icon {
    width: 15px;
    height: 8px;
    border: 1px solid currentColor;
    border-radius: 2px;
    padding: 1px;
    display: flex;
    align-items: center;
}

.mini-battery-level {
    width: 80%;
    height: 100%;
    background: var(--success);
    border-radius: 1px;
}

.phone-app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}

.phone-app-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
}

.phone-invoice-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px;
    margin-bottom: 8px;
}

.phone-inv-header {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 800;
    margin-bottom: 4px;
}

.phone-inv-title {
    color: var(--muted);
    letter-spacing: 0.05em;
}

.phone-inv-num {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.phone-inv-customer {
    font-size: 11px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.phone-inv-items {
    background: var(--card-inner);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 10.5px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-item-row {
    display: flex;
    justify-content: space-between;
    color: var(--fg);
}

.phone-inv-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    font-weight: 800;
    margin-bottom: 7px;
    padding-top: 4px;
    border-top: 1px solid var(--border-subtle);
}

.phone-total-val {
    font-size: 14px;
    color: var(--accent);
}

.phone-whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #25d366;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    text-align: center;
}

.phone-whatsapp-cta:hover {
    background: #20bd5a;
}

.phone-stock-alert-tag {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--success);
    text-align: center;
    margin-top: 5px;
    display: block;
}

.phone-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2px;
    padding-top: 7px;
    border-top: 1px solid var(--border-subtle);
}

.phone-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    color: var(--muted);
    cursor: pointer;
}

.phone-nav-tab.active {
    color: var(--accent);
    font-weight: 700;
}

.mockup-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.window-traffic-lights {
    display: flex;
    align-items: center;
    gap: 7px;
}

.window-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.window-titlebar {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    padding: 4px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.screen-tabs-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.screen-tab-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.screen-tab-btn:hover {
    color: var(--fg);
    background: var(--hover);
}

.screen-tab-btn.active {
    color: var(--fg);
    background: var(--card-inner);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.mockup-content-body {
    padding: 20px 22px;
    background: var(--bg);
    min-height: 330px;
    transition: min-height 0.25s ease;
}

/* Light Mode Overrides for Large Laptop & Phone Showcase */
[data-mode="light"] .laptop-screen-lid {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-mode="light"] .laptop-camera-notch {
    background: #cbd5e1;
}

[data-mode="light"] .laptop-base-chassis {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
}

[data-mode="light"] .laptop-base-notch {
    background: #64748b;
}

[data-mode="light"] .mobile-phone-body {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

[data-mode="light"] .mobile-dynamic-island {
    background: #1e293b;
}

[data-mode="light"] .phone-status-bar {
    color: var(--fg);
}

[data-mode="dark"] .phone-status-bar {
    color: #ffffff;
}

/* Mockup UI Elements */
.mini-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.mini-kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.highlight-metric-card {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.mini-kpi-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-kpi-val {
    font-size: 21px;
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.mini-kpi-change {
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    margin-top: 4px;
}

.mini-ui-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.mini-ui-table th {
    text-align: left;
    padding: 9px 12px;
    background: var(--hover);
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.mini-ui-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--fg);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.paid {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge.pending {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-badge.low-stock {
    background: var(--danger-bg);
    color: var(--danger);
}

/* =====================================================================
   7. METRIC STATS COUNTER STRIP
   ===================================================================== */
.stats-strip-section {
    position: relative;
    z-index: 1;
    padding: 60px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.stat-item p {
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 500;
}

/* =====================================================================
   8. CORE MODULES / FEATURES SECTION
   ===================================================================== */
.features-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(28px, 3.8vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--fg);
}

.section-desc {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 16px 36px var(--accent-glow);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--fg);
}

.feature-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.feature-list-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-list-bullets li {
    font-size: 13px;
    color: var(--fg-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list-bullets li svg {
    color: var(--success);
    flex-shrink: 0;
}

/* =====================================================================
   8B. PRICING SECTION
   ===================================================================== */
.pricing-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    background: var(--card);
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
}

.pricing-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.pricing-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--hover);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.pricing-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--fg);
    transition: .3s;
    border-radius: 50%;
}

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

input:checked + .pricing-slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
}

.save-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    background: var(--success-bg);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(50, 215, 75, 0.3);
}

.pricing-card-single-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.pricing-card-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 36px 40px;
}

.pricing-card-horizontal .pricing-card-left {
    flex: 1;
}

.pricing-card-horizontal .pricing-card-header {
    margin-bottom: 20px;
}

.pricing-card-horizontal .pricing-card-header p {
    margin-bottom: 0;
}

.pricing-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.pricing-card-horizontal .pricing-card-right {
    text-align: right;
    flex-shrink: 0;
}

.pricing-card-horizontal .pricing-card-price {
    margin-bottom: 0;
    justify-content: flex-end;
}

.pricing-card-horizontal .effective-price {
    margin-bottom: 12px;
}

.pricing-card-horizontal .btn {
    width: 100%;
    min-width: 180px;
}

/* Responsive breakpoint for mobile */
@media (max-width: 768px) {
    .pricing-card-horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 24px 20px;
    }

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

    .pricing-card-horizontal .pricing-card-right {
        text-align: left;
    }

    .pricing-card-horizontal .pricing-card-price {
        justify-content: flex-start;
    }

    .pricing-card-horizontal .btn {
        width: 100%;
    }
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 16px 36px var(--accent-glow);
}

.pricing-card.featured {
    border-color: var(--btn-primary);
    background: linear-gradient(180deg, color-mix(in srgb, var(--btn-primary) 8%, var(--card)) 0%, var(--card) 100%);
    box-shadow: 0 12px 32px var(--accent-glow);
}

.best-value-tag {
    position: absolute;
    top: -12px;
    right: 28px;
    background: var(--btn-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px var(--accent-glow);
    display: none;
}

.pricing-card-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--fg);
    margin-bottom: 4px;
}

.pricing-card-header p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 20px;
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.pricing-card-price .currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--fg);
}

.pricing-card-price .amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -0.02em;
}

.pricing-card-price .period {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.effective-price {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 20px;
    height: 18px;
}

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

.pricing-features li {
    font-size: 14px;
    color: var(--fg-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li svg {
    color: var(--success);
    flex-shrink: 0;
}

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

/* =====================================================================
   9. INTERACTIVE ROI & SAVINGS CALCULATOR
   ===================================================================== */
.calculator-section {
    position: relative;
    z-index: 1;
    padding: 90px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.calc-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 44px;
    box-shadow: var(--shadow-md);
}

.slider-group {
    margin-bottom: 28px;
}

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

.slider-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
}

.slider-value-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    padding: 3px 10px;
    border-radius: 8px;
}

.custom-range {
    width: 100%;
    height: 7px;
    border-radius: 6px;
    background: var(--hover);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--btn-primary);
    box-shadow: 0 0 10px var(--accent-glow);
    cursor: pointer;
    border: 2px solid #ffffff;
}

.calc-results-card {
    background: var(--card-inner);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-res-item {
    margin-bottom: 22px;
}

.calc-res-item span {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.calc-res-item h4 {
    font-size: 32px;
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -0.02em;
}

/* =====================================================================
   9B. BEFORE & AFTER IMAGE COMPARISON SLIDER
   ===================================================================== */
.comparison-section {
    position: relative;
    z-index: 1;
    padding: 70px 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.comparison-wrapper {
    max-width: 980px;
    margin: 0 auto;
}

.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    /* rounded-xl */
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
    /* shadow-lg */
    background: #0e0e11;
    cursor: ew-resize;
    user-select: none;
    touch-action: pan-y;
}

.comparison-layer-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.comparison-overlay-clip {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    transition: clip-path 0.04s linear;
}

.comparison-badge {
    position: absolute;
    top: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.badge-after {
    left: 16px;
    background: rgba(16, 185, 129, 0.94) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
}

.badge-before {
    right: 16px;
    background: rgba(225, 29, 72, 0.88);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dot-emerald {
    background: #ffffff !important;
    box-shadow: 0 0 6px #ffffff !important;
}

.dot-rose {
    background: #fda4af;
}

.comparison-divider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2.5px;
    background: #ffffff;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 24px var(--accent-glow);
}

.comparison-divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    border: 2.5px solid var(--btn-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(94, 92, 230, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
}

.comparison-container:active .comparison-divider-handle,
.comparison-container.is-dragging .comparison-divider-handle {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(94, 92, 230, 0.5);
}

.comparison-caption {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
}

/* =====================================================================
   10. BOOK A DEMO SECTION & FORM (COMPACT SINGLE-SCREEN FIT)
   ===================================================================== */
.book-demo-section {
    position: relative;
    z-index: 1;
    padding: 32px 0 38px;
}

.demo-card-container {
    max-width: 680px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.demo-header-banner {
    padding: 14px 22px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--card)), var(--card));
    border-bottom: 1px solid var(--border);
    position: relative;
}

.demo-form-padding {
    padding: 20px 24px;
}

.demo-success-container {
    padding: 24px 26px;
    text-align: center;
}

.success-check-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    box-shadow: 0 0 16px rgba(50, 215, 75, 0.2);
}

.success-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: left;
    background: var(--card-inner);
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 12px 0 16px;
}

@media (max-width: 600px) {
    .success-lead-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .demo-success-container {
        padding: 18px 16px;
    }
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.form-group label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--fg-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--fg);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.form-textarea {
    min-height: 48px;
    height: 48px;
    resize: none;
}

.spreadsheet-badge-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--muted);
    padding: 8px 14px;
    background: var(--card-inner);
    border-radius: 9px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}

/* =====================================================================
   11. FOUNDER & CONTACT SECTION
   ===================================================================== */
.founder-section {
    position: relative;
    z-index: 1;
    padding: 90px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* Modern Developer & Direct Contact Hub Grid */
.dev-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 28px;
    align-items: stretch;
    max-width: 1040px;
    margin: 0 auto;
}

/* Developer Profile Card */
.dev-profile-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.dev-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--btn-primary), var(--accent));
}

.dev-card-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.dev-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.founder-avatar-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--btn-primary), color-mix(in srgb, var(--accent) 60%, #fff));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.dev-pulse-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--success);
    border: 2.5px solid var(--card);
    box-shadow: 0 0 10px var(--success);
    animation: pulseDot 2s infinite;
}

.dev-identity h3 {
    font-size: 21px;
    font-weight: 800;
    color: var(--fg);
    margin-bottom: 3px;
}

.dev-identity p {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.dev-badge-verified {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--success);
    background: rgba(50, 215, 75, 0.12);
    border: 1px solid rgba(50, 215, 75, 0.28);
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dev-bio-summary {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.dev-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.d-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--card-inner);
    border: 1px solid var(--border-subtle);
    color: var(--fg);
}

.dev-sla-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
}

/* Contact Channels Column */
.dev-channels-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
}

.dev-channel-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dev-channel-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 16px var(--accent-glow);
}

.channel-wa-featured {
    border-color: rgba(37, 211, 102, 0.35);
    background: linear-gradient(135deg, var(--card) 0%, rgba(37, 211, 102, 0.04) 100%);
}

.channel-wa-featured:hover {
    border-color: #25d366;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(37, 211, 102, 0.25);
}

.channel-icon-pill {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-phone {
    background: rgba(155, 153, 255, 0.15);
    color: var(--accent);
    border: 1px solid rgba(155, 153, 255, 0.3);
}

.icon-wa {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.35);
}

.icon-mail {
    background: rgba(100, 210, 255, 0.15);
    color: var(--info);
    border: 1px solid rgba(100, 210, 255, 0.3);
}

.channel-info-box {
    flex: 1;
    min-width: 0;
}

.channel-type-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 2px;
}

.badge-quick-reply {
    font-size: 9px;
    font-weight: 800;
    color: #25d366;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.channel-contact-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--fg);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-desc {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.35;
}

.channel-btn {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =====================================================================
   12. SPREADSHEET LEAD VIEWER MODAL
   ===================================================================== */
.spreadsheet-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.spreadsheet-modal-window {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 980px;
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    margin: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    flex: 1 1 auto;
    min-height: 0;
}

.table-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-inner);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

/* =====================================================================
   12B. POPUP DEMO BOOKING MODAL & FORM VALIDATION
   ===================================================================== */
.demo-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2200;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: fadeInModal 0.2s ease forwards;
}

.demo-modal-backdrop.active {
    display: flex;
}

.demo-modal-window {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 20px var(--accent-glow);
    overflow: hidden;
    position: relative;
    margin: auto;
    animation: scaleInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleInModal {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }

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

.demo-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--card)), var(--card));
    border-bottom: 1px solid var(--border);
    gap: 16px;
    flex-shrink: 0;
}

.demo-modal-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 6px;
}

.demo-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.demo-modal-subtitle {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
}

.icon-btn-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-inner);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.icon-btn-circle:hover {
    color: var(--fg);
    border-color: var(--accent);
    background: var(--hover);
}

.demo-modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.modal-trust-note {
    font-size: 11.5px;
    color: var(--muted);
}

.form-error-msg {
    display: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--danger);
    margin-top: 4px;
}

.form-error-msg.visible {
    display: block;
}

.form-input.input-error,
.form-select.input-error,
.form-textarea.input-error {
    border-color: var(--danger) !important;
    background: color-mix(in srgb, var(--danger) 5%, var(--input-bg)) !important;
    box-shadow: 0 0 0 3px var(--danger-bg) !important;
}

/* =====================================================================
   13. FAQ ACCORDION
   ===================================================================== */
.faq-section {
    position: relative;
    z-index: 1;
    padding: 90px 0;
}

.faq-container {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.faq-item.open {
    border-color: var(--accent);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-icon-arrow {
    transition: transform 0.2s ease;
    color: var(--muted);
}

.faq-item.open .faq-icon-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    display: none;
    padding: 0 22px 20px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}

/* =====================================================================
   14. FOOTER & FLOATING WHATSAPP
   ===================================================================== */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted);
    font-size: 13.5px;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 16px;
}

.floating-whatsapp-trigger {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp-trigger:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* =====================================================================
   14B. RESPONSIVE TABLE WRAPPERS & DASHBOARD HELPERS
   ===================================================================== */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
}

.table-responsive-wrapper table.mini-ui-table {
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    width: 100%;
    min-width: 520px;
}

.table-responsive-wrapper::-webkit-scrollbar {
    height: 4px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.laptop-dashboard-split {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
}

/* =====================================================================
   15. COMPREHENSIVE RESPONSIVE BREAKPOINTS (TABLETS & MOBILE)
   ===================================================================== */

/* --- TABLETS & MEDIUM SCREENS (<= 992px) --- */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

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

    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        margin-bottom: 40px;
    }

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

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

    .hero-subtitle {
        margin: 0 auto 28px;
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .trust-badge-strip {
        justify-content: center;
    }

    .calc-box-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px;
    }

    .dev-hub-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* Devices showcase */
    .devices-hero-showcase {
        margin-top: 30px;
    }

    .laptop-dashboard-split {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .laptop-screen-lid {
        border-width: 8px;
        border-radius: 14px 14px 0 0;
    }

    .laptop-base-chassis {
        height: 12px;
    }
}

/* --- SMALL TABLETS & PHABLETS (<= 768px) --- */
@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feature-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .stats-strip-section {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }

    .stat-item h3 {
        font-size: clamp(26px, 5.5vw, 36px);
    }

    .calculator-section {
        padding: 60px 0;
    }

    .calc-box-grid {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .calc-results-card {
        padding: 24px 18px;
        border-radius: 16px;
    }
}

/* --- STANDARD MOBILE PHONES (<= 640px) --- */
@media (max-width: 640px) {

    /* Global container padding */
    .container {
        padding: 0 16px;
    }

    /* Navbar on Mobile */
    .site-nav {
        height: 64px;
    }

    .nav-inner {
        height: 64px;
        gap: 12px;
    }

    .brand-logo {
        font-size: 18px;
        gap: 8px;
    }

    .brand-logo-img {
        width: 32px;
        height: 32px;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn-sm {
        padding: 6px 12px;
        font-size: 11.5px;
    }

    .icon-btn-circle {
        width: 34px;
        height: 34px;
    }

    .mobile-nav-toggle {
        width: 36px;
        height: 36px;
    }

    .mobile-nav-drawer {
        top: 64px;
        height: calc(100vh - 64px);
        padding: 24px 20px;
    }

    /* Hero Section */
    .hero-section {
        padding: 82px 0 36px;
    }

    .hero-headline {
        font-size: clamp(24px, 6.2vw, 34px);
        line-height: 1.22;
        letter-spacing: -0.02em;
    }

    .nowrap-text {
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 14.5px;
        line-height: 1.55;
        margin: 0 auto 22px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
        padding: 13px 18px;
        font-size: 14.5px;
    }

    .trust-badge-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
        text-align: left;
        justify-content: start;
        font-size: 11.5px;
    }

    /* Hero Interactive Stage & Device Ensemble */
    .hero-interactive-stage {
        padding: 22px 12px 16px;
        border-radius: 20px;
        max-width: 100%;
        overflow: hidden;
    }

    .float-stock-in {
        top: -8px;
        left: 8px;
        right: auto;
        padding: 5px 10px 5px 7px;
        font-size: 10.5px;
    }

    .float-stock-out {
        bottom: -8px;
        right: 8px;
        left: auto;
        padding: 5px 10px 5px 7px;
        font-size: 10.5px;
    }

    .float-pill-val {
        font-size: 10px;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-pnl-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-pnl-left {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding-bottom: 8px;
        padding-right: 0;
    }

    .hero-profit-number {
        font-size: 20px;
    }

    .hero-devices-ensemble {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ensemble-mini-laptop {
        width: 100%;
        flex: none;
    }

    .ensemble-mini-phone {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }

    .mini-topbar-title {
        font-size: 8.5px;
    }

    .mini-invoice-fast-row {
        flex-wrap: wrap;
        gap: 4px;
        font-size: 9px;
    }

    /* Screen Tabs & Mockup Canvas */
    .laptop-screen-lid {
        border-width: 5px;
        border-radius: 12px 12px 0 0;
    }

    .laptop-base-chassis {
        height: 8px;
    }

    .mockup-window-header {
        padding: 8px 10px;
        font-size: 10.5px;
    }

    .window-titlebar {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }

    .screen-tabs-bar {
        padding: 8px 10px;
        gap: 6px;
    }

    .screen-tab-btn {
        padding: 7px 11px;
        font-size: 11px;
        border-radius: 8px;
    }

    .mockup-content-body {
        padding: 12px 10px;
        min-height: auto;
    }

    .mini-kpi-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mini-kpi-val {
        font-size: 18px;
    }

    .laptop-panel-card {
        padding: 12px 10px;
        border-radius: 10px;
    }

    /* Screen 2: GST Invoicing header & total buttons */
    .billing-preview-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .billing-btn-group {
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .billing-btn-group .btn {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        text-align: center;
        font-size: 11px !important;
        padding: 7px 8px !important;
    }

    .billing-btn-group .btn-whatsapp {
        flex: 1 1 100%;
    }

    .invoice-total-summary {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 10px !important;
    }

    .invoice-total-summary>div:last-child {
        text-align: left !important;
        width: 100%;
    }

    /* Screen 5: Reports */
    .reports-header-summary {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .reports-dual-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Before & After Comparison Slider */
    .comparison-section {
        padding: 50px 0;
    }

    .comparison-container {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }

    .comparison-badge {
        font-size: 10.5px;
        padding: 4px 10px;
        top: 10px;
    }

    .badge-after {
        left: 10px;
    }

    .badge-before {
        right: 10px;
    }

    .comparison-divider-handle {
        width: 38px;
        height: 38px;
    }

    .comparison-caption {
        font-size: 11.5px;
        text-align: center;
    }

    /* Book Demo Section & Form */
    .book-demo-section {
        padding: 40px 0;
    }

    .demo-card-container {
        border-radius: 18px;
    }

    .demo-header-banner {
        padding: 16px 16px;
    }

    .demo-form-padding {
        padding: 16px 14px 20px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 8px;
    }

    /* Prevent mobile Safari automatic page zoom-in on focus */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px !important;
        padding: 10px 12px;
    }

    #book-demo-form button[type="submit"] {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 14px;
    }

    /* Developer Hub */
    .founder-section {
        padding: 50px 0;
    }

    .dev-profile-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .dev-card-top {
        gap: 12px;
    }

    .founder-avatar-circle {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }

    .dev-identity h3 {
        font-size: 19px;
    }

    .dev-channels-list {
        gap: 12px;
    }

    .dev-channel-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 14px;
    }

    .channel-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
    }

    .channel-contact-val {
        font-size: 14.5px;
    }

    /* FAQ Section */
    .faq-section {
        padding: 50px 0;
    }

    .faq-container {
        gap: 10px;
    }

    .faq-question {
        padding: 15px 16px;
        font-size: 14px;
        line-height: 1.4;
        gap: 10px;
    }

    .faq-answer {
        padding: 0 16px 16px;
        font-size: 13.5px;
        line-height: 1.55;
    }

    /* Floating WhatsApp Button */
    .floating-whatsapp-trigger {
        width: 50px;
        height: 50px;
        right: 16px;
        bottom: 16px;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }

    .floating-whatsapp-trigger svg {
        width: 26px;
        height: 26px;
    }

    /* Modals & Dialogs on Mobile */
    .demo-modal-backdrop {
        padding: 10px 8px;
        align-items: flex-start;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .demo-modal-window {
        max-width: 100%;
        max-height: calc(100dvh - 20px);
        margin: auto 0;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .demo-modal-header {
        padding: 14px 16px 12px;
        flex-shrink: 0;
    }

    .demo-modal-body {
        padding: 14px 16px 28px;
        flex: 1 1 auto;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
    }

    .modal-form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .modal-form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 14px;
        padding-top: 12px;
        padding-bottom: 16px;
    }

    .modal-submit-btn {
        width: 100%;
        min-height: 48px;
        font-size: 15px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .modal-trust-note {
        text-align: center;
        font-size: 11.5px;
    }

    .spreadsheet-modal-backdrop {
        padding: 10px 8px;
        align-items: flex-start;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .spreadsheet-modal-window {
        max-width: 100%;
        max-height: calc(100dvh - 20px);
        margin: auto 0;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .modal-header {
        padding: 14px 16px;
        flex-shrink: 0;
    }

    .modal-body {
        padding: 12px;
        flex: 1 1 auto;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
    }

    /* Footer */
    .site-footer {
        padding: 45px 0 25px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 26px;
    }

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

/* --- ULTRA-COMPACT MOBILE PHONES (<= 400px) --- */
@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }

    .hero-headline {
        font-size: 24px;
    }

    .nav-actions .btn-sm {
        padding: 5px 8px;
        font-size: 11px;
    }

    .trust-badge-strip {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .comparison-container {
        aspect-ratio: 1 / 1;
    }

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