/* ============================================
   INDEX PAGE - OnlyQVPN
   Home page specific styles
   ============================================ */

/* ── Hero layout ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 0 6vw;
    overflow: hidden;
}

/* ── Hero background ── */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 90% at 60% 50%, black 20%, transparent 80%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hg1 {
    width: 700px; height: 700px;
    top: -200px; right: -80px;
    background: radial-gradient(circle, rgba(200,255,87,0.06) 0%, transparent 65%);
    filter: blur(60px);
}
.hg2 {
    width: 400px; height: 400px;
    bottom: -80px; left: 10%;
    background: radial-gradient(circle, rgba(87,170,255,0.04) 0%, transparent 70%);
    filter: blur(80px);
}
.hg3 {
    width: 300px; height: 300px;
    top: 30%; left: 45%;
    background: radial-gradient(circle, rgba(200,255,87,0.05) 0%, transparent 70%);
    filter: blur(50px);
}

/* ── Hero content (left) ── */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: rgba(200,255,87,0.06);
    border: 1px solid rgba(200,255,87,0.2);
    border-radius: 100px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.55s 0.1s forwards;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(200,255,87,0.7);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.badge-sep { opacity: 0.35; }

.badge-ping {
    color: var(--text-muted);
    font-size: 10px;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(50px, 6.5vw, 96px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeUp 0.55s 0.22s forwards;
}

.ht-accent { color: var(--accent); }

.hero-sub {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 48px;
    max-width: 460px;
    opacity: 0;
    animation: fadeUp 0.55s 0.38s forwards;
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-bottom: 56px;
    opacity: 0;
    animation: fadeUp 0.55s 0.52s forwards;
}

/* ── Stats bar ── */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.55s 0.66s forwards;
}

.hstat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 16px;
    position: relative;
}

.hstat + .hstat::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: var(--border);
}

.hstat-num {
    font-family: 'Space Mono', monospace;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    white-space: nowrap;
}

.hstat-num span {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 2px;
    font-weight: 400;
}

.hstat-lbl {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Hero visual (right) ── */
.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    opacity: 0;
    animation: fadeIn 1s 0.3s forwards;
}

.orb-scene {
    position: relative;
    width: 400px;
    height: 400px;
    perspective: 900px;
}

/* Central orb */
.orb-core {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 158px;
    height: 158px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%,
        rgba(200,255,87,0.09) 0%,
        rgba(200,255,87,0.02) 45%,
        rgba(0,0,0,0.55) 100%);
    border: 1px solid rgba(200,255,87,0.28);
    box-shadow:
        0 0 80px rgba(200,255,87,0.07),
        0 0 30px rgba(200,255,87,0.04),
        inset 0 0 40px rgba(200,255,87,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.orb-aura {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,255,87,0.09) 0%, transparent 65%);
    animation: orbBreathe 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes orbBreathe {
    0%, 100% { transform: scale(1);    opacity: 0.7; }
    50%       { transform: scale(1.18); opacity: 1; }
}

/* Orbit rings */
.orb-ring {
    position: absolute;
    left: 50%; top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(200,255,87,0.13);
}

.r1 {
    width: 260px; height: 260px;
    margin: -130px 0 0 -130px;
    animation: ringSpin1 20s linear infinite;
}
.r2 {
    width: 320px; height: 320px;
    margin: -160px 0 0 -160px;
    border-color: rgba(200,255,87,0.07);
    animation: ringSpin2 32s linear infinite reverse;
}
.r3 {
    width: 210px; height: 210px;
    margin: -105px 0 0 -105px;
    border-color: rgba(200,255,87,0.09);
    border-style: dashed;
    animation: ringSpin3 15s linear infinite;
}

@keyframes ringSpin1 {
    from { transform: rotateX(72deg) rotateY(0deg); }
    to   { transform: rotateX(72deg) rotateY(360deg); }
}
@keyframes ringSpin2 {
    from { transform: rotateX(50deg) rotateZ(25deg) rotateY(0deg); }
    to   { transform: rotateX(50deg) rotateZ(25deg) rotateY(360deg); }
}
@keyframes ringSpin3 {
    from { transform: rotateX(20deg) rotateZ(-55deg) rotateY(0deg); }
    to   { transform: rotateX(20deg) rotateZ(-55deg) rotateY(360deg); }
}

