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

:root {
    --primary: #ffffff;
    --primary-dark: #e5e5e5;
    --secondary: #cccccc;
    --accent: #ffffff;
    --background: #000000;
    --surface: #1a1a1a;
    --surface-light: #2a2a2a;
    --text: #ffffff;
    --text-secondary: #cccccc;
    --success: #ffffff;
    --border: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: visible;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #000000 100%);
    z-index: -2;
}

/* Galaxy Canvas */
#galaxyCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0.6;
}

/* Starfield Layers */
.stars-layer {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background-repeat: repeat;
    background-size: 1000px 1000px;
    pointer-events: none;
}

.stars-slow {
    background-image: radial-gradient(2px 2px at 20% 30%, white, transparent),
                      radial-gradient(2px 2px at 60% 70%, white, transparent),
                      radial-gradient(1px 1px at 50% 50%, white, transparent),
                      radial-gradient(1px 1px at 80% 10%, white, transparent),
                      radial-gradient(2px 2px at 90% 60%, white, transparent),
                      radial-gradient(1px 1px at 33% 80%, white, transparent);
    opacity: 0.4;
}

.stars-medium {
    background-image: radial-gradient(1px 1px at 15% 45%, white, transparent),
                      radial-gradient(1px 1px at 40% 20%, white, transparent),
                      radial-gradient(1px 1px at 75% 65%, white, transparent),
                      radial-gradient(1px 1px at 25% 85%, white, transparent),
                      radial-gradient(1px 1px at 95% 35%, white, transparent);
    opacity: 0.3;
}

.stars-fast {
    background-image: radial-gradient(1px 1px at 10% 60%, rgba(255, 255, 255, 0.8), transparent),
                      radial-gradient(1px 1px at 70% 25%, rgba(200, 200, 200, 0.6), transparent),
                      radial-gradient(1px 1px at 45% 75%, rgba(255, 255, 255, 0.5), transparent),
                      radial-gradient(1px 1px at 85% 90%, rgba(255, 255, 255, 0.7), transparent);
    opacity: 0.5;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

.orb1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #cccccc 0%, #ffffff 100%);
    top: 50%;
    right: -10%;
    animation-delay: 7s;
}

.orb3 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #888888 0%, #ffffff 100%);
    bottom: -20%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: particle 15s infinite linear;
    pointer-events: none;
}

@keyframes particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

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

/* Header */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.3) 0%, rgba(42, 42, 42, 0.3) 100%);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
}

.hero.hidden {
    transform: translateY(-100%);
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 90px;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.accent {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    padding: 10px 0;
    line-height: 1;
}

nav a:hover {
    color: white;
}

.wallet-btn {
    background: var(--primary);
    color: black;
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    background: var(--primary-dark);
}

.wallet-btn.connected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.wallet-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wallet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.wallet-modal.active {
    display: flex;
}

.wallet-modal-content {
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 0;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wallet-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-modal h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wallet-option {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.wallet-option:hover {
    border-color: var(--primary);
    background: var(--surface-light);
    transform: translateX(5px);
}

.wallet-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 0;
}

.wallet-icon {
    width: 40px;
    height: 40px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-info h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.wallet-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.wallet-status {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-status.connected {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.wallet-address {
    font-family: monospace;
    color: white;
    font-size: 14px;
}

/* Hero Content */
.hero-content {
    text-align: center;
    padding: 100px 0;
    background: transparent;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #888888 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: black;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

/* Demo Section */
.demo-section {
    padding: 80px 0;
    background: transparent;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 50px;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.chat-container {
    background: var(--surface);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.chat-header {
    background: var(--surface-light);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.agent-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.status {
    font-size: 14px;
    color: white;
}

.status::before {
    content: '●';
    margin-right: 5px;
}

.price-display {
    text-align: right;
}

.price-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--surface);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 4px;
}

.message {
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease-in;
}

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

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 0;
    line-height: 1.5;
}

.message.bot .message-content {
    background: var(--surface-light);
    border: 1px solid var(--border);
}

.message.user .message-content {
    background: var(--primary);
    color: black;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.chat-input-container {
    display: flex;
    padding: 20px;
    gap: 10px;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 12px 16px;
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: var(--primary);
}

.send-btn {
    background: var(--primary);
    border: none;
    border-radius: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    cursor: pointer;
    transition: all 0.3s;
}

.send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.usage-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

/* Mass Adoption Section */
.mass-adoption-section {
    padding: 100px 0;
    background: transparent;
}

.adoption-header {
    text-align: center;
    margin-bottom: 60px;
}

.adoption-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.adoption-main h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text);
}

.adoption-main p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-box {
    background: var(--surface);
    padding: 25px;
    border-radius: 0;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.use-cases h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text);
}

.use-case {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--surface);
    border-radius: 0;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.use-case:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.use-case:hover .use-case-icon {
    background: rgba(255, 255, 255, 0.2);
}

.use-case-icon {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--primary);
}

.use-case-icon svg {
    stroke: var(--primary);
}

.use-case-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.use-case-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.cta-box {
    background: var(--surface);
    padding: 50px;
    border-radius: 0;
    text-align: center;
    border: 2px solid var(--primary);
}

.cta-box h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text);
}

.cta-box p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: transparent;
}

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

.feature-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 0;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    background: var(--surface-light);
}

.feature-icon {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--primary);
}

.feature-icon svg {
    stroke: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

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

/* Documentation Section */
.docs-section {
    padding: 80px 0;
    background: transparent;
}

.docs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.doc-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.doc-tab:hover {
    color: var(--text);
}

.doc-tab.active {
    color: white;
    border-bottom-color: white;
}

.docs-content {
    background: var(--surface);
    border-radius: 0;
    padding: 40px;
    border: 1px solid var(--border);
}

.doc-panel {
    display: none;
}

.doc-panel.active {
    display: block;
}

.doc-panel h3 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text);
}

.doc-section {
    margin-bottom: 40px;
}

.doc-section h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text);
}

.doc-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.doc-section ol {
    color: var(--text-secondary);
    margin-left: 20px;
    line-height: 2;
}

pre {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 20px;
    overflow-x: auto;
    margin: 15px 0;
}

code {
    color: var(--text);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        width: calc(100% - 20px);
        top: 10px;
        border-radius: 12px;
    }

    .hero .container {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        gap: 15px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .adoption-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

    .footer-links {
        grid-template-columns: 1fr;
    }

    .docs-nav {
        flex-direction: column;
    }

    .doc-tab {
        text-align: left;
    }

    .chat-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

