/* ============================================================
   Vitisign landing — design tokens & reset
   ============================================================ */

:root {
    --c-bg:           #ffffff;
    --c-bg-alt:       #f6f7fb;
    --c-bg-dark:      #0a0a14;
    --c-text:         #0a0a14;
    --c-text-soft:    #4b5563;
    --c-text-mute:    #6b7280;
    --c-text-invert:  #f7f8fc;
    --c-border:       #e5e7ec;
    --c-border-dark:  #1f1f2e;

    --c-accent:       #6366f1;
    --c-accent-2:     #a855f7;
    --c-accent-3:     #22d3ee;

    --grad-hero:      linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #22d3ee 100%);

    --shadow-sm:      0 1px 2px rgba(10, 10, 20, .04), 0 1px 3px rgba(10, 10, 20, .06);
    --shadow-md:      0 4px 6px -1px rgba(10, 10, 20, .07), 0 2px 4px -2px rgba(10, 10, 20, .05);
    --shadow-lg:      0 20px 25px -5px rgba(10, 10, 20, .10), 0 8px 10px -6px rgba(10, 10, 20, .08);
    --shadow-glow:    0 0 0 1px rgba(99, 102, 241, .25), 0 20px 40px -10px rgba(99, 102, 241, .35);

    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      22px;
    --radius-xl:      28px;

    --max-w:          1180px;
    --pad-x:          24px;

    --t-fast:         140ms ease;
    --t-norm:         220ms cubic-bezier(.2, .8, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

.grad {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 14px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: var(--c-text);
    text-decoration: none;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-norm), background var(--t-norm), color var(--t-norm), border-color var(--t-norm);
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--c-text);
    color: var(--c-text-invert);
    border-color: var(--c-text);
}
.btn--primary:hover {
    box-shadow: var(--shadow-glow);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .25);
    color: var(--c-text-invert);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .45);
}

.btn--lg  { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ============================================================
   Top nav
   ============================================================ */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 20, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-norm), background var(--t-norm);
}

.nav.is-scrolled {
    border-bottom-color: var(--c-border-dark);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--c-text-invert);
    text-decoration: none;
    font-size: 17px;
    letter-spacing: -.01em;
}

.nav__logo-mark {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 22px;
    line-height: 1;
}

.nav__links {
    display: flex;
    gap: 28px;
}
.nav__links a {
    color: rgba(247, 248, 252, .72);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--t-fast);
}
.nav__links a:hover { color: var(--c-text-invert); }

.nav__cta {
    background: var(--c-text-invert);
    color: var(--c-text);
    border-color: var(--c-text-invert);
    padding: 10px 18px;
    font-size: 14px;
}

@media (max-width: 760px) {
    .nav__links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--c-bg-dark);
    color: var(--c-text-invert);
    padding: 100px 0 120px;
    text-align: center;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: auto;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .55;
    pointer-events: none;
    z-index: -1;
}
.hero::before {
    width: 520px; height: 520px;
    top: -120px; left: -120px;
    background: #6366f1;
}
.hero::after {
    width: 460px; height: 460px;
    bottom: -160px; right: -120px;
    background: #a855f7;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(247, 248, 252, .85);
    margin-bottom: 28px;
}
.hero__badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 12px #22d3ee;
}

.hero__title {
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 0 0 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero__subtitle {
    font-size: clamp(16px, 2.1vw, 20px);
    line-height: 1.6;
    color: rgba(247, 248, 252, .72);
    max-width: 680px;
    margin: 0 auto 40px;
}

.hero__ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 90px;
}

/* Device mock */
.hero__device {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(180deg, #14142a 0%, #0d0d1c 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px -10px rgba(0, 0, 0, .55), 0 0 0 1px rgba(99, 102, 241, .12);
    overflow: hidden;
    text-align: left;
}

.hero__device-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.hero__device-bar span {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}
.hero__device-bar span:nth-child(1) { background: #ff5f57; }
.hero__device-bar span:nth-child(2) { background: #febc2e; }
.hero__device-bar span:nth-child(3) { background: #28c840; }
.hero__device-url {
    margin-left: 16px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, .05);
    border-radius: 6px;
    font-size: 12px;
    color: rgba(247, 248, 252, .65);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hero__device-screen {
    padding: 28px 24px 24px;
}
.hero__device-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-accent-3);
    margin-bottom: 18px;
}
.hero__device-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.hero__device-item {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(247, 248, 252, .5);
    font-weight: 500;
}
.hero__device-item--active {
    background: var(--grad-hero);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 24px -8px rgba(99, 102, 241, .6);
}

.hero__device-progress {
    height: 4px;
    background: rgba(255, 255, 255, .06);
    border-radius: 2px;
    overflow: hidden;
}
.hero__device-progress-bar {
    width: 38%;
    height: 100%;
    background: var(--grad-hero);
    animation: progress 6s ease-in-out infinite;
}
@keyframes progress {
    0%   { width: 0%; }
    100% { width: 100%; }
}

/* ============================================================
   Sections
   ============================================================ */

.section {
    padding: 110px 0;
}

.section--alt {
    background: var(--c-bg-alt);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.section__head {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}

.section__title {
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0 0 18px;
}

.section__lead {
    font-size: 18px;
    color: var(--c-text-soft);
    margin: 0;
}

/* Steps */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 36px 28px 32px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: transform var(--t-norm), box-shadow var(--t-norm), border-color var(--t-norm);
}
.step:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, .35);
    box-shadow: var(--shadow-lg);
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--grad-hero);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, .45);
}

