/* FilePlot pages. Matches the look of the rest of the site. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
    --bg: #08090d;
    --card: rgba(255, 255, 255, 0.035);
    --card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f2f3f7;
    --text-dim: #9a9ca8;
    --text-faint: #6b6d78;
    --teal: #22d3c8;
    --accent-grad: linear-gradient(135deg, #7c5cff 0%, #a855f7 50%, #22d3c8 100%);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Helvetica, Arial, sans-serif;
    background:
        radial-gradient(1100px 550px at 12% -8%, rgba(124, 92, 255, 0.16), transparent 60%),
        radial-gradient(900px 500px at 100% 10%, rgba(34, 211, 200, 0.10), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

a { color: #9ff0e8; }
a:hover { color: #ffffff; }

/* Navigation */

nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(8, 9, 13, 0.72);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--border);
}

.nav-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: -0.2px;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: flex-end; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* Hero */

.hero { text-align: center; padding: 110px 0 70px; }

.app-icon {
    width: 96px; height: 96px; margin: 0 auto 28px;
    border-radius: 24px; overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 20px 50px rgba(34, 211, 200, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1 {
    max-width: 780px; margin: 0 auto 20px;
    font-size: 52px; line-height: 1.08; letter-spacing: -2px; font-weight: 700;
    background: linear-gradient(180deg, #ffffff 20%, #b9bbc9 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero p { max-width: 680px; margin: 0 auto; font-size: 20px; line-height: 1.55; color: var(--text-dim); }

.platform {
    display: inline-block; margin-top: 28px; padding: 8px 16px; border-radius: 20px;
    background: rgba(34, 211, 200, 0.08); border: 1px solid rgba(34, 211, 200, 0.3); color: #9ff0e8;
    font-size: 13px; font-weight: 500; letter-spacing: 0.2px;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.cta {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 14px;
    background: var(--accent-grad); color: #fff; text-decoration: none; font-size: 15px; font-weight: 600;
    box-shadow: 0 12px 30px rgba(124, 92, 255, 0.35); transition: transform 0.2s ease;
}
.cta:hover { transform: translateY(-2px); color: #fff; }

.ghost {
    display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); color: var(--text);
    text-decoration: none; font-size: 15px; font-weight: 500; transition: border-color 0.2s ease, background 0.2s ease;
}
.ghost:hover { background: var(--card-hover); border-color: var(--border-strong); color: var(--text); }

/* Sections */

section { padding: 45px 0; }

.section-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 50px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

h2 { margin: 0 0 16px; font-size: 30px; letter-spacing: -0.8px; color: var(--text); line-height: 1.2; }
h3 { margin: 26px 0 8px; font-size: 18px; color: var(--text); }
.section-card > h3:first-of-type { margin-top: 10px; }

.section-intro { max-width: 720px; color: var(--text-dim); font-size: 17px; margin: 0 0 30px; }

.section-card p, .section-card li { color: var(--text-dim); }
.section-card strong { color: var(--text); font-weight: 600; }
.section-card ul, .section-card ol { padding-left: 22px; }
.section-card li { margin-bottom: 6px; }

/* Grids */

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.features.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature {
    padding: 24px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 20px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: var(--border-strong); background: var(--card-hover); transform: translateY(-2px); }

.feature-icon {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    font-size: 21px; margin-bottom: 14px; border-radius: 12px; background: var(--accent-grad);
}
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { text-align: center; padding: 22px; }
.number {
    width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-grad); color: #fff; font-weight: 600; font-size: 14px;
    box-shadow: 0 8px 20px rgba(124, 92, 255, 0.35);
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; font-size: 14px; }

/* Stats */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat { padding: 22px; border-radius: 20px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.stat .value { font-size: 34px; font-weight: 700; letter-spacing: -1px; color: var(--text); font-variant-numeric: tabular-nums; }
.stat .label { color: var(--text-dim); font-size: 14px; }

/* Notes */

.note {
    background: rgba(34, 211, 200, 0.05); border: 1px solid rgba(34, 211, 200, 0.22);
    border-radius: 18px; padding: 20px 22px; color: var(--text-dim); margin: 18px 0;
}
.note.warn { background: rgba(245, 180, 70, 0.06); border-color: rgba(245, 180, 70, 0.3); }
.note strong { display: block; margin-bottom: 4px; }

/* Screenshots */

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.shots img {
    display: block; height: 460px; width: auto; max-width: 86vw; object-fit: contain;
    border-radius: 18px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
}
.shots figcaption { color: var(--text-faint); font-size: 13px; margin-top: 8px; text-align: center; }

/* Help */

.toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.toc a {
    display: block; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: var(--text);
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); font-size: 15px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.toc a:hover { background: var(--card-hover); border-color: var(--border-strong); }
.section-card .toc { padding: 0; }
.section-card .toc li { margin: 0; }

details {
    border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
}
summary { cursor: pointer; color: var(--text); font-weight: 600; }
details p { margin: 10px 0 0; }

kbd {
    font-family: inherit; font-size: 13px; padding: 1px 7px; border-radius: 6px;
    border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.05); color: var(--text);
}

table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text); font-weight: 600; }
td { color: var(--text-dim); }

.updated { color: var(--text-faint); font-size: 14px; margin-top: -6px; }

/* Footer */

footer { padding: 46px 0 56px; color: var(--text-faint); font-size: 13px; text-align: center; border-top: 1px solid var(--border); margin-top: 20px; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }

/* Mobile */

@media (max-width: 760px) {
    .nav-inner { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
    .nav-links { justify-content: flex-start; gap: 6px 16px; }
    .nav-links a { font-size: 13px; }
    h1 { font-size: 38px; letter-spacing: -1.5px; }
    .hero { padding: 70px 0 50px; }
    .hero p { font-size: 18px; }
    section { padding: 30px 0; }
    .section-card { padding: 28px 22px; border-radius: 22px; }
    .features, .features.three, .steps, .stats, .toc { grid-template-columns: 1fr; }
    h2 { font-size: 25px; }
    .shots img { height: 380px; }
    table { font-size: 14px; }
    th, td { padding: 8px 6px; }
}
