/**
 * QFO Studio — Modern Minimalist Design System (2026)
 * Brand new CSS Architecture replacing all legacy styles.
 */

/* ==========================================================================
   1. CSS Custom Properties / Design Tokens
   ========================================================================== */
:root {
    /* Brand & Primary Palette */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-active: #1e40af;
    --primary-soft: #eff6ff;
    --primary-border: #bfdbfe;
    --primary-glow: rgba(37, 99, 235, 0.22);

    /* Accents */
    --accent-purple: #7c3aed;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-rose: #f43f5e;

    /* Neutrals / Slate */
    --ink-950: #020617;
    --ink-900: #0f172a;
    --ink-800: #1e293b;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748b;
    --ink-400: #94a3b8;
    --ink-300: #cbd5e1;
    --ink-200: #e2e8f0;
    --ink-100: #f1f5f9;
    --ink-50:  #f8fafc;
    --white:   #ffffff;

    /* Surfaces */
    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 22px 46px -8px rgba(15, 23, 42, 0.12), 0 8px 20px -4px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 32px 64px -12px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 12px 36px -4px rgba(37, 99, 235, 0.28);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Typography & Transitions */
    --font-sans: "Kanit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--ink-700);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Clean display: NO mobile bottom padding */
    padding-bottom: 0 !important;
}

body.drawer-open {
    overflow: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink-900);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   3. Container & Layout Utilities
   ========================================================================== */
.container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding-block: 100px;
    position: relative;
}

.section-header {
    margin-bottom: 56px;
}

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

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.section-desc {
    color: var(--ink-500);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   4. Modern Buttons & Badges (With Backwards Compatibility)
   ========================================================================== */
.btn, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    border: 1px solid transparent;
}

.btn:active, .button:active {
    transform: scale(0.98);
}

.btn-primary, .button-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover, .button-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary, .btn-outline, .button-outline {
    background-color: var(--white);
    color: var(--ink-800);
    border-color: var(--border-color);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover, .btn-outline:hover, .button-outline:hover {
    background-color: var(--ink-50);
    border-color: var(--border-hover);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-white, .button-white {
    background-color: var(--white);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.btn-white:hover, .button-white:hover {
    background-color: #f8fafc;
    color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.btn-ghost-white {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-ghost-white:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg, .button-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   5. Floating Modern Curved Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    display: flex;
    justify-content: center;
    transition: transform var(--transition-normal);
}

.nav-wrap {
    pointer-events: auto;
    width: min(1040px, calc(100% - 36px));
    height: 64px;
    padding: 0 10px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: var(--radius-full); /* Floating Curved Pill */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 12px 34px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    transition: all var(--transition-normal);
}

.site-header.is-scrolled .nav-wrap {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(203, 213, 225, 0.95);
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transform: translateY(-2px);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    height: 36px;
}

.brand-logo img {
    height: 36px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.brand-logo.footer-logo {
    height: 44px;
}

.brand-logo.footer-logo img {
    height: 44px;
    width: auto;
    max-height: 100%;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border-radius: var(--radius-full);
    background: rgba(241, 245, 249, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.desktop-nav .nav-link {
    padding: 6px 14px;
    color: var(--ink-600);
    font-size: 0.86rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.desktop-nav .nav-link:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.85);
}

.desktop-nav .nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

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

.nav-login-btn {
    padding: 7px 14px;
    color: var(--ink-700);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-login-btn:hover {
    color: var(--primary);
    background: var(--ink-50);
}

.nav-cta-btn {
    padding: 8px 18px;
    font-size: 0.88rem;
    border-radius: var(--radius-full);
}

.menu-toggle-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%; /* Modern Circular Pill Button */
    background: var(--ink-50);
    border: 1px solid var(--border-color);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--ink-800);
    font-size: 1.15rem;
    transition: all var(--transition-fast);
}

.menu-toggle-btn:hover, .menu-toggle-btn:active {
    background: var(--primary-soft);
    border-color: var(--primary-border);
    color: var(--primary);
    transform: scale(1.05);
}

/* ==========================================================================
   6. Modern Floating Curved Mobile Drawer Menu
   ========================================================================== */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 14px;
    right: 14px;
    bottom: 14px;
    width: min(360px, calc(100vw - 28px));
    height: calc(100dvh - 28px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 28px; /* High-end floating rounded card */
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.28);
    transform: translateX(calc(100% + 28px));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.mobile-drawer-head {
    height: 68px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(248, 250, 252, 0.7);
}

.mobile-close-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink-100);
    color: var(--ink-700);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.mobile-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.mobile-drawer-body {
    padding: 20px 16px;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-left: 10px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--ink-800);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.mobile-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ink-100);
    color: var(--ink-600);
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.mobile-nav-arrow {
    font-size: 0.8rem;
    color: var(--ink-300);
    transition: all var(--transition-fast);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary);
    background-color: var(--primary-soft);
    border-color: var(--primary-border);
    transform: translateX(3px);
}

.mobile-nav-item:hover .mobile-nav-icon,
.mobile-nav-item.active .mobile-nav-icon {
    background-color: var(--primary);
    color: var(--white);
}

.mobile-nav-item:hover .mobile-nav-arrow,
.mobile-nav-item.active .mobile-nav-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

.mobile-drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(248, 250, 252, 0.9);
}

.mobile-cta-tagline {
    font-size: 0.78rem;
    color: var(--ink-500);
    margin-bottom: 10px;
    text-align: center;
}

.mobile-drawer-footer .btn {
    border-radius: var(--radius-full);
}

.mobile-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-700);
    transition: color var(--transition-fast);
}

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

