/* Formaum shared stylesheet — used across about, process, case-studies, faq, contact */

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

:root {
    --navy-deep: #0D1B2A;
    --navy: #1B2D45;
    --navy-mid: #243B55;
    --slate: #34506B;
    --blue-accent: #4A8FD4;
    --blue-light: #6AADDD;
    --warm-white: #FAF9F6;
    --cream: #F3F1EC;
    --ice: #EDF2F8;
    --ice-blue: #E4EBF5;
    --text-dark: #0D1B2A;
    --text-body: #2A3E55;
    --text-muted: #6B819A;
    --text-light: #F0EDE8;
    --text-light-muted: rgba(240, 237, 232, 0.6);
    --red-soft: #E74C3C;
    --green-soft: #2ECC71;
}

html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; font-weight: 400; color: var(--text-dark); line-height: 1.6; background: var(--warm-white); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 400; letter-spacing: -0.5px; line-height: 1.15; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 48px; display: flex; justify-content: space-between; align-items: center; background: rgba(13, 27, 42, 0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.logo { font-size: 18px; font-weight: 500; color: var(--text-light); text-decoration: none; letter-spacing: -0.5px; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 13px; color: var(--text-light-muted); text-decoration: none; transition: color 0.3s; }
.nav-link:hover { color: var(--text-light); }
.nav-cta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; color: var(--navy-deep); background: var(--blue-accent); padding: 10px 22px; border-radius: 4px; text-decoration: none; transition: all 0.3s; }
.nav-cta:hover { background: var(--blue-light); }

/* SECTIONS */
.section-dark { background: var(--navy-deep); color: var(--text-light); padding: 100px 48px; }
.section-dark h2, .section-dark h3 { color: var(--text-light); }
.section-dark p { color: rgba(240, 237, 232, 0.85); }
.section-navy { background: var(--navy); color: var(--text-light); padding: 100px 48px; }
.section-navy h2, .section-navy h3 { color: var(--text-light); }
.section-navy p { color: rgba(240, 237, 232, 0.85); }
.section-white { background: var(--warm-white); padding: 100px 48px; }
.section-cream { background: var(--cream); padding: 100px 48px; }
.section-ice { background: var(--ice); padding: 100px 48px; }
.inner { max-width: 960px; margin: 0 auto; }
.inner-narrow { max-width: 720px; margin: 0 auto; }

/* HERO (page hero with breadcrumb) */
.page-hero { background: var(--navy-deep); color: var(--text-light); padding: 140px 48px 80px; }
.page-hero .inner-narrow { max-width: 720px; }
.breadcrumb { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--blue-light); letter-spacing: 1px; margin-bottom: 24px; }
.breadcrumb a { color: var(--blue-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-light); }
.breadcrumb span.sep { margin: 0 8px; opacity: 0.4; }
.breadcrumb span.current { color: var(--text-light-muted); }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin-bottom: 24px; max-width: 700px; color: var(--text-light); font-weight: 400; }
.page-hero .lede { font-size: 17px; font-weight: 300; color: rgba(240, 237, 232, 0.75); line-height: 1.7; max-width: 600px; }

/* LABELS + TITLES */
.label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 3px; color: var(--blue-accent); margin-bottom: 14px; font-weight: 500; }
.section-dark .label, .section-navy .label { color: var(--blue-light); }
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 24px; }
.section-sub { font-size: 16px; line-height: 1.7; color: var(--text-body); max-width: 600px; margin-bottom: 48px; }
.section-dark .section-sub, .section-navy .section-sub { color: rgba(240, 237, 232, 0.7); }

