:root {
    --bg-color: #0d1117;
    --text-color: #e6edf3;
    --primary-color: #2196f3;
    /* Based on the blue logo */
    --secondary-color: #64b5f6;
    --accent-color: #bbdefb;
    --card-bg: rgba(22, 27, 34, 0.7);
    --card-border: rgba(48, 54, 61, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-1: #2196f3;
    --gradient-2: #9c27b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.globe:nth-child(1) {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--gradient-1), transparent);
}

.globe:nth-child(2) {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--gradient-2), transparent);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    padding: 4rem 0;
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 120px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(33, 150, 243, 0.5));
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.highlight {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: #8b949e;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 20px rgba(33, 150, 243, 0.1);
    border-color: var(--primary-color);
}

.step-number {
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    user-select: none;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.reverse .step-grid {
    direction: rtl;
    /* Simple way to swap, need to reset text direction */
}

.reverse .step-grid>* {
    direction: ltr;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

ol {
    list-style-position: inside;
    padding-left: 0;
}

li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

strong {
    color: var(--accent-color);
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: color 0.2s;
}

.link:hover {
    color: #fff;
    border-bottom-style: solid;
}

.warning {
    color: #f85149;
    font-weight: 600;
}

.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.option {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
}

.option h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.step-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.step-img:hover {
    transform: scale(1.02);
}

.success-msg {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(46, 160, 67, 0.2);
    border: 1px solid rgba(46, 160, 67, 0.4);
    border-radius: 8px;
    color: #7ee787;
    text-align: center;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 4rem 2rem;
    color: #8b949e;
    font-size: 0.9rem;
}

/* Network Data Styles */
.network-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.network-box h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.network-box.secondary h3 {
    color: #a5d6a7;
    /* Greenish for TFAR */
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.2rem;
}

.data-row:last-child {
    border-bottom: none;
}

.label {
    color: #8b949e;
    font-weight: 500;
}

.value {
    color: #e6edf3;
    font-family: monospace;
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

.copier {
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.copier:hover {
    color: var(--primary-color);
}

.copier:active::after {
    content: "Copiado!";
    position: absolute;
    top: -20px;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: sans-serif;
}

.highlight-row {
    background: rgba(33, 150, 243, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    margin-top: 0.5rem;
}

.small-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: right;
}

.advanced-details {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.advanced-details summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #8b949e;
    list-style: none;
    /* Remove default triangle in some browsers */
}

.advanced-details summary:hover {
    color: #e6edf3;
    background: rgba(255, 255, 255, 0.05);
}

.instructions-list li {
    margin-bottom: 0.8rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .step-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .reverse .step-grid {
        direction: ltr;
    }

    .step-card {
        padding: 2rem;
    }

    .step-number {
        font-size: 5rem;
    }
}