/* ═══════════════════════════════════════════════════════════════
   KAPTECH — Shared Stylesheet
   Brand: Red #FF0009 · Black #000000 · White #FFFFFF · Steel #8c8c8c
   ═══════════════════════════════════════════════════════════════ */

:root {
    --red:        #FF0009;
    --red-dark:   #cc0007;
    --black:      #000000;
    --white:      #ffffff;
    --steel:      #8c8c8c;
    --bg-dark:    #0d0d0d;
    --bg-dark2:   #141414;
    --bg-dark3:   #1a1a1a;
    --bg-light:   #f7f7f7;
    --border-dark:#232323;
    --text-muted: #777777;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ── UTILITIES ─────────────────────────────────────────────── */
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--red); font-size: .72rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 900; line-height: 1.15; margin-bottom: 14px;
}
.section-title span { color: var(--red); }
.divider { width: 48px; height: 3px; background: var(--red); margin: 14px 0; }
.divider.center { margin-left: auto; margin-right: auto; }
.section-lead { font-size: .97rem; color: var(--text-muted); line-height: 1.8; max-width: 560px; }

.btn-primary-red {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--red); color: var(--white); text-decoration: none;
    padding: 13px 30px; font-weight: 700; font-size: .85rem;
    letter-spacing: .8px; text-transform: uppercase; border-radius: 3px;
    border: none; cursor: pointer;
    transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-primary-red:hover {
    background: var(--red-dark); color: var(--white);
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,0,9,.35);
}
.btn-ghost {
    display: inline-flex; align-items: center; gap: 9px;
    background: transparent; color: var(--white); text-decoration: none;
    padding: 11px 30px; font-weight: 600; font-size: .85rem;
    letter-spacing: .8px; text-transform: uppercase; border-radius: 3px;
    border: 2px solid rgba(255,255,255,.35); transition: all .25s;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); background: rgba(255,0,9,.07); }
.btn-dark {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--black); color: var(--white); text-decoration: none;
    padding: 13px 30px; font-weight: 700; font-size: .85rem;
    letter-spacing: .8px; text-transform: uppercase; border-radius: 3px;
    border: none; cursor: pointer; transition: all .25s;
}
.btn-dark:hover { background: #1a1a1a; color: var(--white); transform: translateY(-2px); }

/* ── REVEAL ────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── NAVBAR ────────────────────────────────────────────────── */
#navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(0,0,0,.97); backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--red);
    transition: padding .3s, box-shadow .3s;
    padding: 11px 0;
}
#navbar.scrolled { padding: 6px 0; box-shadow: 0 4px 24px rgba(255,0,9,.2); }
.nav-brand { text-decoration: none; line-height: 1; display: inline-block; }
.brand-kap  { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; color: var(--red); letter-spacing: 2px; }
.brand-tech { font-family: 'Bebas Neue', sans-serif; font-size: 1.9rem; color: var(--steel); letter-spacing: 3px; }
.brand-sub  { display: block; font-size: .44rem; color: #555; letter-spacing: 1.5px; text-transform: uppercase; margin-top: -2px; }
.nav-link {
    color: #b0b0b0 !important; font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .8px; padding: 8px 13px !important;
    position: relative; transition: color .25s;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--red); transition: width .3s;
}
.nav-link:hover, .nav-link.active-page { color: var(--white) !important; }
.nav-link:hover::after, .nav-link.active-page::after { width: 70%; }
.nav-cta {
    color: var(--white) !important; border: 1px solid var(--red);
    padding: 7px 16px !important; border-radius: 3px; font-weight: 700; font-size: .8rem;
    transition: background .25s;
}
.nav-cta:hover { background: var(--red) !important; }
.nav-cta::after { display: none; }
.nav-toggler {
    background: transparent; border: 1px solid var(--red);
    padding: 5px 9px; cursor: pointer; border-radius: 3px;
}
.nav-toggler span { display: block; width: 20px; height: 2px; background: var(--red); margin: 4px 0; transition: all .3s; }
#mobileMenu { display: none; padding: 16px 0 8px; border-top: 1px solid var(--border-dark); margin-top: 10px; }
#mobileMenu.open { display: block; }
#mobileMenu .nav-link { display: block; padding: 10px 0 !important; }

/* ── PAGE HERO BANNER ──────────────────────────────────────── */
.page-hero {
    padding: 150px 0 80px;
    background:
        linear-gradient(135deg, rgba(0,0,0,.92) 0%, rgba(20,0,0,.85) 100%),
        url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?w=1920&q=80') center/cover no-repeat;
    position: relative;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--red); font-size: .7rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(2.2rem,4vw,3.8rem); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 14px; }
