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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: #f9fafb;
    color: #1f2937;
}

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

header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

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

.nav-links a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #2563eb;
}

/* Demo Styles */
.demo-hero, .verify-hero, .dmca-hero {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.demo-hero h1, .verify-hero h1, .dmca-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.demo-section, .verify-section, .dmca-content {
    padding: 3rem 0;
}

.demo-controls {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.url-input-group {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

#urlInput {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-archive {
    background: #10b981;
}

.btn-archive:hover {
    background: #059669;
}

.demo-hint {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

.demo-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.demo-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.capture-preview {
    background: #f3f4f6;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    color: #6b7280;
}

.hash-display {
    background: #1f2937;
    color: #10b981;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.blockchain-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
}

.chain-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.chain-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.chain-status.confirmed {
    background: #d1fae5;
    color: #059669;
}

.verification-result {
    text-align: center;
    padding: 1rem;
}

.verify-waiting {
    color: #6b7280;
}

/* Live Examples */
.live-examples {
    margin-top: 4rem;
}

.section-subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
}

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

.example-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.example-header {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timestamp {
    color: #6b7280;
    font-size: 0.85rem;
}

.example-content {
    padding: 1.5rem;
}

.example-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.policy-change {
    background: #fef2f2;
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-left: 3px solid #ef4444;
    font-size: 0.9rem;
}

.verification-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.verify-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.verify-link:hover {
    text-decoration: underline;
}

.blockchain-proof {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.proof-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.proof-badge.cardano {
    background: #e0e7ff;
    color: #4338ca;
}

.proof-badge.ipfs {
    background: #dbeafe;
    color: #1e40af;
}

.proof-badge.arweave {
    background: #fce7f3;
    color: #be185d;
}

.hash-mini {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #6b7280;
}

/* DMCA Proof Section */
.dmca-proof-section {
    background: white;
    padding: 3rem 0;
    margin-top: 3rem;
    border-radius: 12px;
}

.dmca-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.proof-card {
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
}

.proof-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.node-map {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.node-indicator {
    padding: 0.25rem 0.5rem;
    background: #10b981;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.chain-status-mini {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1rem;
}

.chain-active {
    color: #10b981;
    font-weight: 600;
}

.hash-example {
    display: block;
    margin-top: 1rem;
    padding: 0.5rem;
    background: #1f2937;
    color: #10b981;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.github-link {
    display: inline-block;
    margin-top: 1rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
}

.close {
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #6b7280;
}

.close:hover {
    color: #1f2937;
}

/* Verification Page */
.verify-tool {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.verify-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.verify-option {
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
}

.verify-option h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.verify-option input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.verification-results {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-card {
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
}

.result-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.how-it-works {
    margin: 3rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.public-apis {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.api-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.api-link {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.api-link:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

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

.code-example {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.code-example pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

/* DMCA Resistance Page */
.comparison-table {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.vulnerable {
    color: #dc2626;
}

.protected {
    color: #10b981;
}

.architecture-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.architecture-diagram {
    margin-top: 2rem;
}

.arch-layer {
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.arch-layer h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.arch-components {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.component {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.legal-framework {
    margin-bottom: 3rem;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.framework-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.framework-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

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

.framework-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.framework-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
}

.attack-scenarios {
    margin-bottom: 3rem;
}

.scenario {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.scenario h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

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

.attack, .defense, .outcome {
    padding: 1.5rem;
    border-radius: 8px;
}

.attack {
    background: #fef2f2;
    border: 2px solid #fecaca;
}

.defense {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
}

.outcome {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
}

.attack h4 {
    color: #dc2626;
}

.defense h4 {
    color: #059669;
}

.outcome h4 {
    color: #2563eb;
}

.node-status {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.status-card {
    text-align: center;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
}

.status-card h3 {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.status-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
}

.status-change {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.run-node {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.run-node h2 {
    margin-bottom: 1rem;
}

.node-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.node-option {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

.node-option h3 {
    margin-bottom: 1rem;
}

.node-option pre {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    overflow-x: auto;
    font-size: 0.85rem;
}

.node-option .btn {
    background: white;
    color: #2563eb;
}

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

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.archive-status {
    display: none;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    text-align: center;
}

.archive-status.success {
    display: block;
    background: #d1fae5;
    color: #059669;
    border: 2px solid #86efac;
}

.archive-status.error {
    display: block;
    background: #fee2e2;
    color: #dc2626;
    border: 2px solid #fecaca;
}

.archive-status.processing {
    display: block;
    background: #fef3c7;
    color: #d97706;
    border: 2px solid #fed7aa;
}

/* Updated Landing Page Styles */
.hero-demo {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-demo h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-demo .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.demo-preview {
    background: white;
    color: #1f2937;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.live-demo-section {
    padding: 3rem 0;
    background: white;
}

.demo-live {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

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

.progress-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.progress-metric {
    font-size: 2rem;
    font-weight: bold;
    color: #2563eb;
}

.progress-label {
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Mobile Menu Hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
    max-width: 90%;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: #dc2626;
}

.toast.warning {
    background: #f59e0b;
}

/* Loading Skeletons */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
}

.skeleton-box {
    height: 100px;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Improved Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(30,41,59,0.98);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem;
        border-radius: 6px;
        transition: background 0.3s;
    }
    
    .nav-links a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    /* Better typography scaling */
    .hero-demo h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-demo .subtitle {
        font-size: 1.1rem;
    }
    
    /* Responsive grids with better gaps */
    .demo-grid, .examples-grid, .verify-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trust-indicators {
        gap: 1rem;
    }
    
    .trust-badge {
        font-size: 0.9rem;
    }
    
    /* Better wallet address handling */
    .wallet-address {
        font-size: 0.65rem;
        padding: 0.75rem;
        word-break: break-all;
    }
    
    /* Responsive buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
    }
    
    /* FAQ accordions for mobile */
    .faq-item {
        cursor: pointer;
    }
    
    .faq-item h3:after {
        content: '+';
        float: right;
        transition: transform 0.3s;
    }
    
    .faq-item.expanded h3:after {
        transform: rotate(45deg);
    }
    
    /* Better table scrolling */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Improved spacing */
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Status cards stack better */
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Code blocks scroll horizontally */
    pre, code {
        overflow-x: auto;
        max-width: 100%;
    }
}