/* ============================================================
   BINARY LABS — REDESIGN CSS
   Dark, modern, product-first software company aesthetic
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
    --bg-primary:    #080D18;
    --bg-secondary:  #0F1623;
    --bg-card:       #141C2E;
    --bg-card-hover: #192338;

    --accent:        #6C63FF;
    --accent-dim:    rgba(108, 99, 255, 0.15);
    --accent-orange: #F89E52;
    --accent-blue:   #3B82F6;
    --accent-green:  #10B981;
    --accent-red:    #EF4444;

    --text-primary:   #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted:     #4B5563;

    --border:        rgba(255, 255, 255, 0.07);
    --border-accent: rgba(108, 99, 255, 0.4);

    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition:  all 0.3s ease;
    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  20px;
    --r-xl:  28px;
    --r-full: 999px;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

img { max-width: 100%; }

ul { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   3. TYPOGRAPHY UTILITIES
   ============================================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent { color: var(--accent); }
.text-muted-custom { color: var(--text-secondary); }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff !important;
    border: none;
    border-radius: var(--r-full);
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.45);
    color: #fff;
}
.btn-primary-custom:hover::before { opacity: 1; }

.btn-ghost-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary) !important;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-ghost-custom:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    background: var(--accent-dim);
    transform: translateY(-2px);
}

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

.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ============================================================
   5. SECTION GLOBALS
   ============================================================ */
section { padding: 100px 0; position: relative; }

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    border-radius: var(--r-full);
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   6. PRELOADER
   ============================================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.preloader-bar {
    width: 120px;
    height: 3px;
    background: var(--border);
    border-radius: var(--r-full);
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-orange));
    border-radius: var(--r-full);
    animation: preload 1.2s ease-in-out forwards;
}

@keyframes preload {
    to { width: 100%; }
}

/* ============================================================
   7. NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 0;
}

.site-header .navbar {
    padding: 20px 0;
    transition: var(--transition);
}

.site-header.sticky {
    background: rgba(8, 13, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-header.sticky .navbar { padding: 14px 0; }

.nav-logo {
    height: 90px;
    width: auto;
    filter: brightness(0) invert(1) contrast(2) drop-shadow(0 0 16px rgba(255,255,255,0.7));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 18px !important;
    border-radius: var(--r-full);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--border);
}

/* Mobile toggle */
.navbar-toggler {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.navbar-toggler span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--r-full);
    transition: var(--transition);
}

.navbar-toggler.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler.active span:nth-child(2) { opacity: 0; }
.navbar-toggler.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    position: relative;
}

/* Dot grid background */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(108, 99, 255, 0.18) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    pointer-events: none;
}

/* Glow blobs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(108, 99, 255, 0.12);
    top: -100px;
    right: -100px;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(248, 158, 82, 0.08);
    bottom: 50px;
    left: -100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    color: var(--text-secondary);
    border-radius: var(--r-full);
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item { text-align: left; }

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual — Product Orbit */
.hero-visual {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-orbit {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent) 0%, #9B6FFF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(108, 99, 255, 0.5);
    z-index: 10;
}

.orbit-logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(108, 99, 255, 0.2);
    transform-origin: center;
}

.ring-1 {
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
    animation: orbit-spin 12s linear infinite;
}

.ring-2 {
    width: 300px;
    height: 300px;
    margin-left: -150px;
    margin-top: -150px;
    animation: orbit-spin 18s linear infinite reverse;
}

.ring-3 {
    width: 390px;
    height: 390px;
    margin-left: -195px;
    margin-top: -195px;
    animation: orbit-spin 24s linear infinite;
}

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

.orbit-item {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    animation: counter-spin-12 12s linear infinite;
}

.ring-2 .orbit-item { animation-duration: 18s; animation-direction: reverse; }
.ring-3 .orbit-item { animation-duration: 24s; animation-direction: reverse; }

.item-1 { background: rgba(139, 92, 246, 0.9); top: -24px; left: 76px; }
.item-2 { background: rgba(16, 185, 129, 0.9); top: -24px; left: 126px; }
.item-3 { background: rgba(248, 158, 82, 0.9); bottom: -24px; left: 126px; }
.item-4 { background: rgba(59, 130, 246, 0.9); top: -24px; left: 171px; }
.item-5 { background: rgba(239, 68, 68, 0.9);  bottom: -24px; right: -24px; }

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

