/* ===== CSS Reset & Variables ===== */
:root {
    --primary: #8A2BE2;
    --primary-dark: #4B0082;
    --secondary: #00CED1;
    --accent: #FF00FF;
    --dark-1: #0A0A0F;
    --dark-2: #12121A;
    --dark-3: #1A1A24;
    --light: #F0F0FF;
    --gray: #8A8AA3;
    --success: #00FF7F;
    --warning: #FFD700;
    --danger: #FF4757;

    --glass-bg: rgba(18, 18, 26, 0.7);
    --glass-border: rgba(138, 43, 226, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-1) 0%, var(--dark-2) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);

    --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-medium: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: 0.2s ease;

    --border-radius: 20px;
    --border-radius-lg: 30px;
    --border-radius-sm: 12px;

    /* Responsive sizes */
    --container-padding: clamp(20px, 5vw, 60px);
    --section-padding: clamp(60px, 10vw, 120px);
    --hero-font-size: clamp(36px, 8vw, 72px);
    --section-title-size: clamp(28px, 5vw, 48px);
    --card-padding: clamp(30px, 4vw, 50px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--dark-1);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    background-image:
            radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 20%),
            radial-gradient(circle at 90% 80%, rgba(0, 206, 209, 0.05) 0%, transparent 20%);
    font-size: clamp(16px, 2vw, 18px);
}

/* ===== Animated Background Elements ===== */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: min(400px, 80vw);
    height: min(400px, 80vw);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: min(300px, 60vw);
    height: min(300px, 60vw);
    bottom: -150px;
    right: -150px;
    background: var(--gradient-accent);
    animation-delay: 5s;
}

.shape-3 {
    width: min(200px, 40vw);
    height: min(200px, 40vw);
    top: 50%;
    left: 80%;
    background: var(--gradient-primary);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===== Grid Pattern Overlay ===== */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(138, 43, 226, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(138, 43, 226, 0.03) 1px, transparent 1px);
    background-size: clamp(30px, 5vw, 50px) clamp(30px, 5vw, 50px);
    z-index: -1;
    pointer-events: none;
}

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: clamp(15px, 3vw, 20px) 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    transition: var(--transition-medium);
}

.header.scrolled {
    padding: clamp(12px, 2vw, 15px) 0;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 15px);
    flex-shrink: 0;
}

.logo-icon {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 4vw, 24px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-text h1 {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 800;
    background: linear-gradient(to right, var(--light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-text p {
    font-size: clamp(10px, 2vw, 13px);
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    color: var(--secondary);
}

nav {
    transition: var(--transition-medium);
}

nav ul {
    display: flex;
    list-style: none;
    gap: clamp(20px, 3vw, 40px);
    flex-wrap: wrap;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(13px, 1.8vw, 15px);
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
    white-space: nowrap;
}

nav a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-medium);
}

nav a:hover {
    color: var(--secondary);
}

nav a:hover:before {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero {
    padding: clamp(140px, 25vw, 200px) 0 clamp(10px, 15vw, 10px);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: min(800px, 90vw);
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: var(--hero-font-size);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: clamp(20px, 4vw, 30px);
    background: linear-gradient(to right, var(--light), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 20px rgba(0, 206, 209, 0.3); }
    to { text-shadow: 0 0 30px rgba(138, 43, 226, 0.5), 0 0 40px rgba(0, 206, 209, 0.3); }
}

.hero p {
    font-size: clamp(16px, 3vw, 20px);
    color: var(--gray);
    margin-bottom: clamp(30px, 5vw, 50px);
    max-width: min(600px, 90vw);
}

.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 206, 209, 0.1);
    border: 1px solid rgba(0, 206, 209, 0.3);
    padding: clamp(8px, 2vw, 12px) clamp(15px, 4vw, 25px);
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(13px, 2vw, 16px);
    margin-top: 20px;
    backdrop-filter: blur(10px);
    animation: badgeGlow 2s infinite alternate;
    flex-wrap: wrap;
}

@keyframes badgeGlow {
    from { box-shadow: 0 0 20px rgba(0, 206, 209, 0.2); }
    to { box-shadow: 0 0 30px rgba(0, 206, 209, 0.4); }
}

/* ===== Section Common Styles ===== */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-title {
    font-size: var(--section-title-size);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 80px);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 10vw, 80px);
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== Market Links ===== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(20px, 4vw, 40px);
    margin-top: clamp(40px, 6vw, 60px);
}

.link-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.link-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: -1;
}

.link-card:hover {
    transform: translateY(-20px);
    box-shadow: var(--glass-shadow), 0 20px 40px rgba(138, 43, 226, 0.3);
}

.link-card:hover:before {
    opacity: 0.1;
}

