:root {
    --bg-main: #09090b;
    --bg-card: #121214;
    --bg-header: rgba(9, 9, 11, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --accent-normal: #14b8a6;
    --accent-light: #2dd4bf;
    --accent-blue: var(--accent-normal);
    --accent-purple: var(--accent-light);
    --gradient: var(--accent-normal);
    --gradient-glow: rgba(45, 212, 191, 0.22);

    --font-sans: 'Inter', -apple-system, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-gradient {
    color: var(--accent-light);
    background: none;
    -webkit-text-fill-color: currentColor;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: 0.2s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--font-sans);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 0.9375rem;
}

.btn-primary {
    background: var(--accent-normal);
    color: #031311;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.28);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 32px 100px;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.78);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.avatars {
    display: flex;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

/* Hero Visual / Browser Mockup */
.browser-mockup {
    background: #000;
    border-radius: var(--radius-lg);
    border: 1px solid #12312d;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(20, 184, 166, 0.12);
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
}

.browser-header {
    height: 40px;
    border-bottom: 1px solid #1a1a2e;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
    background: #050505;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.browser-dots span:nth-child(2) {
    background: #eab308;
}

.browser-dots span:nth-child(3) {
    background: #22c55e;
}

.browser-url {
    background: #111;
    border-radius: 4px;
    border: 1px solid #222;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #888;
    flex: 1;
    max-width: 400px;
    margin: 0 auto;
}

.browser-content {
    flex: 1;
    background: #071413;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Abstract Cyber/Neon Chart Simulation inside Mockup */
.chart-layout {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    opacity: 0.8;
}

.chart-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    border-bottom: 1px solid rgba(45, 212, 191, 0.2);
    padding-bottom: 12px;
}

.bar {
    flex: 1;
    background: rgba(20, 184, 166, 0.2);
    border: 1px solid rgba(20, 184, 166, 0.45);
    border-radius: 2px 2px 0 0;
}

.chart-line {
    height: 100px;
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 4px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
}

.chart-line svg {
    width: 100%;
    height: 100%;
}

.neon-line {
    stroke: url(#svg-grad);
    filter: drop-shadow(0 0 4px #2dd4bf);
}

.chart-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-box {
    flex: 1;
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
}

/* Features Section */
.features-section {
    padding: 100px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Visuals inside Cards */
.card-visual {
    flex: 1;
    border-radius: var(--radius-sm);
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 1px solid var(--border-color);
}

.visual-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 24px;
}

.stat-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px 2px 0 0;
}

.gradient-bar {
    background: var(--accent-normal);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.35);
}

.visual-terminal {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #22c55e;
}

.term-arrow {
    color: var(--text-muted);
    margin-right: 8px;
}

.visual-layout {
    display: flex;
    gap: 8px;
    padding: 24px;
}

.layout-box {
    width: 60px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.active-box {
    border-color: var(--accent-light);
    background: rgba(45, 212, 191, 0.12);
}

.visual-core {
    position: relative;
}

.core-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: -20px;
}

.core-layer {
    width: 80px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transform: skewY(-10deg);
    margin-left: -40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-layer:first-child {
    margin-left: 0;
    opacity: 0.5;
}

.active-layer {
    border-color: var(--accent-normal);
    background: rgba(20, 184, 166, 0.12);
    z-index: 2;
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 32px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.cta-box {
    background: #101817;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px var(--gradient-glow);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-light);
    opacity: 0.5;
}

.cta-box h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.cta-box p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-inline: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.cta-platforms {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 32px 32px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo-text {
    color: var(--text-primary);
    display: block;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.footer-brand p {
    margin-bottom: 32px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-secondary);
    transition: 0.2s;
}

.footer-socials a:hover {
    color: var(--text-primary);
}

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

.link-col h4 {
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.link-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
    transition: 0.2s;
}

.link-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-proof {
        justify-content: center;
    }

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

@media (max-width: 768px) {

    .nav-links,
    .search-bar {
        display: none;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Search Overlay Modal */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    width: 100%;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(-20px);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-overlay.active .search-modal {
    transform: scale(1) translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 16px;
}

.search-header input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-family: inherit;
    outline: none;
}

.search-header input::placeholder {
    color: var(--text-muted);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.1s;
    text-decoration: none;
}

.search-item:hover, .search-item.selected {
    background: rgba(20, 184, 166, 0.1);
}

.search-icon {
    font-size: 1.25rem;
}

.search-text {
    flex: 1;
}

.search-title {
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.search-category {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.search-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-footer kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: inherit;
    color: var(--text-secondary);
}

.no-results {
    padding: 32px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Docs Layout */
.docs-layout {
    display: flex;
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 32px;
    gap: 48px;
    align-items: flex-start;
}

.docs-sidebar {
    width: 260px;
    position: sticky;
    top: 100px;
    padding-right: 24px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.docs-sidebar::-webkit-scrollbar {
    width: 4px;
}
.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.docs-sidebar h4 {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 24px 0 12px;
}

.docs-sidebar h4:first-child {
    margin-top: 0;
}

.docs-sidebar a {
    display: block;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: 0.2s;
}

.docs-sidebar a:hover, .docs-sidebar a.active {
    color: var(--text-primary);
}

.docs-sidebar a.active {
    font-weight: 500;
    color: var(--accent-light);
}

.docs-content {
    flex: 1;
    min-width: 0;
}

.docs-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.docs-content p.lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 48px;
}

.docs-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 64px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.docs-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.docs-content p, .docs-content li {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.docs-content ul {
    margin-left: 24px;
    margin-bottom: 24px;
}

.docs-content pre {
    background: #09090b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 24px;
    margin-top: 16px;
}

.docs-content code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-light);
}

.docs-content p code, .docs-content li code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.docs-alert {
    background: rgba(20, 184, 166, 0.05);
    border-left: 2px solid var(--accent-light);
    padding: 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.docs-alert p {
    margin: 0;
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .docs-layout {
        flex-direction: column;
        padding-top: 40px;
    }
    .docs-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 24px;
        max-height: none;
        margin-bottom: 24px;
    }
}