/* landing/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #f8f9fa;
    line-height: 1.6;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 48px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.tagline {
    color: #757575;
    font-size: 16px;
}

/* Steps */
.steps {
    margin-bottom: 48px;
}

.step {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a2340;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-content p {
    color: #555;
    font-size: 15px;
}

.download-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 28px;
    background: #1a2340;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #2a3a5c;
}

.code-display {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 14px;
    color: #757575;
}

/* Activation Codes */
.activation-codes {
    margin-bottom: 48px;
}

.activation-codes h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.activation-hint {
    color: #757575;
    font-size: 14px;
    margin-bottom: 20px;
}

.qr-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    flex: 1;
    min-width: 0;
}

.qr-canvas {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-canvas svg {
    width: 100%;
    height: 100%;
}

.qr-code-text {
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    color: #1a2340;
    letter-spacing: 0.5px;
    text-align: center;
    word-break: break-all;
    user-select: all;
}

/* Connection Check */
.connection-check {
    margin-bottom: 48px;
    scroll-margin-top: 24px;
}

.connection-check h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.demo-explainer {
    color: #555;
    font-size: 15px;
    margin-bottom: 20px;
}

.status-card {
    padding: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.status-card.protected {
    background: #e8f5e9;
    border-color: #4caf50;
}

.status-card.unprotected {
    background: #fff3e0;
    border-color: #ff9800;
}

.status-icon {
    font-size: 48px;
    flex-shrink: 0;
    width: 56px;
    text-align: center;
}

.ip-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #757575;
    margin-bottom: 4px;
}

.ip-address {
    font-size: 32px;
    font-weight: 700;
    font-family: monospace;
    color: #1a1a2e;
}

.status-message {
    font-size: 15px;
    color: #555;
    margin-top: 6px;
}

.recheck-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: #1a2340;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.recheck-btn:hover {
    background: #2a3a5c;
}

/* How It Works */
.how-it-works {
    margin-bottom: 48px;
}

.how-it-works h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.how-it-works-desc {
    color: #555;
    font-size: 15px;
    margin-bottom: 16px;
}

.tunnel-diagram {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tunnel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
}

.tunnel-row.tunneled {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
}

.tunnel-row.normal {
    background: #f5f5f5;
    color: #757575;
}

.tunnel-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* FAQ */
.faq {
    margin-bottom: 48px;
}

.faq h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

details {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

details:last-child {
    border-bottom: none;
}

summary {
    font-weight: 500;
    cursor: pointer;
    font-size: 15px;
    list-style: none;
}

summary::before {
    content: '+ ';
    font-weight: 300;
    color: #4da8da;
}

details[open] summary::before {
    content: '- ';
}

details p {
    margin-top: 8px;
    color: #555;
    font-size: 14px;
}

/* Footer */
footer {
    text-align: center;
    color: #bbb;
    font-size: 13px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

/* Mobile */
@media (max-width: 480px) {
    .container { padding: 24px 16px; }
    .logo h1 { font-size: 26px; }
    .qr-grid {
        flex-direction: column;
        gap: 16px;
    }
    .qr-item {
        flex-direction: row;
        padding: 16px;
    }
    .qr-canvas {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    .qr-code-text {
        font-size: 13px;
    }
}
