:root {
    --bg-color: #050510;
    --primary: #5138f0;
    --accent: #00f0ff;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-heading);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background Animation Canvas */
#canvas-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin-bottom: 4rem;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

/* Header / Hero */
header {
    text-align: center;
    padding: 4rem 0 6rem;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), #3b27b8);
    color: white;
    box-shadow: 0 10px 30px rgba(81, 56, 240, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(81, 56, 240, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* IP Box logic reused but improved style */
.ip-box {
    margin-top: 3rem;
    display: inline-flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.ip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ip-label {
    color: var(--accent);
    font-weight: 600;
}

.ip-addr {
    cursor: pointer;
    transition: color 0.2s;
}

.ip-addr:hover {
    color: #fff;
    text-decoration: underline;
}

.copy-icon {
    cursor: pointer;
    opacity: 0.7;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

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

/* Sections - General */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Config & DoH Section */
.config-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.config-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.config-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.doh-box {
    background: #000;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #333;
    font-family: var(--font-mono);
    color: var(--accent);
    word-break: break-all;
    position: relative;
    cursor: pointer;
}

/* Terminal Window */
.terminal-window {
    background: #0c0c16;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #222;
    overflow: hidden;
    font-family: var(--font-mono);
    max-width: 900px;
    margin: 0 auto 6rem;
}

.terminal-header {
    background: #1a1a24;
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #222;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #d0d0d0;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.log-line {
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 4px;
}

.log-line span {
    color: #555;
    margin-right: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    color: #555;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .config-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ip-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: rgba(81, 56, 240, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}
