/* ============================================
   ChronoPhyBench — Academic Landing Page
   Inspired by ripbench.ai design language
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #fafbfc;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #5a5f72;
    --accent: #3b49df;
    --accent-light: #eef0ff;
    --border: #e2e4ea;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 960px;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1 { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.1rem; font-weight: 700; }

.section-kicker {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: .5rem;
}

/* --- Hero --- */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.hero__content { text-align: center; }

/* --- Logo Section --- */
.logo-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
}

.logo-main {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.hero__content .eyebrow {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.hero__content h1 { margin-bottom: .35rem; }

.subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.lede {
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- Buttons --- */
.hero-links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

.btn {
    display: inline-flex;
    align-items: center;
    padding: .55rem 1.2rem;
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s, box-shadow .15s;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59,73,223,.25);
}
.btn-primary:hover { background: #2f3dcd; }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: #f0f1f5; }

/* --- Hero Visual --- */
.hero__visual {
    flex: 0 0 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.task-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
}

.vis-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .9rem;
}

.vis-icon { font-size: 1.5rem; }

.vis-arrow {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.vis-tasks {
    display: flex;
    gap: .5rem;
}

.vis-task {
    background: var(--accent-light);
    color: var(--accent);
    padding: .35rem .75rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
}

.visual-caption {
    margin-top: 1rem;
    text-align: center;
    font-size: .75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Stats Bar --- */
.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat { text-align: center; }

.stat__value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -.02em;
}

.stat__label {
    font-size: .82rem;
    color: var(--text-muted);
}

/* --- Figure Section --- */
.fig-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
}

.fig-main {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* --- Paper Card --- */
.paper-card {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.paper-card p { margin-bottom: .9rem; color: var(--text-muted); text-align: justify; }

/* --- Split Section (Tasks) --- */
.split-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.split-section > div:first-child { flex: 0 0 260px; }
.split-section > div:first-child p { color: var(--text-muted); font-size: .92rem; margin-top: .5rem; text-align: justify; }

.task-grid {
    flex: 1 1 400px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.task-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.2rem 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.task-card h3 { margin-bottom: .4rem; font-size: .95rem; }

.task-card p { font-size: .84rem; color: var(--text-muted); flex: 1; margin-bottom: .6rem; text-align: justify; }

.task-metric {
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: auto;
}

/* --- Release Panel --- */
.release-panel {
    max-width: var(--max-width);
    margin: 0 auto 2rem;
    padding: 2.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.release-panel h2 { margin-bottom: .6rem; }
.release-panel .section-kicker { text-align: center; }
.release-panel > p { color: var(--text-muted); font-size: .92rem; max-width: 60ch; margin: 0 auto 1.5rem; text-align: left; }

.release-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.release-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    color: var(--text);
    background: var(--bg);
    padding: .5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: border-color .15s, box-shadow .15s;
}
.release-link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.release-link__icon { font-size: 1.1rem; }

/* --- Footer --- */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border);
    font-size: .8rem;
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 720px) {
    h1 { font-size: 2rem; }
    .hero { padding: 3rem 1.2rem 2rem; gap: 1.5rem; }
    .hero__visual { flex: 0 0 100%; }
    .stats { gap: 1.5rem; padding: 1.5rem 1rem; }
    .stat__value { font-size: 1.5rem; }
    .split-section { flex-direction: column; }
    .split-section > div:first-child { flex: none; }
    footer { flex-direction: column; gap: .3rem; text-align: center; }
}
