*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --navy: #0a1628;
    --dark: #101d34;
    --blue: #1a6bff;
    --blue-dark: #1255d6;
    --accent: #00c6ff;
    --light: #f4f7fb;
    --gray: #6b7a90;
    --white: #ffffff;
    --border: #e0e6ee;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #2d3748; line-height: 1.6; background: var(--white); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-label {
    display: inline-block; font-size: 12px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--blue); margin-bottom: 12px;
}
.section-title {
    font-size: clamp(26px, 4vw, 38px); font-weight: 800;
    color: var(--navy); margin-bottom: 16px; line-height: 1.2;
}
.section-subtitle { font-size: 17px; color: var(--gray); max-width: 600px; line-height: 1.7; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 8px; font-size: 15px;
    font-weight: 600; text-decoration: none; border: none;
    cursor: pointer; transition: all 0.3s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,107,255,0.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.arrow-icon { display: inline-block; width: 16px; height: 16px; }

/* HEADER */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10,22,40,0.92); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06); transition: all 0.3s;
}
header.scrolled { background: rgba(10,22,40,0.97); box-shadow: 0 4px 30px rgba(0,0,0,0.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo-img {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s;
}
.logo:hover .logo-img { transform: scale(1.08); }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.logo-text span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 6px; }
nav a {
    color: rgba(255,255,255,0.7); text-decoration: none;
    font-size: 14px; font-weight: 500; padding: 8px 16px;
    border-radius: 6px; transition: all 0.2s;
}
nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-cta { background: var(--blue) !important; color: #fff !important; margin-left: 8px; }
.nav-cta:hover { background: var(--blue-dark) !important; }
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
.mobile-nav {
    display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--navy); z-index: 999; flex-direction: column;
    padding: 32px 24px; gap: 8px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
    color: rgba(255,255,255,0.8); text-decoration: none;
    font-size: 16px; font-weight: 500; padding: 14px 16px;
    border-radius: 8px; transition: 0.2s;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* HERO */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    background: var(--navy); overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,107,255,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,198,255,0.08) 0%, transparent 60%);
}
.hero-grid-bg {
    position: absolute; inset: 0; opacity: 0.04;
    background-image:
        linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; padding: 120px 0 80px; width: 100%; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px 6px 8px;
    background: rgba(26,107,255,0.12);
    border: 1px solid rgba(26,107,255,0.2);
    border-radius: 100px; margin-bottom: 24px;
    font-size: 13px; font-weight: 500; color: var(--accent);
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
    font-size: clamp(32px, 5vw, 54px); font-weight: 800; color: #fff;
    line-height: 1.12; margin-bottom: 24px; letter-spacing: -0.5px;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.08); }
.hero-stat-value { font-size: 32px; font-weight: 800; color: #fff; }
.hero-stat-value span { color: var(--accent); }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 4px; font-weight: 500; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-circuit { width: 100%; aspect-ratio: 1; position: relative; }
.circuit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(26,107,255,0.15); }
.circuit-ring:nth-child(1) { inset: 0; animation: rotate 30s linear infinite; }
.circuit-ring:nth-child(2) { inset: 15%; border-color: rgba(0,198,255,0.12); animation: rotate 25s linear infinite reverse; }
.circuit-ring:nth-child(3) { inset: 30%; border-color: rgba(26,107,255,0.1); animation: rotate 20s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.circuit-ring::after {
    content: ''; position: absolute;
    width: 10px; height: 10px; background: var(--blue);
    border-radius: 50%; top: -5px; left: 50%;
    box-shadow: 0 0 12px rgba(26,107,255,0.6);
}
.circuit-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 120px; height: 120px;
    background: linear-gradient(135deg, rgba(26,107,255,0.2), rgba(0,198,255,0.15));
    border: 1px solid rgba(26,107,255,0.3); border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}
