* { box-sizing: border-box; }
body {
    font-family: 'Satoshi', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    background-color: #020202;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
/* scrollbar restored */

/* ── Buttons ─────────────── */
.btn-solid {
    background: linear-gradient(90deg, #0066FF, #00B3FF);
    color: #fff;
    border-radius: 999px;
    padding: 11px 28px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-solid:hover {
    background: linear-gradient(90deg, #005ce6, #009fd9);
    box-shadow: 0 4px 20px rgba(0,102,255,0.35);
    transform: translateY(-1px);
}
.btn-outline {
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 11px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #030f1e;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 11px 22px;
    border-radius: 7px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-hero:hover { background: #daeeff; }

/* ── Cards ───────────────── */
.glass-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04);
}
.glass-card:hover {
    border-color: rgba(0,102,255,0.3);
    background: rgba(0,60,255,0.05);
    box-shadow: 0 8px 40px rgba(0,102,255,0.14);
    transform: translateY(-2px);
}
.pricing-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.05);
}
.pricing-card:hover {
    border-color: rgba(0,102,255,0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,102,255,0.12);
}
.pricing-featured {
    background: linear-gradient(160deg,rgba(0,66,255,0.1),rgba(0,179,255,0.05));
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(0,102,255,0.55), 0 20px 60px rgba(0,102,255,0.18);
    position: relative;
}
.pricing-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    padding: 1px;
    background: linear-gradient(135deg, #0066FF 0%, #00B3FF 60%, rgba(0,102,255,0.35) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Hero stats ──────────── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.07);
    justify-content: center;
}
.hero-stat { text-align: center; }
.hero-stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0c1a2e;
    line-height: 1;
    letter-spacing: -0.03em;
}
.hero-stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
    letter-spacing: 0.04em;
}
.hero-stat-divider {
    width: 1px;
    height: 2rem;
    background: rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* ── Misc ────────────────── */
.tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    background: none;
    border: none;
    padding: 5px 14px;
    border-radius: 999px;
    display: inline-block;
}
.accent-line {
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg,#0066FF,#00B3FF);
    border-radius: 2px;
}
.sep { border-top: 1px solid rgba(255,255,255,0.05); }

.step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(0,102,255,0.18);
    color: #00B3FF;
    font-size: 0.7rem; font-weight: 800;
    display: flex !important; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.portfolio-img {
    width: 100%; height: 190px;
    object-fit: cover; display: block;
}
.portfolio-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}
.portfolio-card:hover {
    border-color: rgba(0,102,255,0.3);
    transform: translateY(-3px);
}
.portfolio-body {
    background: rgba(255,255,255,0.03);
    padding: 1.1rem 1.25rem 1.3rem;
}
.testimonial-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    padding: 1.4rem;
}
.team-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}
.team-card:hover {
    border-color: rgba(0,102,255,0.3);
    transform: translateY(-3px);
}
.platform-tag {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
}

