/* ==========================================================================
   NEXUS SUPERTECH - MODERN IT & ALGO TRADING COMPANY STYLESHEET
   Design System & Modern Glassmorphic / 3D-Tech Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Colors */
  --primary: #0066ff;
  --primary-hover: #0052cc;
  --primary-rgb: 0, 102, 255;
  --secondary: #00c2ff;
  --secondary-rgb: 0, 194, 255;
  --accent-purple: #7928ca;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Neutrals & Surfaces */
  --bg-main: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.72);
  --border-light: rgba(226, 232, 240, 0.8);
  --border-glass: rgba(255, 255, 255, 0.95);
  --border-glow: rgba(0, 194, 255, 0.35);

  /* Typography */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0066ff 0%, #00c2ff 100%);
  --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.8) 100%);
  --grad-glow: radial-gradient(circle, rgba(0, 194, 255, 0.25) 0%, rgba(0, 102, 255, 0.05) 50%, transparent 70%);
  --grad-hero: radial-gradient(circle at 80% 20%, rgba(0, 194, 255, 0.15) 0%, transparent 45%),
               radial-gradient(circle at 10% 60%, rgba(121, 40, 202, 0.08) 0%, transparent 40%),
               radial-gradient(circle at 50% 90%, rgba(0, 102, 255, 0.06) 0%, transparent 50%);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(0, 80, 200, 0.08), 0 2px 6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 45px -15px rgba(0, 80, 200, 0.12), 0 0 1px 1px rgba(255, 255, 255, 0.8) inset;
  --shadow-glow: 0 12px 35px -5px rgba(0, 102, 255, 0.35);
  --shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(226, 232, 240, 0.7);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width: 1240px;
  --nav-height: 84px;
}

/* --------------------------------------------------------------------------
   2. Base & Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  background-image: var(--grad-hero);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Selection */
::selection {
  background: rgba(0, 102, 255, 0.18);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   3. Utility Classes & Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: 960px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-sm {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 102, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(0, 102, 255, 0.2);
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
}

.badge-cyan {
  background: rgba(0, 194, 255, 0.1);
  color: #0284c7;
  border-color: rgba(0, 194, 255, 0.3);
}

.badge-purple {
  background: rgba(121, 40, 202, 0.08);
  color: var(--accent-purple);
  border-color: rgba(121, 40, 202, 0.2);
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.section-title span.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.975rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -5px rgba(0, 102, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px -8px rgba(0, 102, 255, 0.15);
}

.btn-glass:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -8px rgba(0, 102, 255, 0.25);
}

.btn-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon-circle {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Static/Sticky Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 10px 30px rgba(0, 20, 50, 0.04);
  height: 74px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.logo:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transition: transform var(--transition-fast);
}

.footer-logo-img {
  height: 46px;
  max-width: 240px;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

.nav-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  margin-left: 5px;
  vertical-align: middle;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero Section (Full-Width Cinematic Background Video)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--bg-main);
}

/* Full-Width Video Background Wrapper */
.hero-bg-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-video-wrapper .hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  display: block;
  z-index: 0;
}

/* Soft ambient vignette / gradient overlay (Minimal overlay so robo video is clearly visible) */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(248, 250, 252, 0.58) 0%,
      rgba(248, 250, 252, 0.38) 35%,
      rgba(248, 250, 252, 0.12) 55%,
      transparent 75%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.20) 0%,
      transparent 20%,
      transparent 85%,
      rgba(248, 250, 252, 0.65) 100%
    );
}

.hero-bg-glow {
  position: absolute;
  top: 30%;
  left: 15%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.08) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-right: auto;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-content .badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 102, 255, 0.08);
  font-size: 0.78rem;
  padding: 6px 14px;
  margin-bottom: 18px;
  align-self: flex-start;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 18px;
  text-transform: uppercase;
  text-align: left;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.35);
}

