/* ===== CSS Variables & Reset ===== */
:root {
    --bg-deep: #0A0118;
    --bg-dark: #120526;
    --bg-card: #1A0A2E;
    --bg-card-hover: #24103D;
    --purple-dark: #2E0854;
    --purple-mid: #4B1D7A;
    --purple-light: #7B2CBF;
    --electric-blue: #00F0FF;
    --electric-blue-dim: #00B8C4;
    --neon-green: #39FF14;
    --neon-green-dim: #2BC40F;
    --text-primary: #F0F4FF;
    --text-secondary: #A8B2D1;
    --text-muted: #6B7A99;
    --gradient-main: linear-gradient(135deg, #00F0FF 0%, #39FF14 100%);
    --gradient-purple: linear-gradient(135deg, #7B2CBF 0%, #00F0FF 100%);
    --font-display: 'Orbitron', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --header-height: 72px;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 40px rgba(0, 240, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(10, 1, 24, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
    transition: background 0.3s, border-color 0.3s;
}

.header.scrolled {
    background: rgba(10, 1, 24, 0.95);
    border-bottom-color: rgba(0, 240, 255, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

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

.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--electric-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 1px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--electric-blue);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--electric-blue);
    top: -10%;
    left: -10%;
    opacity: 0.15;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--neon-green);
    bottom: 10%;
    right: -5%;
    opacity: 0.12;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: var(--purple-light);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    padding: 40px 0 80px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 24px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.25);
    border-radius: 100px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-main);
    color: #0A0118;
    box-shadow: 0 4px 24px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--electric-blue);
    border: 1.5px solid rgba(0, 240, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--electric-blue);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--electric-blue);
    border-radius: 2px;
    animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.4; transform: translateX(-50%) translateY(12px); }
}

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

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neon-green);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== About ===== */
.about {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-content strong {
    color: var(--electric-blue);
    font-weight: 600;
}

.stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    max-width: 320px;
    box-shadow: var(--shadow-glow);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.tech-illustration {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
}

.visual-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--electric-blue);
}

.visual-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== Innovation / Timeline ===== */
.innovation {
    background: var(--bg-dark);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--electric-blue), var(--neon-green), var(--purple-light));
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--electric-blue);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.timeline-item:nth-child(2)::before {
    border-color: var(--neon-green);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

.timeline-item:nth-child(3)::before {
    border-color: #7B2CBF;
    box-shadow: 0 0 12px rgba(123, 44, 191, 0.5);
}

.timeline-item:nth-child(4)::before {
    border-color: var(--electric-blue);
    background: var(--electric-blue);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.7);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-green);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Products ===== */
.products {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deep) 100%);
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.3);
    background: var(--bg-card-hover);
}

.product-icon {
    width: 48px;
    height: 48px;
    color: var(--electric-blue);
    margin-bottom: 20px;
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--neon-green);
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.product-card > p:not(.product-tag) {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.product-status {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.25);
    border-radius: 100px;
}

.product-status.coming {
    color: var(--electric-blue);
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.25);
}

/* ===== Contact ===== */
.contact {
    padding: 80px 0 100px;
}

.contact-card {
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.9) 0%, rgba(46, 8, 84, 0.6) 100%);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.contact-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-deep);
    border-top: 1px solid rgba(0, 240, 255, 0.08);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

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

    .about-visual {
        order: -1;
    }

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

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(10, 1, 24, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(0, 240, 255, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-center {
        order: 3;
        width: 100%;
    }

    .footer-links {
        justify-content: center;
    }

    .timeline {
        padding-left: 32px;
    }

    .timeline-item::before {
        left: -32px;
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .contact-card {
        padding: 40px 24px;
    }
}
