/* WARP + NextDNS Manager - Dark Theme */
:root {
    /* Brand Colors */
    --warp-orange: #f38020;
    --nextdns-purple: #8b5cf6;
    --nextdns-indigo: #6366f1;
    
    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #2a2a2a;
    
    /* Text Colors - Enhanced for Perfect Visibility */
    --text-primary: #ffffff;
    --text-secondary: #ffffff; /* Changed to white for maximum visibility */
    --text-muted: #e0e0e0; /* Increased brightness for better contrast */
    
    /* Status Colors */
    --success: #4caf50;
    --info: #2196f3;
    --warning: #ff9800;
    --error: #f44336;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warp: linear-gradient(135deg, #f38020 0%, #ff6b35 100%);
    --gradient-nextdns: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--warp-orange);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f38020 0%, #8b5cf6 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    color: var(--warp-orange);
    font-size: 1.5rem;
}

/* Hamburger Menu Button */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--warp-orange);
}

.btn-github, .btn-developer-support {
    background: var(--nextdns-purple);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-github:hover, .btn-developer-support:hover {
    background: var(--nextdns-indigo);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 0;
}

.hero-left {
    max-width: 500px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.warp-text {
    background: linear-gradient(135deg, #f38020 0%, #8b5cf6 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.manager-text {
    color: var(--text-primary);
    font-weight: 400;
}

.hero-subtitle {
    color: var(--warp-orange);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn i {
    transition: color 0.3s ease;
}

.btn-primary {
    background: var(--warp-orange);
    color: #ffffff;
}

.btn-primary:hover {
    background: #e6731a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover i {
    color: #ffffff;
}

.btn-demo {
    color: var(--text-primary);
    font-weight: 500;
}

.btn-demo:hover {
    color: var(--warp-orange);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

.btn-outline:hover i {
    color: var(--bg-primary);
}

/* Terminal Card */
.terminal-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-red, .btn-yellow, .btn-green {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-red { background: #ff5f56; }
.btn-yellow { background: #ffbd2e; }
.btn-green { background: #27ca3f; }

.terminal-title {
    color: var(--text-primary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.terminal-content {
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-line {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--warp-orange);
    font-weight: bold;
}

.command {
    color: var(--text-primary);
}

.terminal-output {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.status-line {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.status-line.success {
    color: var(--success);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.features-subtitle {
    color: var(--text-primary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--warp-orange);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--warp-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-primary);
    line-height: 1.6;
}

.macos-note {
    color: var(--warp-orange);
    font-weight: 600;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--bg-primary);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
    min-height: 0;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f38020 0%, #8b5cf6 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-brand-header i {
    color: var(--warp-orange);
    font-size: 1.5rem;
}

.footer-brand-subtitle {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-brand-description {
    color: var(--text-primary);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    min-height: 0;
}

.footer-column h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--warp-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Demo Section */
.demo {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.demo-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.demo-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--warp-orange);
}

.demo-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.demo-card-header i {
    font-size: 2rem;
    color: var(--warp-orange);
}

.demo-card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.demo-terminal {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.demo-prompt {
    color: var(--warp-orange);
    font-weight: bold;
}

.demo-command {
    color: var(--text-primary);
}

.demo-output {
    margin-top: 1rem;
}

.demo-status {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.demo-status.success {
    color: var(--success);
}

.demo-status.info {
    color: var(--info);
}

.demo-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.demo-stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--warp-orange);
    margin-bottom: 0.5rem;
}

.demo-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-feature i {
    color: var(--success);
    font-size: 1.2rem;
}

.demo-feature span {
    font-weight: 500;
}

.demo-cta {
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-cta p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.demo-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced Footer */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-brand-link,
.footer-dev-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-brand-link:hover,
.footer-dev-link:hover {
    color: var(--warp-orange);
    transform: translateY(-2px);
}

.footer-separator {
    color: var(--text-muted);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .demo-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-left {
        text-align: center;
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .features-title, .cta-title, .demo-title {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-buttons, .cta-buttons, .demo-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Show hamburger menu button */
    .navbar-toggle {
        display: flex;
    }
    
    /* Mobile navigation menu */
    .navbar-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 2rem;
    }
    
    .navbar-nav.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .btn-github, .btn-developer-support {
        width: 100%;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .demo-card {
        padding: 1.5rem;
    }
    
    .demo-stats {
        grid-template-columns: 1fr;
    }
    
    .demo-cta {
        padding: 2rem 1.5rem;
    }
    
    .demo-cta h3 {
        font-size: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features-title, .cta-title, .demo-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .terminal-content {
        font-size: 0.8rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2rem;
    }
    
    .demo-card {
        padding: 1rem;
    }
    
    .demo-card-header h3 {
        font-size: 1.2rem;
    }
    
    .demo-stat-value {
        font-size: 1.5rem;
    }
    
    .demo-cta {
        padding: 1.5rem 1rem;
    }
    
    .demo-cta h3 {
        font-size: 1.3rem;
    }
    
    .demo-cta p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Mobile navigation adjustments */
    .navbar-nav {
        padding: 1rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }
    
    .btn-github, .btn-developer-support {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .features-title, .cta-title, .demo-title {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .page-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
    
    .terminal-content {
        font-size: 0.7rem;
    }
    
    .demo-card,
    .feature-card {
        padding: 1rem;
    }
    
    .demo-stat-value {
        font-size: 1.2rem;
    }
    
    .demo-cta {
        padding: 1rem 0.75rem;
    }
    
    .demo-cta h3 {
        font-size: 1.1rem;
    }
    
    .demo-cta p {
        font-size: 0.9rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--warp-orange);
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background: var(--warp-orange);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--warp-orange);
    color: var(--text-primary);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --text-muted: #ffffff;
        --bg-primary: #000000;
        --bg-secondary: #000000;
        --bg-card: #000000;
    }
    
    .demo-card,
    .feature-card,
    .terminal-card {
        border: 2px solid var(--text-primary);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .cta-buttons,
    .demo-cta-buttons,
    .footer {
        display: none;
    }
    
    .hero,
    .features,
    .demo,
    .cta {
        padding: 1rem 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* Installation Page Styles */
.page-header {
    padding: 8rem 0 4rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header-content {
    text-align: center;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--warp-orange);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.page-content {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.main-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section {
    margin-bottom: 3rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Alert Styles */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
}

.alert i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.alert-info i {
    color: var(--info);
}

.alert-warning i {
    color: var(--warning);
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    color: var(--text-primary);
}

.alert-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    color: var(--warp-orange);
}

/* Prerequisites Grid */
.prerequisites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.prerequisite-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.prerequisite-card:hover {
    transform: translateY(-2px);
    border-color: var(--warp-orange);
}

.prerequisite-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-warp);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: white;
}

.prerequisite-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.prerequisite-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Method Tabs */
.method-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.method-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.method-tab:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.method-tab.active {
    background: var(--warp-orange);
    color: white;
    border-color: var(--warp-orange);
}

.method-tab i {
    font-size: 1.1rem;
}

.method-content {
    display: none;
}

.method-content.active {
    display: block;
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.platform-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.platform-tab:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.platform-tab.active {
    background: var(--nextdns-purple);
    color: white;
    border-color: var(--nextdns-purple);
}

.platform-tab i {
    font-size: 1.1rem;
}

.platform-content {
    display: none;
}

.platform-content.active {
    display: block;
}

/* Distro Tabs */
.distro-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.distro-tab {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.distro-tab:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.distro-tab.active {
    background: var(--nextdns-indigo);
    color: white;
    border-color: var(--nextdns-indigo);
}

.distro-content {
    display: none;
}

.distro-content.active {
    display: block;
}

/* Step List */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-warp);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.setup-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.setup-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.setup-features li i {
    color: var(--success);
    font-size: 0.9rem;
}

/* Code Blocks */
.code-block {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin: 1rem 0;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.copy-btn {
    padding: 0.25rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: var(--warp-orange);
    color: white;
    border-color: var(--warp-orange);
}

.code-block pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
}

.code-block code {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.setup-card {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.setup-card:hover {
    transform: translateY(-2px);
    border-color: var(--warp-orange);
}

.setup-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-warp);
    border-radius: var(--radius-md);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.setup-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.setup-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.setup-card ul {
    list-style: none;
    padding: 0;
}

.setup-card ul li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.setup-card ul li:before {
    content: "•";
    color: var(--warp-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.trouble-card {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.trouble-card:hover {
    transform: translateY(-2px);
    border-color: var(--warning);
}

.trouble-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-warp);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.trouble-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.trouble-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.trouble-card ul {
    list-style: none;
    padding: 0;
}

.trouble-card ul li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.trouble-card ul li:before {
    content: "→";
    color: var(--warning);
    position: absolute;
    left: 0;
}

/* Help Section */
.help-section {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.help-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.help-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.help-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.help-link:hover {
    background: var(--warp-orange);
    color: white;
    border-color: var(--warp-orange);
    transform: translateY(-2px);
}

.help-link i {
    font-size: 1.1rem;
}

/* Windows Prerequisites */
.windows-prerequisites {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.windows-prerequisites h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.windows-prerequisites ul {
    list-style: none;
    padding: 0;
}

.windows-prerequisites ul li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.windows-prerequisites ul li:before {
    content: "✓";
    color: var(--success);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
}

.sidebar-section ul li {
    margin-bottom: 0.5rem;
}

.sidebar-section ul li:last-child {
    margin-bottom: 0;
}

.sidebar-section ul li a {
    color: var(--text-muted);
    transition: color 0.3s ease;
    text-decoration: none;
}

.sidebar-section ul li a:hover {
    color: var(--warp-orange);
}

.sidebar-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Responsive Design for Installation Page */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
    }
    
    .prerequisites-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .setup-grid,
    .troubleshooting-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-title {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .page-subtitle {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .method-tabs,
    .platform-tabs {
        flex-direction: column;
    }
    
    .method-tab,
    .platform-tab {
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .distro-tabs {
        flex-direction: column;
    }
    
    .step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .help-links {
        flex-direction: column;
    }
    
    .help-link {
        justify-content: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .code-block {
        overflow-x: auto;
    }
    
    .code-block pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .prerequisites-grid {
        grid-template-columns: 1fr;
    }
    
    .prerequisite-card {
        flex-direction: column;
        text-align: center;
    }
    
    .setup-card,
    .trouble-card {
        padding: 1.5rem;
    }
    
    .setup-icon,
    .trouble-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin: 0 auto 1rem;
    }
}