/* ==========================================================================
   Pedecafe — institutional site
   Dark performance / ad-tech aesthetic. System fonts, CSP-safe (no externals).
   ========================================================================== */

:root {
    --bg:        #0A0E0F;
    --bg-soft:   #0E1416;
    --surface:   #121A1C;
    --surface-2: #16201F;
    --border:    #243033;
    --border-2:  #2E3D3B;
    --text:      #EAF1F0;
    --muted:     #8DA0A2;
    --muted-2:   #6A7C7E;
    --accent:    #1EE08C;
    --accent-2:  #14B873;
    --accent-dim:#0F3A2C;
    --radius:    14px;
    --radius-sm: 9px;
    --maxw:      1140px;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

/* ----------------------------------------------------------------- header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 15, 0.82);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 18px;
}
.brand .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-dim), 0 0 14px var(--accent);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link {
    font-size: 14.5px;
    color: var(--muted);
    transition: color 0.18s;
}
.nav-links a.link:hover { color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, background 0.18s, border-color 0.18s, color 0.18s;
}
.btn-primary {
    background: var(--accent);
    color: #05140D;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    border-color: var(--border-2);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ------------------------------------------------------------------- hero */
.hero {
    position: relative;
    padding: 104px 0 88px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(closest-side, rgba(30,224,140,0.16), rgba(30,224,140,0) 72%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(closest-side at 50% 30%, #000 30%, transparent 78%);
    mask-image: radial-gradient(closest-side at 50% 30%, #000 30%, transparent 78%);
    opacity: 0.35;
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.05rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 800;
    max-width: 16ch;
}
.hero h1 .em { color: var(--accent); }
.hero .lede {
    margin-top: 26px;
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    color: var(--muted);
    max-width: 60ch;
}
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------- stats bar */
.stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat {
    padding: 30px 24px;
    border-left: 1px solid var(--border);
    text-align: center;
}
.stat:first-child { border-left: none; }
.stat .num {
    font-family: var(--mono);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}
.stat .num .u { color: var(--accent); }
.stat .lbl {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted-2);
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------- sections */
section.block { padding: 96px 0; }
.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
    line-height: 1.12;
    font-weight: 800;
}
.section-head p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.06rem;
}

/* two arms */
.arms { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.arm {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px 38px;
    transition: border-color 0.2s, transform 0.2s;
}
.arm:hover { border-color: var(--border-2); transform: translateY(-2px); }
.arm .tag {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.arm h3 {
    margin: 14px 0 12px;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}
.arm p { color: var(--muted); font-size: 1rem; }
.arm ul { list-style: none; margin-top: 20px; display: grid; gap: 11px; }
.arm li {
    position: relative;
    padding-left: 26px;
    font-size: 0.97rem;
    color: var(--text);
}
.arm li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-dim);
}
.arm .badge {
    display: inline-block;
    margin-top: 22px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    background: rgba(30,224,140,0.06);
    padding: 5px 11px;
    border-radius: 100px;
}

/* approach pillars */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pillar {
    display: flex;
    gap: 18px;
    padding: 28px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}
.pillar:hover { border-color: var(--border-2); }
.pillar .idx {
    flex: 0 0 auto;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(30,224,140,0.05);
}
.pillar h4 { font-size: 1.12rem; letter-spacing: -0.01em; }
.pillar p { margin-top: 7px; color: var(--muted); font-size: 0.95rem; }

/* tagger spotlight */
.spotlight { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spotlight-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.spotlight h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.12; }
.spotlight p { margin-top: 16px; color: var(--muted); }
.flow {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.flow-step { display: flex; align-items: center; gap: 16px; }
.flow-step .k {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    border-radius: 7px;
    padding: 7px 10px;
    min-width: 92px;
    text-align: center;
    background: rgba(30,224,140,0.05);
}
.flow-step .v { color: var(--text); font-size: 0.97rem; }
.flow-arrow { color: var(--muted-2); font-family: var(--mono); padding-left: 38px; line-height: 0.6; }

/* contact / CTA */
.cta {
    text-align: center;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 760px;
    height: 500px;
    background: radial-gradient(closest-side, rgba(30,224,140,0.14), transparent 72%);
    pointer-events: none;
}
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.025em; font-weight: 800; }
.cta p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.cta .mail {
    margin-top: 34px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 1.05rem;
}

/* footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}
.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--muted-2);
    font-size: 14px;
}
.foot a:hover { color: var(--accent); }
.foot .foot-links { display: flex; gap: 24px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 860px) {
    .arms, .pillars, .spotlight-inner { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: none; }
    .stat:nth-child(odd) { border-left: none; }
    .stat:nth-child(even) { border-left: 1px solid var(--border); }
    .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--border); }
}

@media (max-width: 680px) {
    body { font-size: 16px; }
    .nav-links .link { display: none; }
    section.block { padding: 68px 0; }
    .hero { padding: 72px 0 60px; }
    .cta { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