/* Floating cards */
.float-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: float-card 4s ease-in-out infinite;
    backdrop-filter: blur(8px);
}

.float-card-1 {
    top: 30px;
    right: -20px;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 60px;
    left: -20px;
    animation-delay: 2s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scroll-drop 1.5s ease-in-out infinite;
}

@keyframes scroll-drop {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   9. PRODUCTS SECTION
   ============================================================ */
.products-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

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

/* 5 cards: first row 3, second row 2 centered */
.products-grid .product-card:nth-child(4) { grid-column: 1; }
.products-grid .product-card:nth-child(5) { grid-column: 2; }

/* Center the last 2 cards */
.products-grid .product-card:nth-child(4),
.products-grid .product-card:nth-child(5) {
    grid-row: 2;
}

/* Adjust grid for 2-card second row */
.products-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
}

.products-grid .product-card:nth-child(4) { grid-column: 1 / 2; }
.products-grid .product-card:nth-child(5) { grid-column: 2 / 3; }

.product-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px 32px;
    height: 100%;
    position: relative;
    z-index: 2;
    transition: border-color 0.35s ease;
}

.product-card:hover .product-card-inner {
    border-color: rgba(var(--product-color-rgb, 108, 99, 255), 0.4);
}

/* Glow effect per card */
.product-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--r-lg);
    background: radial-gradient(ellipse at 50% 0%, var(--product-color) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
    pointer-events: none;
    filter: blur(20px);
}

.product-card:hover .product-card-glow { opacity: 0.12; }

.product-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--product-color) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--product-color) 30%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--product-color);
    margin-bottom: 24px;
    transition: var(--transition);
}

.product-card:hover .product-icon-wrap {
    background: color-mix(in srgb, var(--product-color) 25%, transparent);
    transform: scale(1.05);
}

.product-header {
    margin-bottom: 16px;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-category {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-features {
    margin-bottom: 28px;
}

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

.product-features li i {
    color: var(--accent-green);
    font-size: 12px;
    flex-shrink: 0;
}

.product-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: auto;
}

.product-tag {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.product-demo-link {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-demo-link:hover { gap: 10px; }

/* ============================================================
   10. ABOUT SECTION
   ============================================================ */
.about-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.about-visual {
    position: relative;
    padding: 40px;
    height: 500px;
}

.about-bg-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
}

.about-card-stack { position: relative; height: 100%; }

.about-stat-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    animation: float-card 5s ease-in-out infinite;
}

.about-stat-card:nth-child(1) { top: 40px;  left: 0;    width: 280px; }
.about-stat-card:nth-child(2) { top: 160px; right: 0;   width: 260px; animation-delay: 1.5s; }
.about-stat-card:nth-child(3) { bottom: 60px; left: 40px; width: 240px; animation-delay: 3s; }

.asc-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.asc-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.asc-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-text {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-values { margin-top: 40px; }

.value-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.value-icon {
    width: 46px;
    height: 46px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.value-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.value-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   11. EXPERTISE SECTION
   ============================================================ */
.expertise-section {
    background: var(--bg-secondary);
    position: relative;
}

.expertise-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.expertise-grid { margin-top: 16px; }

.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px 28px;
    height: 100%;
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-orange));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.expertise-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(108, 99, 255, 0.12);
}

.expertise-card:hover::before { transform: scaleX(1); }

.expertise-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 24px;
}

.expertise-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.expertise-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   12. TEAM SECTION
   ============================================================ */
.team-section {
    background: var(--bg-primary);
    position: relative;
}

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

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.team-photo-wrap {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo { transform: scale(1.05); }

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(8, 13, 24, 0.95), transparent);
    padding: 20px 20px 16px;
    display: flex;
    gap: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.team-card:hover .team-social { transform: translateY(0); }

.team-social a {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 14px;
    transition: var(--transition);
}

.team-social a:hover {
    background: #fff;
    color: var(--accent) !important;
}

.team-info {
    padding: 24px 28px;
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    display: block;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.team-bio {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   13. CONTACT SECTION
   ============================================================ */
.contact-section {
    background: var(--bg-secondary);
    position: relative;
}

.contact-intro {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 40px;
}

.contact-info-list { margin-bottom: 40px; }

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.ci-icon {
    width: 46px;
    height: 46px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ci-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.ci-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.ci-value:hover { color: var(--accent); }

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary) !important;
    font-size: 16px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 48px;
}

.contact-form .form-group { margin-bottom: 22px; }

.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-form .form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-primary);
    padding: 14px 18px;
    font-size: 15px;
    font-family: var(--font-body);
    width: 100%;
    transition: var(--transition);
    outline: none;
}

