/* ========== CSS Variables & Reset ========== */
:root {
    --bg: #0a0a0f;
    --bg-card: #111118;
    --bg-card-hover: #181825;
    --text: #e4e4ec;
    --text-muted: #8888a0;
    --accent: #00d4aa;
    --accent2: #7c5cfc;
    --accent-glow: rgba(0, 212, 170, 0.15);
    --accent2-glow: rgba(124, 92, 252, 0.15);
    --border: #1e1e2e;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ========== Gradient Text ========== */
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.logo-icon { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}

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

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent);
    background: rgba(0, 212, 170, 0.05);
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00b890);
    color: #0a0a0f;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.3);
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 170, 0.05);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

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

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(124, 92, 252, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent2);
    background: rgba(124, 92, 252, 0.07);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ========== About ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 64px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-cards {
    display: grid;
    gap: 16px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: all var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateX(4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.about-card-icon { font-size: 1.5rem; flex-shrink: 0; }

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

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

.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

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

/* ========== Products ========== */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-photo {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 60px rgba(0, 212, 170, 0.2));
}

.product-svg {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    position: relative;
    z-index: 1;
}

.product-image-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    filter: blur(40px);
}

.product-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-summary h3 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.product-summary > p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.product-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-highlights li {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    transition: all var(--transition);
}

.product-highlights li:hover {
    border-color: rgba(0, 212, 170, 0.3);
    color: var(--accent);
}

/* ========== Specs ========== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.spec-group:hover {
    border-color: rgba(0, 212, 170, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.spec-group h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.spec-group dl {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-group dt {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.spec-group dd {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 500;
}

/* ========== Software ========== */
.software {
    position: relative;
    overflow: hidden;
}

#softwareCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
}

.software-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.software-doc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
}

.software-doc h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}

.software-doc h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 6px;
    color: var(--text);
}

.software-doc p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.software-doc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.software-doc ul li {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.software-doc ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.software-modules h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all var(--transition);
}

.module-card:hover {
    border-color: rgba(124, 92, 252, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.module-icon { font-size: 1.3rem; margin-bottom: 8px; }

.module-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.module-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.module-tech {
    font-size: 0.7rem;
    color: var(--accent2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.software-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.extra-item {
    background: rgba(124, 92, 252, 0.04);
    border: 1px solid rgba(124, 92, 252, 0.12);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.extra-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.extra-item ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.extra-item ul li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.extra-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent2);
}

/* ========== Factory ========== */
.factory-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

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

.factory-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.factory-text strong {
    color: var(--text);
}

.factory-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.fh-item {
    background: rgba(0, 212, 170, 0.04);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.fh-item:hover {
    border-color: rgba(0, 212, 170, 0.3);
    color: var(--accent);
}

.fh-icon { font-size: 1.5rem; }

/* ========== Contacts ========== */
.contacts {
    position: relative;
    overflow: hidden;
}

#contactsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.contact-card {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 56px 48px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-card > p {
    color: var(--text-muted);
    margin-bottom: 36px;
}

.contact-details {
    text-align: left;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-group h3 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.ci-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.ci-value {
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 500;
    word-break: break-word;
}

/* ========== Footer ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand strong {
    font-size: 1.2rem;
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

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

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== Animations ========== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

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

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .product-hero { grid-template-columns: 1fr; gap: 40px; }
    .software-content { grid-template-columns: 1fr; }
    .contact-details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .burger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(17, 17, 24, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .specs-grid { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: 1fr; }
    .software-extras { grid-template-columns: 1fr; }
    .factory-highlights { grid-template-columns: 1fr; }
    .contact-details { grid-template-columns: 1fr 1fr; }

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

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    .product-highlights { grid-template-columns: 1fr; }
    .contact-details { grid-template-columns: 1fr; }
}

/* ========== Color Carousel ========== */
.color-carousel {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.carousel-track {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.carousel-slide.active {
    display: block;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.carousel-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: var(--accent-hover);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: var(--accent);
}

.color-labels {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.color-label {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: color 0.2s;
    padding: 2px 8px;
    border-radius: 4px;
}

.color-label.active {
    color: var(--accent);
    background: rgba(255,107,0,0.1);
}

.color-label:hover {
    color: rgba(255,255,255,0.7);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}
