/* ===========================================================
   Firebringer Technologies — design tokens
   =========================================================== */

:root {
    --bg: #150f0c;
    --bg-panel: #1d1512;
    --text: #f5efe7;
    --text-muted: #b7aca0;
    --line: rgba(245, 239, 231, 0.1);

    --flame-1: #ffd23d;
    --flame-2: #ff8a1e;
    --flame-3: #f03a17;
    --flame-gradient: linear-gradient(
        120deg,
        var(--flame-1) 0%,
        var(--flame-2) 55%,
        var(--flame-3) 100%
    );

    /* Piezza's own product palette, used only inside the product mock */
    --piezza-green: #3b6d11;
    --piezza-orange: #f0801a;

    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;

    --max: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem;
}

p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

a {
    color: var(--text);
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--flame-2);
    outline-offset: 3px;
}

/* ===========================================================
   Header
   =========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(21, 15, 12, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-mark {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.brand-mark--small {
    width: 36px;
    height: 36px;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    gap: 1.75rem;
}

.site-nav a {
    font-size: 0.92rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.15s ease;
}

.site-nav a:hover {
    color: var(--text);
}

@media (max-width: 700px) {
    .header-row {
        height: auto;
        flex-wrap: wrap;
        padding: 1rem 1.2rem;
        gap: 0.75rem;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
        gap: 0.75rem;
        padding-inline: 0.5rem;
    }

    .site-nav a {
        font-size: 0.82rem;
    }
}

/* ===========================================================
   Hero
   =========================================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 6rem;
}

.hero-flame {
    position: absolute;
    top: -12%;
    right: -10%;
    width: min(60vw, 620px);
    opacity: 0.16;
    pointer-events: none;
    filter: blur(0.5px);
}

.hero-flame svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-inner {
    position: relative;
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(2.3rem, 4.4vw + 1rem, 3.8rem);
    letter-spacing: -0.02em;
    color: var(--text);
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s ease-out 0.1s forwards;
}

.hero-sub {
    font-size: 1.15rem;
    max-width: 46ch;
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s ease-out 0.28s forwards;
}

.btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    background: var(--flame-gradient);
    color: #17110d;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s ease-out 0.44s forwards;
    transition: filter 0.15s ease;
}

.btn:hover {
    filter: brightness(1.08);
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================================
   Sections (generic)
   =========================================================== */

.section {
    padding: 5rem 0;
    border-top: 1px solid var(--line);
}

.section h2 {
    font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem);
    color: var(--text);
}

/* Why we exist */

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.why-copy {
    max-width: 62ch;
}

@media (min-width: 800px) {
    .why-grid {
        grid-template-columns: 0.8fr 1.6fr;
        align-items: start;
        gap: 3rem;
    }
}

/* Products */

.products {
    background: var(--bg-panel);
}

.product-card {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 800px) {
    .product-card {
        grid-template-columns: 1fr 0.9fr;
    }
}

.product-status {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--flame-2);
    margin-bottom: 0.6rem;
}

.product-copy h3 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.7rem;
}

.product-copy p:not(.product-status) {
    max-width: 48ch;
}

.link-out {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--flame-2);
    color: var(--flame-1);
}

/* Piezza mock visual — uses Piezza's own product palette, not Firebringer's */

.mock-card {
    background: #12140f;
    border: 1px solid rgba(240, 128, 26, 0.18);
    border-radius: 22px;
    padding: 1.6rem;
}

.mock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.mock-amount {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text);
}

.mock-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-weight: 500;
}

.mock-pill--ok {
    background: rgba(59, 109, 17, 0.28);
    color: #9fde6c;
}
.mock-pill--warn {
    background: rgba(240, 128, 26, 0.22);
    color: var(--piezza-orange);
}

.mock-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(245, 239, 231, 0.08);
    overflow: hidden;
    margin-bottom: 1.1rem;
}

.mock-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--piezza-green),
        var(--piezza-orange)
    );
}

/* Approach */

.approach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 800px) {
    .approach-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.approach-item {
    padding-top: 1.1rem;
    border-top: 2px solid;
    border-image: var(--flame-gradient) 1;
}

.approach-item h3 {
    font-size: 1.05rem;
    color: var(--text);
}

.approach-item p {
    font-size: 0.95rem;
    max-width: 34ch;
}

/* ===========================================================
   Footer
   =========================================================== */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 3rem 0 2rem;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.footer-name {
    color: var(--text);
    font-weight: 600;
    margin: 0;
}
.footer-loc {
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.15s ease;
}
.footer-links a:hover {
    color: var(--flame-1);
}

.copyright {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}