.hero-title span.glow {
  background: linear-gradient(135deg, #0066ff 0%, #00d2ff 60%, #7928ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-description {
  font-size: 1.05rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 28px;
  text-align: left;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px -5px rgba(0, 80, 200, 0.08),
              0 2px 8px rgba(15, 23, 42, 0.04);
  margin: 0;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  margin-left: -12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.hero-trust-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: left;
}

.hero-trust-text strong {
  color: var(--text-main);
  display: block;
}

/* Fallback & Visual Showcase for backward compatibility */
.hero-visual {
  display: none;
}

/* Disable All Animations in Hero Section */
.hero,
.hero *,
.hero *::before,
.hero *::after {
  animation: none !important;
}

.hero .reveal-fade {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Scroll Down Indicator (Static, No Animation) */
.scroll-down-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  gap: 8px;
}

.scroll-mouse {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   7. Services Section ("Our Capabilities")
   -------------------------------------------------------------------------- */
.services-section {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.5) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

/* Connecting Curved Circuit Line (Reference Image style) */
.circuit-line-svg {
  position: absolute;
  top: 50%;
  left: 5%;
  width: 90%;
  height: 120px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: 0 25px 50px -12px rgba(0, 102, 255, 0.16), 0 0 0 1px rgba(0, 194, 255, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

/* 3D Claymorphic Service Icon */
.service-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: 0 12px 24px -6px rgba(0, 102, 255, 0.18), 0 -4px 8px rgba(255,255,255,0.8) inset;
  transition: transform var(--transition-base);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.08) rotate(3deg);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li i {
  color: var(--accent-green);
  font-size: 0.8rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap var(--transition-fast);
}

.service-link i {
  transition: transform var(--transition-fast);
}

.service-link:hover {
  gap: 12px;
}

.service-link:hover i {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   8. Dedicated Highlight Banner: Algo Trading Feature Banner
   -------------------------------------------------------------------------- */
.algo-banner-section {
  padding: 40px 0 100px;
}

.algo-highlight-card {
  background: linear-gradient(135deg, #091225 0%, #0f1d3a 50%, #15274d 100%);
  border-radius: var(--radius-xl);
  padding: 60px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 30, 90, 0.4);
  border: 1px solid rgba(0, 194, 255, 0.2);
}

.algo-highlight-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.25) 0%, transparent 70%);
  filter: blur(50px);
}

.algo-banner-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.algo-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 194, 255, 0.15);
  border: 1px solid rgba(0, 194, 255, 0.35);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.algo-banner-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.algo-banner-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.algo-banner-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 32px;
}

.algo-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.algo-spec-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.algo-spec-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #38bdf8;
  display: block;
}

.algo-spec-label {
  font-size: 0.78rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Algo Interactive Simulation Card in Banner */
.algo-preview-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.algo-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.algo-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.algo-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

.algo-profit-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

.algo-chart-sim {
  height: 160px;
  width: 100%;
  position: relative;
  margin-bottom: 20px;
}

.algo-orders-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.algo-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.order-buy {
  color: #34d399;
}

.order-sell {
  color: #f87171;
}

/* --------------------------------------------------------------------------
   9. Transformative Solutions (Portfolio / Showcase)
   -------------------------------------------------------------------------- */
.solutions-section {
  padding: 80px 0 120px;
  position: relative;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.solution-mockup-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: all var(--transition-base);
  overflow: hidden;
  position: relative;
}

.solution-mockup-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -15px rgba(0, 102, 255, 0.18);
}

.mockup-header {
  margin-bottom: 20px;
}

.mockup-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.mockup-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.mockup-screen {
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.mockup-screen img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.solution-mockup-card:hover .mockup-screen img {
  transform: scale(1.05);
}

.mockup-footer {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-tags {
  display: flex;
  gap: 8px;
}

.mockup-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Inside Nexus / About & Culture Section
   -------------------------------------------------------------------------- */
.culture-section {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.6) 0%, transparent 100%);
}

.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.culture-image-composition {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.culture-main-img-box {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
  position: relative;
  background: white;
}

.culture-main-img-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* 3D Stat Badges on image (500+ Clients, 99% Success) */
.stat-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 60, 150, 0.12);
  border: 1px solid rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
}

.stat-pill-top {
  top: -20px;
  left: -20px;
  animation: floatCard1 6s ease-in-out infinite alternate;
}

.stat-pill-bottom {
  bottom: -25px;
  right: -20px;
  animation: floatCard2 7s ease-in-out infinite alternate;
}

.stat-pill-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 8px 18px rgba(0, 102, 255, 0.35);
}

.stat-pill-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-pill-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.culture-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.culture-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.culture-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.culture-item-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.culture-item-text p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. Stats Counters Bar
   -------------------------------------------------------------------------- */
.stats-bar-section {
  padding: 60px 0;
}

.stats-card-container {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-box {
  position: relative;
}

.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-light);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. Start Your Journey (CTA & Quick Contact Form)
   -------------------------------------------------------------------------- */
