/* ══════════════════════════════════════════════════════════════
   STYLE.CSS — HELIXUM PUBLIC FRONTEND
   Order: Globals → Typography → Scrollbar → Animations →
   Hero layout → Components → Sections → Utilities
   ══════════════════════════════════════════════════════════════ */


/* ── GLOBALS ── */
body {
    font-family: 'Inter Tight', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}


/* ── TYPOGRAPHY — Heading sizes ──
   !important needed to override Tailwind CDN preflight reset
   which zeroes out font-size on all h1-h6 tags. */
h1 { font-size: 3.5rem !important; font-weight: 900 !important; line-height: 1.08 !important; letter-spacing: -0.025em !important; }
h2 { font-size: 2.5rem !important; font-weight: 800 !important; line-height: 1.15 !important; letter-spacing: -0.025em !important; }
h3 { font-size: 1.75rem !important; font-weight: 700 !important; line-height: 1.2 !important; }
h4 { font-size: 1.375rem !important; font-weight: 700 !important; line-height: 1.25 !important; }
h5 { font-size: 1.125rem !important; font-weight: 600 !important; line-height: 1.3 !important; }
h6 { font-size: 1rem !important; font-weight: 600 !important; line-height: 1.4 !important; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    h4 { font-size: 1.25rem !important; }
}


/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
/* ::-webkit-scrollbar-thumb { background: #c6f56f; border-radius: 3px; } */


/* ── ANIMATIONS — Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Nav link underline effect ── */
.nav-fx {
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 4px !important;
}

.nav-fx::before {
    content: "" !important;
    position: absolute !important;
    width: 100% !important;
    height: 2px !important;
    bottom: 0 !important;
    left: 0 !important;
    background: #0B0B0D !important;
    border-radius: 5px !important;
    transform: scaleX(0) !important;
    transform-origin: bottom right !important;
    transition: transform 0.35s ease-out !important;
}

.nav-fx:hover::before {
    transform: scaleX(1) !important;
    transform-origin: bottom left !important;
}

.nav-fx.on::before {
    transform: scaleX(1) !important;
    transform-origin: bottom left !important;
}

/* ── HERO — Background grid overlay ── */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.018) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}


/* ── HERO — Dashboard mockup ── */
.mockup-wrap { perspective: 1200px; }
.mockup-frame {
    background: #fff;
    border: 1px solid #E5E5E3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.03);
    transform: rotateX(3deg);
    transition: transform .5s;
}
.mockup-frame:hover { transform: rotateX(0); }
.mockup-titlebar {
    height: 36px;
    background: #F7F7F5;
    border-bottom: 1px solid #E5E5E3;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 6px;
}
.mockup-titlebar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}


/* ── COMPONENTS — Icon container ── */
.ico-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ico-wrap svg { width: 24px; height: 24px; stroke-width: 1.8; fill: none; }


/* ── COMPONENTS — Step circle and connector line ── */
.step-line {
    position: absolute;
    top: 28px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, #B8EF17, #7FAA10);
    z-index: 0;
}
.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0B0B0D;
    color: #B8EF17;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

/* ======= Mobile sidebar ======= */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(85vw, 380px);
    height: 100%;
    background: #fff;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-nav.open {
    transform: translateX(0);
}

/* ── CTA FINAL — Background glow effects ── */
.cta-glow-a, .cta-glow-b {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: .25;
}
.cta-glow-a { width: 400px; height: 400px; top: -100px; left: 10%; background: #B8EF17; }
.cta-glow-b { width: 300px; height: 300px; bottom: -80px; right: 10%; background: #7FAA10; }


/* ── UTILITIES — Hover lift effect ── */
.lift { transition: transform .25s, box-shadow .25s; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.06); }


/* ── UTILITIES — Hidden scrollbar for carousel ──
   Removes the native horizontal scrollbar while keeping
   scroll functionality via touch and auto-play. */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}