:root {
            --bg-main: #020617;
            --bg-card: rgba(15, 23, 42, 0.7);
            --primary: #3b82f6;
            --primary-glow: rgba(59, 130, 246, 0.4);
            --accent: #2dd4bf;
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --border: rgba(255, 255, 255, 0.1);
            --glass: rgba(255, 255, 255, 0.03);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        html {
            scroll-behavior: smooth;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
        }

        body {
            background-color: var(--bg-main);
            color: var(--text-main);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        body.theme-light {
            --bg-main: #f8fafc;
            --bg-card: rgba(255, 255, 255, 0.9);
            --primary: #2563eb;
            --primary-glow: rgba(37, 99, 235, 0.25);
            --accent: #0f766e;
            --text-main: #0f172a;
            --text-muted: #475569;
            --border: rgba(15, 23, 42, 0.12);
            --glass: rgba(15, 23, 42, 0.05);
        }

        /* Utilities */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            gap: 0.5rem;
            border: none;
            font-size: 0.95rem;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 15px var(--primary-glow);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px var(--primary-glow);
            filter: brightness(1.1);
        }

        .btn-secondary {
            background: var(--glass);
            color: var(--text-main);
            border: 1px solid var(--border);
            backdrop-filter: blur(8px);
        }

        .btn-secondary:hover {
            background: var(--border);
            border-color: var(--text-muted);
        }

        .section-padding {
            padding: 80px 0;
        }

        .glass-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            backdrop-filter: blur(12px);
            border-radius: 16px;
            padding: 2rem;
            transition: var(--transition);
        }

        .glass-card:hover {
            border-color: rgba(59, 130, 246, 0.5);
            transform: translateY(-5px);
        }

        .badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 99px;
            font-size: 0.75rem;
            font-weight: 600;
            background: rgba(59, 130, 246, 0.1);
            color: var(--primary);
            border: 1px solid rgba(59, 130, 246, 0.2);
            margin-bottom: 1rem;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s ease-out;
        }

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

        /* Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            transition: var(--transition);
            padding: 1.25rem 0;
        }

        header.scrolled {
            background: rgba(2, 6, 23, 0.9);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            padding: 0.75rem 0;
        }
        body.theme-light header.scrolled {
            background: rgba(248, 250, 252, 0.92);
        }

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

        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-main);
            text-decoration: none;
            letter-spacing: -0.5px;
            background: linear-gradient(120deg, #fff, var(--primary), #fff);
            background-size: 200% 100%;
            background-position: 0% 50%;
            background-clip: text;
            color: transparent;
            -webkit-background-clip: text;
            animation: logo-shift 6s ease-in-out infinite;
        }
        body.theme-light .logo {
            background: linear-gradient(120deg, #0f172a, var(--primary), #0f172a);
            background-size: 200% 100%;
            background-position: 0% 50%;
            background-clip: text;
            color: transparent;
            -webkit-background-clip: text;
        }

        .nav-links {
            display: none;
            gap: 2rem;
            align-items: center;
        }

        @media (min-width: 1024px) {
            .nav-links { display: flex; }
        }

        .nav-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: var(--transition);
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        .nav-actions {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        /* Hero */
        #hero {
            padding: 160px 0 80px;
            position: relative;
            overflow: hidden;
        }

        .hero-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
            background-size: 40px 40px;
            mask-image: linear-gradient(to bottom, black, transparent);
            z-index: -1;
        }
        body.theme-light .hero-grid {
            background-image: radial-gradient(circle at 2px 2px, rgba(15,23,42,0.08) 1px, transparent 0);
        }

        .hero-glow {
            position: absolute;
            top: 10%;
            left: 50%;
            transform: translateX(-50%);
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
            z-index: -1;
            filter: blur(60px);
        }

        .hero-content {
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
        }

        h1 {
            font-size: clamp(2.5rem, 8vw, 4rem);
            font-weight: 800;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            letter-spacing: -1px;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--text-muted);
            margin-bottom: 2.5rem;
            max-width: 600px;
            margin-inline: auto;
        }

        .hero-ctas {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-bottom: 4rem;
        }

        .trust-bar {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
            margin-bottom: 5rem;
            opacity: 0.7;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .trust-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Mock UI */
        .mock-ui {
            max-width: 900px;
            margin: 0 auto;
            background: #0f172a;
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 1.5rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            position: relative;
        }
        body.theme-light .mock-ui {
            background: #ffffff;
            box-shadow: 0 24px 50px -18px rgba(15, 23, 42, 0.18);
        }

        .mock-header {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .mock-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--border);
        }

        .mock-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .mock-card {
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid var(--border);
            padding: 1.25rem;
            border-radius: 12px;
        }
        body.theme-light .mock-card {
            background: rgba(15, 23, 42, 0.04);
        }
        .mock-card .btn {
            text-align: center;
        }

        .mock-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }

        .mock-value {
            font-size: 1.25rem;
            font-weight: 700;
        }

        .mock-status {
            font-size: 0.7rem;
            padding: 2px 8px;
            border-radius: 4px;
            background: rgba(45, 212, 191, 0.1);
            color: var(--accent);
            margin-left: 0.5rem;
            white-space: nowrap;
        }
        body.theme-light .mock-status {
            background: rgba(15, 118, 110, 0.12);
        }

        /* Painkillers */
        .grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .pain-icon {
            width: 48px;
            height: 48px;
            background: rgba(239, 68, 68, 0.1);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            color: #ef4444;
        }

        /* Services */
        .service-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .service-item {
            display: flex;
            gap: 1.25rem;
        }

        .service-icon {
            flex-shrink: 0;
            width: 56px;
            height: 56px;
            background: rgba(59, 130, 246, 0.1);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
        }

        /* How it works */
        .steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            position: relative;
        }

        .step {
            position: relative;
        }

        .step-number {
            font-size: 4rem;
            font-weight: 800;
            color: rgba(255, 255, 255, 0.05);
            position: absolute;
            top: -20px;
            left: -10px;
            z-index: -1;
        }
        body.theme-light .step-number {
            color: rgba(15, 23, 42, 0.08);
        }

        /* Pricing */
        .pricing-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 3rem;
        }

        .toggle-switch {
            width: 50px;
            height: 26px;
            background: var(--border);
            border-radius: 20px;
            position: relative;
            cursor: pointer;
        }

        .toggle-knob {
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            position: absolute;
            top: 3px;
            left: 3px;
            transition: var(--transition);
        }

        .toggle-switch.active .toggle-knob {
            left: 27px;
            background: var(--primary);
        }

        .plan-popular {
            border-color: var(--primary);
            position: relative;
        }

        .plan-badge {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--primary);
            color: white;
            padding: 4px 12px;
            border-radius: 99px;
            font-size: 0.75rem;
            font-weight: 700;
        }

        /* FAQ */
        .faq-list {
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-item {
            border-bottom: 1px solid var(--border);
            margin-bottom: 1rem;
        }

        .faq-trigger {
            width: 100%;
            padding: 1.5rem 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: none;
            border: none;
            color: var(--text-main);
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            text-align: left;
        }

        .faq-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            color: var(--text-muted);
            padding-bottom: 1.5rem;
        }

        .faq-item.active .faq-content {
            max-height: 200px;
        }

        /* Contact Form */
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 4rem;
        }

        form {
            display: grid;
            gap: 1.25rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        label {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-muted);
        }

        input, textarea {
            background: var(--glass);
            border: 1px solid var(--border);
            padding: 0.75rem 1rem;
            border-radius: 8px;
            color: var(--text-main);
            outline: none;
            transition: var(--transition);
        }
        body.theme-light input,
        body.theme-light textarea {
            background: #ffffff;
        }

        input:focus, textarea:focus {
            border-color: var(--primary);
            background: rgba(255,255,255,0.05);
        }
        body.theme-light input:focus,
        body.theme-light textarea:focus {
            background: #ffffff;
        }

        /* Footer */
        footer {
            padding: 60px 0 30px;
            border-top: 1px solid var(--border);
            margin-top: 80px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
            margin-bottom: 4rem;
        }

        .footer-logo {
            margin-bottom: 1.5rem;
            display: block;
        }

        .footer-links h4 {
            margin-bottom: 1.5rem;
            font-size: 1rem;
        }

        .footer-links ul {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.75rem;
        }

        .footer-links a {
            color: var(--text-muted);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--primary);
        }

        .copyright {
            text-align: center;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        /* Legacy pricing (webpay) */
        .section-card {
            max-width: 1200px;
            margin: 24px auto;
            padding: 24px;
            border-radius: 18px;
            border: 1px solid rgba(255,255,255,.12);
            background: rgba(10,18,40,.65);
            backdrop-filter: blur(10px);
        }
        body.theme-light .section-card {
            border: 1px solid rgba(15,23,42,.12);
            background: rgba(255,255,255,.85);
        }

        .section-card h2 {
            margin: 0 0 10px;
            font-size: 1.4rem;
        }

        .section-card p {
            margin: 0 0 8px;
            color: rgba(233,242,255,.78);
        }
        body.theme-light .section-card p {
            color: rgba(30,41,59,.75);
        }

        .webpay {
            color: #e7f1ff;
            max-width: 1080px;
            margin: 0 auto;
        }
        body.theme-light .webpay {
            color: #0f172a;
        }

        .webpay-topbar {
            display:flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 16px;
            flex-wrap: wrap;
            margin-bottom: 18px;
        }

        .webpay-topbar h2 {
            margin: 0;
            font-size: clamp(22px, 3vw, 30px);
            letter-spacing: -0.02em;
        }

        .webpay-topbar p {
            margin: 6px 0 0;
            color: rgba(231,241,255,.72);
            font-size: 14px;
            max-width: 520px;
        }
        body.theme-light .webpay-topbar p {
            color: rgba(30,41,59,.75);
        }

        .webpay-brand {
            color: #7cc7ff;
        }

        .webpay-badge {
            padding: 10px 14px;
            border-radius: 999px;
            background: rgba(66,133,244,.14);
            color: #9ad3ff;
            font-size: 12px;
            border: 1px solid rgba(66,133,244,.35);
            font-weight: 700;
            white-space: nowrap;
        }
        body.theme-light .webpay-badge {
            background: rgba(37,99,235,.12);
            color: #1d4ed8;
            border: 1px solid rgba(37,99,235,.25);
        }

        .webpay-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 14px;
            align-items: stretch;
        }

        .webpay-card {
            background: rgba(10,18,40,.85);
            border: 1px solid rgba(125,170,255,.15);
            box-shadow: 0 20px 60px rgba(9,20,50,.45);
            border-radius: 22px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
            transform: translateY(12px);
            opacity: 0;
            animation: webpay-rise .8s ease forwards;
        }
        body.theme-light .webpay-card {
            background: rgba(255,255,255,.95);
            border: 1px solid rgba(37,99,235,.12);
            box-shadow: 0 18px 40px rgba(15,23,42,.08);
        }

        .webpay-card:nth-child(2){ animation-delay: .1s; }
        .webpay-card:nth-child(3){ animation-delay: .2s; }

        .webpay-card:hover{
            transform: translateY(-6px);
            box-shadow: 0 26px 70px rgba(12,30,70,.45);
        }

        .webpay-card__head{
            padding: 18px 18px 10px;
        }

        .webpay-icon{
            width: 44px;
            height: 44px;
            margin: 0 auto 10px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: rgba(66,133,244,.2);
            color: #9ad3ff;
            border: 1px solid rgba(66,133,244,.35);
        }

        .webpay-icon svg{ width: 22px; height: 22px; }

        .webpay-title{
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            letter-spacing: -0.02em;
        }

        .webpay-subtitle{
            margin-top: 4px;
            font-size: 12px;
            color: rgba(231,241,255,.7);
            font-weight: 600;
        }
        body.theme-light .webpay-subtitle{
            color: rgba(30,41,59,.6);
        }

        .webpay-price{
            margin-top: 12px;
            font-size: 30px;
            font-weight: 700;
            color: #7cc7ff;
        }

        .webpay-ref{
            font-size: 12px;
            color: rgba(231,241,255,.6);
            font-style: italic;
        }
        body.theme-light .webpay-ref{
            color: rgba(30,41,59,.6);
        }

        .webpay-desc{
            margin: 10px auto 0;
            max-width: 260px;
            font-size: 12px;
            color: rgba(231,241,255,.7);
            line-height: 1.5;
            font-weight: 600;
        }
        body.theme-light .webpay-desc{
            color: rgba(30,41,59,.7);
        }

        .webpay-sep{
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(125,170,255,.2), transparent);
            margin: 12px 0;
        }

        .webpay-card__body{
            padding: 8px 18px 16px;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .webpay-list{
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            gap: 10px;
            text-align: left;
            font-weight: 600;
        }

        .webpay-list li{
            display: flex;
            gap: 10px;
            font-size: 12px;
            line-height: 1.3;
            align-items: flex-start;
            color: rgba(231,241,255,.8);
        }
        body.theme-light .webpay-list li{
            color: rgba(30,41,59,.8);
        }

        .webpay-check{
            width: 18px;
            height: 18px;
            color: #2dd4bf;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .webpay-card__foot{
            padding: 14px 18px 18px;
            text-align: center;
        }

        .webpay-button{
            position: relative;
            transition: all 0.3s ease-in-out;
            box-shadow: 0 10px 20px rgba(9,20,50,.35);
            padding-block: 0.65rem;
            padding-inline: 1.4rem;
            background-color: #1d4ed8;
            border-radius: 9999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #fff;
            gap: 10px;
            font-weight: 700;
            border: 2px solid rgba(255, 255, 255, 0.2);
            outline: none;
            overflow: hidden;
            font-size: 13px;
            text-decoration: none;
            width: 80%;
            max-width: 240px;
            margin: 0 auto;
        }

        .webpay-button-text{
            width: 100%;
            text-align: center;
        }

        .webpay-button--ghost{
            background-color: rgba(11,26,58,.8);
            color: #9ad3ff;
            border: 2px solid rgba(66,133,244,.3);
        }

        .webpay-button--accent{
            background-color: #7cc7ff;
            color: #0b132d;
            border: 2px solid rgba(255,255,255,.35);
            box-shadow: 0 10px 20px rgba(20,60,140,.35);
        }

        .webpay-button:hover{
            transform: scale(1.04);
            border-color: #fff7;
        }

        .webpay-button::before{
            content: "";
            position: absolute;
            width: 100px;
            height: 100%;
            background-image: linear-gradient(
                120deg,
                rgba(255, 255, 255, 0) 30%,
                rgba(255, 255, 255, 0.6),
                rgba(255, 255, 255, 0) 70%
            );
            top: 0;
            left: -100px;
            opacity: 0.5;
        }

        .webpay-button:hover::before{
            animation: webpay-shine 1.5s ease-out infinite;
        }

        .webpay-card--featured{
            border: 2px solid rgba(124,199,255,.4);
            transform: translateY(-6px);
        }

        .webpay-card--featured::before{
            content: "Principal";
            position: absolute;
            top: 16px;
            right: 16px;
            background: rgba(66,133,244,.18);
            color: #9ad3ff;
            font-size: 11px;
            font-weight: 700;
            padding: 8px 12px;
            border-radius: 999px;
            border: 1px solid rgba(66,133,244,.3);
        }

        @keyframes webpay-rise{
            from{ transform: translateY(18px); opacity:0; }
            to{ transform: translateY(0); opacity:1; }
        }

        @keyframes webpay-shine{
            0% { left: -100px; }
            60% { left: 100%; }
            to { left: 100%; }
        }

        @keyframes logo-shift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .section-muted {
            background: rgba(2, 6, 23, 0.5);
        }
        body.theme-light .section-muted {
            background: #f1f5f9;
        }

        .security-card {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 3rem;
            align-items: center;
            background: linear-gradient(135deg, rgba(15,23,42,0.8) 0%, rgba(30,41,59,0.4) 100%);
        }
        body.theme-light .security-card {
            background: linear-gradient(135deg, rgba(248,250,252,1) 0%, rgba(226,232,240,0.9) 100%);
        }

        .security-terminal {
            background: rgba(0,0,0,0.2);
            border-radius: 12px;
            padding: 1.5rem;
            font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
            font-size: 0.8rem;
            border: 1px solid var(--border);
        }
        body.theme-light .security-terminal {
            background: rgba(255,255,255,0.9);
            box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-ctas { flex-direction: column; }
            .section-padding { padding: 60px 0; }
            .contact-grid { gap: 2rem; }
            .mock-grid { grid-template-columns: 1fr; }
        }

        /* Performance tweaks for smoother scroll on mobile/tablet */
        @media (max-width: 1024px) {
            .glass-card,
            header.scrolled,
            .btn-secondary {
                backdrop-filter: none;
            }

            .hero-grid {
                mask-image: none;
            }

            .hero-glow {
                width: 420px;
                height: 420px;
                filter: blur(40px);
            }

            .mock-ui {
                box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.45);
            }

            .webpay-card {
                box-shadow: 0 14px 36px rgba(9,20,50,.35);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
            .reveal {
                opacity: 1 !important;
                transform: none !important;
            }
            .logo {
                animation: none !important;
            }
        }
