/* NEXTUP NETWORK - Awwwards Site-of-the-Year Immersive Visual Experience Engine */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800&family=Outfit:wght@200;300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --bg-dark: #020406;
  --bg-surface: #070A10;
  --bg-card: rgba(255, 255, 255, 0.015);
  --border-hairline: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text-primary: #F4F4F5;
  --text-secondary: #889096;
  --text-muted: #4B525D;
  --accent-cyan: #38BDF8;
  --accent-emerald: #10B981;
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* Custom Interactive Cursor */
#custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background-color 0.2s ease;
}

#custom-cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

body.cursor-hover #custom-cursor {
  transform: translate(-50%, -50%) scale(1.8);
  background: #38BDF8;
}

body.cursor-hover #custom-cursor-ring {
  width: 56px;
  height: 56px;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.05);
}

.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #FFFFFF, #38BDF8, #10B981);
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* Ambient Canvas */
#aurora-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* Preloader Curtain */
#preloader {
  position: fixed;
  inset: 0;
  background: #020406;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

/* Awwwards Glass Cards & Containers */
.saas-card {
  background: rgba(12, 16, 26, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-hairline);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.saas-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px) scale(1.005);
  background: rgba(18, 24, 38, 0.6);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.95);
}

.realtime-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 12px #10B981;
  animation: realtimePulse 2s infinite;
}

@keyframes realtimePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Magnetic Button Hover Effect */
.btn-magnetic {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

.btn-magnetic:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(255, 255, 255, 0.2);
}

/* Cinematic Text Gradient */
.text-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, #E4E4E7 40%, #889096 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-minimal {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  color: #D4D4D8;
}

/* Single-Page Application View Switcher */
.page-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Nav Link Underline */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #FFFFFF;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* PRODUCT SHOWCASE SERVICE DEMO TABS */
.demo-tab-btn {
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #A1A1AA;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-tab-btn:hover,
.demo-tab-btn.active {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* HERO PARALLAX MULTI-LAYER STAGE */
#hero-stage {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-layer {
  transition: transform 0.1s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Device Mockups (MacBook & iPhone Glass Shells) */
.macbook-frame {
  position: relative;
  border-radius: 20px;
  background: #070A10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.macbook-header {
  height: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-b: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
}

.macbook-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.iphone-frame {
  position: relative;
  width: 280px;
  height: 560px;
  border-radius: 44px;
  background: #070A10;
  border: 5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  margin: 0 auto;
}

.iphone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 20;
}

/* PROCESS NODE ANIMATED CONNECTOR */
.process-node-card {
  position: relative;
  border-radius: 20px;
  background: rgba(12, 16, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.process-node-card.active,
.process-node-card:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.9);
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(7, 10, 16, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hairline);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

/* Modal Overlay */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 6, 0.92);
  backdrop-filter: blur(28px);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #070A10;
  border: 1px solid var(--border-hairline);
  border-radius: 28px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.95);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

/* Wizard Option Pill */
.wizard-opt-btn {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #D4D4D8;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-opt-btn:hover,
.wizard-opt-btn.selected {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  transform: translateX(2px);
}

/* APPLE & STRIPE EDITORIAL LEADERSHIP PORTRAIT FRAME - 100% UNUNCUT ORIGINAL COMPOSITION */
.editorial-portrait-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #070A10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.9);
}

.editorial-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* UNUNCUT: Preserves 100% of the photo (laptop, marble desk, logo wall, suit) */
  border-radius: 22px;
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  user-select: none;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #020406;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
