/* ═══════════════════════════════════════════
   CYBERLEGION — DESIGN SYSTEM
   Dark / Technical Theme
════════════════════════════════════════════ */

/* ─── RESET & ROOT ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080d14;
  --bg-card:     #0d1421;
  --bg-card-2:   #111827;
  --border:      rgba(0, 255, 136, 0.12);
  --border-dim:  rgba(255,255,255,0.06);

  --accent:      #00ff88;
  --accent-dim:  rgba(0, 255, 136, 0.15);
  --accent-glow: rgba(0, 255, 136, 0.35);
  --cyan:        #00b4d8;
  --cyan-dim:    rgba(0, 180, 216, 0.15);
  --red:         #ff4757;
  --red-dim:     rgba(255, 71, 87, 0.15);
  --orange:      #ffa502;

  --text:        #e8edf5;
  --text-muted:  #6b7a99;
  --text-dim:    #3d4a66;

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  --radius:     8px;
  --radius-lg:  16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-card: 0 4px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 32px var(--accent-glow);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

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

/* ─── UTILITY ────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-header { margin-bottom: 64px; }

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #080d14;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  background: #00e87a;
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-dim);
}
.btn-ghost:hover {
  border-color: var(--border);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── NAV ─────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav-header.scrolled {
  background: rgba(8, 13, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-dim);
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-heading {
  height: 30px !important;
  width: auto !important;
}
.footer-logo {
  height: 240px !important;
  width: auto !important;
}
.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 1px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-cyber { color: var(--accent); }
.logo-legion { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta {
  background: var(--accent-dim);
  color: var(--accent) !important;
  border: 1px solid var(--border);
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

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

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-headline {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  min-height: 3em;
}

.typewriter::after {
  content: '|';
  color: var(--accent);
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 580px;
}
.hero-secondary {
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
  opacity: 0.85;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-source {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 10px;
  letter-spacing: 0.03em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-dim);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.hero-scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-down 1.8s ease-in-out infinite;
}
@keyframes scroll-down {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  70% { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ─── PAIN BAR ─────────────────────────────────── */
.pain-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: 16px 0;
  overflow: hidden;
}
.pain-bar-track { overflow: hidden; white-space: nowrap; }
.pain-bar-inner {
  display: inline-block;
  animation: ticker 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  gap: 32px;
}
.pain-bar-inner span { margin: 0 16px; }
.pain-sep { color: var(--accent); opacity: 0.4; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SERVICES ─────────────────────────────────── */
.services {
  padding: 100px 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.service-card:hover .service-icon { color: var(--accent); }

.service-icon {
  width: 44px; height: 44px;
  color: var(--text-muted);
  transition: var(--transition);
}
.service-icon svg { width: 100%; height: 100%; }

.service-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border);
  width: fit-content;
}
.service-tag.urgent {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(255, 71, 87, 0.25);
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}
.service-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.service-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition);
}
.service-link:hover { gap: 10px; }

/* ─── CREDENTIALS ────────────────────────────── */
.credentials {
  padding: 100px 0;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.cred-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
}
.cred-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-2);
}

.cred-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 20px;
}
.cred-icon svg { width: 100%; height: 100%; }

.cred-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cred-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── WHY US ──────────────────────────────────── */
.why-us {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-card {
  background: var(--bg-card);
  padding: 36px 32px;
  transition: var(--transition);
}
.why-card:hover {
  background: var(--bg-card-2);
}
.why-card:hover .why-number { color: var(--accent); }

.why-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
  transition: var(--transition);
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── PROCESS ─────────────────────────────────── */
.process {
  padding: 100px 0;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  transition: var(--transition);
}
.process-step:last-child { border-bottom: none; }
.process-step:hover { padding-left: 16px; }
.process-step:hover .step-num { color: var(--accent); }

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  padding-top: 4px;
  transition: var(--transition);
}

.step-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.step-connector {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: auto;
}

/* ─── CONTACT ─────────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-dim);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-promises {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-promises li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.contact-promises svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ─── FORM ──────────────────────────────────────── */
.contact-form-wrap {
  position: relative;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.optional {
  color: var(--text-dim);
  font-weight: 400;
}

input, select, textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus {
  border-color: var(--border);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7a99'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}
select option { background: var(--bg-card); }

textarea { resize: vertical; min-height: 80px; }

.btn-arrow { transition: transform var(--transition); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.form-success {
  display: none;
  text-align: center;
  padding: 48px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}
.form-success.show { display: block; }

.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-icon svg {
  width: 24px; height: 24px;
  color: var(--accent);
}
.form-success h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.form-success p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border-dim);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.footer-brand .nav-logo {
  line-height: 0;
}

.footer-brand p.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -60px;
  line-height: 1.6;
  text-align: center;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span {
  font-size: 13px;
  color: var(--text-dim);
}
.footer-mono {
  font-family: var(--font-mono) !important;
  color: var(--text-dim) !important;
}

/* ─── LOGO TEXT IN FOOTER ────────────────────── */
.logo-text-footer { display: none !important; }

/* ─── REVEAL ANIMATIONS ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.25s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.55s; }
.fade-in:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(8, 13, 20, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-dim);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-header { position: fixed; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .process-step {
    grid-template-columns: 48px 1fr;
  }
  .step-connector { display: none; }

  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
  .footer-links { grid-template-columns: 1fr; }
}