.mobile-facebook-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 14px;
    border-radius: var(--radius-full);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 0.84rem;
    font-weight: 500;
    color: #1d4ed8;
    transition: all var(--transition-fast);
}

.mobile-facebook-link:hover {
    background: #1877f2;
    color: var(--white);
    border-color: #1877f2;
    transform: translateY(-1px);
}

.mobile-facebook-link i {
    font-size: 0.95rem;
}

/* Bottom Nav is completely removed */
.bottom-nav {
    display: none !important;
}

/* ==========================================================================
   7. Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 120px 0 80px;
    background: var(--white);
    overflow: hidden;
}

.hero-background-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 450px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 26px;
    box-shadow: var(--shadow-xs);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    position: relative;
}

.pill-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.4;
    animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

.hero-title {
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
}

.typewriter-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--ink-50);
    border: 1px solid var(--border-color);
    font-size: clamp(0.92rem, 1.4vw, 1.05rem);
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.typewriter-prefix {
    color: var(--primary);
    font-size: 0.9rem;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--primary);
    margin-left: 2px;
    animation: blink 0.9s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--ink-600);
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 36px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-subtext {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ink-400);
}

.hero-subtext i {
    color: var(--accent-green);
}

/* Metrics Strip */
.metrics-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.metric-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-normal);
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.metric-val {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.1;
}

.metric-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-800);
    margin-top: 2px;
}

.metric-sub {
    font-size: 0.76rem;
    color: var(--ink-400);
}

/* ==========================================================================
   8. Device Showcase Section
   ========================================================================== */
.showcase-section {
    background-color: var(--bg-surface);
    border-block: 1px solid var(--border-color);
}

.showcase-mockup-wrapper {
    position: relative;
    max-width: 1040px;
    margin-inline: auto;
}

.mockup-stage {
    position: relative;
    padding-bottom: 20px;
}

/* Desktop Frame */
.mockup-desktop {
    width: 88%;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid #cbd5e1;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.browser-chrome {
    height: 46px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 14px;
}

.browser-traffic-lights {
    display: flex;
    gap: 6px;
}

.browser-traffic-lights span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.browser-traffic-lights span:nth-child(1) { background-color: #f87171; }
.browser-traffic-lights span:nth-child(2) { background-color: #fbbf24; }
.browser-traffic-lights span:nth-child(3) { background-color: #34d399; }

.browser-url-bar {
    flex: 1;
    max-width: 360px;
    margin-inline: auto;
    height: 28px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink-500);
    font-size: 0.74rem;
}

.browser-url-bar i {
    color: var(--accent-green);
    font-size: 0.7rem;
}

.browser-status-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-600);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
}

.mockup-image-frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Mobile Frame Overlay */
.mockup-mobile {
    position: absolute;
    right: 2%;
    bottom: -15px;
    width: 28%;
    max-width: 270px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 5px solid #1e293b;
    box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    z-index: 10;
}

.mobile-speaker-bar {
    height: 16px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-speaker-bar::after {
    content: "";
    width: 40px;
    height: 4px;
    background: #475569;
}

/* ==========================================================================
   9. Bento Grid Features Section
   ========================================================================== */
.features-section {
    background: var(--white);
}

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

.bento-card {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.bento-hero {
    grid-column: span 2;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.bento-wide {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 32px;
}

.bento-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--ink-50);
    border: 1px solid var(--border-color);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--ink-600);
}

