/**
 * Public features — premium product page
 */
:root {
    --ink: #12202b;
    --ink-soft: #3d4f5f;
    --mute: #6b7c8a;
    --paper: #f3f1ec;
    --paper-2: #ebe7df;
    --white: #fffcf7;
    --line: rgba(18, 32, 43, 0.1);
    --teal: #0f766e;
    --teal-deep: #0b5a54;
    --amber: #c27803;
    --display: 'Syne', system-ui, sans-serif;
    --body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.pf {
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    overflow-x: hidden;
}

a { color: inherit; }

/* ── Nav ── */
.pf-nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.pf-nav__brand {
    font-family: var(--display);
    font-weight: 750;
    font-size: 1.15rem;
    letter-spacing: -.03em;
    text-decoration: none;
    color: var(--white);
}

.pf-nav__links {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.pf-link {
    color: rgba(255, 252, 247, 0.78);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
}

.pf-link:hover { color: var(--white); }

.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.25rem;
    border-radius: 999px;
    font-weight: 650;
    font-size: .92rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.pf-btn:hover { transform: translateY(-2px); }

.pf-btn--light {
    background: var(--white);
    color: var(--ink);
}

.pf-btn--teal {
    background: var(--teal);
    color: #ecfdf8;
}

.pf-btn--ghost-dark {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.pf-btn--ghost-dark:hover {
    background: var(--white);
}

/* ── Hero ── */
.pf-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: end;
    color: var(--white);
    overflow: hidden;
    background:
        linear-gradient(165deg, rgba(11, 42, 40, 0.55) 0%, rgba(18, 32, 43, 0.72) 48%, rgba(18, 32, 43, 0.88) 100%),
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(15, 118, 110, 0.45), transparent 60%),
        linear-gradient(135deg, #0b3d3a 0%, #163048 45%, #1a2330 100%);
}

.pf-hero__pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 80% at 60% 50%, black 20%, transparent 75%);
    pointer-events: none;
}

.pf-hero__stage {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 7.5rem 0 3.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
}

.pf-hero__copy {
    max-width: 34rem;
    animation: pfFadeUp .8s ease both;
}

.pf-hero__brand {
    font-family: var(--display);
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .92;
    margin-bottom: 1.15rem;
}

.pf-hero__headline {
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 650;
    letter-spacing: -.03em;
    line-height: 1.25;
    margin-bottom: .85rem;
    color: rgba(255, 252, 247, 0.94);
}

.pf-hero__lead {
    color: rgba(255, 252, 247, 0.72);
    font-size: 1.05rem;
    max-width: 30rem;
    margin-bottom: 1.75rem;
}

.pf-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.pf-hero__visual {
    position: relative;
    animation: pfFadeUp .9s ease .12s both;
}

.pf-terminal {
    border-radius: 22px 22px 10px 10px;
    background: linear-gradient(180deg, #1c2733 0%, #121a22 100%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 40px 80px rgba(0,0,0,0.35);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    transform-origin: center bottom;
}

.pf-terminal__bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .7rem 1rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pf-terminal__bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
    background: rgba(255,255,255,0.2);
}

