:root {
  --bg: #08090b;
  --bg-soft: #111317;
  --primary: #ea5709;
  --primary-hover: #ff6c1a;
  --accent-green: #bfd730;
  --accent-blue: #4099d4;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --glass: rgba(17, 19, 23, 0.85);
  --glass-border: rgba(255, 255, 255, 0.07);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(234, 87, 9, 0.08), transparent 36%),
    radial-gradient(circle at 88% 22%, rgba(64, 153, 212, 0.06), transparent 30%),
    radial-gradient(circle at 25% 75%, rgba(191, 215, 48, 0.04), transparent 25%),
    var(--bg);
  overflow-x: hidden;
}

/* Subtle Technical Grid Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
  z-index: -1;
}

/* Navbar semi-solid dark slate with blur */
.nav-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 9, 11, 0.88);
  border-bottom: 1px solid var(--glass-border);
}

/* Premium Charcoal Slate Cards */
.glass-card {
  background: var(--bg-soft);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.5), 
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Highlight border at the top of cards in Rapid7 style */
.feature-card,
.service-card,
.deliverable-card,
.benefit-card {
  border-top: 3px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease, 
              box-shadow 0.35s ease, 
              background 0.35s ease;
}

.feature-card:hover,
.service-card:hover,
.deliverable-card:hover,
.benefit-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--primary);
  border-left-color: rgba(255, 255, 255, 0.12);
  border-right-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.65), 
    0 0 25px rgba(234, 87, 9, 0.08);
}

.tool-card,
.industry-card {
  border: 1px solid var(--glass-border);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease, 
              box-shadow 0.35s ease, 
              background 0.35s ease;
}

.tool-card:hover,
.industry-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(234, 87, 9, 0.08);
  background: rgba(234, 87, 9, 0.03);
}

/* Beautiful Metallic White-to-Orange Gradient text */
.gradient-text {
  background: linear-gradient(95deg, #ffffff 55%, #ff8c3b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-glow {
  position: absolute;
  inset: auto -15% -25% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 87, 9, 0.12), rgba(64, 153, 212, 0.02), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

/* Dashboard operations view styled in slate & orange */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.dashboard-widget {
  background: #16181d;
  border: 1px solid var(--glass-border);
  border-radius: 0.8rem;
  padding: 0.75rem;
  min-height: 90px;
  position: relative;
  overflow: hidden;
}

.dashboard-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(234, 87, 9, 0.08), transparent);
  transform: translateX(-110%);
}

.dashboard-widget.scan::before {
  animation: sweep 4.8s infinite ease-in-out;
}

@keyframes sweep {
  0%, 42% { transform: translateX(-110%); }
  70% { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(234, 87, 9, 0.12) 48%, transparent 100%);
  transform: translateY(-120%);
  animation: scanner 5.5s linear infinite;
}

@keyframes scanner {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(120%); }
}

/* Methodology workflow with orange indicators */
.method-step {
  position: relative;
  padding-left: 2.75rem;
}

.method-step::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0.9rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(234, 87, 9, 0.15);
}

.method-step::after {
  content: '';
  position: absolute;
  left: 1.07rem;
  top: 1.8rem;
  width: 1px;
  height: calc(100% - 0.4rem);
  background: linear-gradient(to bottom, rgba(234, 87, 9, 0.35), rgba(234, 87, 9, 0.02));
}

.method-step:last-child::after {
  display: none;
}

/* Custom dark forms styled like Rapid7 command panel */
.custom-input,
.custom-select,
.custom-textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #16181d;
  padding: 0.8rem 0.95rem;
  color: #f3f4f6;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.custom-input::placeholder,
.custom-textarea::placeholder {
  color: rgba(156, 163, 175, 0.7);
}

.custom-input:focus,
.custom-select:focus,
.custom-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 87, 9, 0.15);
  background: #1b1e24;
}

/* Corporate Buttons in Rapid7 Style */
.btn-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 14px rgba(234, 87, 9, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(234, 87, 9, 0.4);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #f3f4f6;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1.5px);
  background: rgba(234, 87, 9, 0.02);
  box-shadow: 0 6px 20px rgba(234, 87, 9, 0.1);
}

.bg-noise {
  position: relative;
}

.bg-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  opacity: 0.07;
}

.logo-ring {
  filter: drop-shadow(0px 0px 20px rgba(234, 87, 9, 0.2));
}

@media (max-width: 768px) {
  .method-step {
    padding-left: 2.3rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
