/* ========================================
   MIMER.DEV - Casino Data API
   Techy Landing Page Styles
   ======================================== */

:root {
    /* Brand Colors */
    --primary: #980000;
    --primary-dark: #700000;
    --primary-light: #b81c1c;

    /* Dark Theme */
    --bg-dark: #0a0a0b;
    --bg-darker: #050506;
    --bg-card: #111113;
    --bg-card-hover: #161618;
    --bg-code: #0d0d0f;

    /* Text Colors */
    --text-primary: #f0f0f2;
    --text-secondary: #a0a0a8;
    --text-muted: #606068;

    /* Accent Colors */
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-orange: #f59e0b;

    /* Code Colors */
    --code-keyword: #c678dd;
    --code-string: #98c379;
    --code-function: #61afef;
    --code-variable: #e5c07b;
    --code-comment: #5c6370;
    --code-number: #d19a66;
    --code-key: #e06c75;

    /* Borders */
    --border-color: #1f1f23;
    --border-light: #2a2a30;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 120px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.125rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    height: 32px;
    width: auto;
}

.logo-bracket {
    color: var(--primary);
}

.logo-dot {
    color: var(--primary);
}

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

.nav-links a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-links .btn {
    margin-left: 8px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(152, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(152, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(152, 0, 0, 0.1);
    border: 1px solid rgba(152, 0, 0, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.hero-code {
    position: relative;
    z-index: 1;
}

/* ========================================
   Code Windows
   ======================================== */

.code-window {
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.2);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-title {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.code-window pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

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

.code-keyword { color: var(--code-keyword); }
.code-string { color: var(--code-string); }
.code-function { color: var(--code-function); }
.code-variable { color: var(--code-variable); }
.code-comment { color: var(--code-comment); font-style: italic; }
.code-number { color: var(--code-number); }
.code-key { color: var(--code-key); }

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: var(--section-padding) 0;
    background: var(--bg-darker);
}

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

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(152, 0, 0, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ========================================
   API Section
   ======================================== */

.api-section {
    padding: var(--section-padding) 0;
}

.api-demo {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.endpoint:hover,
.endpoint.active {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.method {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.method.get {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.path {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.response-preview {
    min-height: 400px;
}

.response-preview .code-window {
    height: 100%;
}

.response-preview pre {
    height: calc(100% - 44px);
}

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

.api-feature {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.api-feature h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.api-feature p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========================================
   Code Examples Section
   ======================================== */

.code-examples {
    padding: var(--section-padding) 0;
    background: var(--bg-darker);
}

.code-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 24px;
    width: fit-content;
}

.tab-btn {
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ========================================
   Pricing Section
   ======================================== */

.pricing {
    padding: var(--section-padding) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(152, 0, 0, 0.1) 0%, var(--bg-card) 100%);
    border-color: var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-header h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
}

/* ========================================
   Docs Preview Section
   ======================================== */

.docs-preview {
    padding: var(--section-padding) 0;
    background: var(--bg-darker);
}

.docs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.docs-text h2 {
    margin-bottom: 16px;
}

.docs-text > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.docs-list {
    list-style: none;
    margin-bottom: 32px;
}

.docs-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
}

.docs-list svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.terminal-window {
    background: var(--bg-code);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
}

.terminal-body p {
    margin-bottom: 8px;
}

.prompt {
    color: var(--accent-green);
}

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

.cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: var(--text-primary);
    animation: blink 1s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    padding: var(--section-padding) 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    margin-bottom: 16px;
}

.contact > .contact-content > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-form {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row input {
    flex: 1;
    padding: 16px 20px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: all var(--transition-fast);
}

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

.form-row input:focus {
    border-color: var(--primary);
}

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

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

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

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

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

    .api-demo {
        grid-template-columns: 1fr;
    }

    .endpoint-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

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

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .navbar .container {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .btn {
        text-align: center;
    }

    .hero {
        padding-top: 100px;
    }

    .hero .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 1.75rem;
        word-wrap: break-word;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: flex-start;
    }

    .stat {
        min-width: 45%;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .hero-code {
        max-width: 100%;
        overflow: hidden;
    }

    .code-window {
        max-width: 100%;
    }

    .code-window pre {
        padding: 16px;
        font-size: 0.75rem;
        overflow-x: auto;
        max-width: 100%;
    }

    .code-window code {
        font-size: 0.75rem;
        white-space: pre;
    }

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

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

    .tab-buttons {
        flex-wrap: wrap;
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    .form-row {
        flex-direction: column;
    }

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

    /* Fix overflow on API demo section */
    .api-demo {
        max-width: 100%;
        overflow: hidden;
    }

    .response-preview {
        max-width: 100%;
        overflow: hidden;
    }

    .response-preview pre {
        font-size: 0.7rem;
    }

    .endpoint-list {
        gap: 8px;
    }

    .endpoint-btn {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        justify-content: space-between;
    }

    .stat {
        min-width: 40%;
    }

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