/* ===========================
   Variables & Reset
   =========================== */
   :root {
    /* Colors */
    --clr-bg-dark: #050814;
    --clr-bg-gradient: linear-gradient(135deg, #050814 0%, #0d1223 100%);
    --clr-primary: #0055ff;
    --clr-primary-glow: rgba(0, 85, 255, 0.6);
    --clr-secondary: #00d2ff;
    --clr-text-light: #ffffff;
    --clr-text-muted: #9ba3bb;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(16px);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Variables */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--clr-bg-gradient);
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -20%; left: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, var(--clr-primary-glow) 0%, transparent 60%);
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Typography & Utils
   =========================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-desc {
    text-align: center;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: -2rem auto 3rem;
}

.text-left {
    text-align: left;
}

.highlight {
    background: linear-gradient(90deg, var(--clr-secondary), var(--clr-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism utility */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-body);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
    color: #fff;
    position: relative;
    z-index: 1;
}

.btn--secondary {
    background: var(--glass-bg);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn--outline:hover {
    background: var(--clr-primary);
    color: #fff;
}

.btn--full {
    width: 100%;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: inherit;
    border-radius: inherit;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
    transition: var(--transition);
}

.glow-effect:hover::after {
    opacity: 0.8;
    filter: blur(20px);
}

/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
    background: rgba(5, 8, 20, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.header .container {
    max-width: 100%;
    padding: 0 60px;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__list a {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    font-weight: 500;
    position: relative;
}

.nav__list a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--clr-primary);
    transition: var(--transition);
}

.nav__list a:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone-link {
    font-weight: 600;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.burger span {
    position: absolute;
    width: 100%; height: 2px;
    background: #fff;
    left: 0;
    transition: var(--transition);
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }

/* ===========================
   Hero Section
   =========================== */
.hero {
    height: 250vh;
    position: relative;
}

.hero-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

#zonda-canvas {
    -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 30%, transparent 90%);
    mask-image: radial-gradient(50% 50% at 50% 50%, #000 30%, transparent 90%);
    filter: brightness(1.5) contrast(1.4) saturate(1.2);
}

.hero__content {
    margin-left: -40px;
    margin-top: 60px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.hero__stats {
    display: flex;
    gap: 30px;
    padding-top: 40px;
    border-top: none; /* No top border in new design */
}

.stat-item.user-stat {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item__icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05); /* Dark pill */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle glass edge */
    border-radius: 16px; /* Squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.stat-item__content {
    display: flex;
    flex-direction: column;
}

.stat-item__value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-item__text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.hero__image {
    position: relative;
}

.hero__image::before {
    content: '';
    position: absolute;
    width: 150%; height: 150%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--clr-primary-glow) 0%, transparent 50%);
    z-index: -1;
    filter: blur(50px);
}

.hero__image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

/* ===========================
   How it Works
   =========================== */
.how {
    padding: 100px 0;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-top: 40px;
}

.timeline__line {
    position: absolute;
    top: 64px; left: 10%; right: 10%;
    height: 2px;
    background: var(--glass-border);
    z-index: 0;
}

.timeline__step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.timeline__icon {
    width: 50px; height: 50px;
    background: var(--clr-bg-dark);
    border: 2px solid var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    color: var(--clr-secondary);
    box-shadow: 0 0 20px var(--clr-primary-glow);
}

.timeline__title {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.timeline__text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

/* ===========================
   Calculator
   =========================== */
.calc-section {
    padding: 100px 0;
}

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

.calc__form-wrapper {
    padding: 40px;
}

.calc__title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.custom-select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.calc__results {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calc__image img {
    border-radius: var(--radius-lg);
}

/* ===========================
   Tracking
   =========================== */
.tracking {
    padding: 100px 0;
}

.tracking__container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

.tracking__img-wrap {
    padding: 20px;
    border-radius: 40px;
}

.tracking__img-wrap img {
    border-radius: 20px;
}

.features-list li {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.features-list .icon {
    color: var(--clr-secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===========================
   Benefits
   =========================== */
.benefits {
    padding: 100px 0;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    padding: 30px;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 85, 255, 0.4);
}

.benefit-card__icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.benefit-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--clr-text-muted);
}

/* ===========================
   Audience
   =========================== */
.audience {
    padding: 100px 0;
}

.audience__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.audience-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 400px;
}

.audience-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.audience-card:hover img {
    transform: scale(1.05);
}

.audience-card__content {
    position: absolute;
    bottom: 20px; left: 20px; right: 20px;
    padding: 24px;
}

.audience-card__content h4 {
    font-size: 1.3rem; margin-bottom: 10px;
}
.audience-card__content p {
    font-size: 0.9rem; color: #ddd;
}

/* ===========================
   Reviews
   =========================== */
.reviews {
    padding: 100px 0;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    padding: 30px;
}

.review-card__stars {
    margin-bottom: 15px;
}

.review-card__text {
    font-style: italic;
    color: var(--clr-text-muted);
    margin-bottom: 20px;
}

.review-card__author {
    display: flex;
    flex-direction: column;
}

.review-card__author span {
    font-size: 0.8rem;
    color: var(--clr-primary);
}

/* ===========================
   CTA
   =========================== */
.cta {
    padding: 100px 0;
}

.cta__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.cta__content {
    padding: 60px;
}

.cta__content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta__content p {
    color: var(--clr-text-muted);
    margin-bottom: 40px;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cta__image {
    height: 100%;
    position: relative;
}

.cta__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================
   Footer
   =========================== */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
    background: #02040a;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__brand p {
    color: var(--clr-text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a, .footer p a {
    color: var(--clr-text-muted);
}

.footer ul li a:hover, .footer p a:hover {
    color: var(--clr-primary);
}

.footer__contacts p {
    white-space: nowrap;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px; height: 40px;
    display: flex;
    align-items: center; justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--clr-text-muted);
}
.social-links a:hover {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* ===========================
   Animations & Responsive
   =========================== */
.fade-in-element {
    opacity: 0;
    transition: opacity 1s ease;
}
.fade-in-element.visible {
    opacity: 1;
}

.slide-up-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}
.slide-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .header .container { padding: 0 30px; }
    .hero__container, .calc__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content { margin-left: 0; margin-top: 0; }
    .hero__buttons, .hero__stats {
        justify-content: center;
    }
    .hero__stats { flex-wrap: wrap; }
    .timeline {
        grid-template-columns: 1fr 1fr;
    }
    .timeline__line { display: none; }
    .tracking__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tracking__img-wrap { margin: 0 auto; max-width: 400px; }
    .audience__grid, .reviews__grid {
        grid-template-columns: 1fr 1fr;
    }
    .cta__container {
        grid-template-columns: 1fr;
    }
    .cta__content { padding: 40px; }
}

@media (max-width: 768px) {
    .header .container { padding: 0 20px; }
    .nav {
        position: fixed;
        top: 0; left: -100%;
        width: 80%; height: 100vh;
        background: var(--clr-bg-dark);
        border-right: 1px solid var(--glass-border);
        padding: 100px 30px;
        transition: var(--transition);
    }
    .nav.active { left: 0; }
    .nav__list { flex-direction: column; gap: 20px; text-align: left; }
    .burger { display: block; }
    .header__actions { display: none; }
    
    .hero__title { font-size: 2.2rem; }
    .hero-sticky-wrapper { height: auto; padding: 120px 0 60px; display: block; }
    .hero { height: auto; }
    
    .hero__container { display: flex; flex-direction: column; }
    .hero__content { display: contents; }
    .hero__title { order: 1; }
    .hero__subtitle { order: 2; }
    .hero__image { order: 3; margin: 20px 0 30px; }
    .hero__buttons { order: 4; }
    .hero__stats { order: 5; flex-direction: column; align-items: stretch; gap: 15px; width: 100%; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; }
    
    .stat-item.user-stat { justify-content: flex-start; text-align: left; }
    
    .calc-section, .tracking, .benefits, .audience, .reviews, .cta { padding: 60px 0; }
    .calc__form-wrapper { padding: 25px 20px; }
    .cta__content { padding: 30px 20px; }
    
    .timeline { grid-template-columns: 1fr; }
    .audience__grid, .reviews__grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer__brand p { margin: 20px auto 0; }
    .footer__contacts p { white-space: normal; }
    .social-links { justify-content: center; }
}
