:root {
    --bg: #0f1626;
    --bg-alt: #131d2e;
    --card: #162236;
    --accent: #7c3aed;
    --accent-2: #22d3ee;
    --text: #eef3fb;
    --muted: #b5c1d4;
    --border: #203149;
    --shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
    --radius: 14px;
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 .75rem; line-height: 1.25; }

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(11, 18, 33, 0.9);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    overflow: hidden;
}
.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}
.brand-text small { color: var(--muted); display: block; margin-top: -4px; }

.nav { position: relative; }
.nav input { display: none; }
.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li a {
    padding: .5rem .75rem;
    border-radius: 10px;
    color: var(--muted);
    transition: all .2s ease;
}
.nav-links li.active a,
.nav-links li a:hover {
    color: var(--text);
    background: rgba(91, 141, 239, 0.12);
}
.nav-toggle { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 10px; }

.cta-group { display: flex; gap: .5rem; align-items: center; }
.site-header .cta-group .btn {
    padding: .5rem .95rem;
    min-height: 38px;
    border-radius: 8px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.site-header .cta-group .btn:hover {
    transform: translateY(-1px) scale(1.01);
}
.site-header .cta-group .btn:active {
    transform: translateY(0) scale(0.99);
}
.site-header .cta-group .btn.primary {
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}
.site-header .cta-group .btn.ghost:hover {
    border-color: rgba(255, 255, 255, 0.25);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .65rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}
.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04101e;
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.35);
    background-size: 200% 200%;
    animation: btnGlow 6s ease-in-out infinite;
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 45px rgba(91, 141, 239, 0.5); }
.btn.ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.18); }
.btn.w-full { width: 100%; }

.hero {
    padding: 4rem 0 3rem;
}
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: grid;
    place-items: center;
    gap: 0.75rem;
    z-index: 9999;
    transition: opacity .4s ease, visibility .4s ease;
}
.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.2), rgba(34, 211, 238, 0.12));
    animation: logoPulse 1.6s ease-in-out infinite;
}
.preloader-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}
.preloader-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(91, 141, 239, 0.2);
    border-top-color: var(--accent);
    animation: spin 0.9s linear infinite;
}
.preloader span { color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}
.hero-carousel {
    position: relative;
    overflow: hidden;
}
.hero-slide {
    display: none;
    animation: heroFade 0.8s ease;
}
.hero-slide.active {
    display: block;
}
.hero-dots {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    justify-content: center;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(91, 141, 239, 0.12);
    cursor: pointer;
    transition: all .2s ease;
}
.hero-dot.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
}
.hero-slide .hero-visual img {
    width: 100%;
    max-width: 520px;
    filter: drop-shadow(0 16px 32px rgba(15, 23, 42, 0.15));
    border-radius: 20px;
}
.hero-visual {
    display: grid;
    place-items: center;
}
.hero-visual img {
    width: 100%;
    max-width: 520px;
    filter: drop-shadow(0 16px 32px rgba(15, 23, 42, 0.15));
    border-radius: 20px;
}
.hero-copy h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.lead { color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; gap: .75rem; margin: 1.5rem 0; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.stats span { font-size: 1.6rem; font-weight: 700; display: block; }
.stats small { color: var(--muted); }

.hero-card { position: relative; }
.hero-card .glow {
    position: absolute;
    inset: 0;
    filter: blur(34px);
    background: radial-gradient(circle, rgba(91, 141, 239, 0.18), transparent 60%);
    animation: glowPulse 6s ease-in-out infinite alternate;
}
.card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
    will-change: transform;
}
.card h3 { margin-bottom: .5rem; }
.card ul { padding-left: 1.1rem; color: var(--muted); }
.card ul li { margin-bottom: .35rem; }
.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .35rem;
}
.alert {
    padding: .85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: #0f172a;
}
.alert.success { border-color: #b2f2bb; background: #f0fff4; color: #166534; }
.alert.error { border-color: #fecdd3; background: #fff1f2; color: #991b1b; }
.mini-cta { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.link { color: var(--accent); }

.card,
.timeline-item,
.gallery-card,
.cta-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover,
.timeline-item:hover,
.gallery-card:hover,
.cta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12);
    border-color: rgba(124, 58, 237, 0.35);
    background: #111f35;
}

.section { padding: 3.5rem 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: .75rem; color: var(--accent); margin-bottom: .35rem; }
.muted { color: var(--muted); }
.section .container { display: grid; gap: 2rem; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}
.services-grid .card ul,
.product-grid .card ul { padding-left: 1.1rem; }

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.timeline-item {
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}
.pill {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: rgba(91, 141, 239, 0.12);
    color: var(--accent);
    font-size: .8rem;
    margin-bottom: .35rem;
}

.cta-section { text-align: center; }
.cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.16), rgba(96, 213, 179, 0.14));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}
.list { padding-left: 1.1rem; color: var(--muted); }
.list li { margin-bottom: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips span {
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.gallery-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
}
.snapshot-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.gallery-visual {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.35), rgba(96, 213, 179, 0.35));
    position: relative;
    overflow: hidden;
    animation: floaty 9s ease-in-out infinite alternate;
}
.gallery-visual::after {
    content: "";
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.2);
}
.gallery-meta { padding: 1rem; }

.contact-grid { align-items: start; }
.contact-form { display: grid; gap: .9rem; }
.form-row { display: grid; gap: .35rem; }
.form-row input,
.form-row textarea,
.form-row select {
    padding: .75rem .8rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { outline: 2px solid rgba(91, 141, 239, 0.35); }
.small { font-size: .85rem; }
.w-full { width: 100%; }

.site-footer {
    padding: 2.5rem 0 2rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: start;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-map iframe {
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    height: 200px;
}
.footer-bottom {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.socials { display: flex; gap: .6rem; }
.socials a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text);
}
.floating-btn {
    position: fixed;
    bottom: 18px;
    right: 18px;
    padding: .75rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(91, 141, 239, 0.25);
    animation: pulse 4s ease-in-out infinite;
}

.page-hero { padding-top: 3.5rem; }
.services-grid .card,
.product-grid .card { min-height: 260px; }

.fade-up { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
    .card,
    .timeline-item,
    .gallery-card,
    .floating-btn,
    .gallery-visual,
    .hero-card .glow { animation: none !important; }
}

@keyframes pulse {
    0% { transform: translateY(0); box-shadow: 0 10px 30px rgba(91, 141, 239, 0.25); }
    50% { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(91, 141, 239, 0.28); }
    100% { transform: translateY(0); box-shadow: 0 10px 30px rgba(91, 141, 239, 0.25); }
}

@keyframes glowPulse {
    0% { opacity: 0.65; transform: scale(1); }
    100% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes floaty {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

@keyframes heroFade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes logoPulse {
    0% { transform: scale(0.96); opacity: 0.85; }
    50% { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(0.96); opacity: 0.85; }
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes btnGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ripple {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 650ms ease-out;
    pointer-events: none;
}
@keyframes ripple {
    to {
        transform: scale(8);
        opacity: 0;
    }
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    width: 0%;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(91, 141, 239, 0.3);
}

@media (max-width: 960px) {
    .cta-group { display: none; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        right: 0;
        top: 110%;
        background: #08111c;
        padding: 1rem;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: var(--shadow);
        flex-direction: column;
        min-width: 200px;
        display: none;
    }
    .nav input:checked ~ .nav-links { display: flex; }
    .cta-card { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .hero { padding-top: 3rem; }
    .nav-container { padding: .75rem 0; }
    .section { padding: 3rem 0; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

