/* FollowSifter — shared styles for both pages */
:root {
    color-scheme: dark;
    --bg: #11111b;
    --surface: #1b1b29;
    --surface-raised: #242434;
    --border: #343446;
    --text: #f8f7fc;
    --muted: #a5a3b6;
    --accent: #b6a2ff;
    --primary: #8061e6;
    --primary-hover: #9277f0;
    --radius: 16px;
    --content-width: 1000px;
    --nav-height: 70px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); min-width: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
/* Navigation and shared branding */
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--border); background: #11111bf2; backdrop-filter: blur(14px); }
.nav-shell { max-width: 1180px; margin: 0 auto; min-height: var(--nav-height); padding: 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 0; font-size: 21px; font-weight: 800; letter-spacing: -.8px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; margin-right: 9px; background: #8061e622; border: 1px solid #8061e65c; border-radius: 9px; color: var(--accent); }
.brand-mark svg { width: 21px; height: 21px; }
.brand-accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 29px; font-size: 14px; font-weight: 550; }
.nav-links a { color: var(--muted); padding: 23px 0; position: relative; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; height: 2px; background: var(--accent); left: 0; right: 0; }
/* Hero and video cards */
.hero { background: radial-gradient(ellipse at 50% 0%, #211b3a 0%, var(--bg) 65%); text-align: center; padding: 42px 24px 48px; }
.home-hero { min-height: calc(100svh - var(--nav-height)); display: grid; place-items: center; }
.hero-inner { width: 100%; max-width: 780px; margin: auto; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 11px; font-weight: 750; color: var(--accent); letter-spacing: 2px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #b6a2ff88; }
.hero h1 { font-size: clamp(38px, 5.5vw, 65px); line-height: 1.08; letter-spacing: -.055em; margin: 14px 0; font-weight: 800; }
.accent-text { color: var(--accent); }
.hero-description { color: var(--muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.55; }
.video-card { width: min(100%, 560px); margin: 26px auto 22px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 45px #0003; text-align: left; }
.video-frame { aspect-ratio: 16 / 9; background: #0b0b12; }
.video-frame iframe { display: block; border: 0; width: 100%; height: 100%; }
.video-caption { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 13px; font-weight: 550; }
.video-label { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .9px; white-space: nowrap; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 25px; border-radius: 9px; font-size: 14px; font-weight: 700; transition: background .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; }
.button-primary { background: var(--primary); color: white; box-shadow: 0 5px 20px #8061e633; }
.button-primary:hover { background: #7654de; }
.button-secondary { background: var(--surface-raised); border: 1px solid #4b4b60; }
.button-secondary:hover { background: #303043; }
/* Shared sections */
.section-shell { max-width: var(--content-width); margin: 0 auto; padding: 56px 24px 70px; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--nav-height) + 15px); }
.section-heading { text-align: center; margin-bottom: 29px; }
.section-heading h2 { font-size: clamp(27px, 4vw, 38px); letter-spacing: -.035em; line-height: 1.2; margin: 9px 0 10px; }
.section-heading > p:not(.eyebrow) { color: var(--muted); }
/* Home: existing drop targets, status and results */
.tool-panel, .results-panel { border: 1px solid var(--border); background: var(--surface); padding: 27px; border-radius: var(--radius); }
.drop-container { display: flex; flex-direction: row; gap: 20px; }
.drop-section { flex: 1; min-width: 0; text-align: center; }
.drop-section h3 { font-size: 15px; margin-bottom: 12px; font-weight: 650; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 160px; border: 2px dashed #55516f; background: #171724; border-radius: 12px; padding: 24px 12px; text-align: center; transition: background .18s ease, border-color .18s ease; overflow-wrap: anywhere; }
.drop-zone:hover, .drop-zone.dragging, .drop-zone.dragover { border-color: var(--accent); background: #242039; }
.upload-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 4px; pointer-events: none; }
.drop-zone > span { pointer-events: none; }
.drop-zone .file-name { font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); }
#status { text-align: center; margin: 17px 0; color: var(--accent); overflow-wrap: anywhere; }
#status:empty { display: none; }
.privacy-note { display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--muted); text-align: center; font-size: 12px; margin-top: 23px; }
.privacy-note svg { width: 15px; height: 15px; flex: 0 0 15px; }
.results-panel { margin-top: 20px; }
.results-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.results-header h2 { font-size: 21px; }
.muted { color: var(--muted); font-size: 13px; }
#textarea { overflow-wrap: anywhere; padding-top: 16px; }
#textarea:empty::before { content: "Your results will appear here."; color: var(--muted); font-size: 14px; }
#textarea a { color: var(--accent); text-decoration: underline; }
/* Build page */
.build-hero { padding-bottom: 52px; }
.writeup { max-width: 850px; }
.article-heading { text-align: left; }
.article-heading .eyebrow { justify-content: flex-start; }
.article-section { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 13px; padding: 25px 0; border-bottom: 1px solid var(--border); }
.article-section:last-child { border-bottom: 0; }
.section-number { font-family: ui-monospace, Consolas, monospace; color: var(--accent); font-size: 13px; padding-top: 4px; }
.article-section h3 { font-size: 21px; letter-spacing: -.025em; line-height: 1.35; margin-bottom: 10px; }
.article-section p { color: #c2c0d0; line-height: 1.75; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 12px; }
.metric { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: 15px; display: flex; flex-direction: column; gap: 3px; }
.metric strong { color: var(--accent); font: 700 21px/1.4 ui-monospace, Consolas, monospace; }
.metric span, .article-section .small-copy { color: var(--muted); font-size: 12px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.tech-tags span { border: 1px solid var(--border); background: var(--surface); color: var(--accent); border-radius: 6px; padding: 4px 10px; font-size: 12px; }
.architecture { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 9px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; font-size: 13px; }
.architecture span { padding: 8px 12px; border: 1px solid #55516f; border-radius: 7px; }
.architecture b { color: var(--accent); }
/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: 1180px; margin: auto; padding: 23px 32px; display: flex; gap: 16px; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.footer-brand { color: var(--text); font-weight: 750; }
.footer-inner a:hover { color: var(--accent); }
/* Responsive adjustments */
@media (max-width: 600px) {
    :root { --nav-height: 61px; }
    .nav-shell { padding: 0 16px; gap: 12px; }
    .brand { font-size: 17px; }
    .brand-mark { width: 25px; height: 25px; margin-right: 5px; }
    .brand-mark svg { width: 17px; height: 17px; }
    .nav-links { font-size: 11px; gap: 13px; }
    .nav-links a { padding: 20px 0; }
    .hero { padding: 37px 18px; }
    .hero h1 { font-size: clamp(37px, 9vw, 50px); }
    .desktop-break { display: none; }
    .video-card { margin: 23px auto 21px; }
    .video-caption { padding: 10px 12px; gap: 8px; font-size: 12px; }
    .section-shell { padding: 39px 16px 50px; }
    .tool-panel, .results-panel { padding: 17px; }
    .drop-container { flex-direction: column; gap: 18px; }
    .drop-zone { min-height: 135px; }
    .article-section { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
    .metric-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-wrap: wrap; justify-content: center; text-align: center; padding: 22px 16px; }
}
@media (max-width: 350px) {
    .nav-shell { flex-wrap: wrap; justify-content: center; padding-top: 9px; gap: 0 16px; }
    .nav-links a { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Home page: sequential hero text reveal */
@keyframes hero-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.home-hero #hero-title {
    animation: hero-reveal 0.8s ease-out both;
}

.home-hero .hero-tagline > span {
    display: inline-block;
    opacity: 1;
    animation-name: hero-reveal;
    animation-duration: 0.1s;
    animation-timing-function: steps(1, end);
    animation-fill-mode: backwards;
}

.home-hero .hero-tagline > span:nth-child(1) { animation-delay: 0.9s; }
.home-hero .hero-tagline > span:nth-child(2) { animation-delay: 1.3s; }
.home-hero .hero-tagline > span:nth-child(3) { animation-delay: 1.7s; }

@media (prefers-reduced-motion: reduce) {
    .home-hero #hero-title,
    .home-hero .hero-tagline > span {
        animation: none;
        opacity: 1;
    }
}
