/* =========================================================================
   TECHVERRA SYSTEMS — Modern World-Class Design System v2
   ========================================================================= */

:root {
  --bg-0: #05070d;
  --bg-1: #0a0d18;
  --bg-2: #111524;
  --surface: rgba(17, 22, 38, 0.6);
  --surface-hi: rgba(24, 31, 54, 0.85);
  --border: rgba(99, 224, 255, 0.10);
  --border-hi: rgba(99, 224, 255, 0.35);
  --text: #e6eaf3;
  --text-mute: #9ba6bd;
  --text-dim: #6b7691;
  --accent: #22d3ee;
  --accent-2: #6366f1;
  --accent-3: #a855f7;
  --gradient: linear-gradient(135deg, #22d3ee 0%, #6366f1 50%, #a855f7 100%);
  --gradient-soft: linear-gradient(135deg, rgba(34,211,238,.15), rgba(99,102,241,.15), rgba(168,85,247,.15));
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.25);
}

/* -------------------------------------------------------------------------
   Base typography
   ------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  background: var(--bg-0);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.1;
}
h1 { letter-spacing: -0.04em; }

.font-mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }

/* Selection */
::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22d3ee, #6366f1);
  border-radius: 10px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #67e8f9, #818cf8); }

/* -------------------------------------------------------------------------
   Gradient text & utilities
   ------------------------------------------------------------------------- */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-soft {
  background: linear-gradient(135deg, #67e8f9 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------------------------------------------------------------------------
   Hero background — premium aurora gradient + grid
   ------------------------------------------------------------------------- */
.hero-bg {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(168, 85, 247, 0.15), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(99, 102, 241, 0.12), transparent 60%),
    linear-gradient(180deg, #05070d 0%, #0a0d18 100%);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99, 224, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 224, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 25%, transparent 80%);
  pointer-events: none;
}

/* Static gradient orbs (animation disabled for performance & stability) */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  will-change: auto;
}
.orb-cyan { background: #22d3ee; }
.orb-indigo { background: #6366f1; }
.orb-purple { background: #a855f7; }

/* -------------------------------------------------------------------------
   Glass cards
   ------------------------------------------------------------------------- */
.glass-card {
  position: relative;
  background: linear-gradient(145deg, rgba(17, 22, 38, 0.82), rgba(8, 12, 24, 0.9));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  overflow: hidden;
}
.glass-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 12px 30px -16px rgba(34, 211, 238, 0.25);
}

/* "Aurora" gradient border card */
.aurora-card {
  position: relative;
  background: var(--bg-1);
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(145deg, rgba(34, 211, 238, .4), rgba(99, 102, 241, .35), rgba(168, 85, 247, .35));
}
.aurora-card-inner {
  background: linear-gradient(145deg, #0c1020, #060912);
  border-radius: calc(1.25rem - 1px);
  height: 100%;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.85rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 0 rgba(255,255,255,.15) inset,
    0 8px 22px -8px rgba(34, 211, 238, 0.45),
    0 3px 10px -4px rgba(99, 102, 241, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255,255,255,.2) inset,
    0 12px 28px -10px rgba(34, 211, 238, 0.55),
    0 6px 16px -4px rgba(168, 85, 247, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6eaf3;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
  transition: all .25s;
}
.btn-secondary:hover {
  background: rgba(34, 211, 238, 0.08);
  border-color: var(--border-hi);
  color: #67e8f9;
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-mute);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color .2s, gap .2s;
}
.btn-ghost:hover { color: #67e8f9; gap: 0.6rem; }

/* -------------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------------- */
.nav-link {
  position: relative;
  color: var(--text-mute);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-shell {
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* -------------------------------------------------------------------------
   Form inputs
   ------------------------------------------------------------------------- */
.tx-input {
  width: 100%;
  background: rgba(8, 12, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.85rem 1.05rem;
  color: #f1f5f9;
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.tx-input:focus {
  outline: none;
  background: rgba(8, 12, 24, 0.85);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.tx-input::placeholder { color: #5a6479; }

/* -------------------------------------------------------------------------
   Section headings
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

/* -------------------------------------------------------------------------
   Service / feature cards w/ images
   ------------------------------------------------------------------------- */
.feature-card {
  position: relative;
  background: linear-gradient(160deg, rgba(17, 22, 38, 0.85), rgba(6, 9, 18, 0.95));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.feature-card .feature-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .35s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: 0 18px 36px -18px rgba(34, 211, 238, 0.25);
}
.feature-card:hover .feature-img { transform: scale(1.03); }

.feature-card .icon-pill {
  position: absolute;
  top: 175px; left: 1.5rem;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  box-shadow: 0 10px 25px -5px rgba(34, 211, 238, 0.5);
  z-index: 2;
}
.feature-card .icon-pill i { color: #fff; font-size: 1.2rem; }

/* -------------------------------------------------------------------------
   Animations — softened for performance & stability
   ------------------------------------------------------------------------- */
.float-anim { /* no-op — kept for backward compatibility */ }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .45s ease-out both; }
.fade-up-d1 { animation-delay: .06s; }
.fade-up-d2 { animation-delay: .12s; }
.fade-up-d3 { animation-delay: .18s; }

/* Animated marquee/strip — slower & gentler */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover { animation-play-state: paused; }

/* -------------------------------------------------------------------------
   Decorative dividers
   ------------------------------------------------------------------------- */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4), transparent);
}

/* -------------------------------------------------------------------------
   CMS content
   ------------------------------------------------------------------------- */
.cms-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.15);
}
.cms-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e6eaf3;
  margin: 1.75rem 0 0.75rem;
}
.cms-content p {
  color: #c8d1e3;
  line-height: 1.8;
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}
.cms-content ul, .cms-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: #c8d1e3;
}
.cms-content ul { list-style: disc; }
.cms-content ol { list-style: decimal; }
.cms-content li { margin-bottom: 0.6rem; line-height: 1.75; }
.cms-content a { color: #67e8f9; text-decoration: underline; text-underline-offset: 3px; }
.cms-content a:hover { color: #a5f3fc; }
.cms-content strong { color: #fff; font-weight: 600; }

/* -------------------------------------------------------------------------
   Section title underline
   ------------------------------------------------------------------------- */
.section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  background: var(--gradient);
  margin: 1.25rem auto 0;
  border-radius: 4px;
}

/* -------------------------------------------------------------------------
   Stat card
   ------------------------------------------------------------------------- */
.stat-card {
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: rgba(17, 22, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all .3s;
}
.stat-card:hover {
  background: rgba(17, 22, 38, 0.7);
  border-color: var(--border-hi);
  transform: translateY(-3px);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* -------------------------------------------------------------------------
   Logo / tech-stack strip
   ------------------------------------------------------------------------- */
.tech-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text-mute);
  font-weight: 500;
  font-size: 0.88rem;
  white-space: nowrap;
}
.tech-pill i { color: #67e8f9; }

/* -------------------------------------------------------------------------
   Process / step
   ------------------------------------------------------------------------- */
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* -------------------------------------------------------------------------
   Testimonial card
   ------------------------------------------------------------------------- */
.quote-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(34, 211, 238, 0.25);
}

/* -------------------------------------------------------------------------
   Mobile menu overlay
   ------------------------------------------------------------------------- */
#mobile-menu {
  background: rgba(5, 7, 13, 0.97);
  backdrop-filter: blur(20px);
}

/* -------------------------------------------------------------------------
   Misc utility
   ------------------------------------------------------------------------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Noise overlay disabled for performance — visual depth comes from gradients */
.noise::after { content: none; }

/* -------------------------------------------------------------------------
   Accessibility: respect reduced-motion preference
   ------------------------------------------------------------------------- */
@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;
  }
  .marquee { animation: none !important; }
  .fade-up { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Image rendering hint for sharper scaled images */
img { image-rendering: auto; }

/* Stable image sizing — prevent CLS */
.feature-card img, .glass-card img { display: block; }

/* Mobile: further reduce expensive effects */
@media (max-width: 768px) {
  .orb { filter: blur(50px); opacity: 0.25; }
  .glass-card { transition: none; }
  .glass-card:hover { transform: none; }
}