/* Floating cards */
.orb-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(12, 12, 12, 0.88);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    backdrop-filter: blur(14px);
    white-space: nowrap;
    z-index: 4;
    transition: border-color 0.3s;
}
.orb-card:hover { border-color: rgba(200,255,87,0.2); }

.oc-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}
.oc-sub {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
}
.oc-live {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(200,255,87,0.8);
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.oc-1 { top: 5%;  right: -10%; animation: floatA 5s ease-in-out infinite; border-color: rgba(200,255,87,0.14); }
.oc-2 { bottom: 10%; right: -14%; animation: floatB 6.5s ease-in-out infinite; }
.oc-3 { top: 38%; left: -20%;  animation: floatC 4.5s ease-in-out infinite; }

@keyframes floatA {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(10px); }
}
@keyframes floatC {
    0%, 100% { transform: translateY(-5px); }
    50%       { transform: translateY(7px); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 6vw;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 5vw, 48px);
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 80px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

.plan-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--glow-green);
}

.plan-card.recommended {
    border-color: var(--accent);
    box-shadow: var(--glow-green);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--accent);
    color: #080808;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
}

.plan-features {
    list-style: none;
    margin: 16px 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.plan-features li svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.plan-name {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.plan-price {
    font-family: 'Space Mono', monospace;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin: 16px 0 8px;
}

.plan-price span {
    font-size: 20px;
    color: var(--text-muted);
}

.plan-duration {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--accent);
}

.feature-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 15px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Hero: app pills ── */
.hero-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 56px;
    margin-top: -24px;
}
.hero-app-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Section labels & sub ── */
.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
    margin-bottom: 16px;
}
.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: -56px;
    margin-bottom: 72px;
}
.section-title {
    line-height: 1.15;
}

/* ── Plan card updates ── */
.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 12px 0 4px;
}
.plan-per {
    font-size: 14px;
    color: var(--text-muted);
}
.plan-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}
.plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    margin-top: 8px;
}
.plan-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #444;
    transform: translateY(-1px);
}
.plan-btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #080808;
}
.plan-btn-accent:hover {
    background: #b8ef47;
    border-color: #b8ef47;
}

/* ── Section dark (steps) ── */
.section-dark {
    background: rgba(200,255,87,0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    padding: 100px 6vw;
}
.section-dark .section-title,
.section-dark .section-label {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Steps grid ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.step-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 36px 32px;
    background: var(--bg-surface);
    transition: background 0.2s;
}
.step-card:hover { background: rgba(200,255,87,0.03); }
.step-num {
    font-family: 'Space Mono', monospace;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.35;
    line-height: 1;
    flex-shrink: 0;
}
.step-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.step-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Left-aligned feature cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    text-align: left;
    padding: 36px 32px;
    background: var(--bg-surface);
    transition: background 0.2s;
}
.feature-card:hover { background: rgba(255,255,255,0.02); }
.feature-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 20px;
    color: var(--accent);
}
.feature-icon-wrap svg {
    width: 22px;
    height: 22px;
}
.feature-title {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .hero-visual { display: none; }
    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        padding: 88px 20px 48px;
    }
    .hero-content {
        padding: 0;
    }
    .hero-badge { margin-bottom: 24px; }
    .hero-title {
        font-size: clamp(42px, 11vw, 68px);
        margin-bottom: 20px;
    }
    .hero-sub {
        font-size: 15px;
        margin-bottom: 32px;
        max-width: 100%;
    }
    .hero-cta {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 32px;
    }
    .hero-cta .btn-primary,
    .hero-cta .btn-ghost {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 12px;
    }
    .hstat { padding: 14px 12px; }

    /* Sections */
    .section {
        padding: 64px 20px;
    }
    .section-dark {
        padding: 56px 20px;
        max-width: 100%;
    }
    .section-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 40px;
        text-align: center;
    }
    .section-sub {
        margin-top: -28px;
        margin-bottom: 40px;
        font-size: 14px;
    }

    /* Plans */
    .plans-grid { grid-template-columns: 1fr; }
    .plan-card { padding: 24px; }

    /* Steps */
    .steps-grid { grid-template-columns: 1fr; }
    .step-card { padding: 24px 20px; }
    .step-num { font-size: 28px; }

    /* Features */
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 24px 20px; }
}
