/* ============================================================
   Delta Evals – custom styles
   Layered on top of Tailwind (loaded via CDN).
   ============================================================ */

:root {
  --bg-0: #07090f;
  --bg-1: #0b1220;
  --bg-2: #0f172a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-0: #e6edf3;
  --text-1: #c0c8d4;
  --text-2: #8a93a3;
  --brand-cyan: #22d3ee;
  --brand-blue: #38bdf8;
  --brand-violet: #a78bfa;
  --brand-amber: #f5b454;
  --shadow-glow: 0 0 60px -10px rgba(56, 189, 248, 0.35);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.015em;
}

/* ---------- Background canvas: aurora + grid ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(56, 189, 248, 0.18) 0%, transparent 60%),
    radial-gradient(40% 40% at 85% 30%, rgba(167, 139, 250, 0.16) 0%, transparent 65%),
    radial-gradient(40% 40% at 10% 60%, rgba(34, 211, 238, 0.12) 0%, transparent 65%),
    linear-gradient(180deg, #07090f 0%, #07090f 60%, #06080d 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
}

/* ---------- Shared utilities ---------- */
.container-x {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container-x {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.gradient-text {
  background: linear-gradient(95deg, var(--brand-cyan) 0%, var(--brand-blue) 45%, var(--brand-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--text-1);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-cyan);
  box-shadow: 0 0 12px var(--brand-cyan);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #06121e;
  background: linear-gradient(135deg, #67e8f9 0%, #38bdf8 50%, #a78bfa 100%);
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px -12px rgba(56, 189, 248, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-0);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 9, 15, 0.85) 0%, rgba(7, 9, 15, 0.55) 100%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 9, 15, 0.85);
}

.nav-link {
  position: relative;
  color: var(--text-1);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
}

.nav-link:hover { color: #fff; }

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-violet));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.0) 0%, rgba(34, 211, 238, 0.5) 50%, rgba(167, 139, 250, 0.0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18) 0%, rgba(167, 139, 250, 0.18) 100%);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--brand-cyan);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-body {
  color: var(--text-1);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ---------- Hero badge ring ---------- */
.hero-shape {
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-shape.cyan {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45) 0%, transparent 70%);
  top: -120px;
  left: -120px;
}

.hero-shape.violet {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%);
  top: -40px;
  right: -160px;
}

/* ---------- Section header ---------- */
.section {
  padding: 5.5rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-1);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 680px;
}

/* ---------- Pill list ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  color: var(--text-1);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pill:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
}

/* ---------- Process steps ---------- */
.step {
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: 2rem;
}

.step:last-child { padding-bottom: 0; }

.step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.4) 0%, rgba(167, 139, 250, 0.05) 100%);
}

.step:last-child::before { display: none; }

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #06121e;
  background: linear-gradient(135deg, #67e8f9 0%, #a78bfa 100%);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

/* ---------- Stat block ---------- */
.stat {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, var(--brand-cyan), var(--brand-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-2);
  font-size: 0.82rem;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Form ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.02em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text-0);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-2); }

/* Dark, readable native dropdown popup (Chrome/Edge/Firefox) */
.field select {
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 14px;
}

.field select option {
  background-color: #0b1220;
  color: var(--text-0);
}

.field select option:checked,
.field select option:hover {
  background-color: #14233d;
  color: #ffffff;
}

.field select option[value=""] {
  color: var(--text-2);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  color: var(--text-2);
  font-size: 0.9rem;
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal-stagger].in > * { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].in > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].in > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-stagger].in > *:nth-child(3) { transition-delay: 0.15s; }
[data-reveal-stagger].in > *:nth-child(4) { transition-delay: 0.2s; }
[data-reveal-stagger].in > *:nth-child(5) { transition-delay: 0.25s; }
[data-reveal-stagger].in > *:nth-child(6) { transition-delay: 0.3s; }
[data-reveal-stagger].in > *:nth-child(7) { transition-delay: 0.35s; }
[data-reveal-stagger].in > *:nth-child(8) { transition-delay: 0.4s; }
[data-reveal-stagger].in > *:nth-child(9) { transition-delay: 0.45s; }
[data-reveal-stagger].in > *:nth-child(n+10) { transition-delay: 0.5s; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(7, 9, 15, 0.97);
  backdrop-filter: blur(18px);
  z-index: 49;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  padding: 2rem 1.5rem;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-0);
  border-bottom: 1px solid var(--border);
}

/* ---------- Animated dot pulse ---------- */
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
}

.pulse-dot { animation: pulse-soft 2.2s ease-in-out infinite; }

/* ---------- Detailed service item (services.html) ---------- */
.svc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.svc:hover { border-color: var(--border-strong); }

@media (min-width: 900px) {
  .svc { grid-template-columns: 240px 1fr; gap: 2.25rem; padding: 2.25rem 2.5rem; }
}

.svc-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.9) 0%, rgba(167, 139, 250, 0.9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.svc h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.svc p {
  color: var(--text-1);
  line-height: 1.7;
}

.svc ul {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .svc ul { grid-template-columns: 1fr 1fr; }
}

.svc li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-1);
  font-size: 0.92rem;
  line-height: 1.55;
}

.svc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-violet));
}

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

/* ---------- Scrollbar (subtle) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07090f; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 2px solid #07090f;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); }

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