/* =========================================
   BLACK SIGNAL — Design System
   Technical Security & Counter-Surveillance
   ========================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Core Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: rgba(20, 20, 20, 0.8);
  --bg-card-hover: rgba(30, 30, 30, 0.9);

  /* Brand Colors */
  --red-primary: #d4303c;
  --red-glow: #ff1a2a;
  --red-dark: #a01a28;
  --red-muted: rgba(196, 30, 42, 0.15);

  /* Text */
  --text-primary: #e8e8e8;
  --text-secondary: #999999;
  --text-muted: #666666;
  --text-accent: #d4303c;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-red: rgba(196, 30, 42, 0.3);
  --border-red-active: rgba(196, 30, 42, 0.6);

  /* Glass */
  --glass-bg: rgba(15, 15, 15, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;

  /* Shadows */
  --shadow-red: 0 0 30px rgba(196, 30, 42, 0.15);
  --shadow-red-strong: 0 0 60px rgba(196, 30, 42, 0.3);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.5);

  /* Fonts */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--red-primary);
  color: #fff;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--red-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  letter-spacing: 0.06em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
}

h4 {
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.mono {
  font-family: var(--font-mono);
}

.text-red {
  color: var(--red-primary);
}

.text-muted {
  color: var(--text-secondary);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '//';
  opacity: 0.5;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
}

/* --- Language Switcher --- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border-subtle);
}

.lang-switch a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 6px;
  transition: all var(--transition-fast);
  letter-spacing: 0.05em;
}

.lang-switch a:hover {
  color: var(--text-primary);
}

.lang-switch a.active {
  color: var(--red-primary);
  background: var(--red-muted);
  border-radius: 2px;
}

.lang-switch a::after {
  display: none !important;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-medium);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: var(--border-red);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .signal-dot {
  width: 8px;
  height: 8px;
  background: var(--red-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--red-glow);
}

@keyframes pulse-dot {
  0% { opacity: 1; box-shadow: 0 0 10px var(--red-glow); transform: scale(1); }
  15% { opacity: 0.8; box-shadow: 0 0 6px var(--red-glow); transform: scale(1.3); }
  30% { opacity: 0.5; box-shadow: 0 0 3px var(--red-glow); transform: scale(0.85); }
  45% { opacity: 0.9; box-shadow: 0 0 12px var(--red-glow); transform: scale(1.4); }
  55% { opacity: 0.4; box-shadow: 0 0 4px var(--red-glow); transform: scale(0.9); }
  70% { opacity: 0.7; box-shadow: 0 0 8px var(--red-glow); transform: scale(1.15); }
  85% { opacity: 0.5; box-shadow: 0 0 3px var(--red-glow); transform: scale(0.95); }
  100% { opacity: 1; box-shadow: 0 0 10px var(--red-glow); transform: scale(1); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red-primary);
  transition: width var(--transition-medium);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Highlight for Services link */
.nav-svc-highlight {
  color: var(--red-primary) !important;
  border: 1px solid var(--border-red);
  padding: 6px 14px !important;
  border-radius: 2px;
  transition: all var(--transition-fast) !important;
}

.nav-svc-highlight:hover {
  background: var(--red-muted);
  border-color: var(--border-red-active);
}

.nav-svc-highlight::after {
  display: none !important;
}

.nav-contact {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red-primary) !important;
  border: 1px solid var(--border-red);
  padding: 8px 16px;
  border-radius: 2px;
  transition: all var(--transition-fast) !important;
}

.nav-contact:hover {
  background: var(--red-muted);
  border-color: var(--border-red-active);
}

.nav-contact::after {
  display: none !important;
}

/* Mobile Menu */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.nav-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger.active span:nth-child(2) {
  opacity: 0;
}

.nav-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red-primary);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag .blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero h1 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #999999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--red-primary);
  color: #fff;
  border: 1px solid var(--red-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--red-primary);
  box-shadow: var(--shadow-red);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

/* Glitch effect on buttons */
.btn-glitch {
  position: relative;
}

.btn-glitch:hover {
  animation: btn-glitch 0.3s ease;
}

@keyframes btn-glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-red);
}

.card:hover::before {
  opacity: 1;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 2px;
  filter: grayscale(30%) brightness(0.8);
  transition: filter var(--transition-medium);
}

.card:hover .card-img {
  filter: grayscale(0%) brightness(0.9);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--red-primary);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red-primary);
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.05em;
}

.card-link:hover {
  gap: 12px;
}

/* --- Service Page --- */
.service-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(50%);
}

.service-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(10,10,10,0.5) 40%, var(--bg-primary) 100%);
}

.service-hero-content {
  position: relative;
  z-index: 2;
}

.service-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-breadcrumb a {
  color: var(--text-muted);
}

.service-breadcrumb a:hover {
  color: var(--red-primary);
}

.service-breadcrumb .sep {
  color: var(--text-muted);
}

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  transition: all var(--transition-medium);
}

.feature-item:hover {
  border-color: var(--border-red);
}

.feature-item h4 {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--red-primary);
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--red-primary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.faq-answer-inner {
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--red-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-secure {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Scanline overlay --- */
.scanline-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
}

/* --- Grid Lines Background --- */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 30, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 30, 42, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* --- Gradient Orbs --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
}

.orb-red {
  background: radial-gradient(circle, var(--red-primary) 0%, transparent 70%);
}

