/* ============================================================
   PROMETHEE Cloud — Landing page styles
   Brand register: editorial-academic, not SaaS-tech.
   Token source: static/css/main.css
   ============================================================ */

/* ---------- Hero ---------- */

.hero-promethee {
    position: relative;
    min-height: 80vh;
    padding: clamp(5rem, 12vh, 9rem) 0;
    background-color: var(--dark-blue);
    background-image:
        radial-gradient(ellipse at 18% 22%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 82% 78%, rgba(176, 138, 62, 0.10) 0%, transparent 55%);
    color: var(--surface-paper);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-promethee::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 96px 100%;
    opacity: 0.5;
    pointer-events: none;
}

.hero-promethee > .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-ochre-soft);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-promethee h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
}

.hero-promethee .hero-lead {
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    max-width: 60ch;
    margin: 0 auto 2.5rem;
    color: rgba(250, 251, 252, 0.85);
}

.hero-promethee .btn-hero-primary {
    background-color: var(--accent-ochre);
    border: 1px solid var(--accent-ochre);
    color: #1a1208;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    letter-spacing: 0.01em;
    transition: background-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
                border-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-promethee .btn-hero-primary:hover,
.hero-promethee .btn-hero-primary:focus {
    background-color: var(--accent-ochre-soft);
    border-color: var(--accent-ochre-soft);
    color: #1a1208;
}

.hero-promethee .btn-hero-ghost {
    background-color: transparent;
    border: 1px solid rgba(250, 251, 252, 0.4);
    color: var(--surface-paper);
    font-weight: 500;
    padding: 0.7rem 1.4rem;
    letter-spacing: 0.01em;
    transition: border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
                background-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-promethee .btn-hero-ghost:hover,
.hero-promethee .btn-hero-ghost:focus {
    border-color: var(--surface-paper);
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--surface-paper);
}

/* ---------- Section: Pillars (replaces icon card grid) ---------- */

.section-pillars {
    padding: clamp(3.5rem, 7vh, 5rem) 0;
    background-color: var(--surface-paper);
    border-bottom: 1px solid rgba(10, 47, 77, 0.08);
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
}

.pillar {
    max-width: 32ch;
}

.pillar-marker {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--accent-ochre);
    margin-bottom: 0.9rem;
    display: block;
}

.pillar-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark-blue);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.pillar-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 38ch;
}

/* ---------- Section: Validate + Decompose (alternating rows) ---------- */

.section-feature {
    padding: clamp(4.5rem, 10vh, 7rem) 0;
}

.section-feature h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--dark-blue);
    margin-bottom: 1.2rem;
}

.section-feature .feature-lead {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 56ch;
}

.section-feature .feature-img {
    border-radius: 6px;
    box-shadow: 0 18px 40px -22px rgba(10, 47, 77, 0.35);
}

/* ---------- Section: Publications ---------- */

.section-publications {
    padding: clamp(3.5rem, 7vh, 5rem) 0;
    background-color: var(--surface-paper);
}

.section-publications .section-header {
    margin-bottom: 3rem;
}

.section-publications h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--dark-blue);
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.section-publications .section-intro {
    color: var(--ink-soft);
    max-width: 58ch;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

.pub-entry {
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(10, 47, 77, 0.1);
}

.pub-entry:first-child {
    border-top: 1px solid rgba(10, 47, 77, 0.1);
}

.pub-entry-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-blue);
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.pub-entry-meta {
    font-size: 0.875rem;
    color: var(--ink-soft);
    margin-bottom: 0.4rem;
}

.pub-entry-journal {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
}

.pub-entry-journal em {
    color: var(--main-black);
}

.pub-entry-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pub-entry-footer .doi-link {
    font-size: 0.875rem;
    color: var(--main-blue);
    text-decoration: none;
}

.pub-entry-footer .doi-link:hover {
    text-decoration: underline;
}

.pub-entry-footer .bibtex-toggle {
    font-size: 0.8125rem;
    background: transparent;
    border: 1px solid rgba(10, 47, 77, 0.2);
    color: var(--ink-soft);
    padding: 0.35rem 0.9rem;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 180ms ease-out, color 180ms ease-out;
}

.pub-entry-footer .bibtex-toggle:hover,
.pub-entry-footer .bibtex-toggle[aria-expanded="true"] {
    border-color: var(--main-blue);
    color: var(--main-blue);
}

.pub-entry .bibtex-block {
    margin-top: 1rem;
    background-color: var(--surface-mist);
    border: 1px solid rgba(10, 47, 77, 0.08);
    padding: 1rem 1.1rem;
    font-size: 0.78rem;
    line-height: 1.5;
    overflow-x: auto;
    border-radius: 3px;
}

/* ---------- Section: Closing CTA ---------- */

.section-cta {
    padding: clamp(3rem, 6vh, 4.5rem) 0;
    background-color: var(--surface-mist);
    text-align: center;
    border-top: 1px solid rgba(10, 47, 77, 0.08);
}

.section-cta h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    letter-spacing: -0.005em;
}

.section-cta p {
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 50ch;
    margin: 0 auto 1.75rem;
    line-height: 1.55;
}

.section-cta .btn-cta-primary {
    background-color: var(--main-blue);
    border: 1px solid var(--main-blue);
    color: var(--surface-paper);
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    transition: background-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-cta .btn-cta-primary:hover,
.section-cta .btn-cta-primary:focus {
    background-color: var(--dark-blue);
    color: var(--surface-paper);
}

.section-cta .cta-secondary {
    display: inline-block;
    margin-left: 1.25rem;
    font-size: 0.95rem;
    color: var(--main-blue);
    text-decoration: none;
}

.section-cta .cta-secondary:hover {
    text-decoration: underline;
}

/* ---------- Responsive overrides ---------- */

@media (max-width: 768px) {
    .pillar-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .hero-promethee {
        min-height: auto;
        padding: 5rem 0;
    }

    .section-cta .cta-secondary {
        display: block;
        margin-left: 0;
        margin-top: 0.9rem;
    }
}