/* ── Code block ──────────── */
.code-block {
    background: #040f1e;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 1rem;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}
.code-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dot-r { width:11px;height:11px;border-radius:50%;background:rgba(239,68,68,0.55); }
.dot-y { width:11px;height:11px;border-radius:50%;background:rgba(234,179,8,0.55); }
.dot-g { width:11px;height:11px;border-radius:50%;background:rgba(34,197,94,0.55); }

/* ── Scroll reveal ───────── */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
                transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal       { transform: translateY(28px); }
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ── Navbar ──────────────── */
nav { transition: background 0.35s ease, border-color 0.35s ease; }
nav.scrolled {
    background: rgba(245,247,255,0.97) !important;
    border-bottom-color: rgba(0,0,0,0.1) !important;
}
nav a.nav-active { color: #0066FF !important; }

/* ── Card lifts ──────────── */
.glass-card, .pricing-card, .team-card, .portfolio-card, .testimonial-card {
    transition: transform 0.3s ease, border-color 0.3s ease,
                background 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover, .team-card:hover, .portfolio-card:hover {
    box-shadow: 0 8px 32px rgba(0,102,255,0.12);
}
.pricing-featured {
    box-shadow: 0 0 40px rgba(0,102,255,0.15);
}

/* ── Scroll indicator ─────── */
.scroll-mouse {
    width: 22px; height: 36px;
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 11px;
    display: flex; justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 3px; height: 7px;
    background: rgba(255,255,255,0.45);
    border-radius: 3px;
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateY(0); }
    60%       { opacity: 0; transform: translateY(9px); }
}

/* ── Hero parallax ───────── */
#beam-layer, #orbit-layer {
    transition: transform 0.05s linear;
    will-change: transform;
}

/* ── Hero text entrance ───── */
@keyframes heroFadeUp {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}
#home .tag               { animation: heroFadeUp 0.8s ease 0.2s both; }
#home .hero-sub          { animation: heroFadeUp 0.8s ease 0.8s both; }
#home .hero-cta-row      { animation: heroFadeUp 0.8s ease 1.0s both; }
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.hero-word.show { opacity: 1; transform: translateY(0); }

/* ── Service rows ────────── */
.svc-row {
    display: flex; align-items: center; gap: 2rem; padding: 1.5rem 2rem;
    border-radius: 1.25rem; border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02); text-decoration: none; color: inherit;
    transition: all 0.3s ease;
}
.svc-row:hover { background: rgba(255,255,255,0.04); border-color: rgba(0,102,255,0.3); }
.svc-num {
    font-weight: 900; line-height: 1; flex-shrink: 0;
    color: rgba(255,255,255,0.06); font-size: clamp(2.8rem,6vw,5rem);
    transition: color 0.3s;
}
.svc-row:hover .svc-num { color: rgba(0,102,255,0.2); }
.svc-arrow {
    font-size: 1.3rem; color: rgba(255,255,255,0.2);
    transition: all 0.3s; flex-shrink: 0;
}
.svc-row:hover .svc-arrow { color: #00B3FF; transform: translateX(7px); }
@media (max-width: 640px) {
    .svc-row { gap: 0.875rem; padding: 1rem 1.1rem; }
    .svc-num { font-size: 1.75rem; min-width: 2.2rem; }
    .svc-row .w-10 { width: 2rem; height: 2rem; flex-shrink: 0; }
    .svc-arrow { font-size: 1rem; }
}

/* ── Portfolio bento ─────── */
.bento-grid {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
}
.bento-feat { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-feat { grid-column: span 1; }
    .bento-tall { grid-row: span 1; }
}
.bento-img { width: 100%; object-fit: cover; display: block; }
.bento-feat .bento-img { height: 260px; }
.bento-tall .bento-img { height: 100%; min-height: 260px; }
.bento-card {
    border-radius: 1rem; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06); transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.05);
}
.bento-card:hover {
    border-color: rgba(0,102,255,0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,102,255,0.12);
}
.bento-card .portfolio-img { height: 200px; }

/* ── Team horizontal cards ── */
.team-hcard {
    display: flex; align-items: center; gap: 1.25rem; padding: 1.2rem 1.5rem;
    border-radius: 1.25rem; border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.025); transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
}
.team-hcard:hover {
    border-color: rgba(0,102,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,102,255,0.1);
}

/* ── Testimonials marquee ─── */
.marquee-row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right,transparent,black 12%,black 88%,transparent);
    mask-image: linear-gradient(to right,transparent,black 12%,black 88%,transparent);
}
.marquee-inner {
    display: flex; gap: 1rem; width: max-content;
    animation: marqueeLeft 38s linear infinite;
}
.marquee-reverse { animation-direction: reverse; animation-duration: 44s; }
.marquee-row:hover .marquee-inner { animation-play-state: paused; }
@keyframes marqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.m-card {
    width: 290px; flex-shrink: 0;
    background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem; padding: 1.2rem; transition: border-color 0.3s;
}
.m-card:hover { border-color: rgba(0,102,255,0.25); }