.circuit-center svg { width: 48px; height: 48px; stroke: var(--accent); }
.floating-card {
    position: absolute;
    background: rgba(16,29,52,0.85); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 16px 20px;
    animation: float 6s ease-in-out infinite;
}
.floating-card.fc1 { top: 8%; right: -5%; animation-delay: 0s; }
.floating-card.fc2 { bottom: 12%; left: -8%; animation-delay: 2s; }
.floating-card.fc3 { bottom: 30%; right: -12%; animation-delay: 4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fc-label { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.fc-value { font-size: 18px; font-weight: 700; color: #fff; }
.fc-value.green { color: #34d399; }

/* MARQUEE */
.marquee-section {
    background: var(--light); padding: 28px 0;
    border-bottom: 1px solid var(--border); overflow: hidden;
}
.marquee-label {
    text-align: center; font-size: 12px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--gray); margin-bottom: 20px;
}
.marquee-track {
    display: flex; gap: 60px;
    animation: marquee 25s linear infinite; width: max-content;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-item { font-size: 20px; font-weight: 700; color: #c0c8d4; white-space: nowrap; letter-spacing: 1px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image-area { position: relative; }
.about-img-box {
    background: linear-gradient(135deg, var(--navy), var(--dark));
    border-radius: 20px; padding: 50px; position: relative; overflow: hidden;
}
.about-img-box::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(26,107,255,0.15), transparent 60%);
}
.about-pattern { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; z-index: 1; }
.about-pattern-cell {
    aspect-ratio: 1; border-radius: 10px;
    background: rgba(26,107,255,0.08); border: 1px solid rgba(26,107,255,0.1); transition: 0.3s;
}
.about-pattern-cell:nth-child(3), .about-pattern-cell:nth-child(6),
.about-pattern-cell:nth-child(9), .about-pattern-cell:nth-child(14) {
    background: rgba(26,107,255,0.2); border-color: rgba(26,107,255,0.3);
}
.about-year-badge {
    position: absolute; top: -16px; right: -16px; z-index: 2;
    background: var(--blue); color: #fff;
    width: 88px; height: 88px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 8px 30px rgba(26,107,255,0.35);
}
.about-year-badge .yr { font-size: 11px; font-weight: 600; letter-spacing: 1px; opacity: 0.8; }
.about-year-badge .num { font-size: 22px; font-weight: 800; line-height: 1; }
.about-content .section-subtitle { margin-bottom: 28px; }
.about-features { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.about-feature { display: flex; align-items: flex-start; gap: 14px; }
.about-feature-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: rgba(26,107,255,0.08); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.about-feature-icon svg { width: 18px; height: 18px; stroke: var(--blue); }
.about-feature-text h4 { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.about-feature-text p { font-size: 14px; color: var(--gray); }

/* CATEGORIES */
.categories { background: var(--light); }
.categories-header { text-align: center; margin-bottom: 56px; }
.categories-header .section-subtitle { margin: 0 auto; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.category-card {
    background: #fff; border-radius: 16px; padding: 32px 28px;
    border: 1px solid var(--border); transition: all 0.3s;
    position: relative; overflow: hidden;
}
.category-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--accent));
    transform: scaleX(0); transition: transform 0.3s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); border-color: transparent; }
.category-card:hover::after { transform: scaleX(1); }
.category-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, rgba(26,107,255,0.1), rgba(0,198,255,0.06));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 24px;
}
.category-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.category-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* FEATURED PRODUCTS */
.featured-products { background: #fff; }
.featured-header { text-align: center; margin-bottom: 56px; }
.featured-header .section-subtitle { margin: 0 auto; }
.products-table-wrapper { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
table.products-table {
    width: 100%; border-collapse: collapse; font-size: 14px; min-width: 800px;
}
table.products-table thead { background: var(--navy); }
table.products-table thead th {
    padding: 16px 20px; text-align: left;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255,255,255,0.8); white-space: nowrap;
}
table.products-table tbody tr { border-bottom: 1px solid var(--border); transition: 0.2s; }
table.products-table tbody tr:hover { background: rgba(26,107,255,0.02); }
table.products-table tbody tr:last-child { border-bottom: none; }
table.products-table tbody td { padding: 16px 20px; color: #2d3748; vertical-align: middle; }
.part-number { font-weight: 700; color: var(--blue); font-family: 'Inter', monospace; }
.mfr-badge {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    background: rgba(26,107,255,0.06); color: var(--navy);
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
.stock-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
}
.stock-dot { width: 8px; height: 8px; border-radius: 50%; }
.stock-badge.in-stock .stock-dot { background: #34d399; }
.stock-badge.in-stock { color: #059669; }
.stock-badge.lead-time .stock-dot { background: #fbbf24; }
.stock-badge.lead-time { color: #d97706; }
.category-tag {
    display: inline-block; padding: 3px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    background: var(--light); color: var(--gray);
}

/* PRODUCT CARDS (mobile-friendly alternative view) */
.product-cards-mobile { display: none; gap: 16px; flex-direction: column; }
.product-card-m {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 24px; transition: 0.3s;
}
.product-card-m:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.product-card-m .pcm-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.product-card-m .part-number { font-size: 16px; }
.product-card-m .pcm-desc { font-size: 14px; color: var(--gray); margin-bottom: 14px; line-height: 1.6; }
.product-card-m .pcm-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* WHY CHOOSE */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.why-card {
    padding: 36px 30px; border-radius: 16px;
    border: 1px solid var(--border); transition: 0.3s; background: #fff;
}
.why-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); border-color: var(--blue); }
.why-number {
    font-size: 40px; font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 16px;
}
.why-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* CTA BANNER */
.cta-banner { background: var(--navy); position: relative; overflow: hidden; }
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26,107,255,0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0,198,255,0.1) 0%, transparent 60%);
}
.cta-inner { position: relative; z-index: 1; text-align: center; padding: 80px 24px; }
.cta-inner h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-inner p { font-size: 17px; color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* CONTACT */
.contact { background: var(--light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: rgba(26,107,255,0.08); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 22px; height: 22px; stroke: var(--blue); }
.contact-item h4 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 15px; color: var(--gray); text-decoration: none; }
.contact-item a:hover { color: var(--blue); }
.contact-form-area {
    background: #fff; border-radius: 20px; padding: 40px;
    border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.contact-form-area h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.contact-form-area > p { font-size: 14px; color: var(--gray); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
    font-family: 'Inter', sans-serif; font-size: 14px; color: var(--navy);
    transition: 0.2s; outline: none; background: #fafbfc;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,107,255,0.08); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { margin-top: 8px; }

/* MAP PLACEHOLDER */
.map-box {
    margin-top: 32px; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border); background: var(--light);
    height: 180px; display: flex; align-items: center; justify-content: center;
    position: relative;
}
.map-box-inner {
    text-align: center; color: var(--gray);
}
.map-box-inner svg { width: 32px; height: 32px; stroke: var(--blue); margin-bottom: 8px; }
.map-box-inner p { font-size: 13px; font-weight: 600; }
.map-box-inner span { font-size: 12px; color: var(--gray); }
.map-bg-pattern {
    position: absolute; inset: 0; opacity: 0.08;
    background-image:
        linear-gradient(var(--gray) 1px, transparent 1px),
        linear-gradient(90deg, var(--gray) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.5); }
.footer-top {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px; padding: 72px 0 48px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-col a, .footer-col p {
    display: block; font-size: 14px; color: rgba(255,255,255,0.5);
    text-decoration: none; padding: 5px 0; transition: 0.2s; line-height: 1.6;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-area { order: -1; }
    .why-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    nav { display: none; }
    .hamburger { display: flex; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .section { padding: 60px 0; }
    .categories-grid { grid-template-columns: 1fr; }
    .products-table-wrapper { display: none; }
    .product-cards-mobile { display: flex; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* MODAL */
.modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(10,22,40,0.6); backdrop-filter: blur(4px);
    align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #fff; border-radius: 20px; padding: 48px 40px;
    max-width: 440px; width: 100%; text-align: center; position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}
.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; cursor: pointer;
    font-size: 24px; color: var(--gray); transition: 0.2s;
}
.modal-close:hover { color: var(--navy); }
.modal-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(52,211,153,0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.modal-icon svg { width: 32px; height: 32px; stroke: #059669; stroke-width: 2.5; }
.modal-box h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.modal-box p { font-size: 15px; color: var(--gray); line-height: 1.6; margin-bottom: 24px; }
