/* Base & Technical Theme: Transform.io */
:root {
    /* ── Dark theme (default) ── */
    --bg-dark: #000000;
    --bg-surface: #0a0a0a;
    --bg-elevated: #111111;
    --bg-hover: rgba(255,255,255,0.03);

    --primary: #00E5FF;
    --primary-dim: rgba(0, 229, 255, 0.2);
    --secondary: #2a2a2a;
    --accent-red: #FF3B30;
    --accent-green: #34C759;
    --accent-yellow: #FFCC00;

    --text-white: #FFFFFF;
    --text-gray: #888888;
    --text-dark-gray: #555555;

    --surface-border: #2a2a2a;
    --nav-bg: rgba(0, 0, 0, 0.85);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Light theme overrides ─────────────────────────────────────── */
body.light-theme, html.light-theme {
    --bg-dark: #e8eaf0;
    --bg-surface: #f4f5f7;
    --bg-elevated: #ffffff;
    --bg-hover: rgba(0,0,0,0.03);

    --primary: #0891b2;
    --primary-dim: rgba(8, 145, 178, 0.15);
    --secondary: #d1d5db;

    --text-white: rgba(0,0,0,0.90);
    --text-gray: rgba(0,0,0,0.55);
    --text-dark-gray: rgba(0,0,0,0.38);

    --surface-border: #d1d5db;
    --nav-bg: rgba(255, 255, 255, 0.88);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.35s ease, color 0.35s ease;
}
body {
    overflow-x: hidden;
    line-height: 1.5;
    background-color: var(--bg-dark);
    color: var(--text-white);
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* Utilities */
.font-mono { font-family: var(--font-mono); }
.text-cyan { color: var(--primary); }
.text-white { color: var(--text-white); }
.text-gray { color: var(--text-gray); }
.text-dark-gray { color: var(--text-dark-gray); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-xl { font-size: 1.5rem; }
.text-md { font-size: 1.1rem; }
.tracking-tight { letter-spacing: -0.04em; }

.mb-sm { margin-bottom: 8px; } .mb-md { margin-bottom: 16px; } .mb-lg { margin-bottom: 32px; }
.mt-sm { margin-top: 8px; } .mt-md { margin-top: 16px; } .mt-lg { margin-top: 32px; } .mt-xl { margin-top: 80px; }
.pt-xl { padding-top: 180px; } .pb-lg { padding-bottom: 64px; } .p-lg { padding: 32px; }
.flex { display: flex; } .justify-between { justify-content: space-between; } .items-center { align-items: center; } .gap-sm { gap: 8px; } .block { display: block; }
.h-half { max-height: 250px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.border-bottom { border-bottom: 1px solid var(--secondary); }
.border-top { border-top: 1px solid var(--secondary); }

/* Glowing Borders */
.border-glow {
    position: relative; border-radius: 12px; background: var(--bg-surface);
    border: 1px solid var(--secondary); transition: var(--transition-smooth);
}
.border-glow::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 50%, var(--primary) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity var(--transition-smooth); pointer-events: none;
}
.border-glow:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(0, 229, 255, 0.05); }
.border-glow:hover::before { opacity: 1; }

body::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px; background-position: center bottom; z-index: -1; pointer-events: none; opacity: 0.3;
    transition: opacity 0.35s ease;
}
body.light-theme::before, html.light-theme body::before { opacity: 0.05; }

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 600;
}
.btn:hover {
    background: var(--primary-dim);
}
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary-dim);
}

/* Mega Menu Navigation */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: background 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid var(--secondary);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 75px; }
.logo { font-size: 1.1rem; font-weight: 600; text-decoration: none; color: var(--text-white); letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }

.nav-links { display: flex; gap: 32px; list-style: none; height: 100%; }
.nav-links > li { display: flex; align-items: center; height: 100%; position: relative; }
.nav-links > li > a { color: var(--text-white); text-decoration: none; display: flex; align-items: center; gap:4px; font-weight: 600; transition: color 0.2s; }
.nav-links > li:hover > a { color: var(--primary); }