.journey-section {
  padding: 100px 0 140px;
  position: relative;
}

.journey-card {
  background: radial-gradient(circle at 100% 0%, rgba(0, 194, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 0% 100%, rgba(121, 40, 202, 0.1) 0%, transparent 50%),
              #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  box-shadow: 0 30px 70px -15px rgba(0, 50, 120, 0.1);
  padding: 60px 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.journey-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.journey-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.journey-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.journey-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.journey-badge-item i {
  color: var(--primary);
}

/* Journey Form */
.quick-form {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0, 102, 255, 0.4);
}

/* --------------------------------------------------------------------------
   13. Dedicated Algo Trading Page Styles
   -------------------------------------------------------------------------- */
.algo-hero-section {
  padding-top: calc(var(--nav-height) + 50px);
  padding-bottom: 90px;
  background: radial-gradient(circle at 50% 10%, rgba(0, 194, 255, 0.12), transparent 40%),
              radial-gradient(circle at 90% 40%, rgba(121, 40, 202, 0.08), transparent 45%);
}

.algo-terminal-window {
  background: #090d16;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 194, 255, 0.3);
  box-shadow: 0 25px 60px rgba(0, 20, 60, 0.35);
  overflow: hidden;
  font-family: var(--font-mono);
  margin-top: 40px;
}

.algo-terminal-bar {
  background: #111827;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  color: #94a3b8;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 24px;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.terminal-code-line {
  display: flex;
  gap: 16px;
}

.code-ln {
  color: #475569;
  user-select: none;
}

.code-keyword { color: #f43f5e; font-weight: 600; }
.code-fn { color: #38bdf8; }
.code-var { color: #a78bfa; }
.code-string { color: #34d399; }
.code-comment { color: #64748b; font-style: italic; }

/* Pricing Section */
.pricing-section {
  padding: 100px 0;
  position: relative;
}

.pricing-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.toggle-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.toggle-label.active {
  color: var(--primary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

input:checked + .slider {
  background: var(--grad-primary);
}

input:checked + .slider:before {
  transform: translateX(28px);
}

.save-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Pricing Cards Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 25px 60px -10px rgba(0, 102, 255, 0.22);
  transform: scale(1.04);
  z-index: 2;
}

.pricing-popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: white;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.35);
}

.pricing-card-header {
  margin-bottom: 24px;
}

.pricing-plan-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pricing-plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-price-box {
  margin: 28px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1;
}

.pricing-period {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-features {
  margin: 24px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--text-main);
}

.pricing-features li i.fa-check-circle {
  color: #10b981;
  font-size: 1rem;
}

.pricing-features li.disabled {
  color: var(--text-light);
}

.pricing-features li.disabled i {
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Modern Pricing Banner Cards (Directly matching reference screenshots)
   -------------------------------------------------------------------------- */
.pricing-tabs-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.pricing-tab-btn {
  background: white;
  border: 1.5px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.pricing-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.pricing-tab-btn.active {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.pricing-tab-btn .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-grid-container {
  position: relative;
}

.pricing-grid-panel {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
  animation: fadeInPricingTab 0.35s ease forwards;
}

.pricing-grid-panel.active {
  display: grid;
}

@keyframes fadeInPricingTab {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.pricing-card-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px -10px rgba(0, 80, 220, 0.18);
  border-color: #6366f1;
}

.pricing-card-modern.popular {
  border-color: #f43f5e;
  box-shadow: 0 18px 45px -8px rgba(244, 63, 94, 0.25);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card-modern.popular:hover {
  transform: scale(1.03) translateY(-8px);
}

.pricing-header-banner {
  background: linear-gradient(135deg, #605be5 0%, #4f46e5 100%);
  color: white;
  padding: 38px 28px 32px;
  text-align: center;
  position: relative;
}

.pricing-header-banner.banner-popular {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.pricing-header-banner .banner-popular-tag {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255, 255, 255, 0.28);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 30px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.pricing-plan-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: white;
}

.pricing-banner-price {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: white;
}

.pricing-banner-period {
  font-size: 0.95rem;
  opacity: 0.92;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.pricing-card-body {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
}

.pricing-feature-item:last-child {
  border-bottom: none;
}

.pricing-feature-item i {
  color: #10b981;
  font-size: 1rem;
  margin-right: 12px;
  flex-shrink: 0;
}

.pricing-feature-item .feature-badge {
  margin-left: auto;
  font-size: 0.72rem;
  background: #ecfdf5;
  color: #059669;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.pricing-subscribe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 35px;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #6366f1 0%, #db2777 100%);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4);
}

.pricing-subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(219, 39, 119, 0.45);
  color: white;
}

/* --------------------------------------------------------------------------
   14. FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 80px 0 120px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  background: none;
}

.faq-question i {
  font-size: 1rem;
  color: var(--primary);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  padding: 0 28px;
}

.faq-answer-content {
  padding-bottom: 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   15. Contact Page Styles
   -------------------------------------------------------------------------- */
.contact-hero {
  padding-top: calc(var(--nav-height) + 50px);
  padding-bottom: 40px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  margin-top: 40px;
  margin-bottom: 100px;
}

.contact-info-card {
  background: var(--grad-dark);
  color: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.25) 0%, transparent 70%);
}

.contact-method-list {
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #38bdf8;
  flex-shrink: 0;
}

.contact-method-content h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-method-content p, 
.contact-method-content a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.contact-method-content a:hover {
  color: #38bdf8;
}

.contact-socials-header {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 14px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4);
}

/* Detailed Form Container */
.contact-form-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   16. Legal & Policy Pages (About, Terms, Privacy)
   -------------------------------------------------------------------------- */
.legal-header {
  padding-top: calc(var(--nav-height) + 50px);
  padding-bottom: 50px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.05) 0%, transparent 100%);
}

.legal-content-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 100px;
}

.legal-section-block {
  margin-bottom: 36px;
}

.legal-section-block h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section-block h3 i {
  color: var(--primary);
  font-size: 1.1rem;
}

.legal-section-block p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-section-block ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-section-block li {
  list-style: disc;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   17. Universal Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #0b1120;
  color: #94a3b8;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
  filter: blur(60px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin: 18px 0 24px;
  line-height: 1.7;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.925rem;
  color: #94a3b8;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.newsletter-box {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.newsletter-box input {
  flex-grow: 1;
  padding: 8px 16px;
  color: white;
  font-size: 0.875rem;
}

.newsletter-box input::placeholder {
  color: #64748b;
}

.newsletter-box button {
  background: var(--grad-primary);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.newsletter-box button:hover {
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   18. Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-base);
  position: relative;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0.6;
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.floating-whatsapp:hover .whatsapp-btn {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  background: #ffffff;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-light);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-base);
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   19. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   20. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateRingRev {
  from { transform: rotate(45deg); }
  to { transform: rotate(-315deg); }
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-16px) scale(1.02); }
}

@keyframes floatCard1 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatCard2 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(14px) rotate(-1deg); }
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Scroll Animation Helper Classes */
.reveal-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
}

.toast-notice i {
  color: #10b981;
}

/* --------------------------------------------------------------------------
   21. Dedicated Services Page Styles
   -------------------------------------------------------------------------- */
.services-pills-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  margin-bottom: 20px;
}

.service-pill-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-pill-btn:hover,
.service-pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.25);
}

