:root {
    /* Apple Glass / Vision OS inspired variables */
    --clr-primary: #0A84FF; /* Apple Blue */
    --clr-primary-dark: #005ecb;
    --clr-bg-main: #000000; /* Deep black background */
    --clr-text-main: #ffffff;
    --clr-text-muted: rgba(255, 255, 255, 0.6);
    
    /* Glass properties */
    --glass-bg: rgba(255, 255, 255, 0.05); /* Very subtle white fill */
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15); /* Soft light border */
    --glass-border-light: rgba(255, 255, 255, 0.25); /* Highlighted edge */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(24px); /* Strong blur */
    
    --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ff-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Animation timings */
    --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--ff-body);
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    line-height: 1.5;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 15% 50%, rgba(10, 132, 255, 0.1), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(255, 59, 48, 0.05), transparent 25%);
    background-attachment: fixed;
}

h1, h2, h3, h4, .logo-text { font-family: var(--ff-heading); letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease-apple); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* Glass Utility Class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur); /* Safari support */
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-light); /* Top highlight simulating light */
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.75rem; border-radius: 999px; font-weight: 500; cursor: pointer;
    border: none; font-size: 1rem; transition: all 0.3s var(--ease-apple);
}
.btn-primary { 
    background: var(--clr-text-main); color: #000; 
}
.btn-primary:hover { 
    transform: scale(1.02); 
    background: #e0e0e0;
}
.btn-outline { 
    background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); color: var(--clr-text-main); 
}
.btn-outline:hover { 
    background: var(--glass-bg-hover); border-color: var(--glass-border-light);
}
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-nav { background: var(--glass-bg); color: white; padding: 0.5rem 1.25rem; border: 1px solid var(--glass-border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.btn-nav:hover { background: var(--glass-bg-hover); }
.btn-block { width: 100%; }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1rem 0;
    transition: all 0.4s var(--ease-apple);
}
.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-text {
    font-size: 1.5rem; font-weight: 700;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links li { display: flex; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--clr-text-muted); padding: 0.5rem; }
.nav-links a:hover { color: white; }
.mobile-menu-btn { display: none; font-size: 1.5rem; color: white; cursor: pointer; }

/* Hero */
.hero { position: relative; padding: 8rem 0 4rem; min-height: 100vh; display: flex; align-items: center; }
.hero-bg-elements { position: absolute; top:0; left:0; width:100%; height:100%; z-index: -1; overflow: hidden; pointer-events: none;}
.glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; mix-blend-mode: screen; }
.glow-1 { top: 10%; right: 10%; width: 50vw; height: 50vw; max-width: 600px; max-height: 600px; background: radial-gradient(circle, rgba(10,132,255,0.5) 0%, transparent 70%); }
.glow-2 { bottom: 0; left: 0; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; background: radial-gradient(circle, rgba(94,92,230,0.3) 0%, transparent 70%); }

.hero-container {
    display: grid; grid-template-columns: 1.1sfr 0.9fr; gap: 4rem; align-items: center; z-index: 1;
}
.badge { 
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; 
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: 50px; 
    font-size: 0.85rem; color: var(--clr-text-main); margin-bottom: 1.5rem; 
}
.badge-dot { width: 6px; height: 6px; background: #34c759; border-radius: 50%; box-shadow: 0 0 10px #34c759; }

.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; font-weight: 600; }
.hero-content h1 span { 
    background: linear-gradient(135deg, #0A84FF 0%, #5E5CE6 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content p { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--clr-text-muted); margin-bottom: 2.5rem; max-width: 500px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.stats-row { display: flex; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: white; font-family: var(--ff-heading); }
.stat-label { font-size: 0.85rem; color: var(--clr-text-muted); }
.stat-divider { width: 1px; background: var(--glass-border); }

/* Mockup */
.hero-visual { position: relative; perspective: 1200px; width: 100%; aspect-ratio: 1; max-height: 500px;}
.main-card { 
    width: 100%; height: 100%;
    transform: rotateY(-15deg) rotateX(10deg) translateZ(0); 
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-apple);
    overflow: hidden;
}
.main-card:hover { transform: rotateY(-5deg) rotateX(5deg) scale(1.02); }
.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--glass-border); background: rgba(0,0,0,0.2); display: flex; gap: 1rem; align-items: center; }
.dots span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; }
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }
.card-title { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.85rem; color: var(--clr-text-muted); margin-left: auto; }
.card-body { padding: 1.5rem; height: calc(100% - 53px); display: flex; align-items: center; justify-content: center; }