.orb-dark {
  background: radial-gradient(circle, rgba(30, 30, 30, 1) 0%, transparent 70%);
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red-primary);
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Process Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2px;
}

.process-step {
  background: var(--bg-card);
  padding: 32px;
  position: relative;
}

.process-step::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--red-primary);
  font-size: 1.2rem;
  z-index: 1;
}

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

.process-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-dark);
  opacity: 0.5;
  margin-bottom: 12px;
}

.process-step h4 {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* --- Messenger Buttons --- */
.messenger-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.msg-btn:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  transform: translateY(-2px);
}

.msg-btn svg {
  width: 20px;
  height: 20px;
}

/* --- Price Calculator --- */
.calc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 40px;
  max-width: 600px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.calc-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--red-primary);
  font-weight: 600;
}

.calc-total {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-primary);
  padding-top: 20px;
  margin-top: 8px;
  border-top: 2px solid var(--border-red);
}

.calc-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* --- Language Switcher --- */
.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-switch a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 8px;
  letter-spacing: 0.05em;
}

.lang-switch a.active {
  color: var(--red-primary);
  border-bottom: 1px solid var(--red-primary);
}

/* --- Navigation Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::after {
  display: none !important;
}

.nav-dropdown > a .dd-arrow {
  font-size: 0.5rem;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dd-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(15, 15, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  margin-top: 12px;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  margin-top: 4px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.82rem !important;
  color: var(--text-secondary) !important;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  color: var(--red-primary) !important;
  background: var(--red-muted);
  padding-left: 24px;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

/* --- Spec Accordion --- */
.spec-list {
  max-width: 800px;
  margin-top: 40px;
}

.spec-group {
  border-left: 2px solid var(--border-subtle);
  margin-bottom: 2px;
  background: var(--bg-card);
  transition: border-color var(--transition-medium), background var(--transition-medium);
}

.spec-group.open {
  border-left-color: var(--red-primary);
  background: var(--bg-card-hover);
}

.spec-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  transition: color var(--transition-fast);
}

.spec-toggle:hover {
  background: rgba(196, 30, 42, 0.04);
}

.spec-toggle-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spec-toggle-icon {
  width: 20px;
  height: 20px;
  color: var(--red-primary);
  opacity: 0.7;
  flex-shrink: 0;
}

.spec-toggle-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0;
  text-transform: none;
}

.spec-toggle-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.spec-arrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red-primary);
  transition: transform var(--transition-fast);
}

.spec-group.open .spec-arrow {
  transform: rotate(90deg);
}

.spec-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.spec-group.open .spec-body {
  max-height: 2000px;
}

.spec-body-inner {
  padding: 0 24px 20px 58px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.spec-item::before {
  content: '—';
  color: var(--red-dark);
  flex-shrink: 0;
  opacity: 0.5;
}

/* Spec Result Block (always visible) */
.spec-result {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--border-red);
  background: rgba(196, 30, 42, 0.03);
}

.spec-result h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red-primary);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.spec-result .spec-item::before {
  content: '✓';
  color: var(--red-primary);
  opacity: 1;
}

/* Tier Cards */
.tier-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

.tier-card {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  position: relative;
  transition: all var(--transition-medium);
}

.tier-card:hover {
  border-color: var(--border-red);
}

.tier-card.recommended {
  border-color: var(--border-red-active);
}

.tier-badge {
  position: absolute;
  top: 0;
  right: 24px;
  background: var(--red-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  text-transform: uppercase;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.tier-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--red-primary);
  font-weight: 600;
}

.tier-includes {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 8px 24px;
  background: rgba(196, 30, 42, 0.03);
  letter-spacing: 0.05em;
}

.tier-body {
  padding: 0;
}

.tier-body .spec-group {
  border-left: none;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.tier-body .spec-group:last-child {
  border-bottom: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .process-step::after {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .why-grid #radar-container {
    max-width: 300px;
    margin: 0 auto;
  }

  .extra-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --nav-height: 60px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-burger {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    margin-top: 0;
    padding: 0;
  }

  .nav-dropdown-menu a {
    font-size: 0.9rem !important;
    padding: 8px 16px;
    color: var(--text-muted) !important;
  }

  .hero-content {
    padding-top: 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .messenger-buttons {
    flex-direction: column;
  }

  .calc-wrapper {
    padding: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  /* Fix inline grid layouts on service pages */
  .section [style*="grid-template-columns: 1fr 1fr"],
  .section [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* OSINT level cards: flex to column on mobile */
  .section [style*="display:flex"][style*="gap:32px"] {
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Reduce padding on level cards for mobile */
  .section [style*="padding:40px"] {
    padding: 24px !important;
  }

  .section [style*="padding:48px"] {
    padding: 24px !important;
  }

  /* Roman numerals smaller on mobile */
  .section [style*="font-size:2.5rem"] {
    font-size: 1.8rem !important;
  }

  /* Tier grid single column on mobile */
  .tier-grid {
    grid-template-columns: 1fr !important;
  }

  /* Spec toggle more compact on mobile */
  .spec-toggle {
    padding: 14px 16px;
  }

  .spec-body-inner {
    padding: 0 16px 16px;
  }

  /* Contact page 3-column conditions grid */
  .section [style*="grid-template-columns: 1fr 1fr 1fr"],
  .section [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .card {
    padding: 24px;
  }
}

