/* FOBA Partner Portal – style.css */
/* Updated: März 2026 – v3.0 FINAL */

/* ─── RESET & ROOT ──────────────────────────────────────────────── */
:root {
    --black:         #0A0A0A;
    --black2:        #111111;
    --black3:        #181818;
    --black4:        #222222;
    --orange:        #FF5500;
    --orange2:       #FF7733;
    --orange-dim:    rgba(255,85,0,0.08);
    --orange-border: rgba(255,85,0,0.25);
    --white:         #F5F2EE;
    --white2:        #C8C4BE;
    --gray:          #6B6868;
    --glow:          0 0 40px rgba(255,85,0,0.25);
}

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

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Cabinet Grotesk', sans-serif;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--orange); }

/* ─── NAV ───────────────────────────────────────────────────────── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 68px;
    display: flex; align-items: center;
    padding: 0 64px;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,85,0,0.12);
}
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 6px; }
.nav-logo .o { color: var(--orange); }
.nav-pill {
    margin-left: 16px;
    background: var(--orange);
    color: white;
    font-size: 9px; letter-spacing: 2px; font-weight: 700;
    padding: 4px 10px;
}
.nav-links { margin-left: auto; display: flex; gap: 36px; align-items: center; }
.nav-links a { color: var(--gray); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: white; }
.nav-cta {
    background: var(--orange); color: white;
    font-size: 13px; font-weight: 700; padding: 10px 24px;
    border: none; cursor: pointer; transition: all 0.2s;
    font-family: 'Cabinet Grotesk', sans-serif;
}
.nav-cta:hover { background: var(--orange2); transform: translateY(-1px); }

/* ─── HERO ──────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    padding: 68px 64px 0;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255,85,0,0.07) 0%, transparent 70%);
}

/* ── ANIMATED GRID OVERLAY ─────────────────────────────────────── */
.hero-grid {
    position: absolute; inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,85,0,0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,85,0,0.6) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.045;
}

.hero-grid::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(255,85,0,0.07) 50%,
        transparent 60%,
        transparent 100%
    );
    background-size: 100% 300%;
    animation: gridScan 9s linear infinite;
}

@keyframes gridScan {
    0%   { background-position: 0 -100%; }
    100% { background-position: 0  200%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 80px; right: 0;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,85,0,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 10; max-width: 920px; padding: 60px 0; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--orange-dim); border: 1px solid var(--orange-border);
    padding: 8px 18px; margin-bottom: 32px;
    font-size: 11px; letter-spacing: 3px; color: var(--orange);
    font-family: 'DM Mono', monospace;
}
.eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--orange); box-shadow: 0 0 8px var(--orange);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(58px, 8vw, 112px);
    line-height: 0.92;
    letter-spacing: 1.2px;
    margin-bottom: 28px;
}
.hero-sub {
    font-size: 19px;
    color: var(--white2);
    line-height: 1.75;
    max-width: 740px;
    margin-bottom: 52px;
}
.hero-sub strong { color: var(--white); }

.btn-primary {
    background: var(--orange); color: white;
    padding: 19px 46px;
    font-size: 15.5px; font-weight: 800;
    border: none; cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cabinet Grotesk', sans-serif;
}
.btn-primary:hover { background: var(--orange2); transform: translateY(-4px); box-shadow: var(--glow); }

.btn-secondary {
    background: transparent; color: white;
    padding: 19px 46px;
    font-size: 15.5px; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer; transition: all 0.2s;
    font-family: 'Cabinet Grotesk', sans-serif;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

/* ─── COMPARE TABLE ─────────────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
    padding: 20px 28px; text-align: left;
    font-size: 12px; letter-spacing: 2px; font-weight: 700;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}
.compare-table th:first-child  { color: var(--gray); }
.compare-table th:nth-child(2) { background: var(--black3); color: var(--gray); border-left: 1px solid rgba(255,255,255,0.06); }
.compare-table th:nth-child(3) { background: rgba(255,85,0,0.06); color: var(--orange); border-left: 1px solid var(--orange-border); border-top: 2px solid var(--orange); }
.compare-table td {
    padding: 18px 28px; font-size: 14px; font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle;
}
.compare-table td:first-child  { color: var(--white2); font-weight: 600; font-size: 13px; letter-spacing: 0.5px; }
.compare-table td:nth-child(2) { background: var(--black3); color: var(--gray); border-left: 1px solid rgba(255,255,255,0.04); }
.compare-table td:nth-child(3) { background: rgba(255,85,0,0.04); color: var(--white); border-left: 1px solid rgba(255,85,0,0.1); font-weight: 700; }

/* ─── STICKY CALCULATOR ─────────────────────────────────────────── */
#calculator .calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 2px;
    border: 1px solid rgba(255,85,0,0.2);
    align-items: start;
}
#calculator .calc-sticky {
    position: sticky;
    top: 88px;
}
@media (max-width: 1023px) {
    #calculator .calc-sticky { position: static; }
}

/* ─── SUCCESS STATE ─────────────────────────────────────────────── */
#successState .priority-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 18px 40px;
    background: var(--orange);
    color: white;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
#successState .priority-cta:hover {
    background: var(--orange2);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}
#successState .standard-msg {
    display: inline-block;
    margin-top: 24px;
    padding: 16px 28px;
    border: 1px solid rgba(255,85,0,0.2);
    color: var(--white2);
    font-size: 14px;
    line-height: 1.65;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 900px) {
    nav { padding: 0 24px; }
    .nav-links { display: none; }
    .hero { padding: 68px 24px 0; }
    section, footer { padding-left: 24px !important; padding-right: 24px !important; }
}

/* ─── MOBILE GRID PERFORMANCE FIX ──────────────────────────── */
/* Patch: März 2026 – GPU-Layer + Accessibility + Mobile        */
.hero-grid {
    transform: translateZ(0);
    will-change: background-position;
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .hero-grid::after { animation: none; }
    .eyebrow-dot      { animation: none; }
}

@media (max-width: 600px) {
    .hero-grid { display: none; }
}
