* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: #ffffff;
    --bg-card-hover: #fbfbfd;
    --accent-primary: #0071e3;
    --accent-secondary: #47a1ff;
    --accent-gradient: linear-gradient(135deg, #0071e3 0%, #47a1ff 100%);
    --accent-orange: #ff3b30;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-muted: #a1a1a6;
    --border-color: #d2d2d7;
    --border-light: #e5e5ea;
    --success: #34c759;
    --shadow-glow: 0 12px 32px rgba(0, 113, 227, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--border-color);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-logo-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    flex-shrink: 0;
}

.nav-links li {
    flex-shrink: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.15);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 14px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.15);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 113, 227, 0.05);
}

/* Section Common */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 113, 227, 0.1);
    border: 1px solid rgba(0, 113, 227, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Product Card (common) */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.product-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 10px;
    background: var(--accent-orange);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-card-content {
    padding: 24px;
}

.product-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-secondary);
    font-size: 14px;
    font-weight: 500;
}

.product-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.product-card:hover .product-card-link svg {
    transform: translateX(4px);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 44px;
    width: auto;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social:hover {
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
    background: rgba(0, 113, 227, 0.08);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-certifications {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.footer-cert-badge {
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

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

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

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

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

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

/* --- Engineering & Manufacturing Bento Box --- */
.engineering-section {
    background-color: var(--bg-primary);
    padding: 100px 0;
}

.bento-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bento-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.bento-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.bento-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(360px, auto);
    gap: 24px;
}

.bento-card {
    background-color: var(--bg-secondary);
    border-radius: 28px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    transform: scale(1.01);
}

.bento-card-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 12px 0;
    z-index: 2;
}

.bento-card-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
    max-width: 85%;
    z-index: 2;
}

/* Card positioning */
.card-signal {
    grid-column: span 7;
    grid-row: span 2;
    background-color: #000000;
    color: #FFFFFF;
}

.card-signal .bento-card-desc {
    color: rgba(255, 255, 255, 0.7);
}

.card-teardown {
    grid-column: span 5;
    grid-row: span 1;
}

.card-automation {
    grid-column: span 5;
    grid-row: span 1;
}

.bento-visual {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

/* Eye diagram mockup */
.eye-diagram-mock {
    width: 120%;
    height: 60%;
    position: absolute;
    bottom: -10%;
    left: -10%;
    background: 
        radial-gradient(circle at center, rgba(0, 113, 227, 0.15) 0%, transparent 60%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 20px);
    opacity: 0.8;
}

.eye-diagram-curve {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-primary), transparent);
    box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary);
    transform: scaleY(15);
    filter: blur(1px);
    opacity: 0.7;
    mix-blend-mode: screen;
}

.teardown-mock {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--border-color), #ffffff, var(--border-color));
    box-shadow: inset 0 0 0 20px #1d1d1f, inset 0 0 0 25px var(--border-color), inset 0 0 0 40px #1d1d1f;
}

.automation-mock {
    position: absolute;
    bottom: -50px;
    right: 20px;
    width: 180px;
    height: 240px;
    background: linear-gradient(135deg, var(--border-light) 0%, var(--border-color) 100%);
    border-radius: 12px;
    transform: rotate(-15deg);
    box-shadow: -20px 20px 40px rgba(0,0,0,0.1);
}

.automation-mock::after {
    content: '';
    position: absolute;
    top: 40px;
    left: -30px;
    width: 60px;
    height: 60px;
    background: #1d1d1f;
    border-radius: 50%;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .card-signal, .card-teardown, .card-automation {
        grid-column: span 1;
        grid-row: auto;
        min-height: 400px;
    }
    .bento-title {
        font-size: 40px;
    }
}
