/*
  Incepta Edgeworks — Client Onboarding Stylesheet
  Master design system + onboarding-specific styles
*/

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Manrope:wght@200;300;400;600;800&display=swap');

/* ---------- ROOT VARIABLES ---------- */
:root {
    --obsidian: #030303;
    --electric: #3b82f6;
    --cyan: #06b6d4;
}

/* ---------- BASE ---------- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--obsidian);
    color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, .heading-font {
    font-family: 'Manrope', sans-serif;
}

/* ---------- SPA PAGE HANDLING ---------- */
.page-view {
    display: none;
    opacity: 0;
}
.page-view.active {
    display: block;
    animation: customFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes customFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------- AMBIENT GLOW EFFECTS ---------- */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: pulse-glow 10s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.1; }
    100% { transform: scale(1.1) translate(2%, 2%); opacity: 0.2; }
}

/* ---------- GLASS & PANELS ---------- */
.system-panel {
    background: rgba(23, 23, 23, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.system-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.bento-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}
.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.1);
}

/* ---------- TECH GRID BACKGROUND ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, transparent, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 80%, transparent);
    z-index: 0;
    pointer-events: none;
}

/* ---------- TYPOGRAPHY GRADIENTS ---------- */
.text-gradient {
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-blue {
    background: linear-gradient(to right, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }

/* ---------- CUSTOM SCROLLBAR ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ---------- ACCORDION ---------- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}
.accordion-item.active .accordion-content {
    opacity: 1;
}
.accordion-item.active .chevron {
    transform: rotate(180deg);
}

/* ---------- SCROLL PROGRESS BAR ---------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    z-index: 9999;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
    pointer-events: none;
}

/* ---------- GRAIN TEXTURE OVERLAY ---------- */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* ---------- CUSTOM CURSOR ---------- */
@media (hover: hover) {
    body { cursor: none; }
}
#cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: opacity 0.2s ease;
}
#cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16,1,0.3,1), height 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, background 0.3s ease, opacity 0.2s ease;
}
#cursor-ring.cursor-hover {
    width: 64px;
    height: 64px;
    border-color: rgba(59, 130, 246, 0.7);
    background: rgba(59, 130, 246, 0.06);
}
@media (hover: none) {
    #cursor-dot, #cursor-ring { display: none; }
    body { cursor: auto; }
}

/* ---------- PRELOADER ---------- */
#preloader {
    position: fixed;
    inset: 0;
    background: #030303;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-logo {
    opacity: 0;
    transform: translateY(10px);
    animation: preloader-reveal 0.7s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
@keyframes preloader-reveal {
    to { opacity: 1; transform: translateY(0); }
}
.preloader-bar {
    width: 80px;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin-top: 28px;
    position: relative;
    overflow: hidden;
}
.preloader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    animation: preloader-line 1s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
@keyframes preloader-line {
    to { left: 0; }
}

/* ---------- MOBILE FULL-SCREEN MENU ---------- */
#mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(3,3,3,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-link {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    color: rgba(255,255,255,0.3);
    letter-spacing: -0.02em;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.2rem 0;
    text-align: center;
}
.mobile-nav-link:hover { color: #ffffff; }
.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.mobile-menu-close:hover { border-color: rgba(255,255,255,0.3); }
#hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
#hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- STATS COUNTERS ---------- */
.stat-number {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- MARQUEE TICKER ---------- */
.marquee-wrapper {
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
    will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 44px;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
.marquee-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3b82f6;
    flex-shrink: 0;
    box-shadow: 0 0 6px #3b82f6;
}

/* ---------- CARD SPOTLIGHT EFFECT ---------- */
.spotlight-card {
    position: relative;
}
.spotlight-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59,130,246,0.08), transparent 65%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}
.spotlight-card:hover::after { opacity: 1; }

/* ---------- SHIMMER BUTTONS ---------- */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-15deg);
    animation: shimmer-sweep 4s ease infinite;
    pointer-events: none;
}
@keyframes shimmer-sweep {
    0% { left: -100%; }
    35% { left: 135%; }
    100% { left: 135%; }
}

/* ---------- GRADIENT BORDER BUTTONS ---------- */
.btn-gradient-border {
    display: inline-block;
    padding: 1.5px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(59,130,246,0.6), rgba(6,182,212,0.6), rgba(59,130,246,0.6));
    background-size: 200% 200%;
    animation: gradient-border-spin 5s linear infinite;
    cursor: pointer;
    margin-top: 40px;
}
.btn-gradient-border > span {
    display: block;
    background: #030303;
    border-radius: 3px;
    padding: 10px 30px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}
.btn-gradient-border:hover > span {
    background: rgba(20,20,30,0.6);
    color: #fff;
}
@keyframes gradient-border-spin {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -12px;
    left: 20px;
    font-size: 5rem;
    line-height: 1;
    color: rgba(59,130,246,0.12);
    font-family: Georgia, serif;
    pointer-events: none;
}
.star { color: #f59e0b; }

/* ---------- EDITORIAL SECTION NUMBERS ---------- */
.section-number {
    font-family: 'Manrope', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.section-number::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.12);
}

/* ---------- BADGE SHIMMER ---------- */
.badge-shimmer {
    position: relative;
    overflow: hidden;
}
.badge-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-15deg);
    animation: badge-shimmer-anim 2.8s ease infinite;
    border-radius: inherit;
    pointer-events: none;
}
@keyframes badge-shimmer-anim {
    0% { left: -150%; }
    45% { left: 150%; }
    100% { left: 150%; }
}

/* ---------- TYPEWRITER CURSOR ---------- */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.8em;
    background: #3b82f6;
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---------- PREMIUM FOOTER ---------- */
.footer-nav-heading {
    font-family: 'Manrope', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    margin-bottom: 16px;
}
.footer-nav-link {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: color 0.2s ease;
    margin-bottom: 10px;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
}
.footer-nav-link:hover { color: #ffffff; }
.social-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.social-icon-btn:hover {
    border-color: rgba(255,255,255,0.3);
    color: #ffffff;
}

/* ---------- ONBOARDING OVERRIDES ---------- */
@media (hover: hover) {
    body { cursor: auto; }
}

/* ---------- ONBOARDING LAYOUT ---------- */
.onboarding-section {
    position: relative;
    z-index: 2;
}

/* ---------- DOCUMENT DOWNLOAD LINKS ---------- */
.doc-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
}
.doc-link:hover {
    background: rgba(59, 130, 246, 0.04);
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}
.doc-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- PLACEHOLDER SECTIONS ---------- */
.placeholder-section {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.placeholder-section .placeholder-note {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.12);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 24px;
}

/* ---------- ONBOARDING FOOTER ---------- */
.onboarding-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}