/* ── Hero badge card ─────── */
.hero-badge-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 14px 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ── Testimonial hover ───── */
.testimonial-card {
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.testimonial-card:hover {
    border-color: rgba(0,102,255,0.25);
    transform: translateY(-2px);
}

/* ── CTA button pulse ─────── */
@keyframes ctaPulse {
    0%,100% { box-shadow: 0 4px 20px rgba(0,102,255,0.25); }
    50%     { box-shadow: 0 4px 30px rgba(0,102,255,0.45), 0 0 0 6px rgba(0,102,255,0.06); }
}
.btn-solid { animation: ctaPulse 2.8s ease-in-out infinite; }
.btn-solid:hover { animation: none; box-shadow: 0 6px 28px rgba(0,102,255,0.4); }

/* ── Accent line animate ─── */
.accent-line { transform-origin: left; transition: transform 0.5s ease; }
.glass-card:hover .accent-line { transform: scaleX(1.67); }


/* ══════════════════════════════════════════════
   LIGHT MODE
══════════════════════════════════════════════ */
html, body {
    background-color: #f5f7ff !important;
    color: #0c1a2e;
}
.sep { border-top: 1px solid rgba(0,0,0,0.07) !important; }

/* Text */
.text-white        { color: #0c1a2e !important; }
.text-white\/80    { color: #1e293b !important; }
.text-white\/75    { color: #334155 !important; }
.text-white\/70    { color: #334155 !important; }
.text-white\/65    { color: #475569 !important; }
.text-white\/60    { color: #475569 !important; }
.text-white\/58    { color: #475569 !important; }
.text-white\/55    { color: #64748b !important; }
.text-white\/50    { color: #64748b !important; }
.text-white\/45    { color: #7c8ea0 !important; }
.text-white\/40    { color: #94a3b8 !important; }
.text-white\/38    { color: #94a3b8 !important; }
.text-white\/35    { color: #94a3b8 !important; }
.text-white\/30    { color: #a8b8c8 !important; }
.text-white\/25    { color: #b8c8d8 !important; }
.text-white\/20    { color: #c8d4de !important; }

/* Borders */
.border-white\/\[0\.04\] { border-color: rgba(0,0,0,0.07) !important; }
.border-white\/\[0\.05\] { border-color: rgba(0,0,0,0.07) !important; }
.border-white\/\[0\.06\] { border-color: rgba(0,0,0,0.08) !important; }
.border-white\/\[0\.07\] { border-color: rgba(0,0,0,0.08) !important; }
.border-white\/\[0\.08\] { border-color: rgba(0,0,0,0.09) !important; }
.border-white\/\[0\.09\] { border-color: rgba(0,0,0,0.09) !important; }
.border-white\/\[0\.10\] { border-color: rgba(0,0,0,0.1)  !important; }
.border-white\/5         { border-color: rgba(0,0,0,0.07) !important; }
.border-white\/10        { border-color: rgba(0,0,0,0.09) !important; }

/* Backgrounds */
.bg-white\/\[0\.025\] { background: rgba(0,0,0,0.025) !important; }
.bg-white\/\[0\.03\]  { background: rgba(0,0,0,0.025) !important; }
.bg-white\/\[0\.04\]  { background: rgba(0,0,0,0.03)  !important; }
.bg-white\/\[0\.05\]  { background: rgba(0,0,0,0.035) !important; }
.bg-white\/5          { background: rgba(0,0,0,0.025) !important; }

/* Cards */
.glass-card {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.glass-card:hover {
    background: #f0f5ff !important;
    border-color: rgba(0,102,255,0.25) !important;
    box-shadow: 0 4px 16px rgba(0,102,255,0.09) !important;
}
.pricing-card {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.09) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.pricing-featured {
    background: linear-gradient(160deg,rgba(0,66,255,0.06),rgba(0,179,255,0.03)) !important;
    border-color: rgba(0,102,255,0.3) !important;
    box-shadow: 0 0 32px rgba(0,102,255,0.08) !important;
}
.team-hcard {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.team-hcard:hover { background: #f5f8ff !important; }
.portfolio-card   { border-color: rgba(0,0,0,0.08) !important; }
.portfolio-card:hover { box-shadow: 0 6px 20px rgba(0,102,255,0.1) !important; }
.portfolio-body   { background: #f8faff !important; }
.bento-card       { border-color: rgba(0,0,0,0.08) !important; }
.bento-card:hover { box-shadow: 0 6px 20px rgba(0,102,255,0.1) !important; }
.testimonial-card, .m-card {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.07) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.m-card:hover { border-color: rgba(0,102,255,0.2) !important; }

/* Service rows */
.svc-row {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.07) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04) !important;
    transition: all 0.3s ease !important;
}
.svc-row:hover {
    background: #f4f7ff !important;
    border-color: rgba(0,102,255,0.2) !important;
    box-shadow: 0 6px 28px rgba(0,102,255,0.1) !important;
    transform: translateY(-2px) !important;
}
.svc-num { color: rgba(0,0,0,0.06) !important; }
.svc-row:hover .svc-num { color: rgba(0,102,255,0.15) !important; }
.svc-arrow { color: rgba(0,0,0,0.2) !important; }
.svc-row:hover .svc-arrow { color: #0066FF !important; }

/* Step cards */
#circuit .grid > div {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.07) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04) !important;
    border-top: 2.5px solid rgba(0,102,255,0.15) !important;
    transition: all 0.25s ease !important;
}
#circuit .grid > div:hover {
    border-color: rgba(0,102,255,0.25) !important;
    border-top-color: #0066FF !important;
    box-shadow: 0 6px 24px rgba(0,102,255,0.1) !important;
    transform: translateY(-2px) !important;
}

/* Misc */
.step-num    { background: rgba(0,102,255,0.1) !important; }
.platform-tag { border-color: rgba(0,0,0,0.12) !important; color: #475569 !important; }
.btn-outline  { border-color: rgba(0,0,0,0.2) !important; color: #0c1a2e !important; }
.btn-outline:hover { background: rgba(0,0,0,0.05) !important; }
.tag          { color: rgba(0,0,0,0.42) !important; }
.scroll-mouse { border-color: rgba(0,0,0,0.18) !important; }
.scroll-wheel { background: rgba(0,0,0,0.3) !important; }
.code-block   { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

/* Card light-mode shadows */
.glass-card, .pricing-card, .team-hcard, .bento-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.05) !important;
}
.glass-card:hover, .team-hcard:hover, .bento-card:hover {
    box-shadow: 0 8px 32px rgba(0,102,255,0.1) !important;
}
.pricing-card:hover {
    box-shadow: 0 12px 40px rgba(0,102,255,0.1) !important;
}
.pricing-featured {
    box-shadow: 0 0 0 1.5px rgba(0,102,255,0.5), 0 20px 50px rgba(0,102,255,0.12) !important;
}

/* Firmware feature cards & PCB feature tiles */
#firmware .grid > div,
#pcb .grid > div {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.07) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04) !important;
    transition: all 0.25s ease !important;
}
#firmware .grid > div:hover,
#pcb .grid > div:hover {
    border-color: rgba(0,102,255,0.22) !important;
    box-shadow: 0 6px 24px rgba(0,102,255,0.1) !important;
    transform: translateY(-2px) !important;
}

/* Testimonial cards light mode */
.m-card {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.07) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04) !important;
}

/* Section alternating backgrounds */
#services, #firmware, #portfolio, #team { background: #ffffff; }
#circuit, #pricing                      { background: #f5f7ff; }
#pcb                                    { background: #f0f4fe; }
footer                                  { background: #edf0fa; }

/* Marquee fade */
.marquee-row {
    -webkit-mask-image: linear-gradient(to right,transparent,black 10%,black 90%,transparent) !important;
    mask-image: linear-gradient(to right,transparent,black 10%,black 90%,transparent) !important;
}

/* ── Reduced motion ──────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}