.bento-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 22px;
}

.bento-icon.accent-orange {
    background: #fff7ed;
    color: #ea580c;
}

.bento-icon.accent-green {
    background: #ecfdf5;
    color: #059669;
}

.bento-icon.accent-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.bento-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ink-900);
}

.bento-content p {
    color: var(--ink-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Bento Interactive Visual Mockups */
.bento-interactive-preview {
    margin-top: 28px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.ui-stock-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ui-stock-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-badge-ready {
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    background: #ecfdf5;
    color: #059669;
    font-size: 0.72rem;
    font-weight: 600;
}

.ui-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.ui-stock-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink-800);
}

.ui-stock-bar {
    height: 6px;
    background: var(--ink-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.ui-stock-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.ui-stock-status {
    font-size: 0.74rem;
    color: var(--ink-400);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ui-stock-status i {
    color: var(--accent-green);
}

.bento-visual-chip {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chip-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--ink-50);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-700);
}

.chip-item i {
    color: #ea580c;
    font-size: 0.8rem;
}

.bento-mini-stats {
    margin-top: 24px;
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--ink-50);
}

.mini-stat-bar {
    flex: 1;
    background: var(--ink-200);
    border-radius: 4px 4px 0 0;
    transition: background var(--transition-fast);
}

.mini-stat-bar.active {
    background: var(--accent-green);
}

.bento-colors-palette {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.color-swatch {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
    cursor: default;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.sw-1 { background: #2563eb; }
.sw-2 { background: #0f172a; }
.sw-3 { background: #7c3aed; }
.sw-4 { background: #ea580c; }

/* ==========================================================================
   10. Process Section
   ========================================================================== */
.process-section {
    background-color: var(--bg-surface);
    border-block: 1px solid var(--border-color);
}

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

.step-card {
    padding: 36px 30px;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
}

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

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

.step-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ink-200);
    line-height: 1;
    letter-spacing: -0.04em;
    transition: color var(--transition-fast);
}

.step-card:hover .step-number {
    color: var(--primary-border);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink-900);
}

.step-desc {
    color: var(--ink-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   11. Pricing Section & Cards
   ========================================================================== */
.pricing-section {
    background: var(--white);
}

.pricing-cards-wrapper {
    max-width: 900px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch;
}

.plan-card {
    padding: 38px 34px;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-normal);
}

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

.plan-featured {
    border-color: var(--primary);
    box-shadow: 0 16px 36px -8px rgba(37, 99, 235, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.plan-badge {
    position: absolute;
    top: -14px;
    right: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.plan-badge.badge-soon {
    background: #f8fafc;
    color: var(--ink-700);
    border: 1px solid #cbd5e1;
    box-shadow: var(--shadow-xs);
}

.plan-badge.badge-soon i {
    color: var(--primary);
}

.plan-badge.badge-featured {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.plan-eyebrow {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink-900);
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--ink-500);
    min-height: 48px;
}

.plan-pricing {
    margin-top: 18px;
}

.plan-sale-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.plan-sale-badge del {
    color: var(--ink-400);
    font-size: 0.9rem;
}

.sale-tag {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: #ecfdf5;
    color: #059669;
    font-size: 0.72rem;
    font-weight: 600;
}

.plan-price-val {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price-val .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink-800);
}

.plan-price-val .amount {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ink-900);
    letter-spacing: -0.04em;
}

.plan-price-val .period {
    font-size: 0.85rem;
    color: var(--ink-500);
}

.plan-price-note {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.plan-divider {
    height: 1px;
    background-color: var(--border-color);
    margin-block: 24px;
}

.plan-features-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.plan-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--ink-700);
}

.feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-featured .feature-icon {
    background: var(--primary);
    color: var(--white);
}

.pricing-guarantee-note {
    margin-top: 36px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink-500);
    font-size: 0.88rem;
}

.pricing-guarantee-note i {
    color: var(--primary);
}

/* ==========================================================================
   12. FAQ Section
   ========================================================================== */
.faq-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.faq-accordion-container {
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-accordion-item {
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.faq-accordion-trigger {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    cursor: pointer;
}

.faq-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink-900);
    transition: color var(--transition-fast);
}

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

.faq-toggle-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--ink-50);
    color: var(--ink-500);
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform var(--transition-normal), background var(--transition-fast), color var(--transition-fast);
}

.faq-accordion-item.is-open .faq-toggle-icon {
    transform: rotate(180deg);
    background: var(--primary-soft);
    color: var(--primary);
}

.faq-accordion-panel {
    padding: 0 24px 22px;
}

.faq-accordion-panel[hidden] {
    display: none;
}

.faq-accordion-body p {
    color: var(--ink-600);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ==========================================================================
   13. Final CTA Banner
   ========================================================================== */
.final-cta-section {
    padding: 70px 0 90px;
    background: var(--white);
}

.final-cta-card {
    position: relative;
    padding: 64px 48px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    overflow: hidden;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.25);
    text-align: center;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin-inline: auto;
}

.cta-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.2;
}

