/* MonkeyDial Landing Page - Dark Theme with Terminal Aesthetics */

:root {
    /* GitHub Dark Theme Colors */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-darker: #010409;
    --text-primary: #c9d1d9;
    --text-muted: #8b949e;
    --text-accent: #58a6ff;
    --border-color: #30363d;
    --success-color: #3fb950;
    --danger-color: #f85149;
    --warning-color: #d29922;

    /* Code/Terminal Colors */
    --code-bg: #161b22;
    --code-text: #e6edf3;
    --method-post: #7ee787;
    --method-get: #79c0ff;
    --method-webhook: #ffa657;

    /* Monospace Font Stack */
    --font-mono: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
}

/* Global Styles */
body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

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

.text-muted {
    color: var(--text-muted) !important;
}

.bg-darker {
    background-color: var(--bg-darker) !important;
}

/* Navigation */
.navbar-dark {
    background-color: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.25rem;
    color: var(--text-primary) !important;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-accent) !important;
}

.btn-outline-primary {
    color: var(--text-accent);
    border-color: var(--text-accent);
}

.btn-outline-primary:hover {
    background-color: var(--text-accent);
    border-color: var(--text-accent);
    color: var(--bg-primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #010409 100%);
    color: var(--text-primary);
    padding-top: 80px;
    position: relative;
}

.hero-section h1 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .lead {
    color: var(--text-muted);
    font-size: 1.15rem;
}

.btn-primary {
    background-color: var(--text-accent);
    border-color: var(--text-accent);
    color: var(--bg-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1f6feb;
    border-color: #1f6feb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 166, 255, 0.3);
}

.btn-outline-light {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline-light:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-accent);
    color: var(--text-accent);
}

/* Flow Diagram */
.flow-diagram {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.flow-step {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

.flow-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.flow-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.code-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-accent);
}

.flow-arrow {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

/* API Tree - Terminal Style */
.api-tree {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    font-family: var(--font-mono);
}

.api-category {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
}

.api-category-header {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.api-category-header:hover {
    background-color: var(--code-bg);
}

.api-category-header::marker {
    content: '';
}

.api-category-header::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.75rem;
    transition: transform 0.2s ease;
    color: var(--text-accent);
}

.api-category[open] > .api-category-header::before {
    transform: rotate(90deg);
}

.api-category-content {
    padding: 0 1.25rem 1.25rem;
}

/* API Endpoints */
.api-endpoint {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--code-bg);
}

.api-endpoint-header {
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.2s ease;
}

.api-endpoint-header:hover {
    background-color: var(--bg-primary);
}

.api-endpoint-header::marker {
    content: '';
}

.api-endpoint-header::before {
    content: '├─';
    margin-right: 0.5rem;
    color: var(--text-muted);
}

.api-endpoint[open] > .api-endpoint-header::before {
    content: '├─';
}

.endpoint-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* HTTP Method Badges */
.method-post,
.method-get,
.method-webhook {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

.method-post {
    background-color: rgba(126, 231, 135, 0.15);
    color: var(--method-post);
    border: 1px solid var(--method-post);
}

.method-get {
    background-color: rgba(121, 192, 255, 0.15);
    color: var(--method-get);
    border: 1px solid var(--method-get);
}

.method-webhook {
    background-color: rgba(255, 166, 87, 0.15);
    color: var(--method-webhook);
    border: 1px solid var(--method-webhook);
}

/* API Endpoint Content */
.api-endpoint-content {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.code-example {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.code-header {
    background-color: var(--bg-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.code-example pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
}

.code-example code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--code-text);
}

/* VAD Modes */
.vad-modes {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
}

.vad-mode-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.vad-mode-item:last-child {
    margin-bottom: 0;
}

.vad-mode-name {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-accent);
    font-weight: 600;
    min-width: 150px;
}

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

/* Comparison Section */
.comparison-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

.comparison-flow {
    margin-top: 1.5rem;
}

.comparison-step {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.comparison-step.locked {
    border-color: var(--danger-color);
    background-color: rgba(248, 81, 73, 0.1);
}

.comparison-step.yours {
    border-color: var(--success-color);
    background-color: rgba(63, 185, 80, 0.1);
}

.comparison-arrow {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    margin: 0.25rem 0;
}

.comparison-problems p,
.comparison-benefits p {
    padding-left: 1.5rem;
    position: relative;
}

.philosophy-box {
    background-color: var(--bg-secondary);
    border: 2px solid var(--text-accent);
    border-radius: 12px;
    padding: 2rem;
}

.philosophy-box p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.philosophy-box strong {
    color: var(--text-accent);
}

/* Use Cases Section */
.use-case-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-4px);
    border-color: var(--text-accent);
    box-shadow: 0 8px 24px rgba(88, 166, 255, 0.15);
}

.use-case-flow {
    margin-top: 1rem;
}

.flow-item {
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    background-color: var(--code-bg);
    border-left: 3px solid var(--text-accent);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.flow-item:last-child {
    margin-bottom: 0;
}

/* Carrier List */
.carrier-list {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.carrier-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.carrier-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.carrier-item:first-child {
    padding-top: 0;
}

.carrier-item strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Included/Not Included Lists */
.included-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.included-list,
.not-included-list,
.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li,
.not-included-list li,
.roadmap-list li {
    padding: 0.625rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.included-list li:last-child,
.not-included-list li:last-child,
.roadmap-list li:last-child {
    border-bottom: none;
}

.included-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.not-included-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger-color);
    font-weight: 700;
}

.roadmap-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-accent);
    font-weight: 700;
}

.included-list li {
    color: var(--text-muted);
}

.not-included-list li {
    color: var(--text-muted);
}

.roadmap-list li {
    color: var(--text-muted);
}

/* Beta Form */
.beta-form-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control,
.form-control-lg {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
}

.form-control:focus,
.form-control-lg:focus {
    background-color: var(--code-bg);
    border-color: var(--text-accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.25);
}

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

.form-check-input {
    background-color: var(--code-bg);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--text-accent);
    border-color: var(--text-accent);
}

.form-check-input:focus {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.25);
}

.form-check-label {
    color: var(--text-muted);
}

/* FAQ Accordion */
.accordion {
    --bs-accordion-bg: var(--bg-secondary);
    --bs-accordion-border-color: var(--border-color);
    --bs-accordion-btn-bg: var(--bg-secondary);
    --bs-accordion-btn-color: var(--text-primary);
    --bs-accordion-active-bg: var(--code-bg);
    --bs-accordion-active-color: var(--text-primary);
}

.accordion-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--code-bg);
    color: var(--text-accent);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.25);
}

.accordion-button::after {
    filter: brightness(0) saturate(100%) invert(71%) sepia(11%) saturate(390%) hue-rotate(177deg) brightness(92%) contrast(87%);
}

.accordion-body {
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer h5,
.footer h6 {
    color: var(--text-primary);
}

.footer a:hover {
    color: var(--text-accent) !important;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: 1px solid;
}

.alert-success {
    background-color: rgba(63, 185, 80, 0.15);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(248, 81, 73, 0.15);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .flow-diagram {
        margin-top: 2rem;
    }

    .api-tree {
        padding: 1rem;
    }

    .api-category-header,
    .api-endpoint-header {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .code-example code {
        font-size: 0.75rem;
    }
}

/* Smooth Animations */
.api-category,
.api-endpoint,
.use-case-card,
.carrier-item {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Scroll Padding for Fixed Navbar */
html {
    scroll-padding-top: 80px;
}

/* Selection */
::selection {
    background-color: rgba(88, 166, 255, 0.3);
    color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