.page-hero h1 span { color: var(--red); }
.page-hero p { color: #aaa; font-size: 1rem; line-height: 1.75; max-width: 580px; }
.breadcrumb-bar { margin-top: 28px; display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #666; }
.breadcrumb-bar a { color: #888; text-decoration: none; transition: color .25s; }
.breadcrumb-bar a:hover { color: var(--red); }
.breadcrumb-bar i { font-size: .55rem; color: #444; }

/* ── PRODUCT CARDS ─────────────────────────────────────────── */
.pcard {
    background: var(--white); border: 1px solid #eee; border-radius: 6px;
    padding: 26px 22px; height: 100%; position: relative; overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pcard::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 0; background: var(--red); transition: height .35s;
}
.pcard:hover { transform: translateY(-7px); box-shadow: 0 18px 44px rgba(0,0,0,.09); border-color: rgba(255,0,9,.15); }
.pcard:hover::before { height: 100%; }
.pcard-num { position: absolute; top: 14px; right: 14px; font-size: 2.8rem; font-weight: 900; color: rgba(0,0,0,.04); line-height: 1; }
.pcard-icon {
    width: 52px; height: 52px; background: rgba(255,0,9,.07); border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; color: var(--red); margin-bottom: 16px; transition: all .3s;
}
.pcard:hover .pcard-icon { background: var(--red); color: var(--white); }
.pcard h5 { font-size: .92rem; font-weight: 700; margin-bottom: 8px; }
.pcard p  { font-size: .81rem; color: #999; margin: 0; line-height: 1.55; }

/* ── FOOTER ────────────────────────────────────────────────── */
#footer { background: #060606; border-top: 2px solid var(--red); padding: 72px 0 0; }
.foot-brand-kap  { font-family: 'Bebas Neue', sans-serif; font-size: 2.1rem; color: var(--red); letter-spacing: 2px; }
.foot-brand-tech { font-family: 'Bebas Neue', sans-serif; font-size: 2.1rem; color: var(--steel); letter-spacing: 3px; }
.foot-desc { font-size: .83rem; color: #555; line-height: 1.85; margin-top: 14px; max-width: 260px; }
.foot-head {
    color: var(--white); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-dark); position: relative;
}
.foot-head::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 28px; height: 1px; background: var(--red); }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: 9px; }
.foot-links a {
    color: #555; text-decoration: none; font-size: .83rem;
    display: inline-flex; align-items: center; gap: 6px; transition: color .25s, padding-left .25s;
}
.foot-links a i { font-size: .6rem; color: var(--red); opacity: 0; transition: opacity .25s; }
.foot-links a:hover { color: var(--white); padding-left: 5px; }
.foot-links a:hover i { opacity: 1; }
.foot-ci { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; font-size: .83rem; color: #555; }
.foot-ci i { color: var(--red); margin-top: 2px; flex-shrink: 0; font-size: .88rem; }
.foot-social { display: flex; gap: 8px; margin-top: 18px; }
.fsoc {
    width: 34px; height: 34px; background: var(--bg-dark3); border: 1px solid var(--border-dark);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    color: #555; font-size: .85rem; text-decoration: none; transition: all .25s;
}
.fsoc:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.foot-wa-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: #fff; padding: 10px 20px; border-radius: 4px;
    text-decoration: none; font-size: .82rem; font-weight: 700; margin-top: 12px;
    transition: background .25s;
}
.foot-wa-btn:hover { background: #20ba58; color: #fff; }
.foot-bottom {
    margin-top: 52px; padding: 18px 0; border-top: 1px solid var(--border-dark);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.foot-bottom p { font-size: .78rem; color: #3a3a3a; margin: 0; }
.foot-bottom span { color: var(--red); }

/* ── WHATSAPP FLOAT ────────────────────────────────────────── */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 9999; }
.wa-btn {
    width: 58px; height: 58px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.55rem; color: var(--white); text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,.5);
    animation: waPulse 2.2s infinite; transition: transform .25s;
}
.wa-btn:hover { transform: scale(1.1); color: var(--white); }
.wa-tip {
    position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
    background: var(--black); color: var(--white); padding: 7px 14px; border-radius: 4px;
    font-size: .78rem; font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.wa-tip::after {
    content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent; border-right: none; border-left-color: var(--black);
}
.wa-float:hover .wa-tip { opacity: 1; }
@keyframes waPulse {
    0%  { box-shadow: 0 0 0 0   rgba(37,211,102,.6); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100%{ box-shadow: 0 0 0 0   rgba(37,211,102,0); }
}

/* ── BACK TO TOP ───────────────────────────────────────────── */
#btt {
    position: fixed; bottom: 98px; right: 28px; z-index: 9999;
    width: 42px; height: 42px; background: var(--red); color: var(--white);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    font-size: .95rem; text-decoration: none;
    opacity: 0; transform: translateY(18px); pointer-events: none;
    transition: opacity .3s, transform .3s, background .25s;
}
#btt.vis { opacity: 1; transform: translateY(0); pointer-events: all; }
#btt:hover { background: var(--red-dark); color: var(--white); }

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .wa-float { right: 18px; bottom: 18px; }
    #btt { right: 18px; bottom: 88px; }
    .foot-bottom { flex-direction: column; text-align: center; }
    .hstat { padding: 0 12px; }
}
@media (max-width: 480px) {
    .page-hero { padding-top: 120px; }
}
