/* MARTE Decision Studio - Main Stylesheet (Black & White Theme) */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
}

a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #333333;
}

/* Navigation */
.top-nav {
    background: #FFFFFF;
    color: #000000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 2px solid #000000;
}

.top-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #000000;
    text-decoration: none;
}

.logo:hover {
    color: #000000;
    text-decoration: none;
}

.logo-mark {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.nav-links a:hover {
    border-bottom-color: #000000;
}

.nav-cta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-primary {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-primary:hover {
    background: #1a1a1a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-primary:disabled {
    background: #bdbdbd;
    border-color: #bdbdbd;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: #000000;
    border: 2px solid #e0e0e0;
}

.btn-ghost:hover {
    border-color: #000000;
    background: #f5f5f5;
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background: #f0f0f0;
}

/* Hero */
.hero {
    background: #FFFFFF;
    color: #1a1a1a;
    padding: 4rem 2rem 3rem;
    text-align: center;
    border-bottom: 3px solid #000000;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666666;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #000000;
}

.hero-title span {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #444444;
    max-width: 32rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-meta {
    font-size: 0.9rem;
    color: #666666;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hero-meta strong {
    color: #000000;
}

/* Hero Card */
.hero-card {
    background: #fafafa;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.hero-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background: #f0f0f0;
    border: 1px solid #000000;
    color: #000000;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.hero-code-block {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #000000;
    font-family: 'Courier New', Menlo, Monaco, monospace;
    font-size: 0.8rem;
    overflow: auto;
    white-space: pre;
    color: #1a1a1a;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.metric {
    padding: 0.75rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.metric-label {
    color: #666666;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-weight: 700;
    color: #000000;
    font-size: 1rem;
}

/* Sections */
section {
    padding: 4rem 2rem;
}

.section-alt {
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-heading {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #000000;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1rem;
    color: #666666;
    max-width: 34rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Cards */
.card {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #000000;
    font-weight: 700;
}

.card p {
    margin: 0.5rem 0;
    color: #444444;
    line-height: 1.7;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background: #f0f0f0;
    color: #000000;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border: 1px solid #e0e0e0;
}

/* Lists */
ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
    color: #444444;
}

li {
    margin-bottom: 0.25rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

/* Pills */
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pill {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    font-size: 0.8rem;
    color: #666666;
}

/* Use cases grid */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.usecase span {
    font-size: 0.8rem;
    color: #666666;
    font-weight: 600;
}

.usecase h3 {
    font-size: 1rem;
    margin: 0.25rem 0;
}

.usecase p {
    font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #000000;
}

.price small {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 400;
}

/* Code snippets */
.code-snippet {
    font-family: 'Courier New', Menlo, Monaco, monospace;
    font-size: 0.85rem;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #000000;
    overflow-x: auto;
    white-space: pre;
    color: #1a1a1a;
}

/* About grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}

.about-grid p {
    color: #444444;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background: #ffffff;
    padding: 2rem;
    border-top: 2px solid #000000;
    font-size: 0.9rem;
    color: #666666;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.footer-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666666;
    line-height: 1;
}

.modal-close:hover {
    color: #000000;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #000000;
}

.modal-content p {
    color: #666666;
    margin-bottom: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: #000000;
}

.modal-content .btn {
    width: 100%;
}

/* Forms */
input, textarea, select {
    font-family: inherit;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Usage bar */
.usage-bar {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.usage-bar-fill {
    background: #000000;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

/* Alerts / Notices */
.notice {
    background: #f5f5f5;
    border: 2px solid #000000;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.notice p {
    color: #000000;
    font-weight: 600;
    margin: 0;
}

.notice-warning {
    background: #fffde7;
    border-color: #f9a825;
}

/* Success / Error colors */
.text-success {
    color: #2e7d32;
}

.text-error {
    color: #c62828;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    .grid-2, .about-grid {
        grid-template-columns: 1fr;
    }
    .usecases-grid, .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .top-nav-inner {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .usecases-grid, .pricing-grid, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
}
