/* =============================================
   FALCON — slop.falconatc.com
   Design system & component styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Variables --- */
:root {
    --max-width: 1400px;
    --gutter: 5vw;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text: #1a1a1a;
    --text-muted: #666;
    --border: #e5e5e5;
    --bg: #f7f6f1;
    --yellow: hsl(71, 100%, 52%);
    --purple: hsl(303, 100%, 70%);
    --header-h: 60px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; min-height: 100%; display: flex; flex-direction: column; }
main { flex: 1; padding-top: var(--header-h); }
a { color: inherit; text-decoration: underline; }
a:hover { text-decoration: underline; }
p { margin-bottom: 0.75rem; }
img { display: block; max-width: 100%; height: auto; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* --- Header --- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #000; height: var(--header-h); }
.header-inner { height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }
.nav-cta { background: var(--yellow); color: #000 !important; padding: 0.35rem 0.9rem; border-radius: 4px; font-weight: 600; font-size: 0.85rem !important; transition: opacity 0.15s !important; }
.nav-cta:hover { opacity: 0.85; }

/* --- Mobile menu --- */
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 1px; background: #fff; transition: transform 0.3s; }

/* --- Highlights --- */
.hl-y { background: var(--yellow); padding: 0 3px; border-radius: 2px; display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-p { background: var(--purple); padding: 0 3px; border-radius: 2px; display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* --- Hero --- */
.hero { padding: 5rem 0 4rem; border-bottom: 1px solid var(--border); }
.hero-eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.25rem; }
.hero-headline { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero-headline--stacked { display: flex; flex-direction: column; gap: 0.08em; }
.hh-line { display: block; }
.hh-rotating-line { display: block; line-height: 1.25; }
.hh-sub { color: var(--text-muted); }
.hero-subhead { font-size: 1.1rem; color: var(--text-muted); max-width: 580px; line-height: 1.7; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.65rem 1.5rem; border-radius: 5px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: opacity 0.15s; cursor: pointer; }
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary { background: #1a1a1a; color: #fff; }
.btn-outline { border: 1.5px solid var(--text); color: var(--text); background: transparent; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); }

/* --- Section layout --- */
.section { padding: 4rem 0; border-bottom: 1px solid var(--border); }
.section-sm { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2rem; }
.section-title { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1rem; }
.section-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; line-height: 1.7; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

/* --- Feature cards --- */
.feature-card { padding: 2rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.feature-num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; }
.feature-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.925rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0; }
.feature-card .tag { display: inline-block; margin-top: 1rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 3px; }
.tag-yellow { background: var(--yellow); color: #2a2a00; }
.tag-purple { background: var(--purple); color: #3a003a; }

/* --- Dashboard mockup --- */
.dashboard-wrap { background: #f9fafb; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.dashboard-topbar { background: #1a1a1a; padding: 0.75rem 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.topbar-dot { width: 10px; height: 10px; border-radius: 50%; }
.topbar-dot.red { background: #ff5f57; }
.topbar-dot.yellow { background: #febc2e; }
.topbar-dot.green { background: #28c840; }
.topbar-title { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin-left: 0.75rem; font-family: var(--font); }
.dashboard-body { padding: 1.5rem; display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }

.db-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
.db-card-header { padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; display: flex; justify-content: space-between; align-items: center; }
.db-card-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #374151; }
.db-card-body { padding: 1rem; }

/* Candidate header in dashboard */
.db-candidate { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 1rem 1.25rem; margin-bottom: 1rem; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.db-candidate-id { font-size: 2.5rem; font-weight: 700; color: #1a1a1a; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.db-candidate-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #9ca3af; font-weight: 600; }
.db-score-big { text-align: right; }
.db-score-num { font-size: 2.25rem; font-weight: 700; color: #f59e0b; font-variant-numeric: tabular-nums; }
.db-score-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #9ca3af; font-weight: 600; }

/* Run table in dashboard */
.db-run-row { display: grid; grid-template-columns: 3rem 1fr 1fr 1fr 1fr 4rem; gap: 0.5rem; align-items: center; font-size: 0.75rem; padding: 0.35rem 0; border-bottom: 1px solid #f3f4f6; font-variant-numeric: tabular-nums; }
.db-run-row:last-child { border-bottom: none; }
.db-run-row.db-row-header { font-weight: 600; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9ca3af; padding-bottom: 0.5rem; }
.score-badge { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 1.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.score-green { background: #22c55e; }
.score-yellow { background: #eab308; }
.score-orange { background: #f97316; }
.score-red { background: #ef4444; }

/* Error pill */
.err-pill { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.7rem; font-weight: 600; padding: 0.1rem 0.4rem; border-radius: 3px; }
.err-sep { background: #ede9fe; color: #6d28d9; }
.err-crit { background: #fee2e2; color: #b91c1c; }
.err-sig { background: #ffedd5; color: #c2410c; }
.err-min { background: #fef9c3; color: #854d0e; }

/* Skills mini grid */
.skill-row { display: flex; justify-content: space-between; align-items: center; padding: 0.3rem 0; border-bottom: 1px solid #f3f4f6; font-size: 0.75rem; }
.skill-row:last-child { border-bottom: none; }
.skill-name { color: #374151; }
.skill-grade { font-weight: 700; width: 1.2rem; text-align: center; }
.grade-a { color: #16a34a; }
.grade-b { color: #2563eb; }
.grade-c { color: #d97706; }
.grade-f { color: #dc2626; }

/* --- Stat strip --- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.stat-item { padding: 2rem 1.5rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-num { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* --- Tech stack section --- */
.tech-item { padding: 1.75rem 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 200px 1fr; gap: 3rem; }
.tech-item:last-child { border-bottom: none; }
.tech-name { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 0.2rem; }
.tech-detail { font-size: 0.975rem; color: var(--text-muted); line-height: 1.7; }
.tech-detail strong { color: var(--text); font-weight: 600; }

/* --- Team grid --- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card { padding: 1.75rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.team-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.25rem; }
.team-role { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.team-bio { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }

/* --- Supporters --- */
.supporter-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.supporter-badge { padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: 4px; font-size: 0.825rem; background: #fff; color: var(--text-muted); }

/* --- CTA banner --- */
.cta-banner { background: #1a1a1a; color: #fff; padding: 5rem 0; text-align: center; }
.cta-banner .section-title { color: #fff; margin-bottom: 1rem; }
.cta-banner .section-desc { color: rgba(255,255,255,0.6); margin: 0 auto 2rem; }
.cta-banner .btn-primary { background: var(--yellow); color: #1a1a1a; }

/* --- Breadcrumb --- */
.breadcrumb { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--text-muted); }

/* --- Blog post --- */
.post-body { max-width: 680px; }
.post-body p { font-size: 1.0125rem; line-height: 1.75; margin-bottom: 1.25rem; }
.post-body h2 { font-size: 1.3rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.post-body ul, .post-body ol { margin: 0 0 1.25rem 1.5rem; font-size: 1.0125rem; line-height: 1.75; }
.post-body li { margin-bottom: 0.35rem; }
.post-meta { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 2rem; }
.blog-image { max-width: 100%; height: auto; margin: 1.5rem 0; border-radius: 6px; }

/* --- Blog list --- */
.post-link { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.post-link:first-child { border-top: 1px solid var(--border); }
.post-link a { font-size: 1.05rem; font-weight: 500; text-decoration: none; }
.post-link a:hover { text-decoration: underline; }
.post-link-date { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; margin-bottom: 0; }

/* --- Footer --- */
.footer { padding: 2.5rem 0; background: #0a0a0a; background-image: linear-gradient(135deg, rgba(255,255,255,.015) 25%, transparent 25%), linear-gradient(225deg, rgba(255,255,255,.015) 25%, transparent 25%), linear-gradient(45deg, rgba(255,255,255,.015) 25%, transparent 25%), linear-gradient(315deg, rgba(255,255,255,.015) 25%, transparent 25%); background-size: 24px 24px; background-position: 0 0, 12px 0, 12px -12px, 0 12px; color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-left { flex: 1; }
.footer-company { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.footer-address { font-size: 0.85rem; color: rgba(255,255,255,.6); line-height: 1.5; margin-bottom: 0; }
.footer-right { text-align: right; }
.footer-supporters-title { font-size: 0.8rem; font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.footer-supporters-list { font-size: 0.8rem; color: rgba(255,255,255,.6); line-height: 1.5; margin-bottom: 0; }
.footer-nav { display: flex; gap: 1.5rem; margin-top: 0.75rem; }
.footer-nav a { font-size: 0.8rem; color: rgba(255,255,255,.5); text-decoration: none; }
.footer-nav a:hover { color: rgba(255,255,255,.9); }

/* --- Specialty rotator --- */
.specialty-rotator {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    /* height set by JS; width animates between items */
    transition: width 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: width;
}

.specialty-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.specialty-item {
    display: block;
    width: fit-content;
    white-space: nowrap;
    background-color: var(--yellow);
    padding: 0.05em 0.15em;
    border-radius: 4px;
    line-height: 1.2;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .two-col { grid-template-columns: 1fr; gap: 3rem; }
    .three-col { grid-template-columns: 1fr; gap: 1.5rem; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .tech-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .dashboard-body { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    :root { --gutter: 1.25rem; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0 2.5rem; }
    .section { padding: 2.5rem 0; }
    .mobile-menu-toggle { display: flex; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #000; flex-direction: column; padding: 1rem var(--gutter); gap: 1rem; }
    .nav-links.active { display: flex; }
    .footer-inner { flex-direction: column; gap: 1.5rem; }
    .footer-right { text-align: left; }
    .db-run-row { grid-template-columns: 2.5rem 1fr 3rem; }
    .db-run-row .hide-mobile { display: none; }
    .dashboard-body { padding: 0.75rem; }
    .db-candidate-id { font-size: 1.75rem; }
}
