:root {
    --bg: #080c14;
    --bg-alt: #0c1220;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-edge: rgba(255, 255, 255, 0.06);
    --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --glass-blur: 60px;
    --text: #e8edf5;
    --text-dim: #8892a8;
    --text-muted: #5a6478;
    --accent: #00d4ff;
    --accent-dim: rgba(0, 212, 255, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.35s var(--ease);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(0, 212, 255, 0.2); color: white; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── NAVBAR ─── */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 12, 20, 0.65);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shine);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dim);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--glass);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* ─── HERO ─── */

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #060a12, var(--bg) 40%, var(--bg-alt));
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 70% 60%, rgba(0, 212, 255, 0.02) 0%, transparent 70%),
        radial-gradient(ellipse at center, transparent 30%, var(--bg) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    padding: 0 28px;
    margin-top: 40px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-edge);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    backdrop-filter: blur(20px);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 12px;
}

.hero-title em {
    font-style: normal;
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    color: var(--text-dim);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-aside {
    position: absolute;
    right: 36px;
    bottom: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: none;
}

.hero-aside-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-aside-line {
    width: 40px;
    height: 1px;
    background: var(--text-muted);
}

/* ─── BUTTONS ─── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: #080c14;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 212, 255, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--glass-edge);
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--glass);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ─── SECTIONS ─── */

.section {
    padding: 100px 28px;
    max-width: 1120px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 56px;
}

.tag {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 212, 255, 0.1);
    font-size: 0.72rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.section-title em {
    font-style: normal;
    color: var(--accent);
}

.section-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ─── SERVICES ─── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shine);
}

.card:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.4), var(--glass-shine);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--accent);
    color: #080c14;
    border-color: var(--accent);
}

.card-image {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--surface);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-text {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

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

.card-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.card-list li i {
    color: var(--accent);
    font-size: 0.65rem;
}

/* ─── ABOUT ─── */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-text p:last-of-type {
    margin-bottom: 36px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stat {
    text-align: center;
    padding: 16px 8px;
    background: var(--glass);
    backdrop-filter: blur(30px);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shine);
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

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

.about-visual {
    position: relative;
}

.about-image-frame {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.5);
}

.about-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), transparent 50%, rgba(0, 212, 255, 0.05));
    -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;
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* ─── FOOTER ─── */

.footer {
    border-top: 1px solid var(--glass-edge);
    background: var(--bg-alt);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 28px 28px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--glass-edge);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
}

.footer-brand h4 {
    font-size: 1rem;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

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

.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    background: var(--glass);
    border: 1px solid var(--glass-edge);
}

.footer-links a:hover {
    color: var(--text);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-tag {
    color: var(--text-muted);
}

/* ─── WHATSAPP FLOAT ─── */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0);
}

.whatsapp-float.visible {
    opacity: 1;
    transform: scale(1);
}

.whatsapp-float:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-aside { display: none; }
}

@media (max-width: 820px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-visual { order: -1; max-height: 300px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 240px;
        height: 100vh;
        background: rgba(8, 12, 20, 0.94);
        backdrop-filter: blur(var(--glass-blur));
        flex-direction: column;
        padding: 90px 24px 24px;
        transition: right 0.35s ease;
        border-left: 1px solid var(--glass-edge);
    }
    .nav-links.active { right: 0; }
    .nav-toggle { display: flex; }
    .section { padding: 72px 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-main { flex-direction: column; gap: 20px; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .footer-bar { flex-direction: column; gap: 4px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-title { font-size: 2rem; letter-spacing: -1px; }
    .btn { justify-content: center; }
    .about-stats { gap: 8px; }
    .stat { padding: 14px 6px; }
    .stat-number { font-size: 1.3rem; }
}

/* ─── LICENSING STRIP ─── */

.licensing-strip {
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.licensing-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.licensing-strip-icon {
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.7;
    flex-shrink: 0;
}

.licensing-strip-text {
    flex: 1;
    min-width: 240px;
}

.licensing-strip-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.licensing-strip-text p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0;
}

.licensing-cta {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .licensing-strip-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ─── REVEAL ─── */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.1s; }
.reveal-d3 { transition-delay: 0.15s; }
.reveal-d4 { transition-delay: 0.2s; }