.pf-terminal__bar i:nth-child(1) { background: #f87171; }
.pf-terminal__bar i:nth-child(2) { background: #fbbf24; }
.pf-terminal__bar i:nth-child(3) { background: #34d399; }

.pf-terminal__title {
    margin-left: .5rem;
    font-size: .72rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pf-terminal__body {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    min-height: 280px;
}

.pf-terminal__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .55rem;
    padding: .85rem;
}

.pf-sku {
    border-radius: 12px;
    padding: .75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    animation: pfPulse 4s ease-in-out infinite;
}

.pf-sku:nth-child(2) { animation-delay: .4s; }
.pf-sku:nth-child(3) { animation-delay: .8s; }
.pf-sku:nth-child(4) { animation-delay: 1.2s; }

.pf-sku b {
    display: block;
    font-size: .78rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: .25rem;
}

.pf-sku span {
    font-size: .72rem;
    color: #5eead4;
}

.pf-terminal__cart {
    padding: .85rem;
    border-left: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.pf-terminal__cart small {
    color: rgba(255,255,255,0.4);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pf-line {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .8rem;
    color: rgba(255,255,255,0.75);
}

.pf-total {
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    font-family: var(--display);
    font-weight: 700;
    color: #fff;
}

@keyframes pfFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pfPulse {
    0%, 100% { background: rgba(255,255,255,0.05); }
    50% { background: rgba(94, 234, 212, 0.08); }
}

/* ── Pillars ── */
.pf-pillars {
    width: min(1180px, calc(100% - 2.5rem));
    margin: -2.5rem auto 0;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(18, 32, 43, 0.08);
}

.pf-pillar {
    background: var(--white);
    padding: 1.6rem 1.4rem;
}

.pf-pillar h2 {
    font-family: var(--display);
    font-size: 1.15rem;
    letter-spacing: -.02em;
    margin-bottom: .4rem;
}

.pf-pillar p {
    color: var(--mute);
    font-size: .92rem;
}

/* ── Industries ── */
.pf-industries {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 4.5rem auto 0;
    text-align: center;
}

.pf-kicker {
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: .75rem;
}

.pf-industries h2,
.pf-modules__intro h2,
.pf-closing h2 {
    font-family: var(--display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-bottom: .75rem;
}

.pf-industries > p,
.pf-modules__intro > p,
.pf-closing p {
    color: var(--mute);
    max-width: 34rem;
    margin: 0 auto 1.75rem;
}

.pf-industry-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem 1.25rem;
    font-family: var(--display);
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 650;
    letter-spacing: -.02em;
    color: var(--ink-soft);
}

.pf-industry-row span::after {
    content: '·';
    margin-left: 1.25rem;
    color: rgba(18, 32, 43, 0.25);
}

.pf-industry-row span:last-child::after { content: none; }

/* ── Modules ── */
.pf-modules {
    width: min(1180px, calc(100% - 2.5rem));
    margin: 5rem auto 0;
}

.pf-modules__intro {
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

.pf-modules__intro p { margin-left: 0; }

.pf-module {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.4fr);
    gap: clamp(1.25rem, 4vw, 3rem);
    padding: 2.25rem 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 1.5rem;
}

.pf-module:last-child { border-bottom: 1px solid var(--line); }

.pf-module__meta h3 {
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-bottom: .65rem;
}

.pf-module__meta p {
    color: var(--mute);
    font-size: .95rem;
}

.pf-module__accent {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: var(--accent, var(--teal));
}

.pf-defs {
    list-style: none;
    display: grid;
    gap: 0;
}

.pf-defs li {
    display: grid;
    grid-template-columns: minmax(120px, 0.55fr) 1fr;
    gap: 1rem;
    padding: .85rem 0;
    border-top: 1px solid rgba(18, 32, 43, 0.06);
}

.pf-defs li:first-child { border-top: 0; padding-top: 0; }

.pf-defs strong {
    font-size: .95rem;
    font-weight: 650;
}

.pf-defs span {
    color: var(--mute);
    font-size: .92rem;
}

/* ── Closing ── */
.pf-closing {
    width: min(900px, calc(100% - 2.5rem));
    margin: 5rem auto 4rem;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
    background:
        linear-gradient(160deg, rgba(15, 118, 110, 0.08), transparent 55%),
        var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
}

.pf-closing__cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
}

.pf-foot {
    text-align: center;
    color: var(--mute);
    font-size: .82rem;
    padding: 0 1rem 2.5rem;
}

.pf-foot a {
    color: var(--teal-deep);
    text-decoration: none;
    font-weight: 600;
}

/* Reveal */
.pf-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.pf-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .pf-hero__stage {
        grid-template-columns: 1fr;
        padding-top: 6.5rem;
        padding-bottom: 2.5rem;
    }

    .pf-terminal {
        transform: none;
        max-width: 480px;
        margin: 0 auto;
    }

    .pf-pillars { grid-template-columns: 1fr; margin-top: 1.5rem; }

    .pf-module,
    .pf-defs li {
        grid-template-columns: 1fr;
        gap: .55rem;
    }
}

@media (max-width: 560px) {
    .pf-nav__links .pf-link { display: none; }
    .pf-terminal__body { grid-template-columns: 1fr; }
    .pf-terminal__cart { border-left: 0; border-top: 1px solid rgba(255,255,255,0.06); }
}
