/* =============================================
   AEGIS GUARD — Enterprise Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:        #07080f;
  --bg-alt:    #0c0d16;
  --surface:   #11121e;
  --border:    rgba(255,255,255,0.07);
  --border-h:  rgba(255,255,255,0.13);
  --blue:      #3b82f6;
  --indigo:    #6366f1;
  --text-1:    #f1f5f9;
  --text-2:    #94a3b8;
  --text-3:    #475569;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --max-w:     1200px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 4px; }

/* ---- UTILITIES ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.max-w-2 { max-width: 640px; margin-left: auto; margin-right: auto; }

.text-gradient {
  background: linear-gradient(135deg, #60a5fa, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn--primary:hover { background: #2563eb; border-color: #2563eb; }

.btn--outline {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-h);
}
.btn--outline:hover { color: var(--text-1); border-color: var(--blue); }

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }

.btn--lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; border-radius: 10px; }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }

/* ---- NAVBAR ---- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,8,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav-bar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-1); background: rgba(255,255,255,0.06); }

.nav-link--scanner {
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.2);
}
.nav-link--scanner:hover { background: rgba(52,211,153,0.08); color: #34d399; }

.nav-actions { display: flex; gap: 0.5rem; margin-left: auto; }

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

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; max-width: 580px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-h);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.6; transform:scale(1.3); }
}

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-3);
}
.hero-meta span { display: flex; align-items: center; gap: 0.4rem; }
.hero-meta i { color: #22c55e; font-size: 0.7rem; }

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 420px;
}

.shield-icon {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(59,130,246,0.2));
  animation: float-shield 6s ease-in-out infinite;
}

@keyframes float-shield {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.pulse-dot { animation: pulse-core 2.5s ease-in-out infinite; }
@keyframes pulse-core {
  0%,100% { opacity:0.95; r:7; }
  50% { opacity:0.6; r:9; }
}

.shield-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
}
.shield-orbit--outer {
  width: 360px; height: 360px;
  animation: orbit 14s linear infinite;
}
.shield-orbit--outer::after {
  content:'';
  position:absolute;
  top:-4px; left:50%;
  width:8px; height:8px;
  background: rgba(59,130,246,0.5);
  border-radius:50%;
  filter:blur(2px);
}
.shield-orbit--inner {
  width: 260px; height: 260px;
  animation: orbit 10s linear infinite reverse;
}
.shield-orbit--inner::after {
  content:'';
  position:absolute;
  bottom:-3px; right:25%;
  width:6px; height:6px;
  background: rgba(99,102,241,0.4);
  border-radius:50%;
}

@keyframes orbit { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* ---- METRICS BAR ---- */
.metrics-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.metrics-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 2.5rem 1.5rem;
}

.metric { text-align: center; padding: 0 3rem; }
.metric-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- SECTIONS ---- */
.section { padding: 7rem 0; }
.section--alt { background: var(--bg-alt); }

.section-header { margin-bottom: 4rem; }

.section-overline {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ---- FEATURES GRID ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.feature-icon--blue   { background:rgba(59,130,246,0.12); color:#60a5fa; }
.feature-icon--indigo { background:rgba(99,102,241,0.12); color:#818cf8; }
.feature-icon--purple { background:rgba(139,92,246,0.12); color:#a78bfa; }
.feature-icon--emerald{ background:rgba(16,185,129,0.12); color:#34d399; }
.feature-icon--amber  { background:rgba(245,158,11,0.12); color:#fbbf24; }
.feature-icon--cyan   { background:rgba(6,182,212,0.12);  color:#22d3ee; }

.feature-title { font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.6rem; }
.feature-desc  { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1.25rem; }
.feature-link  { font-size: 0.8rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 0.35rem; transition: gap var(--transition); }
.feature-link:hover { gap: 0.6rem; }

/* ---- STEPS ---- */
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

.step { flex: 1; text-align: center; padding: 0 1.5rem; }
.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59,130,246,0.35);
  margin-bottom: 1rem;
  line-height: 1;
}
.step-title { font-size: 1.05rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.5rem; }
.step-desc  { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }

.step-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-h), transparent);
  flex-shrink: 0;
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition);
}
.testimonial-card:hover { border-color: var(--border-h); }

.stars { display: flex; gap: 3px; color: #fbbf24; font-size: 0.8rem; margin-bottom: 1.25rem; }

.testimonial-text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.author-name { font-size: 0.875rem; font-weight: 600; color: var(--text-1); }
.author-role { font-size: 0.75rem; color: var(--text-3); }

/* ---- CTA ---- */
.cta-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-note { margin-top: 1.25rem; font-size: 0.8rem; color: var(--text-3); }

/* ---- FOOTER ---- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding-top: 4rem; }

.footer-inner {
  display: flex;
  gap: 4rem;
  padding-bottom: 3rem;
}

.footer-brand { flex: 1.2; }
.footer-tagline { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1.5rem; }

.footer-socials { display: flex; gap: 0.5rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-3);
  transition: all var(--transition);
}
.social-link:hover { color: var(--text-1); border-color: var(--border-h); background: rgba(255,255,255,0.05); }

.footer-links { display: flex; gap: 3rem; }
.footer-col h4.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-3); transition: color var(--transition); }
.footer-col a:hover { color: var(--text-1); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-3); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { flex-direction: column; }
  .step-connector { width: 1px; height: 40px; background: linear-gradient(180deg, transparent, var(--border-h), transparent); }
  .footer-inner { flex-direction: column; gap: 2.5rem; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }
  .hero-inner { flex-direction: column-reverse; gap: 2rem; padding-top: 3rem; }
  .hero-visual { max-width: 280px; }
  .hero-headline { font-size: 2rem; }
  .metrics-inner { gap: 1.5rem; }
  .metric { padding: 0 1.5rem; }
  .metric-divider { display: none; }
  .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .footer-links { flex-direction: column; gap: 2rem; }
}
