/* Cyntralis Design System - v2.0 (Premium) */
/* Font import moved to HTML for performance */

:root {
    /* Brand Colors - Deep & Rich */
    --color-bg-deep: #020617;
    /* Slate 950 essentially */
    --color-bg-surface: #0f172a;
    /* Slate 900 */

    /* Primary Accents */
    --color-primary-cyan: #22d3ee;
    /* Cyan 400 - Brighter pop */
    --color-primary-blue: #3b82f6;
    /* Blue 500 */
    --color-accent-purple: #a855f7;
    /* Purple 500 */
    --color-success: #10b981;
    --color-danger: #ef4444;

    /* Text */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #cbd5e1;
    /* Slate 300 - lighter for better readability */
    --text-dim: #64748b;
    /* Slate 500 */

    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --backdrop-blur: 20px;

    /* Dimensions */
    --sidebar-width: 280px;
    --header-height: 80px;
    --container-width: 1280px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-deep);
    /* Subtler solid dark background */
    color: var(--text-main);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    line-height: 1.1;
    color: white;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    color: white;
}

.text-cyan-gradient {
    color: var(--color-primary-cyan);
}

.text-cyan {
    color: var(--color-primary-cyan);
}

.text-blue {
    color: var(--color-primary-blue);
}

.text-purple {
    color: var(--color-accent-purple);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 99px;
    /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--color-primary-cyan);
    color: #0f172a;
    /* Dark text on bright button for contrast */
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(10px);
}

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

/* Header */
.mobile-menu-btn {
    display: none;
}

header {
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(var(--backdrop-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 2rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    /* Container padding handled by header */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.3));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Center Vertically */
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
    padding-bottom: 4rem;
    overflow: hidden;
}

/* Background elements for Hero */
/* Background elements for Hero - removed gradients */
.hero::before {
    display: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    /* Large but not massive */
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 90%;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

/* Glass Panels / Cards */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    /* Strong shadow for depth */
}

/* Terminal Window styling */
.terminal-window {
    width: 100%;
    transform: rotateY(-5deg) rotateX(2deg);
    /* 3D effect */
    transition: transform 0.5s ease;
}

.terminal-window:hover {
    transform: rotateY(0) rotateX(0);
}

.terminal-header {
    background: rgba(15, 23, 42, 0.9);
    padding: 0.75rem 1.25rem;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 16px 16px 0 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.95);
    /* Darker terminal bg for contrast */
    border-radius: 0 0 16px 16px;
}

.command-line {
    margin-bottom: 1rem;
}

.prompt {
    color: var(--color-accent-purple);
    margin-right: 0.5rem;
}

.cmd {
    color: var(--color-primary-cyan);
}

.args {
    color: #f1f5f9;
}

/* Features Grid */
.features-section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    group: feature;
}

.feature-card::before {
    display: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary-cyan);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Tech Stack Strip */
.tech-stack {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.5);
    padding: 4rem 0;
}

/* Footer */
footer {
    background: #020617;
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem 0;
    margin-top: 6rem;
}

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

.footer-brand h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

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

.copy {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

    .hero-content {
        margin: 0 auto;
    }

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

    .terminal-window {
        transform: none;
        /* Disable 3D on mobile */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    nav ul {
        display: none;
    }

    /* Simplified mobile menu hiding */

    .mobile-menu-btn {
        display: block;
    }

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

/* Feedback Modal Styling */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.feedback-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.feedback-modal {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.feedback-overlay.active .feedback-modal {
    transform: translateY(0);
}

.feedback-modal h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.feedback-modal p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.feedback-modal label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
}

.feedback-modal input,
.feedback-modal select,
.feedback-modal textarea {
    width: 100%;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem;
    color: white;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.feedback-modal input:focus,
.feedback-modal select:focus,
.feedback-modal textarea:focus {
    outline: none;
    border-color: var(--color-primary-cyan);
}

.feedback-modal textarea {
    min-height: 120px;
    resize: vertical;
}

.feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.feedback-cancel {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.feedback-submit {
    background: var(--color-primary-cyan);
    color: #0f172a;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.feedback-submit:hover {
    transform: translateY(-1px);
}

/* Success State */
.feedback-success {
    text-align: center;
    padding: 2rem 0;
}

.feedback-success svg {
    width: 64px;
    height: 64px;
    color: var(--color-success);
    margin-bottom: 1.5rem;
}

/* --- Dashboard Mockup 3D --- */
.dashboard-mockup {
    width: 600px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    /* Inner border */
    transform: perspective(1000px) rotateY(-12deg) rotateX(6deg) rotateZ(-2deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    position: relative;
    /* Simulate reflection */
}

.dashboard-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 10;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) rotateZ(0deg) scale(1.02);
}

.dashboard-header {
    height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 1.5rem;
    background: rgba(2, 6, 23, 0.4);
}

.dash-circles {
    display: flex;
    gap: 6px;
}

.dash-circles span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.dash-search {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-status {
    font-size: 0.75rem;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-success);
    animation: pulse 2s infinite;
}

.dashboard-body {
    display: flex;
    height: 340px;
}

.dash-sidebar {
    width: 60px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.dash-item {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.dash-item.active {
    background: rgba(34, 211, 238, 0.2);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.dash-main {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-hero-chart {
    height: 160px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Fake Graph Bars */
.fake-graph-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8%;
    padding-top: 1rem;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0.6));
    border-radius: 4px 4px 0 0;
    position: relative;
}

.bar.alert {
    background: linear-gradient(to top, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.8));
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.chart-header span {
    display: block;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 6px;
}

.dash-grid-row {
    flex: 1;
    display: flex;
    gap: 1rem;
}

.dash-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* --- Trusted By Section --- */
.trusted-by {
    padding: 3rem 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.3);
}

.trust-label {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.trust-item svg {
    height: 28px;
    width: auto;
}

/* Responsive Fixes for Mockup */
@media (max-width: 1024px) {
    .dashboard-mockup {
        width: 100%;
        max-width: 500px;
        transform: none;
        /* Disable 3D tilt on tablet/mobile */
        margin-top: 2rem;
    }

    .dashboard-mockup:hover {
        transform: none;
    }
}

/* --- Documentation Layout --- */
.docs-layout {
    display: flex;
    gap: 4rem;
    padding-top: var(--header-height);
    align-items: flex-start;
    margin-top: 2rem;
}

.docs-sidebar {
    width: var(--sidebar-width);
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: calc(100vh - var(--header-height) - 4rem);
    overflow-y: auto;
    padding-right: 1rem;
    border-right: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.docs-sidebar h4 {
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

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

.docs-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-sidebar li {
    margin-bottom: 0.75rem;
}

.docs-sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: block;
    padding: 0.25rem 0;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    color: var(--color-primary-cyan);
    transform: translateX(5px);
}

.docs-content {
    flex: 1;
    min-width: 0;
    /* Prevents overflow issues */
    padding-bottom: 4rem;
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.docs-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.docs-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

.docs-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    color: #e2e8f0;
    font-size: 0.9em;
}

/* Responsive Docs */
@media (max-width: 1024px) {
    .docs-layout {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
}