.contact-form .form-control::placeholder { color: var(--text-muted); }

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
    background: var(--bg-card);
}

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

/* ============================================================
   14. NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
    background: var(--bg-primary);
    padding: 80px 0;
}

.newsletter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-xl);
    padding: 56px 64px;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-orange), var(--accent));
}

.newsletter-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.newsletter-input-wrap {
    display: flex;
    gap: 12px;
}

.newsletter-input-wrap input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    color: var(--text-primary);
    padding: 14px 22px;
    font-size: 15px;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.newsletter-input-wrap input::placeholder { color: var(--text-muted); }

.newsletter-input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding-top: 80px;
    padding-bottom: 0;
}

.footer-top { padding-bottom: 60px; }

.footer-logo { height: 100px; width: auto; margin-bottom: 24px; display: block; filter: brightness(0) invert(1) contrast(2) drop-shadow(0 0 16px rgba(255,255,255,0.5)); }
.logo-text-footer {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    display: block;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.footer-col h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    font-size: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 14px;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: var(--text-secondary);
}

.footer-contact-item a:hover { color: var(--accent); }

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

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

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

/* ============================================================
   16. SCROLL TO TOP
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 16px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.scroll-top.visible {
    transform: translateY(0);
    opacity: 1;
}

.scroll-top:hover {
    transform: translateY(-4px);
    color: #fff !important;
}

/* ============================================================
   17a. AI BADGES & PRODUCT NAME ROW
   ============================================================ */
.product-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.product-name-row .product-name { margin: 0; }

.product-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(248,158,82,0.12));
    border: 1px solid rgba(108,99,255,0.45);
    border-radius: var(--r-full);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-ai-badge i { font-size: 10px; }

/* ============================================================
   17b. TEAM LEADERSHIP — DUO GRID & ADVISOR ROLE
   ============================================================ */
.team-grid-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 880px;
    margin: 0 auto;
}

.advisor-role {
    color: var(--accent-orange) !important;
}

/* ============================================================
   17. RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid .product-card:nth-child(4),
    .products-grid .product-card:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }
    .products-grid .product-card:nth-child(5) { grid-column: 1 / 3; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 991px) {
    section { padding: 80px 0; }

    .hero-section { padding-top: 100px; min-height: auto; padding-bottom: 80px; }
    .hero-title { font-size: clamp(36px, 7vw, 52px); }

    .team-grid { grid-template-columns: repeat(2, 1fr); }

    .about-visual { height: 360px; }
    .about-stat-card { padding: 20px 24px; }
    .about-stat-card:nth-child(1) { width: 240px; }
    .about-stat-card:nth-child(2) { width: 220px; }
    .about-stat-card:nth-child(3) { width: 210px; }

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

    #navMenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 30px 40px;
        border-left: 1px solid var(--border);
        transition: right 0.3s ease;
        z-index: 999;
    }

    #navMenu.show { right: 0; }

    .navbar-nav { flex-direction: column; gap: 4px; }
    .navbar-nav .nav-link { padding: 12px 16px !important; }
    .nav-cta { margin-top: 24px; }
}

@media (max-width: 767px) {
    section { padding: 60px 0; }

    .hero-title { font-size: 36px; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-primary-custom,
    .hero-actions .btn-ghost-custom { width: 100%; justify-content: center; }

    .hero-stats { gap: 20px; }
    .stat-number { font-size: 24px; }

    .products-grid { grid-template-columns: 1fr; }
    .products-grid .product-card:nth-child(5) { grid-column: 1; max-width: 100%; }

    .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .team-grid-duo { grid-template-columns: 1fr; max-width: 440px; }

    .section-title { font-size: 28px; }

    .about-visual { display: none; }

    .newsletter-card { padding: 32px 24px; }
    .newsletter-input-wrap { flex-direction: column; }
    .newsletter-input-wrap input { border-radius: var(--r-lg); }

    .contact-form-wrap { padding: 28px 20px; }

    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }

    .scroll-top { bottom: 20px; right: 20px; }
}

@media (max-width: 575px) {
    .hero-stats .stat-divider { display: none; }
    .hero-stats { gap: 12px; }
    .stat-item { padding: 12px 16px; background: var(--bg-card); border-radius: var(--r-md); border: 1px solid var(--border); }
}