.cta-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   14. Minimalist Modern Footer (NO Bottom Nav)
   ========================================================================== */
.site-footer {
    padding: 70px 0 36px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--ink-100);
}

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

.footer-brand .brand-logo {
    height: 44px;
}

.footer-tagline {
    color: var(--ink-500);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--ink-50);
    border: 1px solid var(--border-color);
    color: var(--ink-600);
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.social-icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.social-icon-btn.facebook {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1877f2;
}

.social-icon-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: var(--white);
}

.footer-fb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.footer-fb-badge:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: var(--white);
    transform: translateY(-2px);
}

.footer-fb-badge i {
    font-size: 0.72rem;
}

.footer-links-list .footer-fb-link {
    color: #1d4ed8;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links-list .footer-fb-link i {
    font-size: 1.05rem;
    color: #1877f2;
}

.footer-links-list .footer-fb-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 18px;
}

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

.footer-links-list a {
    color: var(--ink-500);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.system-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
}

.status-indicator::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: #10b981;
    opacity: 0.4;
    animation: pulse 2s infinite ease-out;
}

.footer-uptime-desc {
    color: var(--ink-400);
    font-size: 0.8rem;
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    font-size: 0.85rem;
    color: var(--ink-400);
    flex-wrap: wrap;
    gap: 16px;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-500);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.back-to-top:hover {
    color: var(--primary);
}

/* ==========================================================================
   15. 404 Error Page Styles
   ========================================================================== */
.error-page-section {
    min-height: calc(85vh - 74px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-surface) 100%);
}

.error-container {
    max-width: 580px;
    margin-inline: auto;
    text-align: center;
}

.error-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #ef4444;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.error-code {
    font-size: clamp(5rem, 14vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.error-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.error-desc {
    color: var(--ink-500);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.error-quick-links {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.error-quick-links p {
    font-size: 0.84rem;
    color: var(--ink-400);
    margin-bottom: 14px;
}

.quick-links-group {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.quick-links-group a {
    color: var(--ink-600);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.quick-links-group a:hover {
    color: var(--primary);
}

.quick-links-group a i {
    color: var(--primary);
    font-size: 0.72rem;
}

/* ==========================================================================
   16. Safe Scroll Reveals (Always Visible by Default)
   ========================================================================== */
.reveal, .reveal-on-scroll, .intro-reveal {
    opacity: 1;
    transform: none;
}

.js-active .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js-active .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section is guaranteed 100% visible immediately */
.hero-section, .hero-section * {
    opacity: 1 !important;
    transform: none !important;
}

/* ==========================================================================
   17. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .bento-hero {
        grid-column: span 2;
    }

    .bento-wide {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

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

@media (max-width: 860px) {
    .site-header {
        top: 12px;
    }

    .nav-wrap {
        width: calc(100% - 24px);
        height: 58px;
        padding: 0 8px 0 16px;
    }

    .desktop-nav {
        display: none;
    }

    .nav-login-btn,
    .nav-cta-btn {
        display: none;
    }

    .menu-toggle-btn {
        display: flex;
    }

    .mockup-desktop {
        width: 100%;
    }

    .mockup-mobile {
        width: 34%;
        right: -10px;
        bottom: -20px;
    }

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

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

    .final-cta-card {
        padding: 48px 24px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 32px, 1200px);
    }

    .section {
        padding-block: 64px;
    }

    .hero-section {
        padding: 94px 0 60px;
    }

    .hero-title {
        font-size: clamp(2.3rem, 11vw, 3.2rem);
    }

    .typewriter-wrapper {
        font-size: 0.88rem;
        padding: 6px 14px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 40px;
    }

    .metric-card {
        padding: 16px;
    }

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

    .bento-hero,
    .bento-wide {
        grid-column: span 1;
    }

    .bento-card {
        padding: 24px;
    }

    .mockup-mobile {
        width: 42%;
        right: -6px;
        bottom: -15px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

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

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

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

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