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

:root {
    --color-bg: #000000;
    --color-bg-elevated: #0a0a0a;
    --color-bg-card: #111111;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-accent: #00f0ff;
    --color-accent-secondary: #b026ff;
    --color-border: rgba(0, 240, 255, 0.2);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--color-accent);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.8);
}

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

.btn-secondary:hover {
    background: var(--color-accent);
    color: #000;
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 0, 0, 1) 50%, rgba(176, 38, 255, 0.1) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 4rem 4rem;
}

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

.brand {
    margin-bottom: 2rem;
}

.brand-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-secondary) 50%, var(--color-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-x 3s linear infinite;
}

.brand-line {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin-top: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Visual Map Section */
.visual-map-section {
    padding: 6rem 0;
    background: var(--color-bg-elevated);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.map-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.map-btn {
    padding: 0.5rem 1.5rem;
    background: var(--color-bg-card);
    color: var(--color-accent);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.map-btn:hover {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
}

.visual-map {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    min-height: 600px;
}

.connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.map-node {
    position: relative;
    z-index: 2;
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-node:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.map-node.active {
    border-color: var(--color-accent);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.node-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.node-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.node-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Info Panel */
.info-panel {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 380px;
    max-height: 80vh;
    background: var(--color-bg-card);
    border: 2px solid var(--color-accent);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.5);
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 1000;
}

.info-panel.active {
    right: 2rem;
}

.info-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.info-close:hover {
    background: var(--color-accent);
    color: #000;
}

.info-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.info-description {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.info-connections {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.info-connections h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.info-connections ul {
    list-style: none;
    padding-left: 0;
}

.info-connections li {
    padding: 0.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Build Stack Section */
.build-stack-section {
    padding: 6rem 0;
    background: var(--color-bg);
}

.stack-builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.stack-options {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
}

.stack-category {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--color-accent);
}

.stack-category:first-child {
    margin-top: 0;
}

.stack-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.stack-checkbox:hover {
    background: var(--color-bg-elevated);
}

.stack-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.stack-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.stack-checkbox span {
    font-size: 1rem;
}

.stack-preview {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.stack-preview-title {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-accent);
}

.stack-diagram {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stack-layer {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stack-item {
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-accent);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    animation: fadeIn 0.5s ease;
}

.stack-arrow {
    font-size: 2rem;
    color: var(--color-accent);
    animation: bounce 2s ease-in-out infinite;
}

/* Guide Section */
.guide-section {
    padding: 6rem 0;
    background: var(--color-bg-elevated);
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(0, 240, 255, 0.05);
}

.accordion-icon {
    font-size: 2rem;
    background: rgba(0, 240, 255, 0.1);
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.accordion-header:hover .accordion-icon {
    background: rgba(0, 240, 255, 0.2);
}

.accordion-text {
    flex: 1;
}

.accordion-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.accordion-header:hover .accordion-text h4 {
    color: var(--color-accent);
}

.accordion-text p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.accordion-chevron {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
}

.accordion-content > * {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.accordion-content p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.accordion-content strong {
    color: var(--color-text);
}

.content-box {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

.content-box h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.content-box p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.content-box ul {
    list-style: none;
    padding-left: 0;
}

.content-box li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.content-box li strong {
    color: var(--color-accent);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--color-bg);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(176, 38, 255, 0.05) 100%);
    padding: 4rem 3rem;
    border-radius: 2rem;
    border: 2px solid rgba(0, 240, 255, 0.2);
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-disclaimer {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0.75rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer-text strong {
    color: var(--color-text);
}

/* Email Popup Overlay */
.email-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.email-popup-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.email-popup-content {
    background: var(--color-bg-card);
    border: 2px solid var(--color-accent);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.5);
    animation: popupSlideIn 0.4s ease;
}

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

.popup-title {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup-description {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.popup-submit {
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    color: #000;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    margin-top: 0.5rem;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.7);
}

.popup-submit:active {
    transform: translateY(0);
}

.popup-privacy {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* Chat Button */


/* Animations */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 240, 255, 0.8);
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

    .stack-builder {
        grid-template-columns: 1fr;
    }

    .visual-map {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .map-node {
        padding: 1rem;
    }

    .node-icon {
        font-size: 2rem;
    }

    .info-panel {
        width: calc(100% - 2rem);
        right: -100%;
    }

    .info-panel.active {
        right: 1rem;
    }

    .chat-button {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .chat-button svg {
        width: 28px;
        height: 28px;
    }
}

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

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
