/* ToR Token - Tor Project Inspired Theme */

:root {
    --tor-purple: #7D4698;
    --tor-purple-dark: #5E3370;
    --tor-purple-light: #9B6DB3;
    --tor-green: #68B030;
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1a;
    --bg-card: #242442;
    --text-primary: #ffffff;
    --text-secondary: #b4b4c4;
    --text-muted: #8888a0;
    --border-color: #3a3a5a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(125, 70, 152, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(104, 176, 48, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(125, 70, 152, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tor-logo {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tor-purple-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--tor-purple-light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(125, 70, 152, 0.2);
    border: 1px solid var(--tor-purple);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--tor-purple-light);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tor-purple-light), var(--tor-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Donation Tracker */
.donation-tracker {
    background: var(--bg-card);
    border: 2px solid var(--tor-purple);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(125, 70, 152, 0.2);
}

.tracker-header {
    margin-bottom: 0.75rem;
}

.tracker-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.tracker-amounts {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.tracker-current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tor-green);
}

.tracker-goal {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tracker-bar {
    position: relative;
    height: 12px;
    background: var(--bg-darker);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.tracker-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    min-width: 8px;
    background: linear-gradient(90deg, var(--tor-green), #8ed94d);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.tracker-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(104, 176, 48, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tracker-percentage {
    font-size: 0.75rem;
    color: var(--tor-purple-light);
    text-align: center;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Token Address Box */
.token-address-box {
    background: var(--bg-card);
    border: 1px solid var(--tor-purple);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.token-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tor-purple-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

code.token-address {
    display: block;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.95rem;
    color: var(--tor-green);
    word-break: break-all;
    background: transparent;
    user-select: all;
    cursor: text;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tor-purple), var(--tor-purple-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(125, 70, 152, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(125, 70, 152, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--tor-purple);
    color: var(--tor-purple-light);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.onion-rings {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border: 2px solid var(--tor-purple);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.ring-2 {
    width: 300px;
    height: 300px;
    animation-delay: 1s;
}

.ring-3 {
    width: 400px;
    height: 400px;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.hero-logo {
    width: 120px;
    height: 120px;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(125, 70, 152, 0.5));
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--tor-purple);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(125, 70, 152, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: var(--tor-purple-light);
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
}

/* Privacy Section */
.privacy {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
}

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

.privacy-text .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.privacy-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--tor-purple-light);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.privacy-list {
    list-style: none;
}

.privacy-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.privacy-list li:last-child {
    border-bottom: none;
}

.privacy-list strong {
    color: var(--tor-purple-light);
}

.privacy-quote {
    position: sticky;
    top: 120px;
}

.privacy-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    padding: 2rem;
    background: var(--bg-card);
    border-left: 4px solid var(--tor-purple);
    border-radius: 0 12px 12px 0;
}

/* Tokenomics Section */
.tokenomics-visual {
    overflow-x: auto;
}

.token-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.flow-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    min-width: 180px;
    transition: border-color 0.3s ease;
}

.flow-step:hover {
    border-color: var(--tor-purple);
}

.flow-icon {
    width: 60px;
    height: 60px;
    background: rgba(125, 70, 152, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.flow-icon svg {
    width: 28px;
    height: 28px;
    color: var(--tor-purple-light);
}

.flow-icon.highlight {
    background: var(--tor-purple);
}

.flow-icon.highlight svg {
    color: white;
}

.flow-icon.success {
    background: rgba(104, 176, 48, 0.2);
}

.flow-icon.success svg {
    color: var(--tor-green);
}

.flow-step h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.flow-step p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.flow-arrow {
    font-size: 2rem;
    color: var(--tor-purple);
    font-weight: bold;
}

/* Donation Section */
.donation {
    background: var(--bg-dark);
}

.donation-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.donation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.donation-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

code.btc-address {
    display: block;
    background: var(--bg-darker);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--tor-green);
    word-break: break-all;
    user-select: all;
    cursor: text;
}

.copy-btn.copied {
    background: var(--tor-green);
}

.copy-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.donation-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.donation-note a {
    color: var(--tor-purple-light);
    text-decoration: none;
}

.donation-note a:hover {
    text-decoration: underline;
}

.donation-process h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.donation-process ol {
    list-style: none;
    counter-reset: steps;
}

.donation-process li {
    counter-increment: steps;
    padding: 1rem 0;
    padding-left: 3rem;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.donation-process li:last-child {
    border-bottom: none;
}

.donation-process li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 28px;
    height: 28px;
    background: var(--tor-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 8rem 0;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-token-address {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--tor-purple);
    border-radius: 12px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.cta-token-address .token-label {
    display: block;
    margin-bottom: 0.5rem;
}

.cta-token-address code {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 1rem;
    color: var(--tor-green);
    word-break: break-all;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tor-purple-light);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--tor-purple-light);
}

.footer-disclaimer {
    max-width: 600px;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .onion-rings {
        width: 300px;
        height: 300px;
    }

    .ring-1 { width: 150px; height: 150px; }
    .ring-2 { width: 225px; height: 225px; }
    .ring-3 { width: 300px; height: 300px; }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .privacy-content {
        grid-template-columns: 1fr;
    }

    .privacy-quote {
        position: static;
    }

    .donation-info {
        grid-template-columns: 1fr;
    }

    .token-flow {
        flex-wrap: wrap;
    }

    .flow-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

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

    .section {
        padding: 4rem 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .privacy-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-visual {
    animation: fadeIn 1s ease-out;
}

.hero-visual {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}
