:root {
  --font-family: 'Inter', sans-serif;
  --bg-dark-1: #09090b;
  --bg-dark-2: #18181b;
  --purple-gradient: linear-gradient(135deg, #d8b4fe, #e9d5ff, #c084fc);
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: var(--font-family);
  overflow-x: hidden;
  position: relative;
  transition: background 0.8s ease, color 0.5s ease;
  min-height: 100vh;
}

body.body-light {
  background: #f8fafc; /* Crisp clean light theme */
  color: #0f172a;
}
body.body-dark {
  background: radial-gradient(circle at center, var(--bg-dark-2) 0%, var(--bg-dark-1) 100%);
  color: #f8fafc;
}

/* Base Glass Cursor */
.glass-cursor-reveal {
  position: fixed; top: 0; left: 0; width: 120px; height: 120px;
  border-radius: 50%; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  backdrop-filter: brightness(1.3) blur(6px); -webkit-backdrop-filter: brightness(1.3) blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); opacity: 0;
}
.glass-cursor-reveal.active { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%;}
.text-center { text-align: center; }
.tracking-tight { letter-spacing: -0.05em; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-thin { font-weight: 300; }
.flex { display: flex; align-items: center; }
.m-0 { margin: 0 !important; }

.gradient-text-purple {
  background: var(--purple-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; display: inline-block;
}

.huge-title { font-size: 6rem; line-height: 1.1; margin-bottom: 2rem; }
.huge-text { font-size: 3.5rem; line-height: 1.2; }
.bold-title-3d { font-weight: 800; font-size: 4rem; text-shadow: 0 20px 30px rgba(0,0,0,0.5); letter-spacing: 0.1em; color: rgba(255,255,255,0.9); }

.section {
  position: relative; min-height: 100vh; padding: 6rem 0;
  display: flex; flex-direction: column; justify-content: center;
  z-index: 10; background: transparent; 
}

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; padding: 2rem 4rem;
  display: flex; justify-content: space-between; align-items: center; z-index: 100; transition: all 0.3s ease;
}
.navbar .logo { font-size: 1.5rem; font-weight: 700; color: inherit; }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { text-decoration: none; font-size: 0.95rem; color: inherit; font-weight: 600; transition: opacity 0.2s, color 0.3s; }
.nav-links a:hover, .nav-links a.active-link { color: #d946ef !important; font-weight: 800;}

.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: rgba(30,30,40, 0.9); backdrop-filter: blur(10px); padding: 0.5rem 0;
  border-radius: 8px; min-width: 150px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.dropdown:hover .dropdown-menu { display: flex; flex-direction: column; }
.dropdown-menu a { padding: 0.5rem 1rem; color: #fff !important; font-size: 0.85rem; font-weight: 400; }
.dropdown-menu a:hover { background: rgba(255,255,255,0.1); }
.btn-app { background: #fff; color: #000 !important; cursor: pointer; padding: 0.6rem 1.5rem; border-radius: 20px; font-weight: 600 !important; border: 1px solid #ccc; }

.btn { padding: 0.8rem 2rem; border-radius: 12px; border: none; font-size: 1rem; cursor: pointer; transition: transform 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: #0f172a; color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-glass { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(0,0,0,0.1); color: #0f172a; backdrop-filter: blur(10px); font-weight: 600;}
.btn-white { background: #fff; color: #000; border-radius: 24px; padding: 1rem 2.5rem; font-weight: 600; }
.body-dark .btn-glass { border: 1px solid rgba(255,255,255,0.3); color: #fff; }

/* Hero Section */
.hero { min-height: 100vh; justify-content: center; align-items: center; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 10; max-width: 800px; }
#hero-typewriter { font-size: 5rem; font-weight: 600; line-height: 1.1; margin-bottom: 3rem; min-height: 140px; letter-spacing: -0.02em; }
.typewriter-cursor { display: inline-block; width: 4px; height: 1em; background: linear-gradient(180deg, #3b82f6, #d946ef); animation: blink 1s step-end infinite; vertical-align: text-bottom; margin-left: 5px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* About Section & SVG Animations */
.who-we-are { z-index: 10; }
.glass-canvas { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 3rem; gap: 4rem;}
.card { display: flex; align-items: center; gap: 3rem; }
.glass-card {
  background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 32px; padding: 3rem; 
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  color: #fff; max-width: 750px; position: relative; overflow: hidden;
}

/* Card-Based Intersection Animations */
.card-scale-anim {
    opacity: 0; transform: scale(1.1) translateY(50px); filter: blur(10px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease-out;
}
.card-scale-anim.scrolled { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }

.card-left { align-self: flex-start; left: -40px; }
.card-right { align-self: flex-end; right: -40px; }
.card-center { align-self: center; flex-direction: column !important; text-align: center; }
.floating-illustration { width: 140px; height: 140px; flex-shrink: 0; }

.neon-svg-wrapper svg { width: 100%; height: 100%; filter: drop-shadow(0 0 15px rgba(217, 70, 239, 0.3)); }
.spin-slow { transform-origin: center; animation: spin 20s linear infinite; }
.spin-slow-reverse { transform-origin: center; animation: spinRev 25s linear infinite; }
.spin-fast { transform-origin: center; animation: spin 8s linear infinite; }
.pulse { animation: neonPulse 3s ease-in-out infinite alternate; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spinRev { 100% { transform: rotate(-360deg); } }
@keyframes neonPulse { 0% { opacity: 0.5; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1.1); } }

.card-text h3 { font-size: 1.8rem; margin-bottom: 0.8rem; font-weight: 600; letter-spacing: -0.01em;}
.card-text p { font-size: 1.05rem; line-height: 1.6; color: #cbd5e1; }

/* Clean Minimalist SaaS ROI Section */
.roi-container { max-width: 900px; display: flex; flex-direction: column; align-items: center; }

/* Interactive Hide Header */
.roi-interactive-block { position: relative; cursor: none; display: inline-block; }
.roi-hidden-base { color: transparent; user-select: none; font-size: 3.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.masked-reveal-layer {
  position: absolute; top: 0; left: 0; width: 100%;
  clip-path: circle(0px at calc(var(--x) * 1px) calc(var(--y) * 1px));
  transition: clip-path 0.3s cubic-bezier(0.2, 1, 0.2, 1); pointer-events: none; 
  font-size: 3.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  will-change: clip-path; /* Hardware acceleration */
}
.masked-reveal-layer.fast-tracking { transition: clip-path 0s !important; }
.roi-interactive-block:hover .masked-reveal-layer { clip-path: circle(120px at calc(var(--x) * 1px) calc(var(--y) * 1px)); }

.saas-roi-split {
    display: flex; gap: 2rem; width: 100%; margin-top: 2rem;
    align-items: stretch;
}
.frosted-pane {
    flex: 1.2; background: rgba(255,255,255,0.7); backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0; border-radius: 24px; padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); display: flex; flex-direction: column; gap: 2.5rem;
}
.frosted-pane-inverted {
    flex: 0.8; background: #0f172a; border-radius: 24px; padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); display: flex; flex-direction: column; justify-content: center; gap: 2rem; color: #fff;
}

.saas-input-group { display: flex; flex-direction: column; gap: 0.8rem; }
.input-top { display: flex; justify-content: space-between; align-items: center; }
.input-top label { font-size: 0.95rem; font-weight: 600; color: #475569; }
.val-pill { background: #f1f5f9; padding: 0.4rem 1rem; border-radius: 12px; font-weight: 700; color: #0f172a; font-size: 0.95rem;}

input[type=range].saas-slider {
    appearance: none; -webkit-appearance: none; width: 100%; height: 8px;
    background: #e2e8f0; border-radius: 4px; outline: none; transition: 0.2s;
}
input[type=range].saas-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
    background: #fff; cursor: pointer; border: 2px solid currentColor; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: -8px; transition: transform 0.1s;
}
input[type=range].saas-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.saas-slider.blue::-webkit-slider-runnable-track { background: linear-gradient(90deg, #3b82f6 var(--percent, 50%), #e2e8f0 var(--percent, 50%)); color: #3b82f6;}
.saas-slider.pink::-webkit-slider-runnable-track { background: linear-gradient(90deg, #d946ef var(--percent, 50%), #e2e8f0 var(--percent, 50%)); color: #d946ef;}
.saas-slider.green::-webkit-slider-runnable-track { background: linear-gradient(90deg, #22c55e var(--percent, 50%), #e2e8f0 var(--percent, 50%)); color: #22c55e;}

.result-row { display: flex; justify-content: space-between; align-items: flex-end; }
.res-lbl { font-size: 0.95rem; color: #94a3b8; font-weight: 500;}
.res-num { font-size: 1.5rem; font-weight: 600; color: #f8fafc; font-variant-numeric: tabular-nums;}
.result-divider { height: 1px; background: rgba(255,255,255,0.1); width: 100%; margin: 1rem 0;}
.result-row.total .res-lbl { font-size: 1.1rem; color: #e2e8f0;}
.result-row.total .txt-gradient { font-size: 3rem; font-weight: 800; background: var(--purple-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.05em;}

/* Process Timeline Section - Centered Math Array */
.process-section { padding-top: 6rem; position: relative; z-index: 10; color: #fff; overflow-y: hidden;}
.structured-timeline { position: relative; width: 100%; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 4rem; padding: 2rem 0;}
.timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); width: 4px; z-index: 0; }
.step-wrapper { display: flex; width: 100%; align-items: center; position: relative; z-index: 5;}
.step-wrapper.left-align { justify-content: flex-start; padding-right: 50%; }
.step-wrapper.right-align { justify-content: flex-end; padding-left: 50%; }
.center-node {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; border-radius: 50%; background: #0f172a; border: 3px solid #d946ef;
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; z-index: 10;
}
.pulse-node { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.7); animation: nodePulse 2s infinite; }
@keyframes nodePulse { 70% { box-shadow: 0 0 0 20px rgba(217, 70, 239, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0); } }

.step-wrapper .process-card {
  background: rgba(30, 30, 32, 0.5); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; padding: 2.5rem; width: 85%; margin: 0 auto; transition: transform 0.3s;
}
.step-wrapper.left-align .process-card { margin-right: 4rem; margin-left: 0; }
.step-wrapper.right-align .process-card { margin-left: 4rem; margin-right: 0;}

.process-card h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.8rem; color: #f1f5f9; }
.process-card p { color: #94a3b8; line-height: 1.6; font-size: 1rem; }
.glow-path { stroke: url(#svg-grad); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 20; animation: dashMove 1s linear infinite;}
@keyframes dashMove { to { stroke-dashoffset: -40;} }

/* Series X */
.series-container { display: flex; align-items: center; justify-content: space-between; min-height: 100vh; position: relative; z-index: 10; }
.series-content { flex: 1; max-width: 500px; z-index: 10; color: #fff;}
.title-nav { gap: 1rem; margin-bottom: 1rem;}
.nav-arrow { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; width: 50px; height: 50px; font-size: 1.5rem; cursor: pointer; transition: 0.3s;}
.nav-arrow:hover { background: rgba(255,255,255,0.1); border-color: #d946ef; }

.series-x .product-showcase { flex: 1; display: flex; justify-content: center; position: relative; }
.hero-image { max-width: 100%; height: auto; transform: scale(1.05); filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); 
    /* Feather edges natively to blend any uneven background box artifact */
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 80%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 80%);
    animation: float 6s ease-in-out infinite; margin-bottom: 2rem;
}
.gallery-thumbs { display: flex; gap: 1rem;}
.thumb { width: 80px; height: 80px; border-radius: 12px; background: rgba(255,255,255,0.05); padding: 5px; cursor: pointer; border: 2px solid transparent; transition: 0.3s;}
.thumb img { width: 100%; height: 100%; object-fit: contain;}
.thumb.active, .thumb:hover { border-color: #d946ef; background: rgba(217, 70, 239, 0.1);}

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

/* Particles Canvas Bounded */
#particle-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.particle { position: absolute; will-change: transform; opacity: 0.8; }
.particle.diamond-darkblue { width: 10px; height: 10px; background: #014aa2; border-radius: 2px;}
.particle.diamond-lightblue { width: 10px; height: 10px; background: #0080c8; border-radius: 2px;}
.particle.diamond-gray { width: 10px; height: 10px; background: #d1d3d4; border-radius: 2px;}

/* Dark Mode VT Canvas */
#vt-logo-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
.vt-sphere { position: absolute; width: 8px; height: 8px; background: rgb(219,179,255); border-radius: 50%; box-shadow: 0 0 15px rgba(219,179,255, 0.8); transition: opacity 0.3s ease; }

/* =======================================
   APP MODAL & CALENDAR SYSTEM
   ======================================= */
.glass-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
    display: flex; align-items: center; justify-content: center;
}
.glass-modal.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: #fff; width: 90%; max-width: 1100px; min-height: 600px;
    border-radius: 30px; display: flex; overflow: hidden; position: relative;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5); transform: translateY(50px) scale(0.95); transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-modal.active .modal-content { transform: translateY(0) scale(1); }

.close-modal {
    position: absolute; top: 20px; left: 20px; font-size: 2rem; color: #94a3b8;
    background: none; border: none; cursor: pointer; z-index: 10; transition: color 0.2s;
}
.close-modal:hover { color: #0f172a; }

.modal-left { flex: 1; padding: 4rem; background: #fff; display: flex; flex-direction: column; justify-content: center;}
.modal-right { flex: 1; border-radius: 0 !important; }

/* Calendar CSS Grid */
.booking-calendar { background: #f8fafc; border-radius: 20px; padding: 2rem; border: 1px solid #e2e8f0; }
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem;}
.cal-header button { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #3b82f6;}
.cal-header button:hover { color: #d946ef; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: 600; color: #94a3b8; font-size: 0.9rem; margin-bottom: 1rem;}
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; }
.cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-weight: 500; color: #0f172a; cursor: pointer; transition: 0.2s;
    border: 2px solid transparent;
}
.cal-day:hover:not(.empty) { background: #e2e8f0; }
.cal-day.active { background: #d946ef; color: #fff; box-shadow: 0 4px 10px rgba(217, 70, 239, 0.4); }
.cal-day.empty { pointer-events: none; }

/* Form Elements */
.app-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group.row { display: flex; gap: 1rem; }
.form-group.row input { flex: 1; }
.app-form input, .app-form select, .app-form textarea {
    width: 100%; padding: 1rem 1.2rem; border-radius: 12px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-family: inherit; font-size: 1rem; transition: border-color 0.3s;
}
.app-form input::placeholder, .app-form textarea::placeholder { color: #64748b; }
.app-form input:focus, .app-form select:focus, .app-form textarea:focus { outline: none; border-color: #d946ef; background: rgba(255,255,255,0.1);}
.app-form select { appearance: none; color: #64748b; cursor: pointer; }
.app-form select:valid { color: #fff; }

.form-section { display: flex; flex-direction: column; gap: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 2.5rem; margin-bottom: 2.5rem; }
.form-section-title { font-size: 0.9rem; color: #3b82f6; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5rem; }
.form-label { font-size: 0.95rem; font-weight: 600; color: #e2e8f0; display: block; margin-bottom: 0.8rem; }
.form-group { margin-bottom: 0; }
.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 0.8rem; color: #cbd5e1; font-size: 0.95rem;}
.radio-group.row, .checkbox-group.row { flex-direction: row; flex-wrap: wrap; }
.radio-group input, .checkbox-group input { margin-right: 0.5rem; accent-color: #d946ef; }
