:root {
    --bg: #000;
    --card: #071016;
    --muted: #9fb3b6;
    --accent-a: #00ffd4;
    --accent-b: #18ff6f;
    --glass: rgba(255, 255, 255, 0.03);
    --radius: 14px;
    --maxw: 1100px;
    --gap: 1rem;
}

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

body {
    background-color: var(--bg);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.container {
    width: 90%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.body-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
    font-weight: 400;
}

/* Header & Navigation */
header {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.75rem;
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'JetBrains Mono', monospace;
}

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

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
}

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

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

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

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* Page Hero */
.page-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.page-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
/* Specific fix for the breadcrumb spacing */
.page-hero-content .product-breadcrumb {
    margin-top: 30px;
    margin-bottom: 2rem;
}

.page-hero-content .product-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.page-hero-content .product-breadcrumb a:hover {
    color: var(--accent-a);
    transform: translateX(-5px);
}

.page-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.page-hero-content p {
    font-size: 1.25rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    backdrop-filter: blur(20px);
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        transparent 100%
    );
}

#particle-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.btn-primary {
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    color: var(--bg);
    box-shadow: 0 4px 15px rgba(0, 255, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 212, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(0, 255, 212, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Demo Page Specific Styles */
.product-breadcrumb {
    margin-bottom: 3rem;
}

.product-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.product-breadcrumb a:hover {
    color: var(--accent-a);
}

.demo-hero-main {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.product-hero-logo {
    height: 100px;
    width: auto;
    margin: 2rem auto;
    display: block;
}

.product-tagline-large {
    font-size: 1.5rem;
    color: var(--accent-a);
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Demo Container */
.demo-section {
    padding: 6rem 0;
}

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

.demo-input-section,
.demo-output-section {
    margin-bottom: 2rem;
}

.demo-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.demo-label i {
    color: var(--accent-a);
}

.iteration-badge {
    background: var(--accent-a);
    color: var(--bg);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.demo-textarea {
    width: 100%;
    min-height: 200px;
    background: var(--card);
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.demo-textarea:focus {
    outline: none;
    border-color: var(--accent-a);
    box-shadow: 0 0 0 2px rgba(0, 255, 212, 0.1);
}

.demo-output {
    min-height: 200px;
    background: var(--card);
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    overflow-y: auto;
}

.output-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    text-align: center;
}

.output-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.output-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.text-stats,
.output-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.demo-controls {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-control {
    min-width: 160px;
    padding: 1rem 1.5rem;
}

.demo-notice {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 255, 212, 0.05);
    border: 1px solid rgba(0, 255, 212, 0.2);
    border-radius: var(--radius);
    margin: 2rem 0;
}

.notice-icon {
    color: var(--accent-a);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notice-content {
    color: var(--muted);
    line-height: 1.6;
}

.notice-content strong {
    color: var(--accent-a);
}

/* Logs Section */
.logs-section {
    margin-top: 3rem;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logs-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    margin: 0;
}

.btn-text {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: var(--accent-a);
    background: rgba(0, 255, 212, 0.1);
}

.logs-container {
    background: var(--card);
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.log-entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--accent-a);
    margin-right: 1rem;
}

.log-message {
    color: var(--muted);
}

.log-success .log-message {
    color: var(--accent-b);
}

.log-error .log-message {
    color: #ff6b6b;
}

.log-warning .log-message {
    color: #ffd93d;
}

.log-loading .log-message {
    color: var(--accent-a);
}

/* Demo Features */
.demo-features {
    padding: 6rem 0;
    background: var(--card);
}

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

.section-header h2 {
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg);
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 212, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--bg);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

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

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--card) 0%, var(--bg) 100%);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--card);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--muted);
    margin-top: 0.5rem;
}

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

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-a);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        border-left: 1px solid var(--glass);
    }

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

    .mobile-menu {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .demo-controls {
        flex-direction: column;
        align-items: center;
    }

    .btn-control {
        width: 100%;
        max-width: 300px;
    }

    .demo-notice {
        flex-direction: column;
        text-align: center;
    }

    .text-stats,
    .output-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

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

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

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

    .cta-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .page-hero {
        padding-top: 80px;
    }

    .product-hero-logo {
        height: 80px;
    }

    .demo-textarea,
    .demo-output {
        min-height: 150px;
        padding: 1rem;
    }

    .logs-container {
        max-height: 200px;
        padding: 1rem;
    }

    .log-entry {
        font-size: 0.8rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 360px) {
    .demo-controls .btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .product-hero-logo {
        height: 60px;
    }
}