﻿/* ========================================
   VULONE Enterprise Design System
   Light-dominant, professional aesthetic
   ======================================== */

:root {
  /* Primary Palette - Enterprise Dark */
  --background: #0e0e0e;
  --foreground: #FFFFFF;
  --surface: #0d0d0d;
  --surface-elevated: #141414;

  /* Borders & Dividers */
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* Text Hierarchy */
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  --text-subtle: #52525B;

  /* Accent & Interactive */
  --accent: #FFFFFF;
  --accent-hover: #E4E4E7;

  /* Contrast / Alt Panels */
  --dark-bg: #0e0e0e;
  --dark-surface: #0e0e0e;
  --dark-border: rgba(255, 255, 255, 0.1);
  --dark-text: #FFFFFF;
  --dark-text-muted: #A1A1AA;
}

/* Base Styles */
html {
  background: var(--background);
  letter-spacing: -0.01em;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography System */
h1,
h2,
h3,
h4 {
  font-family: 'Figtree', 'Inter', sans-serif !important;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 {
  font-size: 3.75rem;
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

/* Selection */
::selection {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========================================
   BUTTONS
   ======================================== */

/* Primary Button - Dark */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--accent);
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 6px;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Secondary Button - Outline */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ========================================
   CARDS & SURFACES
   ======================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--text-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Dark Card (for contrast sections) */
.card-dark {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
}

/* ========================================
   GRID BACKGROUND (Subtle)
   ======================================== */

.grid-bg {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.grid-bg-dark {
  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);
  background-size: 48px 48px;
}

/* ========================================
   SECTION UTILITIES
   ======================================== */

.section-light {
  background: var(--background);
}

.section-white {
  background: var(--surface);
}

.section-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

/* ========================================
   LAYOUT
   ======================================== */

.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
}

/* ========================================
   PIPELINE / PROCESS FLOW
   ======================================== */

.pipeline-step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transition: all 0.3s ease;
}

.pipeline-step:hover {
  border-color: var(--text-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.pipeline-step-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.pipeline-step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pipeline-step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Connector line between steps */
.pipeline-connector {
  position: absolute;
  top: 50%;
  right: -2rem;
  width: 2rem;
  height: 1px;
  background: var(--border);
}

/* ========================================
   TRUST / PRINCIPLES
   ======================================== */

.trust-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trust-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.trust-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.trust-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.input-field {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.input-field::placeholder {
  color: var(--text-subtle);
}

.input-field:focus {
  outline: none;
  border-color: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.05);
}

/* Dark input (for contrast sections) */
.input-field-dark {
  background: var(--dark-bg);
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.input-field-dark::placeholder {
  color: var(--dark-text-muted);
}

.input-field-dark:focus {
  border-color: #3F3F46;
}

/* ========================================
   NAVBAR ENTERPRISE
   ======================================== */

.navbar-light {
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-link {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-link:hover {
  color: var(--text-primary);
}

/* ========================================
   NAVBAR
   ======================================== */

#navbar {
  width: 100%;
  z-index: 50;
  top: 0;
  background-color: rgba(9, 9, 11, 0.45);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#navbar-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

/* Dropdown Arrow Animation */
.group:hover [data-lucide="chevron-down"] {
  transform: rotate(180deg);
}

.code-container {
  background: var(--dark-bg);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
}

.code-dots {
  display: flex;
  gap: 0.375rem;
}

.code-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #3F3F46;
}

.code-filename {
  font-size: 0.75rem;
  font-family: 'Monaco', 'Menlo', monospace;
  color: var(--dark-text-muted);
}

.code-content {
  padding: 1.5rem;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--dark-text);
}

/* ========================================
   DARK FOOTER
   ======================================== */

.footer-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
  border-top: 1px solid var(--dark-border);
}

.footer-dark a {
  color: var(--dark-text-muted);
  transition: color 0.2s ease;
}

.footer-dark a:hover {
  color: var(--dark-text);
}

/* ========================================
   GLASS GLOBE VISUALIZATION
   ======================================== */

.glass-globe-wrapper {
  /* No borders, no background on wrapper itself, just positioning */
}

#glass-globe-container {
  /* Ensure it sits above the glow */
}

.bg-radial-glow {
  /* Soft white ambient glow to backlight the globe */
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
  filter: blur(60px);
  transform: scale(1.2);
  z-index: 0;
}

/* ========================================
   PERSPECTIVE GRID (Global Background)
   ======================================== */

:root {
  --grid-size: 80px;
  --grid-line-opacity: 0.15;
  --grid-line-color: rgba(255, 255, 255, var(--grid-line-opacity));
  --grid-bg-base: #0e0e0e;
  --grid-tilt: 65deg;
  --grid-perspective: 1200px;
}

.bg-perspective-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-color: var(--grid-bg-base);
  overflow: hidden;
  pointer-events: none;
}

.bg-perspective-grid-plane {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  transform-style: preserve-3d;
  transform-origin: top center;
  transform: perspective(var(--grid-perspective)) rotateX(var(--grid-tilt));
}

/* Vignette & Radial Falloff */
.bg-perspective-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%,
      transparent 10%,
      rgba(22, 22, 24, 0.5) 60%,
      #0e0e0e 100%);
  z-index: 2;
  pointer-events: none;
}

