:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --text-main: #1D1D1F;
    --text-muted: #6E6E73;
    --accent-blue: #007AFF;
    --accent-blue-hover: #0066CC;
    --border-color: #E5E5EA;
    --success-green: #34C759;
    --error-red: #FF3B30;
    
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --radius-card: 18px;
    --radius-pill: 980px;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 17px;
}

a {
    text-decoration: none;
    color: var(--accent-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.alternate-bg {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.95rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: scale(1.02);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background-color: rgba(0, 122, 255, 0.05);
}

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

/* HEADER */
.header {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

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

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
    z-index: 10;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* HERO SECTION */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-h1 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta-wrap {
    margin-bottom: 3rem;
}

.hero-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 120px;
}

.bullet-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}

.bullet-item.active {
    opacity: 1 !important;
    transform: translateY(0);
}

.bullet-item.success {
    color: var(--success-green);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* IPHONE MOCKUP CSS */
.iphone-mockup {
    width: 320px;
    height: 650px;
    background-color: #000;
    border-radius: 46px;
    position: relative;
    box-shadow: inset 0 0 0 10px #222, 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.iphone-mockup:hover {
    transform: rotateY(0) rotateX(0);
}

.iphone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background-color: #000;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.iphone-screen {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background-color: #FFF;
    border-radius: 36px;
    overflow: hidden;
}

.scene {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.scene.hidden {
    opacity: 0;
    pointer-events: none;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px 0;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    z-index: 5;
}

.scene.app-bg .status-bar {
    color: #fff;
}

.icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vpn-badge {
    border: 1px solid currentColor;
    font-size: 9px;
    padding: 1px 3px;
    border-radius: 2px;
}

.battery-icon {
    width: 22px;
    height: 10px;
    border: 1px solid currentColor;
    border-radius: 3px;
    position: relative;
}

.battery-icon::before {
    content: '';
    position: absolute;
    top: 2px; right: -3px;
    width: 2px; height: 4px;
    background: currentColor;
}

.battery-icon::after {
    content: '';
    position: absolute;
    top: 1px; left: 1px;
    height: 6px; width: 80%;
    background: currentColor;
    border-radius: 1px;
}

.scene-content {
    flex: 1;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.youtube-app {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--error-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.error-msg {
    font-weight: 500;
    color: var(--text-muted);
}

.app-bg {
    background-color: var(--text-main);
    color: #fff;
}

.vpn-app-connecting {
    text-align: center;
}

.connect-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.checkmark-circle {
    width: 60px;
    height: 60px;
    background-color: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.success-msg {
    font-weight: 600;
}

/* COMPATIBILITY UNIFIED PANEL */
.unified-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    display: flex;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.panel-selector {
    width: 300px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.model-pill {
    padding: 18px 25px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.model-pill:last-child {
    border-bottom: none;
}

.model-pill:hover {
    background: rgba(0,0,0,0.02);
    color: var(--text-main);
}

.model-pill.active {
    background: var(--bg-primary);
    color: var(--accent-blue);
    position: relative;
}

.model-pill.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-blue);
}

.panel-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.panel-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.panel-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* ISSUES GRID */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.grid-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-card);
    padding: 30px;
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.grid-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.grid-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.issues-conclusion {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 40px;
    border-radius: var(--radius-card);
    border: 2px dashed var(--accent-blue);
    background-color: rgba(0, 122, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.issues-conclusion:hover {
    transform: scale(1.03) translateY(-5px);
    background-color: rgba(0, 122, 255, 0.06);
    border-color: var(--accent-blue-hover);
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.15);
    border-style: solid;
}

/* ADVANTAGES */
.adv-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.adv-item {
    display: flex;
    gap: 15px;
}

.adv-icon {
    color: var(--accent-blue);
    font-size: 1.5rem;
    line-height: 1;
}

.adv-item p {
    color: var(--text-muted);
}

.adv-item strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 5px;
}

/* iSPEED TEST */
.ispeed-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-card);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.ispeed-header {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

.speed-label {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.progress-track {
    flex: 1;
    height: 12px;
    background-color: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 6px;
    transition: width 0.1s linear;
}

.progress-fill.bad { background-color: var(--error-red); }
.progress-fill.good { background-color: var(--success-green); }

.progress-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    width: 45px;
}

.bad-text { color: var(--error-red); }
.good-text { color: var(--success-green); }

.speed-status {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.speed-status.success {
    color: var(--success-green);
    transition: opacity 0.3s ease;
}

.speed-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ispeed-cta {
    margin-top: 40px;
    text-align: center;
}

/* INSTRUCTIONS TIMELINE */
.timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tl-number {
    width: 40px;
    height: 40px;
    background-color: var(--accent-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    flex-shrink: 0;
}

.tl-content {
    flex: 1;
}

.tl-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.tl-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tl-icon {
    font-size: 2rem;
    opacity: 0.5;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
}

.price-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
}

.price-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.pc-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pc-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pc-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pc-subprice {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pc-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.pc-features li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.price-card.premium {
    border: 2px solid var(--accent-blue);
    padding: 50px 30px;
    box-shadow: var(--shadow-md);
}

.pc-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
}

.price-card.premium .pc-header {
    color: var(--accent-blue);
}

/* REVIEWS */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 30px;
}

.stars {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.author {
    font-weight: 700;
    margin-bottom: 15px;
}

.author span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
}

.review-card p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-main);
}

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

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

.faq-q {
    padding: 20px 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-q .icon {
    transform: rotate(45deg);
}

.faq-a {
    padding-bottom: 20px;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-a {
    display: block;
}

/* SEO TEXT */
.typography {
    max-width: 800px;
    margin: 0 auto;
}

.typography h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    margin-top: 30px;
}

.typography h3:first-child {
    margin-top: 0;
}

.typography p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* FINAL CTA */
.final-cta {
    padding: 100px 0;
}

.cta-box {
    background: var(--bg-secondary);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
}

.cta-box h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 40px;
}

.cta-meta {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* MOBILE CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

/* FOOTER */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-menu {
        display: none; /* Mobile nav hiding handled by simple JS if requested to open, or just hide */
    }
    
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 20px;
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .burger { display: flex; }
    
    .unified-panel {
        flex-direction: column;
    }
    .panel-selector {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .model-pill {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        white-space: nowrap;
    }
    .model-pill.active::before {
        width: 100%;
        height: 4px;
        top: auto;
        bottom: 0;
        left: 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .price-card.premium {
        transform: none !important;
        padding: 40px 30px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-h2 {
        font-size: 2.8rem;
    }
    
    .hero-p {
        margin: 0 auto 2rem;
    }
    
    .hero-bullet-list {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .mobile-sticky-cta {
        display: block;
    }
    
    body {
        padding-bottom: 80px; /* space for sticky cta */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-box h2 {
        font-size: 1.8rem;
    }
}
