/* ═══════════════════════════════════════════════
   VulnHawk — Main Stylesheet
   vulnhawk.org
═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:        #0a0c10;
  --bg2:       #0f1117;
  --bg3:       #161b25;
  --border:    #1e2535;
  --accent:    #00e5ff;
  --accent2:   #7c3aed;
  --green:     #22c55e;
  --yellow:    #facc15;
  --red:       #ef4444;
  --text:      #e2e8f0;
  --muted:     #8892a4;
  --white:     #ffffff;
  --font:      'Inter', sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --radius:    10px;
  --shadow:    0 4px 32px rgba(0,229,255,0.07);
  --transition: .25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Container ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

.accent { color: var(--accent); }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: #00c8e0; transform: translateY(-2px); box-shadow: 0 0 24px rgba(0,229,255,0.35); }
.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: rgba(0,229,255,.08); transform: translateY(-2px); }
.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--muted);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 18px; font-size: .875rem; }
.btn-full { width: 100%; text-align: center; }

/* ── Section helpers ── */
.section-label {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 600px; margin-bottom: 48px; }

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(10,12,16,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
}
.logo-img       { height: 48px; width: auto; flex-shrink: 0; }
.logo-wordmark  { display: flex; flex-direction: column; line-height: 1.15; }
.logo-vuln      { font-size: .6rem;  font-weight: 600; color: var(--muted); letter-spacing: .2em; }
.logo-hawk      { font-size: 1.1rem; font-weight: 900; color: var(--accent); letter-spacing: .04em; }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: .9rem;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
#navbar .btn-sm { margin-left: 16px; }
.hamburger { display: none; font-size: 1.4rem; color: var(--text); margin-left: auto; }

/* Mobile nav */
.mobile-menu {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { font-size: 1rem; color: var(--text); }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* grid bg */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 780px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-family: var(--mono);
  color: var(--accent);
  background: rgba(0,229,255,.07);
  border: 1px solid rgba(0,229,255,.2);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 24px 0 36px;
  max-width: 580px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  font-family: var(--mono);
}
.stat-label { font-size: .8rem; color: var(--muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .75rem;
  color: var(--muted);
  font-family: var(--mono);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
#about {
  padding: 100px 0;
  background: var(--bg2);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.about-badges li {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: .82rem;
  font-family: var(--mono);
  color: var(--accent);
}

/* Terminal card */
.terminal-card {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red    { background: #ef4444; }
.t-dot.yellow { background: #facc15; }
.t-dot.green  { background: #22c55e; }
.t-title {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  margin-left: auto;
}
.terminal-body {
  padding: 20px 20px 24px;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.9;
}
.terminal-body p { white-space: nowrap; overflow: hidden; }
.t-prompt { color: var(--accent); }
.t-info    { color: var(--muted); }
.t-warn    { color: var(--yellow); }
.t-success { color: var(--green); }
.cursor    { animation: blink .8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ════════════════════════════════════════
   SERVICES
════════════════════════════════════════ */
#services { padding: 100px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card.featured {
  grid-column: span 1;
  border-color: rgba(0,229,255,.25);
  background: linear-gradient(135deg, var(--bg2) 70%, rgba(0,229,255,.04));
}
.service-icon { font-size: 2rem; }
.service-card h3 { color: var(--white); }
.service-card p  { color: var(--muted); font-size: .93rem; flex: 1; }
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: .85rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ════════════════════════════════════════
   WHY US
════════════════════════════════════════ */
#why-us {
  padding: 100px 0;
  background: var(--bg2);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.why-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition);
}
.why-card:hover { border-color: var(--accent); }
.why-icon { font-size: 1.8rem; margin-bottom: 12px; }
.why-card h4 { color: var(--white); margin-bottom: 8px; }
.why-card p  { font-size: .9rem; color: var(--muted); }

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
#contact { padding: 100px 0; }
.contact-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Form */
.contact-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  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 label { font-size: .85rem; color: var(--muted); }
.req { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #3d4a5c; }
.form-group select option { background: var(--bg3); }
.form-note { font-size: .78rem; color: var(--muted); text-align: center; }
.form-feedback {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .88rem;
  text-align: center;
}
.form-feedback.success { background: rgba(34,197,94,.1); border: 1px solid var(--green); color: var(--green); }
.form-feedback.error   { background: rgba(239,68,68,.1);  border: 1px solid var(--red);   color: var(--red); }

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-item strong { display: block; font-size: .9rem; color: var(--white); margin-bottom: 2px; }
.info-item p { font-size: .88rem; color: var(--muted); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo-img { height: 40px; }
.footer-brand p { font-size: .875rem; color: var(--muted); line-height: 1.8; }
.footer-links strong { display: block; color: var(--white); font-size: .875rem; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .85rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
}
.footer-mono { font-family: var(--mono); color: var(--accent); opacity: .6; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, #navbar .btn-sm { display: none; }
  .hamburger { display: block; }
  .about-grid    { grid-template-columns: 1fr; }
  .contact-wrap  { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .hero-stats    { gap: 20px; }
  .stat-divider  { display: none; }
}

@media (max-width: 480px) {
  .footer-inner   { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .hero-cta       { flex-direction: column; }
  .contact-form   { padding: 24px 18px; }
}