.link-icon {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    background: var(--gradient-dark);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: clamp(20px, 3vw, 30px);
    position: relative;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.link-card:hover .link-icon {
    background: var(--gradient-primary);
    transform: rotateY(180deg);
    transition: transform 0.6s;
}

.link-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: clamp(15px, 2vw, 20px);
    color: var(--light);
}

.link-desc {
    color: var(--gray);
    margin-bottom: clamp(25px, 4vw, 40px);
    font-size: clamp(14px, 1.8vw, 16px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: white;
    padding: clamp(14px, 3vw, 18px) clamp(25px, 5vw, 40px);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 16px);
    border: none;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: var(--transition-medium);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
}

.btn:hover:before {
    left: 0;
}

/* ===== Tor Browser Section ===== */
.tor-section {
    background: rgba(10, 10, 15, 0.5);
    border-radius: var(--border-radius-lg);
    margin: clamp(20px, 4vw, 40px) 0;
    padding: clamp(40px, 6vw, 80px);
    position: relative;
    overflow: hidden;
}

.tor-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.tor-container {
    display: flex;
    align-items: center;
    gap: clamp(40px, 8vw, 80px);
    flex-wrap: wrap;
}

.tor-visual {
    flex: 1;
    min-width: min(100%, 400px);
    position: relative;
}

.tor-browser-graphic {
    width: 100%;
    height: min(400px, 60vh);
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    border: 1px solid rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.tor-browser-graphic:before {
    content: '';
    position: absolute;
    left: -250px;
    top: -200px;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary), transparent 30%);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.tor-info {
    flex: 1;
    min-width: min(100%, 400px);
}

.tor-info h3 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: clamp(20px, 3vw, 30px);
    background: linear-gradient(to right, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 30px);
}

.step {
    display: flex;
    gap: clamp(15px, 3vw, 20px);
    align-items: flex-start;
}

.step-number {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(16px, 3vw, 20px);
    flex-shrink: 0;
}

/* ===== Security Recommendations ===== */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(20px, 4vw, 40px);
    margin-top: clamp(40px, 6vw, 60px);
}

.security-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: clamp(30px, 4vw, 40px);
    backdrop-filter: blur(20px);
    transition: var(--transition-medium);
    border-left: 5px solid var(--secondary);
}

.security-card:hover {
    transform: translateX(10px);
    border-left-color: var(--accent);
}

.security-icon {
    font-size: clamp(36px, 6vw, 48px);
    margin-bottom: clamp(15px, 3vw, 25px);
}

/* ===== Statistics Section ===== */
.stats-section {
    background: var(--gradient-dark);
    border-radius: var(--border-radius-lg);
    padding: clamp(60px, 8vw, 100px) clamp(30px, 5vw, 60px);
    position: relative;
    overflow: hidden;
}

.stats-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238a2be2' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(20px, 4vw, 40px);
    margin-bottom: clamp(40px, 8vw, 80px);
}

