/* ===================================
   TXDXIA - Global Styles
   =================================== */

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

:root {
    --primary-color: #00f5ff;
    --secondary-color: #7b2ff7;
    --accent-color: #ff00ff;
    --dark-bg: #000000;
    --dark-purple: #0a0015;
    --darker-purple: #050008;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --glow-primary: rgba(0, 245, 255, 0.4);
    --glow-secondary: rgba(123, 47, 247, 0.4);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ===================================
   NAVIGATION
   =================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

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

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--dark-purple) 0%, var(--dark-bg) 70%);
    z-index: 1;
}

.ai-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.brain-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 50px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 50px;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: 68px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--glow-primary);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    background: rgba(0, 245, 255, 0.1);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(0, 245, 255, 0.05);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 36px;
}

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

.stat-text strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===================================
   SECTION COMMON
   =================================== */

section {
    padding: 120px 0;
    position: relative;
}

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

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===================================
   PLATFORM SECTION
   =================================== */

.platform {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-purple) 100%);
}

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

.platform-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transition: left 0.6s;
}

.platform-card:hover::before {
    left: 100%;
}

.platform-card:hover {
    background: rgba(0, 245, 255, 0.03);
    border-color: var(--primary-color);
    transform: translateY(-8px);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 25px;
}

.platform-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.platform-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ===================================
   AGENTS SECTION
   =================================== */

.agents {
    background: var(--dark-bg);
}

.agents-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.agent-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px;
    border-radius: 12px;
    transition: all 0.3s;
}

.agent-card:hover {
    background: rgba(123, 47, 247, 0.05);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--glow-secondary);
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 28px;
}

.agent-title h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.agent-tag {
    font-size: 12px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    background: rgba(0, 245, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.agent-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.agent-features {
    list-style: none;
    padding: 0;
}

.agent-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.agent-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===================================
   USE CASES SECTION
   =================================== */

.use-cases {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-purple) 100%);
}

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

.case-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
}

.case-card:hover {
    background: rgba(255, 0, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.case-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    margin-bottom: 15px;
}

.case-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

/* ===================================
   TECHNOLOGY SECTION
   =================================== */

.technology {
    background: var(--dark-bg);
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tech-circle {
    width: 400px;
    height: 400px;
    position: relative;
}

#techCanvas {
    width: 100%;
    height: 100%;
}

.tech-info {
    text-align: left;
}

.tech-info .section-label {
    display: block;
    text-align: left;
}

.tech-info .section-title {
    text-align: left;
    margin-bottom: 40px;
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tech-item {
    padding-left: 25px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s;
}

.tech-item:hover {
    border-left-color: var(--secondary-color);
    transform: translateX(10px);
}

.tech-item h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

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

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--dark-bg) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-primary);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.link-icon {
    font-size: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 16px 20px;
    font-size: 15px;
    font-family: inherit;
    border-radius: 6px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 245, 255, 0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    align-self: flex-start;
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background: var(--darker-purple);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 0 30px;
}

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

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--primary-color);
    font-size: 13px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

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

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-link a:hover {
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-content {
        padding: 0 30px;
    }

    .tech-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 40px;
        gap: 30px;
        transition: right 0.3s;
        border-left: 1px solid rgba(0, 245, 255, 0.2);
        height: calc(100vh - 90px);
    }

    .nav-links.active {
        right: 0;
    }

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

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .platform-grid,
    .agents-showcase,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .tech-circle {
        width: 300px;
        height: 300px;
    }

    section {
        padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 20px;
    }
}

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

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

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