/* Dropdown */
.mega-menu {
    position: absolute; top: 75px; left: 50%; transform: translateX(-50%) translateY(10px);
    background: var(--bg-dark); width: max-content; min-width: 600px;
    border: 1px solid var(--primary); border-top: 3px solid var(--primary);
    padding: 32px; border-radius: 0 0 12px 12px;
    display: flex; gap: 64px; opacity: 0; visibility: hidden;
    transition: all 0.3s ease; box-shadow: 0 20px 50px rgba(0,229,255,0.1);
}
.nav-links > li:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.mega-col { display: flex; flex-direction: column; gap: 12px; }
.mega-col a { color: var(--text-gray); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.mega-col a:hover { color: var(--primary); }
.mega-header { color: var(--text-white); font-weight: 600; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 1px; border-bottom: 1px solid var(--secondary); padding-bottom: 8px; margin-bottom: 8px; }

/* Hero */
.hero { display: flex; align-items: center; gap: 64px; padding-top: 160px; padding-bottom: 80px; }
.hero-left { flex: 1; }
.hero-title { font-size: 4rem; font-weight: 800; line-height: 1.1; color: var(--text-gray); }
.hero-subtitle { font-size: 1.1rem; max-width: 500px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; }
.hero-right { flex: 1; max-width: 500px; width: 100%; }
.tag { display: inline-block; padding: 4px 8px; background: var(--primary-dim); border: 1px solid rgba(0, 229, 255, 0.4); border-radius: 4px; font-size: 0.75rem; }

/* Marquee / Infinity Scroll */
.marquee-wrapper { width: 100%; overflow: hidden; background: var(--bg-surface); padding: 24px 0; border-top: 1px solid var(--secondary); border-bottom: 1px solid var(--secondary); white-space: nowrap; }
.marquee-content { display: inline-block; animation: marquee 40s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 16px; margin: 0 48px; color: var(--text-dark-gray); font-size: 1.25rem; }
.marquee-item i { color: var(--primary); opacity: 0.3; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Terminal */
.terminal-mock { width: 100%; height: 350px; background-color: var(--bg-surface); display: flex; flex-direction: column; overflow: hidden; position: relative; border-radius: 12px; border: 1px solid var(--secondary); }
.terminal-header { background-color: var(--bg-elevated); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--secondary); }
.dot { width: 10px; height: 10px; border-radius: 50%; } .bg-red { background-color: var(--accent-red); } .bg-yellow { background-color: var(--accent-yellow); } .bg-green { background-color: var(--accent-green); }
.terminal-body { padding: 16px; color: var(--primary); overflow-y: auto; flex: 1; font-size: 0.85rem; line-height: 1.6; }

/* Bento */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: 16px; }
.bento-box { background-color: var(--bg-elevated); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-medium { grid-column: span 1; grid-row: span 2; }
.bento-content { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.bento-image-wrapper { margin-top: auto; border-radius: 8px; border: 1px solid var(--secondary); overflow: hidden; background: #000; }
.bento-image-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* Testimonial / IT Blocks */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 48px 0; }
.stat-card { background: var(--bg-surface); padding: 32px; border-radius: 8px; border-left: 2px solid var(--primary); }
.stat-num { font-size: 3rem; font-weight: 800; color: var(--text-white); line-height: 1; margin-bottom: 16px; }
.stat-desc { color: var(--text-gray); font-size: 0.95rem; }

/* Exhaustive Footer */
.footer { padding: 80px 0 40px; background: #020202; border-top: 1px solid var(--secondary); }
.footer-mega-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand { max-width: 300px; }
.footer-col h4 { color: var(--text-white); margin-bottom: 24px; font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; }
.footer-col a { display: block; color: var(--text-gray); text-decoration: none; margin-bottom: 12px; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom { border-top: 1px solid var(--secondary); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; color: var(--text-dark-gray); font-size: 0.75rem; }
.footer-legal a { color: var(--text-dark-gray); text-decoration: none; margin-left: 16px; }
.footer-legal a:hover { color: var(--text-white); }

/* ─── Horizontal Sales Tab Navigation ──────────────────────── */
.sales-tabs-container {
    background: rgba(20, 24, 35, 0.4);
    border: 1px solid var(--secondary);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    align-items: center;
}
.sales-tabs-container::-webkit-scrollbar {
    display: none;
}
.sales-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.sales-tab:hover {
    color: var(--primary);
    background: rgba(0, 229, 255, 0.04);
}
.sales-tab.active {
    color: #000;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
    border-color: var(--primary);
}
.sales-tab i {
    font-size: 1.1rem;
}
.sales-tab .tab-badge {
    background: rgba(0,0,0,0.15);
    color: var(--text-white);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.sales-tab.active .tab-badge {
    background: rgba(0,0,0,0.25);
    color: #000;
}

@media (max-width: 1024px) {
    .bento-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-mega-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .hero { flex-direction: column; text-align: left; padding-top: 120px; }
    .mega-menu { min-width: 100%; left: 0; transform: translateX(0) translateY(10px); }
    .nav-links > li:hover .mega-menu { transform: translateX(0) translateY(0); }
}