/* Noise Overlay */
.bg-perspective-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

/* Light Sweep */
.light-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,
      transparent 40%,
      rgba(255, 255, 255, 0.03) 50%,
      transparent 60%);
  z-index: 3;
  opacity: 0.6;
}

/* ========================================
   FOOTER BACKGROUND TEXT EFFECT
   Glassy, Shiny, Subtle "Evidence Over Alerts"
   ======================================== */

.footer-bg-text-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: -8rem;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 260px;
}

.footer-bg-v-logo {
  display: inline-block;
  height: 0.7em;
  width: auto;
  vertical-align: baseline;
  opacity: 0.35;
  margin: 0 -0.05em;
}

.footer-bg-logo {
  height: 48px;
  width: auto;
  opacity: 0.15;
}

.footer-bg-text {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 500;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.02em;

  /* The "Invisible" / Subtle Glassy Effect */
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);

  /* Shiny Gradient Effect */
  background: linear-gradient(110deg,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;

  /* Animation for the Shine */
  animation: shine-text 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;

  /* Positioning */
  position: relative;
  bottom: 0rem;

  /* Drop shadow glow to match the image */
  text-shadow: 0px 4px 30px rgba(255, 255, 255, 0.05);
}

@keyframes shine-text {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-bg-text-container {
    height: auto;
    min-height: 150px;
    margin-top: -2rem;
    align-items: center;
  }
  .footer-bg-logo { height: 28px; }

  .footer-bg-text {
    bottom: 0;
  }
}

/* ========================================
   LENIS SMOOTH SCROLL REFINEMENTS
   ======================================== */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ========================================
   GLOBAL MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    img { max-width: 100%; height: auto; }
    .v2-section { padding: 4rem 1rem; }
    .nar2-section { padding: 5rem 1rem; }
    .nar2-container { padding: 0; }
    .nar2-quote { font-size: 1.5rem; }
    .get-secure-section { padding: 4rem 1rem 0; }
    .ai-gateway-section { padding: 4rem 1rem; min-height: auto; }
    .footer-bg-text-container { height: auto; min-height: 150px; margin-top: -2rem; align-items: center; }
    .footer-bg-logo { height: 28px; }
    .footer-bg-text { font-size: clamp(2rem, 6vw, 4rem); white-space: normal; text-align: center; line-height: 1.15; padding-bottom: 0.5rem; }
}

@media (max-width: 480px) {
    .v2-section { padding: 3rem 0.75rem; }
    .nar2-section { padding: 3.5rem 0.75rem; }
    .nar2-quote { font-size: 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bg-text-container { height: auto; min-height: 200px; margin-top: -1rem; align-items: center; }
    .footer-bg-text { font-size: clamp(1.75rem, 8vw, 3rem) !important; white-space: normal; text-align: center; line-height: 1.2; color: rgba(255,255,255,0.08) !important; -webkit-text-stroke: 0 !important; background: none !important; }
    .footer-bg-v-logo { height: 0.7em; }
}