.step__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 10px;
}

.step__text {
    color: var(--c-text-soft);
    margin: 0;
    font-size: 15.5px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature {
    padding: 32px 28px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: transform var(--t-norm), box-shadow var(--t-norm), border-color var(--t-norm);
}
.feature:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, .35);
    box-shadow: var(--shadow-md);
}

.feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(168,85,247,.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
}

.feature__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 8px;
}

.feature__text {
    color: var(--c-text-soft);
    font-size: 15px;
    margin: 0;
}

/* Pricing */
.pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 760px) {
    .pricing {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 20px;
    }
}

.pricing__card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-xl);
    padding: 44px 36px 36px;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing__card--free {
    /* Card neutra, sin gradient border */
}

.pricing__card--pro {
    box-shadow: var(--shadow-lg);
}

.pricing__card--pro::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: var(--grad-hero);
    -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;
    opacity: .55;
}

.pricing__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    background: var(--grad-hero);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 6px 14px -4px rgba(99, 102, 241, .45);
}

.pricing__head {
    text-align: center;
    margin-bottom: 28px;
}

.pricing__plan {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, .1);
    color: var(--c-accent);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.pricing__plan--free {
    background: rgba(107, 114, 128, .12);
    color: var(--c-text-soft);
}

.pricing__toggle {
    display: inline-flex;
    padding: 4px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    margin-bottom: 22px;
    gap: 2px;
}

.pricing__toggle-btn {
    border: 0;
    background: transparent;
    padding: 9px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--t-norm), background var(--t-norm), box-shadow var(--t-norm);
}

.pricing__toggle-btn:hover {
    color: var(--c-text);
}

.pricing__toggle-btn.is-active {
    background: var(--c-text);
    color: var(--c-text-invert);
    box-shadow: 0 2px 8px -2px rgba(10, 10, 20, .25);
}

.pricing__toggle-btn.is-active:hover {
    color: var(--c-text-invert);
}

.pricing__toggle-save {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
}

.pricing__amount,
.pricing__sub {
    transition: opacity 180ms ease;
}

.pricing__card--switching .pricing__amount,
.pricing__card--switching .pricing__sub {
    opacity: 0;
}

.pricing__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.pricing__amount {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.pricing__unit {
    color: var(--c-text-soft);
    font-size: 15px;
}

.pricing__sub {
    color: var(--c-text-soft);
    font-size: 14px;
    margin: 14px 0 0;
}

.pricing__list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 12px;
    flex: 1 1 auto;
}
.pricing__list li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    color: var(--c-text-soft);
}
.pricing__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--grad-hero);
    background-clip: padding-box;
}
.pricing__list li::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    line-height: 18px;
}

.pricing__fine {
    text-align: center;
    color: var(--c-text-mute);
    font-size: 13px;
    margin: 16px 0 0;
}

/* FAQ */
.faq {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq__item {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 4px 4px;
    transition: border-color var(--t-norm), box-shadow var(--t-norm);
}
.faq__item[open] {
    border-color: rgba(99, 102, 241, .35);
    box-shadow: var(--shadow-sm);
}

.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 16px;
    color: var(--c-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--c-text-mute);
    transition: transform var(--t-norm);
}
.faq__item[open] summary::after {
    transform: rotate(45deg);
}

.faq__item p {
    margin: 0;
    padding: 0 24px 22px;
    color: var(--c-text-soft);
    font-size: 15.5px;
    line-height: 1.65;
}

/* CTA */
.cta {
    padding: 110px 0;
    background: var(--c-bg-dark);
    color: var(--c-text-invert);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, .25), transparent 50%);
    z-index: -1;
}

.cta__inner {
    max-width: 640px;
}

.cta__title {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0 0 16px;
}

.cta__text {
    font-size: 17px;
    color: rgba(247, 248, 252, .72);
    margin: 0 0 32px;
}

.cta .btn--primary {
    background: var(--c-text-invert);
    color: var(--c-text);
    border-color: var(--c-text-invert);
}

/* Footer */
.footer {
    background: var(--c-bg-dark);
    color: rgba(247, 248, 252, .55);
    padding: 36px 0;
    border-top: 1px solid var(--c-border-dark);
    font-size: 14px;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__brand {
    color: var(--c-text-invert);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   Scroll-reveal
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .8, .2, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0ms !important;
        transition-duration: 0ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .section { padding: 80px 0; }
    .hero { padding: 80px 0 90px; }
    .hero__ctas { margin-bottom: 64px; }
    .pricing__card { padding: 32px 24px 28px; }
    .pricing__amount { font-size: 52px; }
}
