/* ==========================================================================
   ARCVANTO.COM - LUXURY ENTERPRISE DESIGN SYSTEM & RESPONSIVE STYLESHEET
   Typography: Plus Jakarta Sans + Space Grotesk + JetBrains Mono
   ========================================================================== */

/* ---------------- CSS Custom Properties / Tokens ---------------- */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Brand Palette (Aligned with Arcvanto Emblem) */
  --color-brand: #2dd4bf;
  --color-brand-dark: #0d9488;
  --color-brand-glow: rgba(45, 212, 191, 0.35);

  /* Dark Theme Palette (Default) */
  --color-bg-base: #040711;
  --color-bg-subtle: #0a0f1d;
  --color-bg-card: rgba(10, 15, 29, 0.8);
  
  --color-text-primary: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-border: rgba(51, 65, 85, 0.6);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

html.light {
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Utility Classes */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.font-sans { font-family: var(--font-sans); }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #040711;
}
html.light ::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* ---------------- Gradient Text ---------------- */
.gradient-text {
  background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.light .gradient-text {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.light .gradient-text-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------- Brand Logo Styles ---------------- */
.brand-logo-img {
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.4));
}
html.light .brand-logo-img {
  filter: drop-shadow(0 2px 5px rgba(13, 148, 136, 0.2));
}

/* ---------------- Canvas & Ambient Backgrounds ---------------- */
.canvas-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

#cyber-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cyber-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 85%);
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cyan-glow {
  top: 8%;
  left: 12%;
  width: 480px;
  height: 480px;
  background: #2dd4bf;
}

.purple-glow {
  top: 35%;
  right: 12%;
  width: 520px;
  height: 520px;
  background: #7000ff;
}

/* In Light Mode: Remove all dark grid overlays and glowing blur circles for pure clean canvas */
html.light .cyber-grid-overlay {
  display: none !important;
}
html.light .ambient-glow {
  display: none !important;
}
html.light .canvas-container {
  opacity: 0.35;
}

/* ---------------- Navigation ---------------- */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand);
  transition: width 0.25s ease;
  box-shadow: 0 0 8px var(--color-brand);
}
.nav-link:hover::after {
  width: 100%;
}
html.light .nav-link::after {
  background: #0d9488;
  box-shadow: 0 0 6px rgba(13, 148, 136, 0.4);
}

/* ---------------- Cards & Badges ---------------- */
.stat-badge {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-badge:hover {
  border-color: rgba(45, 212, 191, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.1);
}

.service-card {
  position: relative;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.framework-badge {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.framework-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.4);
}

.compliance-badge {
  background: rgba(10, 15, 29, 0.7);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

/* ---------------- Toast Notification ---------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 18px;
  background: rgba(10, 15, 29, 0.95);
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(45, 212, 191, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
html.light .toast-item {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---------------- Form Input Focus & Polish ---------------- */
input, textarea, select {
  font-family: inherit;
  font-size: 14px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-brand) !important;
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.25);
}
html.light input:focus, html.light textarea:focus, html.light select:focus {
  border-color: #0d9488 !important;
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.25);
}

/* ==========================================================================
   PURE CLEAN LIGHT MODE (Zero Black/Gray smudges, Pure Pristine Canvas)
   ========================================================================== */
html.light body,
html.light .site-body {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

html.light main,
html.light section {
  background-color: #ffffff !important;
}

html.light .main-header {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: #eef2f6 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

html.light .brand-text {
  color: #0f172a !important;
}
html.light .brand-sub {
  color: #64748b !important;
}
html.light .brand-dot {
  color: #0d9488 !important;
}

html.light .nav-link {
  color: #334155 !important;
}
html.light .nav-link:hover {
  color: #0d9488 !important;
}

html.light #mobile-menu {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
html.light .mobile-nav-link {
  color: #1e293b !important;
}
html.light .mobile-nav-link:hover {
  color: #0d9488 !important;
}

html.light .hero-heading {
  color: #0f172a !important;
}
html.light .hero-sub {
  color: #334155 !important;
}

html.light .stat-badge {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}
html.light .stat-sub {
  color: #64748b !important;
}

html.light .sec-btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
html.light .sec-btn:hover {
  background: #f8fafc !important;
  border-color: #0d9488 !important;
}

html.light .commit-row {
  color: #475569 !important;
}

html.light .solution-hero-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}
html.light .card-header-border {
  border-color: #f1f5f9 !important;
}
html.light .card-header-title {
  color: #0f172a !important;
}
html.light .framework-badge {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
html.light .tool-tag {
  background: #f0fdfa !important;
  border: 1px solid #ccfbf1 !important;
  color: #0f766e !important;
}
html.light .card-body-text {
  color: #475569 !important;
}
html.light .card-muted-text {
  color: #64748b !important;
}

html.light .service-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}
html.light .service-card:hover {
  border-color: #0d9488 !important;
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.08) !important;
}
html.light .card-title {
  color: #0f172a !important;
}
html.light .card-strong {
  color: #0f172a !important;
}
html.light .card-list {
  color: #334155 !important;
  border-color: #f1f5f9 !important;
}
html.light .card-footer-border {
  border-color: #f1f5f9 !important;
}

html.light .section-divider {
  border-color: #f1f5f9 !important;
}
html.light .section-heading {
  color: #0f172a !important;
}
html.light .section-sub {
  color: #475569 !important;
}
html.light .section-pill {
  background: #f0fdfa !important;
  border: 1px solid #99f6e4 !important;
}
html.light .pill-text {
  color: #0f766e !important;
}

html.light .step-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}
html.light .step-title {
  color: #0f172a !important;
}
html.light .step-desc {
  color: #475569 !important;
}

html.light .side-feature-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
}

html.light .compliance-badge {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}
html.light .badge-sub {
  color: #64748b !important;
}

html.light .gov-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03) !important;
}
html.light .gov-card-desc {
  color: #475569 !important;
}

html.light .faq-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02) !important;
}
html.light .faq-q-title {
  color: #0f172a !important;
}
html.light .faq-answer {
  color: #334155 !important;
  border-color: #f8fafc !important;
}

html.light .contact-pill {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;
}
html.light .contact-label {
  color: #64748b !important;
}
html.light .contact-val {
  color: #0f172a !important;
}

html.light .form-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}
html.light .form-title {
  color: #0f172a !important;
}
html.light .form-subtitle {
  color: #64748b !important;
}
html.light .form-label {
  color: #1e293b !important;
}
html.light .form-input {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}
html.light .reset-btn {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
}
html.light .reset-btn:hover {
  background-color: #e2e8f0 !important;
}

html.light footer {
  background-color: #f8fafc !important;
  color: #475569 !important;
  border-top: 1px solid #e2e8f0 !important;
}
html.light .footer-border,
html.light .footer-inner-border {
  border-color: #e2e8f0 !important;
}
html.light .footer-heading,
html.light .footer-copy-brand {
  color: #0f172a !important;
}
html.light .footer-desc,
html.light .footer-links a {
  color: #475569 !important;
}
html.light .footer-links a:hover {
  color: #0d9488 !important;
}

html.light .theme-toggle-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}
html.light .theme-toggle-btn:hover {
  background: #f8fafc !important;
  color: #0d9488 !important;
}

/* ---------------- Media Queries & Responsiveness ---------------- */
@media (max-width: 1024px) {
  .hero-heading {
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  .ambient-glow {
    display: none;
  }
  
  .stat-badge {
    padding: 10px 12px;
  }
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
