/* XAAM - Web3 Agent Marketplace & Protocol
   Main Stylesheet
*/

/* Base Styles and Reset */
:root {
    --primary: #6e56f7;
    --primary-dark: #5040d9;
    --secondary: #41c7c7;
    --accent: #ff5e84;
    --dark: #121420;
    --darker: #0a0a12;
    --light: #f4f7ff;
    --gray: #8892b0;
    --gray-light: #a8b2d1;
    --gray-dark: #4a5568;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light);
    background: var(--darker);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-light);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-svg, .logo-img {
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--light);
    letter-spacing: 1px;
    position: relative;
}

.logo h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(ellipse at center, rgba(110, 86, 247, 0.15) 0%, rgba(10, 10, 18, 0) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--light) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-bottom: 40px;
}

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

.cta-primary, .cta-secondary, .download-button {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.cta-primary, .download-button {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: var(--light);
    box-shadow: 0 4px 15px rgba(110, 86, 247, 0.4);
}

.cta-primary:hover, .download-button:hover {
    box-shadow: 0 7px 20px rgba(110, 86, 247, 0.6);
    transform: translateY(-2px);
}

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

.cta-secondary:hover {
    background: rgba(110, 86, 247, 0.1);
    transform: translateY(-2px);
}

/* About Section */
.about {
    background: var(--dark);
    position: relative;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gray-light);
}

.about-features {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--light);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--light);
}

.feature p {
    color: var(--gray-light);
}

/* Protocol Section */
.protocol {
    background: linear-gradient(180deg, var(--dark), var(--darker));
    position: relative;
}

.protocol-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 60px;
    left: 25px;
    width: 2px;
    height: calc(100% + 30px);
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--light);
    z-index: 1;
}

.step-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light);
}

.step-content p {
    color: var(--gray-light);
}

/* Whitepaper Section */
.whitepaper {
    background: var(--dark);
    position: relative;
}

.whitepaper-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.whitepaper-info {
    flex: 1;
    min-width: 300px;
}

.whitepaper-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--light);
}

.whitepaper-info p {
    color: var(--gray-light);
    margin-bottom: 20px;
}

.whitepaper-highlights {
    margin: 30px 0;
}

.whitepaper-highlights li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.whitepaper-highlights li i {
    color: var(--secondary);
    margin-right: 10px;
}

.download-button {
    margin-bottom: 15px;
    display: inline-block;
}

.whitepaper-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--gray);
}

.whitepaper-preview {
    flex: 1;
    min-width: 300px;
}

.document-mockup {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: perspective(800px) rotateY(10deg);
}

.document-header {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    padding: 20px;
    text-align: center;
}

.document-header h4 {
    font-size: 1.2rem;
    color: var(--light);
}

.document-body {
    padding: 30px;
}

.document-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
}

.document-line.short {
    width: 70%;
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, var(--darker), var(--dark));
    position: relative;
}

.contact-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.contact-option {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    min-width: 250px;
    flex: 1;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-option::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(10, 10, 18, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.contact-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-option:hover::before {
    opacity: 1;
}

.contact-option i {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-option.twitter i {
    color: #1DA1F2;
}

.contact-option.email i {
    color: var(--secondary);
}

.contact-option.discord i {
    color: #7289DA;
}

.contact-option h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light);
}

.contact-option p {
    color: var(--gray-light);
}

.coming-soon {
    margin-top: 10px;
    background: rgba(110, 86, 247, 0.2);
    color: var(--primary) !important;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    display: inline-block;
}

/* Footer */
footer {
    background: var(--darker);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--gray);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.footer-links-column h3 {
    font-size: 1.1rem;
    color: var(--light);
    margin-bottom: 20px;
    position: relative;
}

.footer-links-column h3::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: var(--gray);
    transition: all 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .about-content, 
    .whitepaper-content {
        flex-direction: column;
    }
    
    .step {
        flex-direction: column;
        gap: 15px;
    }
    
    .step:not(:last-child)::after {
        left: 25px;
        top: 0;
        height: 100%;
    }
    
    nav ul {
        display: none;
    }
}