.pcb-mockup { width: 100%; height: 100%; background: rgba(13, 40, 24, 0.4); border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.chip { position: absolute; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);}
.processor { width: 30%; height: 30%; top: 50%; left: 20%; transform: translateY(-50%); }
.chip-label { font-family: ui-monospace, monospace; font-size: 0.8rem; color: rgba(255,255,255,0.8); }
.driver { width: 15%; height: 25%; top: 40%; right: 40%; }
.mosfet { width: 10%; height: 10%; right: 15%; border-radius: 4px; }
.m1 { top: 20%; } .m2 { top: 45%; } .m3 { top: 70%; }
.traces { width: 100%; height: 100%; position: absolute; top:0; left:0; pointer-events: none;}
.trace { fill: none; stroke: rgba(189, 162, 48, 0.5); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pad { fill: rgba(189, 162, 48, 0.8); }

.qr-card { 
    position: absolute; bottom: -20px; right: -20px; padding: 1rem; text-align: center; width: 140px; 
    transform: translateZ(50px);
    background: rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.4);
}
.qr-img { width: 100%; border-radius: 12px; margin-bottom: 0.5rem; display: block; }
.qr-card p { font-size: 0.75rem; color: var(--clr-text-main); margin: 0; font-weight: 500;}

/* Sections */
.section { padding: 6rem 0; position: relative; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; font-weight: 600;}
.section-subtitle { color: var(--clr-text-muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.feature-card { padding: 2.5rem 2rem; transition: transform 0.4s var(--ease-apple), background 0.4s; }
.feature-card:hover { transform: translateY(-8px); background: var(--glass-bg-hover); }
.feature-icon { 
    width: 60px; height: 60px; background: rgba(255,255,255,0.05); 
    border: 1px solid var(--glass-border);
    color: var(--clr-text-main); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; 
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--clr-text-muted); font-size: 0.95rem; }

/* CTA */
.cta-section { padding: 4rem 0 8rem; }
.cta-card { 
    padding: 4rem; display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; 
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}
.cta-content h2 { font-size: clamp(2rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.cta-content p { color: var(--clr-text-muted); margin-bottom: 2rem; font-size: 1.1rem;}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.85rem; color: var(--clr-text-muted); font-weight: 500; margin-left: 0.5rem;}
.form-group input, .form-group textarea { 
    padding: 1rem 1.25rem; background: rgba(0,0,0,0.2); 
    border: 1px solid var(--glass-border); border-top: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; color: white; width: 100%; font-family: inherit; font-size: 1rem;
    transition: all 0.3s var(--ease-apple);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.form-group input:focus, .form-group textarea:focus { 
    outline: none; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group textarea { resize: vertical; min-height: 100px; }

.cta-info { 
    border-left: 1px solid var(--glass-border); padding-left: 3rem; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; 
}
.info-block h4 { color: white; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem;}
.info-block h4 i { color: var(--clr-text-muted); }
.info-block p { color: var(--clr-text-muted); line-height: 1.6;}
.info-block a:hover { color: white; }

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding: 4rem 0 2rem; background: rgba(0,0,0,0.5); }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--clr-text-muted); margin-top: 1rem; max-width: 300px; }
.footer h4 { margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--clr-text-muted); }
.footer-links a:hover { color: white; }
.footer-contact p { color: var(--clr-text-muted); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;}
.footer-bottom { text-align: center; color: rgba(255,255,255,0.4); font-size: 0.9rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); }

/* Animation Classes */
.slide-up { opacity: 0; transform: translateY(30px); animation: slideUp 0.8s var(--ease-apple) forwards; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-content h1, .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .stats-row { justify-content: center; }
    .hero-visual { max-height: 400px; max-width: 600px; margin: 0 auto; }
    .main-card { transform: rotateY(0) rotateX(0); }
    .main-card:hover { transform: translateY(-5px); }
    .qr-card { transform: translateZ(0); bottom: 10px; right: 10px; }
    
    .cta-card { grid-template-columns: 1fr; padding: 2.5rem; }
    .cta-info { border-left: none; border-top: 1px solid var(--glass-border); padding-left: 0; padding-top: 2.5rem; flex-direction: row; justify-content: space-around; flex-wrap: wrap;}
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { 
        position: fixed; top: 0; right: -100%; height: 100vh; width: 80%; max-width: 300px;
        background: rgba(10, 10, 10, 0.8); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
        flex-direction: column; padding: 6rem 2rem 2rem; border-left: 1px solid var(--glass-border);
        transition: right 0.4s var(--ease-apple);
    }
    .nav-links.active { right: 0; }
    .mobile-menu-btn { display: block; z-index: 1001; }
    .btn-nav { display: none; }
    
    .grid-3 { grid-template-columns: 1fr; }
    .hero { padding-top: 6rem; }
    .stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .stat-divider { display: none; }
    
    .footer-container { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand p { margin: 1rem auto 0; }
    .footer-contact p { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .cta-card { padding: 1.5rem; }
    .cta-info { flex-direction: column; align-items: center; text-align: center; }
}
