/* =========================================
   ZERITH X — style.css
   Dark cybersecurity consulting theme
   ========================================= */

/* --- VARIABLES & RESET --- */
:root {
  --bg:          #060b10;
  --bg-2:        #0a1018;
  --bg-3:        #0e1620;
  --border:      rgba(0, 195, 255, 0.12);
  --accent:      #00c3ff;
  --accent-dim:  rgba(0, 195, 255, 0.15);
  --accent-glow: rgba(0, 195, 255, 0.08);
  --text:        #d8e8f0;
  --text-muted:  rgba(216, 232, 240, 0.45);
  --text-faint:  rgba(216, 232, 240, 0.2);
  --mono:        'Share Tech Mono', monospace;
  --sans:        'DM Sans', sans-serif;
  --display:     'Syne', sans-serif;
  --radius:      4px;
  --transition:  0.2s ease;
  --max-w:       1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- UTILITIES --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 13px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--accent);
  color: #060b10;
  font-weight: 700;
}
.btn--primary:hover {
  background: #33d0ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 195, 255, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: rgba(0, 195, 255, 0.4);
  color: var(--accent);
}

/* =========================================
   HEADER
   ========================================= */
@keyframes header-slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes header-scan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes header-border-pulse {
  0%, 100% { box-shadow: 0 1px 0 0 rgba(0, 195, 255, 0.12), 0 0 12px 0 rgba(0, 195, 255, 0.05); }
  50%      { box-shadow: 0 1px 0 0 rgba(0, 195, 255, 0.35), 0 0 24px 0 rgba(0, 195, 255, 0.18); }
}

@keyframes nav-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(0, 195, 255, 0.0)); }
  50%      { filter: drop-shadow(0 0 6px rgba(0, 195, 255, 0.55)); }
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 195, 255, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 195, 255, 0); }
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  animation:
    header-slide-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
    header-border-pulse 4s ease-in-out 0.7s infinite;
}

.header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 35%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 195, 255, 0) 10%,
    rgba(0, 195, 255, 0.9) 50%,
    rgba(0, 195, 255, 0) 90%,
    transparent 100%
  );
  animation: header-scan 4.5s linear infinite;
  pointer-events: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition);
}
.logo:hover { transform: scale(1.04); }
.logo__img {
  height: 36px;
  width: auto;
  animation: logo-glow 3.5s ease-in-out infinite;
}
.logo__fallback {
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--text);
  display: none;
  animation: logo-glow 3.5s ease-in-out infinite;
}
.logo__fallback .accent { color: var(--accent); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: color var(--transition);
  opacity: 0;
  animation: nav-fade-in 0.5s ease-out forwards;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav__link:nth-of-type(1) { animation-delay: 0.35s; }
.nav__link:nth-of-type(2) { animation-delay: 0.45s; }
.nav__link:nth-of-type(3) { animation-delay: 0.55s; }
.nav__link:nth-of-type(4) { animation-delay: 0.65s; }

.nav__cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: all var(--transition);
  opacity: 0;
  animation:
    nav-fade-in 0.5s ease-out 0.75s forwards,
    cta-pulse 2.6s ease-out 1.3s infinite;
}
.nav__cta:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 195, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .header::before,
  .logo__img,
  .logo__fallback,
  .nav__link,
  .nav__cta {
    animation: none !important;
  }
  .nav__link,
  .nav__cta { opacity: 1; }
}

/* Hamburger */
.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: all var(--transition);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,195,255,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent-glow);
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.hero__sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__stat {
  display: flex;
  flex-direction: column;
}
.hero__stat strong {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 3px;
}
.hero__stat span {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero__stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* =========================================
   ABOUT
   ========================================= */
.about {
  padding: 6rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 2.5rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 15px;
}

.about__mission {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-glow);
}
.about__mission-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.about__mission p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.about__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about__card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition);
}
.about__card:hover { border-color: rgba(0, 195, 255, 0.3); }
.about__card-icon {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.about__card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.about__card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================
   SERVICES
   ========================================= */
.services {
  padding: 6rem 0;
}

.services__label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
}
.service-card:hover {
  border-color: rgba(0, 195, 255, 0.3);
  transform: translateY(-2px);
}
.service-card--featured {
  border-color: rgba(0, 195, 255, 0.25);
  background: linear-gradient(145deg, var(--bg-2), rgba(0,195,255,0.04));
}

.service-card__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.service-card__title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}
.service-card__tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(0, 195, 255, 0.6);
  border: 1px solid rgba(0, 195, 255, 0.2);
  padding: 3px 10px;
  border-radius: 2px;
}

.service-card__offer {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.offer-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0, 195, 255, 0.2);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.service-card__offer p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =========================================
   CONTACT
   ========================================= */
.contact {
  padding: 6rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.contact__label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {}
.contact__item-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-faint);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.contact__item-value {
  font-size: 15px;
  color: var(--text);
  transition: color var(--transition);
}
a.contact__item-value:hover { color: var(--accent); }

.contact__btn { margin-top: 0.5rem; }

.contact__box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact__box-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}
.contact__checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.contact__checklist li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.contact__checklist li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}
.contact__note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__logo {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--text);
}
.footer__copy {
  font-size: 12px;
  color: var(--text-faint);
}
.footer__email {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__email:hover { color: var(--accent); }

/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */
@media (max-width: 768px) {

  /* Header */
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
  }
  .nav.open { display: flex; }
  .nav__link {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
  }
  .nav__link:last-of-type { border-bottom: none; }
  .nav__cta { margin-top: 1rem; }

  /* Hero */
  .hero { padding: 4rem 0 3.5rem; }
  .hero__stats { gap: 1.25rem; }
  .hero__stat-divider { display: none; }

  /* About */
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 30px; }
  .section-title { font-size: 26px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
}
