/* ==========================================================================
   BASE — Reset, typography, global elements
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--fb-text-primary);
    background: var(--fb-cream);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

::selection {
    background: var(--fb-honey);
    color: var(--fb-plum-deep);
}

/* ---- Typography ---- */

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-optical-sizing: auto;
    letter-spacing: -0.01em;
    line-height: 1.12;
    color: var(--fb-plum);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--fs-caption);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fb-honey-deep);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-weight: 700;
}

.eyebrow::before {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--fb-honey);
    clip-path: var(--hex-clip);
    display: inline-block;
    flex-shrink: 0;
}

.eyebrow--light {
    color: var(--fb-honey-bright);
}

.lead {
    font-size: var(--fs-lead);
    color: var(--fb-text-muted);
    font-weight: 400;
    line-height: 1.6;
}

.text-mono {
    font-family: var(--font-mono);
}

/* ---- Layout utilities ---- */

.container-fb {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
    padding-block: var(--space-3xl);
    position: relative;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .section {
        padding-block: var(--space-2xl);
    }
}

.section-head {
    max-width: 680px;
    margin-bottom: var(--space-xl);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    margin-top: var(--space-sm);
}

/* ---- Buttons ---- */

.btn-fb {
    font-family: var(--font-mono);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.95rem 1.9rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
    white-space: nowrap;
    overflow: visible;
}

.btn-fb svg.arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--dur-fast) var(--ease-out);
}

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

.btn-fb:hover svg.arrow {
    transform: translateX(3px);
}

.btn-fb:active {
    transform: translateY(0);
}

/* signature micro-interaction: a small bee glyph flies in above the
   primary CTA on hover, then settles */
.btn-fb .btn-bee {
    position: absolute;
    top: -6px;
    right: 14%;
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: translate(14px, 8px) rotate(18deg) scale(0.6);
    transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
    pointer-events: none;
}

.btn-fb:hover .btn-bee {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
}

.btn-honey {
    background: linear-gradient(135deg, var(--fb-honey-bright), var(--fb-honey-deep));
    color: var(--fb-plum-deep);
    box-shadow: var(--shadow-honey);
}

.btn-honey:hover {
    box-shadow: 0 20px 44px rgba(240, 164, 0, 0.42);
}

.btn-dark {
    background: var(--fb-plum-deep);
    color: var(--fb-cream);
}

.btn-dark:hover {
    background: #150c17;
}

.btn-outline-light {
    background: transparent;
    color: var(--fb-cream);
    border: 1.5px solid var(--fb-border-dark);
}

.btn-outline-light:hover {
    background: rgba(255, 249, 236, 0.08);
    border-color: rgba(255, 249, 236, 0.32);
}

.btn-outline-dark {
    background: transparent;
    color: var(--fb-plum);
    border: 1.5px solid var(--fb-border);
}

.btn-outline-dark:hover {
    background: var(--fb-plum);
    color: var(--fb-cream);
    border-color: var(--fb-plum);
}

.btn-block-mobile {
    width: 100%;
    justify-content: center;
}

/* ---- Hex badge — the repeated icon-holder shape used across the page ---- */

.hex-badge {
    clip-path: var(--hex-clip);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- Honeycomb section divider — replaces a plain straight edge ---- */

.comb-divider {
    position: relative;
    height: 46px;
    overflow: hidden;
    z-index: 2;
}

.comb-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 600px) {
    .comb-divider {
        height: 30px;
    }
}

/* ---- Reveal on scroll ---- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-stagger > * {
    transition-delay: calc(var(--i, 0) * 90ms);
}

/* ---- Focus visibility (accessibility) ---- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2.5px solid var(--fb-honey);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Scrollbar accent (progressive enhancement) ---- */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--fb-cream-dim);
}

::-webkit-scrollbar-thumb {
    background: var(--fb-honey);
    border-radius: 10px;
}
