/* ============================================
   NEXO — Mission-Critical Dark Theme
   Deep Midnight Blue / Cyan Electric Accents
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Primary — Cyan Electric */
    --primary: #00E5FF;
    --primary-dark: #00B8D4;
    --primary-light: #33EBFF;
    --primary-50: rgba(0, 229, 255, 0.08);
    --primary-100: rgba(0, 229, 255, 0.15);
    --primary-900: #001A33;

    /* Accent */
    --accent: #00E5FF;
    --emerald: #00C896;
    --success: #22C55E;
    --warning: #FFB800;
    --danger: #FF4D6A;

    /* Neutrals — Dark Theme */
    --white: #E8ECF1;
    --gray-50: #0A1628;
    --gray-100: #0F1D32;
    --gray-200: #162540;
    --gray-300: #1E304D;
    --gray-400: #4A5B78;
    --gray-500: #8B9DC3;
    --gray-600: #A8B8D8;
    --gray-700: #CBD5E8;
    --gray-800: #DDE5F0;
    --gray-900: #E8ECF1;

    /* Surfaces */
    --surface: #000B1A;
    --surface-alt: #060F22;
    --surface-dark: #000510;
    --surface-card: rgba(10, 22, 45, 0.7);
    --border: rgba(0, 229, 255, 0.08);
    --border-light: rgba(0, 229, 255, 0.04);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    --space-5xl: 5rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows — Cyan-tinted for dark theme */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 4px 20px rgba(0, 229, 255, 0.2);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.6);

    /* Glow Effects */
    --glow-sm: 0 0 10px rgba(0, 229, 255, 0.15);
    --glow-md: 0 0 20px rgba(0, 229, 255, 0.2);
    --glow-lg: 0 0 40px rgba(0, 229, 255, 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Container */
    --container-max: 1200px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--surface);
    color: var(--gray-500);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--gray-900);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

h4 {
    font-size: 1rem;
}

p {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 680px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Badge --- */
.badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4em 1.2em;
    border-radius: var(--radius-full);
    background: var(--primary-50);
    color: var(--primary);
    border: 1px solid var(--primary-100);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75em 1.8em;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: #000B1A;
    box-shadow: var(--shadow-primary), var(--glow-sm);
}

.btn--primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 229, 255, 0.35), var(--glow-md);
    color: #000B1A;
}

.btn--white {
    background: rgba(232, 236, 241, 0.1);
    color: var(--white);
    font-weight: 700;
    border: 1px solid rgba(232, 236, 241, 0.2);
}

.btn--white:hover {
    background: rgba(232, 236, 241, 0.15);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(232, 236, 241, 0.3);
}

.btn--outline-white:hover {
    background: rgba(232, 236, 241, 0.08);
    border-color: rgba(232, 236, 241, 0.5);
    color: var(--white);
}

.btn--sm {
    font-size: 0.82rem;
    padding: 0.6em 1.4em;
}

/* ============================================
   NAVIGATION — Glassmorphism Panel
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(0, 11, 26, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), var(--glow-sm);
    padding: var(--space-sm) 0;
    background: rgba(0, 11, 26, 0.9);
    border-bottom-color: rgba(0, 229, 255, 0.12);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar__logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.2);
}

.navbar__logo-img--nexo {
    height: 28px;
}

.navbar__logo-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 229, 255, 0.2);
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.navbar__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: color var(--transition-fast);
    position: relative;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--transition-base);
    box-shadow: var(--glow-sm);
}

.navbar__link:hover {
    color: var(--primary);
}

.navbar__link--active {
    color: var(--primary);
    font-weight: 700;
}

.navbar__link--active::after {
    width: 60%;
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.navbar__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-500);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO — Dark, centered
   ============================================ */
.hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--surface);
}

.hero__badge {
    margin-bottom: var(--space-lg);
}

.hero__title {
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero__title-accent {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin: 0 auto;
    max-width: 640px;
    line-height: 1.8;
}

/* ============================================
   COMPARISON CARDS — 4-column grid
   ============================================ */
.comparison {
    padding: var(--space-3xl) 0 var(--space-4xl);
    background: var(--surface);
}

.comparison__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.comparison__card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    text-align: center;
    backdrop-filter: blur(10px);
}

.comparison__card:hover {
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: var(--shadow-md), var(--glow-sm);
    transform: translateY(-4px);
}