.stat-card {
    text-align: center;
    padding: clamp(30px, 4vw, 40px) clamp(20px, 3vw, 30px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: var(--transition-medium);
}

.stat-card:hover {
    background: rgba(138, 43, 226, 0.1);
    transform: translateY(-10px);
}

.stat-icon {
    font-size: clamp(36px, 6vw, 48px);
    margin-bottom: clamp(15px, 3vw, 20px);
}

.stat-value {
    font-size: clamp(48px, 8vw, 64px);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin: clamp(15px, 3vw, 20px) 0;
}

/* ===== Features Section ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(20px, 4vw, 40px);
    margin-top: clamp(40px, 6vw, 60px);
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glass-shadow), 0 20px 40px rgba(138, 43, 226, 0.2);
}

.feature-card:hover:before {
    opacity: 1;
}

.feature-icon {
    width: clamp(50px, 8vw, 70px);
    height: clamp(50px, 8vw, 70px);
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: clamp(20px, 3vw, 30px);
}

/* ===== PGP Verification ===== */
.pgp-section {
    background: rgba(10, 10, 15, 0.5);
    border-radius: var(--border-radius-lg);
    padding: clamp(40px, 6vw, 80px);
    position: relative;
}

.pgp-container {
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    padding: clamp(30px, 5vw, 60px);
    border: 1px solid rgba(0, 206, 209, 0.3);
    position: relative;
    overflow: hidden;
}

.pgp-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.pgp-key {
    background: rgba(0, 0, 0, 0.3);
    padding: clamp(20px, 3vw, 30px);
    border-radius: var(--border-radius-sm);
    margin-top: clamp(20px, 3vw, 30px);
    font-family: 'Courier New', monospace;
    font-size: clamp(12px, 1.8vw, 14px);
    line-height: 1.8;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

/* ===== FAQ Section ===== */
.faq-container {
    max-width: min(900px, 90vw);
    margin: clamp(40px, 6vw, 60px) auto 0;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin-bottom: clamp(15px, 3vw, 20px);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.faq-question {
    padding: clamp(20px, 3vw, 30px);
    font-size: clamp(18px, 3vw, 20px);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: rgba(138, 43, 226, 0.1);
}

.faq-answer {
    padding: 0 clamp(20px, 3vw, 30px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-item.active .faq-answer {
    padding: 0 clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px);
    max-height: 500px;
}

.faq-toggle {
    width: clamp(25px, 5vw, 30px);
    height: clamp(25px, 5vw, 30px);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 3vw, 18px);
    transition: var(--transition-medium);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ===== Footer ===== */
footer {
    background: var(--dark-2);
    padding: clamp(60px, 10vw, 100px) 0 clamp(30px, 5vw, 50px);
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(40px, 6vw, 60px);
    margin-bottom: clamp(40px, 8vw, 80px);
}

.footer-logo .logo-icon {
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    margin-bottom: 20px;
}

.footer-title {
    font-size: clamp(18px, 3vw, 20px);
    font-weight: 600;
    margin-bottom: clamp(20px, 4vw, 30px);
    color: var(--light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: clamp(10px, 2vw, 15px);
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(14px, 1.8vw, 16px);
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: clamp(30px, 5vw, 50px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: clamp(12px, 1.8vw, 14px);
    line-height: 1.6;
}

/* ===== Particle Effects ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    to { transform: translateY(-100vh) rotate(360deg); }
}

/* ===== Responsive Design ===== */
/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    :root {
        --container-padding: 30px;
        --section-padding: 80px;
    }

    .tor-container {
        gap: 50px;
    }

    nav ul {
        gap: 25px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .header-content {
        justify-content: space-between;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(30px);
        padding: 100px 30px 30px;
        transition: right 0.4s ease;
        z-index: 999;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    nav a {
        font-size: 18px;
        padding: 12px 0;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        order: 1;
    }

    .logo {
        order: 0;
    }

    .tor-container {
        flex-direction: column;
    }

    .tor-visual, .tor-info {
        min-width: 100%;
    }

    .tor-browser-graphic {
        height: 300px;
    }

    .pgp-key {
        font-size: 12px;
    }

    /* Overlay for mobile menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) and (orientation: landscape) {
    nav {
        padding-top: 80px;
    }

    nav ul {
        gap: 15px;
    }

    .hero {
        padding-top: 160px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: clamp(28px, 6vw, 40px);
    }

    .tor-browser-graphic {
        height: 250px;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
        --section-padding: 60px;
        --card-padding: 25px;
    }

    .hero {
        padding-top: 150px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: clamp(32px, 8vw, 40px);
    }

    .hero p {
        font-size: clamp(16px, 4vw, 18px);
    }

    .official-badge {
        flex-direction: column;
        text-align: center;
        padding: 12px 20px;
    }

    .tor-section, .pgp-section {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .pgp-container {
        padding: 25px 20px;
    }

    .stats-section {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .stat-value {
        font-size: 42px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .link-card:hover {
        transform: translateY(-10px);
    }

    .feature-card:hover, .security-card:hover {
        transform: translateX(5px);
    }

    .stat-card:hover {
        transform: translateY(-5px);
    }

    /* Improve touch targets */
    nav a, .btn, .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .step-number {
        min-width: 44px;
        min-height: 44px;
    }

    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .section-title:after {
        bottom: -15px;
    }

    .link-title, .tor-info h3 {
        font-size: 22px;
    }

    .link-icon, .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .security-icon {
        font-size: 32px;
    }

    .stat-value {
        font-size: 36px;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px;
    }

    .faq-toggle {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }

    .pgp-key {
        padding: 15px;
        font-size: 11px;
    }

    .copyright p {
        font-size: 12px;
    }

    /* Stack footer sections vertically on very small screens */
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Mobile Phones */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .link-card, .feature-card, .security-card {
        padding: 20px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .tor-browser-graphic {
        height: 200px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    .bg-elements, .grid-overlay, .particles, .menu-toggle, .btn:hover:before {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .link-card, .feature-card, .security-card, .stat-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }

    .btn {
        background: #333 !important;
        color: white !important;
    }

    nav {
        display: none !important;
    }

    header {
        position: static !important;
        background: white !important;
        color: black !important;
    }

    .logo-text h1 {
        background: black !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        color: black !important;
    }

    .hero h1 {
        background: black !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        color: black !important;
    }

    footer {
        background: #f5f5f5 !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-shape, .tor-browser-graphic:before, .particle {
        animation: none !important;
    }

    .link-card:hover .link-icon {
        transform: none !important;
        transition: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--dark-1);
        color: var(--light);
    }
}