.service-detail-block {
  padding: 80px 0;
  position: relative;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.service-detail-block:last-child {
  border-bottom: none;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.service-detail-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.service-detail-grid.reverse .service-detail-content {
  order: 2;
}

.service-detail-grid.reverse .service-visual-box {
  order: 1;
}

.service-visual-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-base);
}

.service-visual-box:hover {
  transform: translateY(-6px);
}

.service-visual-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-visual-box:hover img {
  transform: scale(1.04);
}

.service-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.service-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 24px;
}

.tech-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 102, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(0, 102, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 32px;
}

.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 600;
}

.deliverable-item i {
  color: #10b981;
  margin-top: 3px;
  font-size: 0.95rem;
}

/* 5-Step Process Timeline */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
  position: relative;
}

.process-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.process-num {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.process-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.process-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .service-detail-grid,
  .service-detail-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-detail-grid.reverse .service-detail-content {
    order: 1;
  }
  .service-detail-grid.reverse .service-visual-box {
    order: 2;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .service-deliverables-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   22. Custom Component Elements Display
   -------------------------------------------------------------------------- */
nexus-navbar,
nexus-footer,
nexus-page-header,
nexus-algo-preview,
nexus-quick-form,
nexus-floating-widgets {
  display: block;
  width: 100%;
}

/* --------------------------------------------------------------------------
   23. Anchor Scroll Margin for Sticky Navbar Offset
   -------------------------------------------------------------------------- */
[id],
section[id],
.service-detail-block[id] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}