/* BUTTONS */
.btn-primary { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; color: var(--navy-deep); background: var(--blue-accent); padding: 14px 30px; border-radius: 4px; text-decoration: none; transition: all 0.3s; display: inline-block; }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-outline { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; color: var(--text-light-muted); padding: 14px 30px; border-radius: 4px; text-decoration: none; border: 1px solid rgba(255,255,255,0.15); transition: all 0.3s; display: inline-block; }
.btn-outline:hover { border-color: var(--blue-accent); color: var(--text-light); }
.btn-primary-light { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; color: #fff; background: var(--navy); padding: 14px 30px; border-radius: 4px; text-decoration: none; transition: all 0.3s; display: inline-block; }
.btn-primary-light:hover { background: var(--navy-mid); }
.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* CARDS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid rgba(13, 27, 42, 0.08); border-radius: 10px; padding: 36px 30px; background: #fff; transition: all 0.3s; text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(13, 27, 42, 0.06); border-color: var(--blue-accent); }
.card h3 { font-size: 22px; font-weight: 500; margin-bottom: 12px; color: var(--text-dark); }
.card p { font-size: 15px; line-height: 1.7; color: var(--text-body); margin-bottom: 16px; }
.card-dark { border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 36px 30px; background: rgba(255,255,255,0.04); transition: all 0.3s; }
.card-dark:hover { background: rgba(255,255,255,0.07); }
.card-dark h4 { font-size: 16px; font-weight: 600; color: var(--text-light); margin-bottom: 10px; }
.card-dark p { font-size: 14px; color: rgba(240, 237, 232, 0.7); line-height: 1.65; margin: 0; }

/* CASE STATS */
.case-tag { font-family: 'IBM Plex Mono', monospace; display: inline-block; background: var(--ice-blue); color: var(--slate); padding: 3px 10px; border-radius: 3px; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.case-stats { display: flex; gap: 24px; padding-top: 16px; border-top: 1px solid rgba(13, 27, 42, 0.06); }
.case-stat { flex: 1; }
.case-stat .cs-val { font-size: 24px; font-weight: 600; color: var(--text-dark); display: block; margin-bottom: 4px; }
.case-stat .cs-lbl { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* PROSE (about, case-studies, faq) */
.prose { max-width: 720px; margin: 0 auto; padding: 64px 48px 100px; }
.prose p { font-size: 16px; line-height: 1.8; color: var(--text-body); margin-bottom: 24px; }
.prose h2 { font-size: 22px; margin-top: 56px; margin-bottom: 20px; color: var(--text-dark); font-weight: 500; }
.prose h3 { font-size: 18px; margin-top: 32px; margin-bottom: 12px; color: var(--text-dark); font-weight: 500; }
.prose strong { font-weight: 600; color: var(--text-dark); }
.prose ul, .prose ol { margin-bottom: 24px; padding-left: 24px; color: var(--text-body); }
.prose li { font-size: 16px; line-height: 1.8; margin-bottom: 8px; }
.divider { border: none; margin: 56px 0; height: 3px; background: linear-gradient(90deg, var(--blue-accent) 0%, var(--ice-blue) 50%, transparent 100%); border-radius: 2px; }

/* CALLOUTS */
.callout { background: var(--cream); border-radius: 8px; padding: 24px 28px; margin: 32px 0; display: flex; gap: 16px; align-items: flex-start; }
.callout-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.callout p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-body); }
.callout strong { color: var(--text-dark); }

/* PULL QUOTES */
.pull-quote { border-left: 4px solid var(--blue-accent); background: var(--ice); padding: 28px 32px; margin: 40px 0; border-radius: 0 8px 8px 0; }
.pull-quote p { font-size: 18px; font-weight: 500; color: var(--navy); margin: 0; line-height: 1.5; }
.pull-quote .cite { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 12px; display: block; }

/* TIMELINE (Process page) */
.timeline { margin: 48px 0; padding: 0; }
.tl-step { display: flex; gap: 24px; margin-bottom: 0; position: relative; }
.tl-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.tl-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-accent); color: var(--navy-deep); display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; }
.tl-line { width: 2px; flex-grow: 1; background: var(--ice-blue); min-height: 36px; }
.tl-content { padding: 8px 0 40px; flex: 1; }
.tl-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.tl-content .tl-week { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--blue-accent); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.tl-content p { font-size: 15px; color: var(--text-body); margin: 0 0 12px; line-height: 1.7; }
.tl-content ul { margin-top: 12px; padding-left: 18px; }
.tl-content li { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 4px; }
.tl-step:last-child .tl-line { display: none; }
.tl-step:last-child .tl-content { padding-bottom: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--ice-blue); padding: 24px 0; }
.faq-item:first-child { border-top: 1px solid var(--ice-blue); }
.faq-q { font-size: 16px; font-weight: 600; color: var(--text-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-family: 'IBM Plex Mono', monospace; font-size: 20px; color: var(--blue-accent); transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { font-size: 15px; color: var(--text-body); line-height: 1.75; padding-top: 14px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-category { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--blue-accent); margin: 56px 0 8px; font-weight: 500; }
.faq-category:first-child { margin-top: 0; }

/* AUTHOR / FOUNDER CARD */
.author-card { display: flex; gap: 24px; align-items: center; background: var(--ice); border-radius: 12px; padding: 32px; margin-top: 48px; }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--navy-deep); color: var(--blue-accent); display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-size: 24px; font-weight: 600; flex-shrink: 0; }
.author-info h4 { font-size: 17px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.author-info p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.author-info a { color: var(--blue-accent); text-decoration: none; font-weight: 500; }

/* CTA BLOCK */
.cta-block { background: var(--navy-deep); border-radius: 12px; padding: 56px 40px; margin: 56px 0 0; text-align: center; }
.cta-block h3 { color: var(--text-light); font-size: 26px; font-weight: 400; margin-bottom: 14px; letter-spacing: -0.3px; }
.cta-block p { color: rgba(240, 237, 232, 0.7); font-size: 16px; margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* TRUST STRIP */
.trust-strip { background: var(--navy); padding: 24px 48px; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.trust-strip .inner { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.trust-strip span.t { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--blue-light); }
.trust-strip span.dot { color: rgba(240, 237, 232, 0.3); }

/* FOOTER */
.footer { background: var(--navy-deep); padding: 32px 48px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-inner p { font-size: 13px; color: var(--text-light-muted); margin: 0; }
.footer-inner a { font-size: 13px; color: var(--text-light-muted); text-decoration: none; transition: color 0.3s; }
.footer-inner a:hover { color: var(--blue-light); }
.footer-links { display: flex; gap: 24px; }

/* ARCHITECTURE DIAGRAM (case study) */
.arch-diagram { background: var(--navy-deep); border-radius: 12px; padding: 32px; margin: 40px 0; overflow-x: auto; color: var(--text-light); font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 1.8; white-space: pre; }
.arch-label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--blue-light); margin-bottom: 16px; }

/* STAT GRID */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.stat-box { background: var(--ice); border-radius: 8px; padding: 28px 20px; text-align: center; border-top: 3px solid var(--blue-accent); }
.stat-box .num { font-family: 'IBM Plex Mono', monospace; font-size: 32px; font-weight: 500; color: var(--blue-accent); display: block; margin-bottom: 4px; }
.stat-box .label-stat { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 500; }

/* RESPONSIVE */
@media (max-width: 900px) {
    nav { padding: 16px 24px; }
    .section-dark, .section-navy, .section-white, .section-cream, .section-ice, .page-hero, .trust-strip { padding-left: 24px; padding-right: 24px; }
    .grid-2, .grid-3, .stat-row { grid-template-columns: 1fr; }
    .prose { padding: 48px 24px 80px; }
    .footer-inner { flex-direction: column; gap: 12px; }
    .author-card { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .nav-right .nav-link { display: none; }
    .page-hero h1 { font-size: 30px; }
    .card { padding: 24px 20px; }
    .cta-block { padding: 40px 24px; }
}