.comparison__card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.comparison__card-icon .material-symbols-outlined {
    font-size: 24px;
    color: var(--primary);
}

.comparison__card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-lg);
}

.comparison__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
    font-size: 0.85rem;
}

.comparison__row--phone {
    background: rgba(75, 91, 120, 0.15);
}

.comparison__row--nexo {
    background: var(--primary-50);
}

.comparison__label {
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.comparison__row--nexo .comparison__label {
    color: var(--primary);
}

.comparison__value {
    font-weight: 700;
    color: var(--gray-700);
}

.comparison__row--nexo .comparison__value {
    color: var(--primary);
}

.comparison__detail {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.comparison__detail p {
    font-size: 0.75rem;
    font-weight: 600;
}

.comparison__detail-phone {
    color: var(--gray-400);
}

.comparison__detail-nexo {
    color: var(--primary);
}

/* ============================================
   ARCHITECTURE — Split layout
   ============================================ */
.architecture {
    padding: var(--space-4xl) 0;
    background: var(--surface-alt);
}

.architecture__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.architecture__visual {
    display: flex;
    justify-content: center;
}

.architecture__device-frame {
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    width: 100%;
    aspect-ratio: 3/4;
    border: 1px solid var(--border);
}

.architecture__device-img {
    position: relative;
    width: 100%;
    max-width: 220px;
}

.architecture__device-img img {
    width: 100%;
    border-radius: var(--radius-md);
}

.architecture__device-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    color: var(--gray-400);
}

.architecture__device-placeholder .material-symbols-outlined {
    font-size: 80px;
    color: var(--primary);
    opacity: 0.6;
}

.architecture__device-label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-500);
}

.architecture__title {
    margin-bottom: var(--space-md);
}

.architecture__text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.architecture__text strong {
    color: var(--primary);
}

.architecture__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.architecture__feature {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.architecture__feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
}

.architecture__feature-title {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-xs);
}

.architecture__feature-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================
   CTA — Cyan gradient box
   ============================================ */
.cta {
    padding: var(--space-4xl) 0;
    background: var(--surface);
}

.cta__box {
    background: linear-gradient(135deg, #001A33 0%, #002244 40%, #003366 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-4xl) var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.cta__box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta__title {
    color: var(--white);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.cta__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.cta__terms {
    font-size: 0.8rem;
    color: rgba(232, 236, 241, 0.5);
    position: relative;
    z-index: 1;
    max-width: none;
}

/* ============================================
   FOOTER — Dark with subtle border
   ============================================ */
.footer {
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0;
}

.footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.footer__logos {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__logo-img {
    height: 22px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: brightness(1.3);
}

.footer__copy {
    font-size: 0.82rem;
    color: var(--gray-400);
}

.footer__links {
    display: flex;
    gap: var(--space-xl);
}

.footer__links a {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--primary);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    border: 1px solid var(--border);
}

.footer__social a:hover {
    background: var(--primary);
    color: #000B1A;
    border-color: var(--primary);
    box-shadow: var(--glow-md);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .comparison__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .architecture__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .architecture__visual {
        order: -1;
    }

    .architecture__device-frame {
        max-width: 340px;
        aspect-ratio: auto;
        padding: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 11, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: var(--space-2xl);
        border-left: 1px solid var(--border);
        transition: right var(--transition-base);
        gap: var(--space-lg);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    }

    .navbar__menu.open {
        right: 0;
    }

    .navbar__toggle {
        display: block;
    }

    .hero {
        padding: 120px 0 40px;
    }

    .hero__title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .comparison__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid {
        flex-direction: column;
        text-align: center;
    }

    .footer__brand {
        flex-direction: column;
    }

    .footer__links {
        justify-content: center;
    }

    .footer__social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .comparison__grid {
        grid-template-columns: 1fr;
    }

    .cta__box {
        padding: var(--space-2xl) var(--space-lg);
    }

    .cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Focus for Accessibility --- */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* --- Subtle Glow Animation --- */
@keyframes subtleGlow {
    0%, 100% {
        box-shadow: var(--shadow-primary), 0 0 15px rgba(0, 229, 255, 0.1);
    }
    50% {
        box-shadow: var(--shadow-primary), 0 0 25px rgba(0, 229, 255, 0.2);
    }
}