/* ============================================================
   Bandpass Consulting — Dark Mode Design System
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #0B1420;
    --bg-surface:  #112233;
    --bg-elevated: #19293d;
    --accent:      #537A96;
    --accent-lt:   #698BA0;
    --accent-hi:   #7F9CAA;
    --accent-deep: #265781;
    --text:        #E8EDF2;
    --text-muted:  #8A9BB0;
    --text-dim:    #5A6A7E;
    --border:      #1E3048;
    --glow:        rgba(83, 122, 150, 0.15);

    --font:        'Inter', 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
    --max-w:       1140px;
    --nav-h:       72px;
    --radius:      8px;
    --transition:  0.3s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--accent-hi);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--text); }

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
}
h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-hi); }
.text-center { text-align: center; }

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

.section {
    padding: 96px 0;
}

.section + .section {
    border-top: 1px solid var(--border);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(11, 20, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img, .nav-logo svg {
    height: 40px;
    width: auto;
}

.nav-logo span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-muted);
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(38, 87, 129, 0.12) 0%, transparent 100%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(83, 122, 150, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 24px;
    min-height: 4em;
}

.hero h1 .highlight {
    color: var(--accent-hi);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 40px;
}

/* Typing animation for hero tagline */
.typed-line {
    display: inline;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent-hi);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-deep);
    color: var(--text);
}
.btn-primary:hover {
    background: var(--accent);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--accent-hi);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--text);
}

.btn-arrow::after {
    content: '\2192';
    transition: transform var(--transition);
}
.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent-hi));
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-hi);
    font-size: 1.4rem;
}

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

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Work / Portfolio Cards --- */
.work-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.work-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.work-card-visual {
    height: 200px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.work-card-visual .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-deep);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.work-card-body {
    padding: 28px;
}

.work-card-body h3 {
    margin-bottom: 8px;
}

.work-card-body .subtitle {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.work-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.work-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* --- Section Headers --- */
.section-header {
    max-width: 640px;
    margin-bottom: 56px;
}

.section-header .eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

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

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

/* --- Callout / Highlight Block --- */
.callout {
    background: var(--bg-surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 32px 36px;
    margin: 48px 0;
}

.callout h3 {
    margin-bottom: 12px;
    color: var(--accent-hi);
}

.callout p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Stats Row --- */
.stats {
    display: flex;
    gap: 48px;
    padding: 32px 0;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-hi);
    line-height: 1;
    margin-bottom: 4px;
}

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

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 96px 0;
}

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

.cta-section p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-example {
    max-width: 520px;
    margin: 0 auto 36px;
    padding: 20px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: var(--text-muted);
}

/* --- Page Hero (for inner pages) --- */
.page-hero {
    padding: 160px 0 64px;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(38, 87, 129, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

/* --- Content Prose (for case studies, approach, etc.) --- */
.prose {
    max-width: 720px;
}

.prose p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.prose h2 {
    margin-top: 48px;
    margin-bottom: 16px;
}

.prose h3 {
    margin-top: 36px;
    margin-bottom: 12px;
}

.prose ul, .prose ol {
    margin-bottom: 20px;
    padding-left: 24px;
    color: var(--text-muted);
}

.prose li {
    margin-bottom: 8px;
}

.prose strong {
    color: var(--text);
    font-weight: 600;
}

.prose .sources {
    margin-top: 48px;
    border-top: 1px solid var(--border);
    padding-top: 48px;
}

.prose .sources h2 {
    font-size: 1.2rem;
    margin-top: 0;
}

.prose .sources ul {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Architecture Diagram (code-like block) --- */
.arch-block {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    white-space: pre;
}

/* --- Demo Embed --- */
.demo-embed {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-surface);
}

.demo-embed iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.demo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: var(--bg-elevated);
    color: var(--text-dim);
    font-size: 0.9rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* --- Scroll reveal animations --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Two Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .section { padding: 64px 0; }
    .hero { min-height: 80vh; }

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

    .two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats {
        flex-wrap: wrap;
        gap: 24px;
    }

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

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

    .nav-toggle {
        display: flex;
    }

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

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .card { padding: 24px; }
    .hero h1 { font-size: 1.8rem; }
}
