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

:root {
    --zcash-gold: #F4B728;
    --zcash-gold-dark: #d4970f;
}

/* Dark Theme (Default) */
body.dark-theme {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --border-color: rgba(244, 183, 40, 0.2);
    --border-hover: rgba(244, 183, 40, 0.4);
    --card-bg: rgba(244, 183, 40, 0.03);
    --card-hover: rgba(244, 183, 40, 0.05);
    --particle-opacity: 0.1;
}

/* Light Theme */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-tertiary: #f0f0f0;
    --bg-card: #e8e8e8;
    --text-primary: #0a0a0a;
    --text-secondary: #333333;
    --text-tertiary: #666666;
    --border-color: rgba(244, 183, 40, 0.3);
    --border-hover: rgba(244, 183, 40, 0.6);
    --card-bg: rgba(244, 183, 40, 0.08);
    --card-hover: rgba(244, 183, 40, 0.15);
    --particle-opacity: 0.05;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Badge Container */
.badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--zcash-gold);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(244, 183, 40, 0.3);
}

.theme-icon {
    font-size: 1.25rem;
    position: absolute;
    transition: all 0.3s ease;
}

.dark-theme .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

.dark-theme .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.light-theme .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.light-theme .moon-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

@media (max-width: 768px) {
    .badge-container {
        gap: 0.75rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-icon {
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    padding-bottom: 2rem;
    transition: background 0.3s ease;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 183, 40, var(--particle-opacity)) 0%, transparent 70%);
    animation: float var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    left: var(--x);
    top: var(--y);
    filter: blur(40px);
    transition: background 0.3s ease;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--zcash-gold) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--zcash-gold);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 4rem;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-description p {
    margin-bottom: 0.5rem;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--zcash-gold);
    border-bottom: 2px solid var(--zcash-gold);
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--zcash-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.large-text {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.large-text.center {
    text-align: center;
}

.body-text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* What Section */
.what-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 50%, var(--bg-primary) 100%);
    transition: background 0.3s ease;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content-block {
    padding: 2rem;
    border-left: 3px solid var(--zcash-gold);
    background: var(--card-bg);
    transition: background 0.3s ease;
}

/* Privacy Section */
.privacy-section {
    background-color: var(--bg-primary);
    transition: background 0.3s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(244, 183, 40, 0.2);
    border-color: var(--zcash-gold);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(100%) brightness(1.5);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--zcash-gold);
}

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

/* Philosophy Section */
.philosophy-section {
    background: var(--bg-tertiary);
    transition: background 0.3s ease;
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-quote {
    margin-bottom: 4rem;
    padding: 3rem;
    border-left: 4px solid var(--zcash-gold);
    border-right: 4px solid var(--zcash-gold);
    background: var(--card-bg);
    transition: background 0.3s ease;
}

.philosophy-quote p {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.philosophy-quote cite {
    font-size: 1rem;
    color: var(--zcash-gold);
    font-style: normal;
}

.philosophy-text {
    text-align: left;
}

/* Movement Section */
.movement-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    transition: background 0.3s ease;
}

.movement-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-container {
    margin-top: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--zcash-gold) 0%, #ffcc00 100%);
    color: var(--zcash-black);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(244, 183, 40, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(244, 183, 40, 0.5);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.footer-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--zcash-gold);
    margin-bottom: 1rem;
}

.footer-disclaimer {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

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

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .philosophy-quote {
        padding: 2rem 1.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 4rem;
    }

    .section {
        padding: 4rem 0;
    }

    .content-block {
        padding: 1.5rem;
    }
}

/* Selection Color */
::selection {
    background-color: var(--zcash-gold);
    color: var(--zcash-black);
}

::-moz-selection {
    background-color: var(--zcash-gold);
    color: var(--zcash-black);
}

/* Coin Badge */
.coin-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--zcash-gold) 0%, #ffcc00 100%);
    color: var(--zcash-black);
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 50px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(244, 183, 40, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(244, 183, 40, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(244, 183, 40, 0.6);
    }
}

/* Contract Address Section */
.contract-section {
    margin: 2rem auto;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.9s forwards;
    opacity: 0;
}

.contract-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zcash-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.contract-address-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contract-address {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contract-address:focus {
    outline: none;
    border-color: var(--zcash-gold);
    box-shadow: 0 0 20px rgba(244, 183, 40, 0.3);
}

.copy-button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--zcash-gold) 0%, #ffcc00 100%);
    border: none;
    border-radius: 12px;
    color: var(--zcash-black);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.copy-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 183, 40, 0.5);
}

.copy-button:active:not(:disabled) {
    transform: translateY(0);
}

.copy-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.copy-button.copied {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.copy-icon {
    font-size: 1.2rem;
}

.contract-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 1.2s forwards;
    opacity: 0;
}

.primary-cta {
    background: linear-gradient(135deg, var(--zcash-gold) 0%, #ffcc00 100%);
    color: var(--zcash-black);
}

.secondary-cta {
    background: transparent;
    color: var(--zcash-gold);
    border: 2px solid var(--zcash-gold);
}

.secondary-cta:hover {
    background: var(--zcash-gold);
    color: var(--zcash-black);
}

/* Viral Text */
.viral-text {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--zcash-gold);
    text-align: center;
    margin-top: 1rem;
}

/* Tokenomics Section */
.tokenomics-section {
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.tokenomics-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    position: relative;
}

.tokenomics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 183, 40, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tokenomics-card:hover::before {
    opacity: 1;
}

.tokenomics-card:hover {
    background: var(--card-hover);
}

.tokenomics-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.tokenomics-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.tokenomics-value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--zcash-gold);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tokenomics-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* How to Buy Section */
.how-to-buy-section {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    transition: background 0.3s ease;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    align-items: start;
}

.step-card:last-child {
    border-bottom: none;
}

.step-card:hover {
    padding-left: 1rem;
}

.step-card:hover .step-number {
    background: var(--zcash-gold);
    color: var(--zcash-black);
}

.step-number {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    color: var(--zcash-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    font-size: 1.5rem;
    background: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-content {
    padding-top: 0.25rem;
}

.step-card h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
}

/* Community Section */
.community-section {
    background: var(--bg-tertiary);
    transition: background 0.3s ease;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-button:hover {
    transform: translateY(-3px);
    border-color: var(--zcash-gold);
    box-shadow: 0 10px 25px rgba(244, 183, 40, 0.2);
}

.social-button.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.social-button.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.social-button.discord:hover {
    background: #5865F2;
    border-color: #5865F2;
}

.social-icon {
    font-size: 1.5rem;
}

.social-name {
    font-size: 1rem;
}

.movement-text {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer Links */
.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    max-width: 800px;
    margin: 1.5rem auto;
    line-height: 1.6;
    padding: 1.5rem;
    background: rgba(244, 183, 40, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(244, 183, 40, 0.2);
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--zcash-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.footer-links span {
    color: var(--text-tertiary);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 1.5rem;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .contract-address-wrapper {
        flex-direction: column;
    }

    .copy-button {
        justify-content: center;
    }

    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

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

    .step-card {
        grid-template-columns: 50px 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .social-links {
        flex-direction: column;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .social-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .coin-badge {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
    }

    .contract-address {
        font-size: 0.75rem;
        padding: 0.875rem 1rem;
    }

    .copy-button {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .tokenomics-value {
        font-size: 1.5rem;
    }

    .step-card {
        grid-template-columns: 40px 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        border-width: 1px;
    }

    .step-card h3 {
        font-size: 1.125rem;
    }

    .step-card p {
        font-size: 0.9375rem;
    }
}
