/* =============================================================
   BEACON CYBER CONSULTING — SHARED DESIGN SYSTEM
   ============================================================= */

:root {
  /* Palette pulled from the logo */
  --bg: #060d18;
  --bg-2: #0b1a2e;
  --bg-3: #0d1c33;
  --line: #1a2a42;
  --line-2: #24385a;

  --ink: #e8eef5;
  --ink-2: #a8b6c9;
  --ink-3: #6a7a92;

  --teal: #00D4AA;
  --teal-2: #00a587;
  --teal-soft: rgba(0, 212, 170, 0.08);
  --teal-glow: rgba(0, 212, 170, 0.22);

  --sans: 'Inter Tight', 'Helvetica Neue', sans-serif;
  --display: 'Space Grotesk', 'Inter Tight', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 56px);

  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Background grid + vignette */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none; z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

main, .nav, .footer { position: relative; z-index: 1; }

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 400; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 400; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 500; }
p  { color: var(--ink-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--teal);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-2);
  max-width: 62ch;
  line-height: 1.55;
}

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

/* =============================================================
   LAYOUT
   ============================================================= */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
section { position: relative; padding: clamp(60px, 9vw, 120px) 0; }

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 13, 24, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand__mark {
  width: 32px; height: 32px;
  flex-shrink: 0;
}
.brand__text {
  display: flex; flex-direction: column; line-height: 1; gap: 3px;
}
.brand__name {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.brand__tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--teal);
  text-transform: uppercase;
}
.nav__links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav__links a {
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -22px;
  height: 1px; background: var(--teal);
}
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
}
.nav__cta:hover {
  background: var(--teal);
  color: var(--bg);
}
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: flex; flex-direction: column; gap: 4px;
    width: 28px; height: 28px; justify-content: center;
  }
  .nav__toggle span {
    display: block; height: 1.5px; background: var(--ink);
  }
  .nav--open .nav__links {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 24px var(--pad);
  }
  .nav--open .nav__cta { display: inline-flex; margin: 0 var(--pad) 24px; }
  .nav--open .nav__links a.is-active::after { display: none; }
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-size: 0.95rem; font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  font-family: var(--sans);
}
.btn--primary {
  background: var(--teal); color: var(--bg);
}
.btn--primary:hover {
  background: #1aeec2;
  box-shadow: 0 0 30px var(--teal-glow);
  transform: translateY(-1px);
}
.btn--ghost {
  border: 1px solid var(--line-2); color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--teal); color: var(--teal);
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* =============================================================
   HERO (generic — used on all pages)
   ============================================================= */
.hero {
  padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { margin-bottom: 28px; }
.hero__title { max-width: 18ch; margin-bottom: 28px; }
.hero__title em { font-style: normal; color: var(--teal); font-weight: 400; }
.hero__lead { margin-bottom: 40px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Decorative beacon motif — subtle */
.hero__beacon {
  position: absolute;
  right: -100px; top: 50%;
  transform: translateY(-50%);
  width: 540px; height: 540px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero__beacon { opacity: 0.2; right: -180px; width: 420px; height: 420px; }
}

/* =============================================================
   SECTION HEADERS
   ============================================================= */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head__left .eyebrow { margin-bottom: 20px; }
.section-head__title { max-width: 14ch; }
.section-head__copy { color: var(--ink-2); }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* =============================================================
   CLIENT LOGO ROW
   ============================================================= */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  margin-bottom: 32px;
}
.logos__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}
.logos__item {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-align: center;
  opacity: 0.7;
  transition: all 0.3s var(--ease);
  padding: 10px;
  border-left: 1px solid var(--line);
}
.logos__item:first-child { border-left: none; }
.logos__item:hover { color: var(--ink); opacity: 1; }
@media (max-width: 800px) {
  .logos__row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .logos__item:nth-child(4) { border-left: none; }
}

/* =============================================================
   SERVICES GRID
   ============================================================= */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: 40px 32px;
  transition: all 0.3s var(--ease);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 260px;
}
.service:hover { background: var(--bg-2); }
.service__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--teal);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.service__title { margin-bottom: 14px; }
.service__copy { color: var(--ink-2); font-size: 0.95rem; flex: 1; }
.service__link {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.25s var(--ease);
}
.service:hover .service__link { color: var(--teal); }
.service__link::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}
.service:hover .service__link::after { transform: translateX(4px); }
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
}

/* =============================================================
   PILLARS (3-up value props)
   ============================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.pillar__icon {
  width: 56px; height: 56px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--teal);
  position: relative;
}
.pillar__icon::before {
  content: '';
  position: absolute; inset: -6px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  opacity: 0.25;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { font-size: 0.95rem; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; gap: 40px; } }

/* =============================================================
   STATS
   ============================================================= */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, var(--teal-soft), transparent 50%);
  pointer-events: none;
}
.stats__inner { position: relative; }
.stats__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.stats__title { margin-bottom: 64px; max-width: 14ch; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.stat__num {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 300;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.stat__label {
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 28ch;
}
@media (max-width: 800px) { .stats__grid { grid-template-columns: 1fr; gap: 40px; } }

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonial {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}
.testimonial__quote {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.testimonial__quote::before {
  content: '"';
  font-size: 3rem; line-height: 0;
  color: var(--teal);
  display: block;
  margin-bottom: 20px;
  font-family: var(--display);
}
.testimonial__who {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.testimonial__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-weight: 600;
  font-family: var(--display);
}
.testimonial__name { font-weight: 500; font-size: 0.95rem; }
.testimonial__role { font-size: 0.82rem; color: var(--ink-3); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* =============================================================
   FINAL CTA
   ============================================================= */
.cta {
  padding: clamp(80px, 12vw, 140px) 0;
  background:
    radial-gradient(ellipse at center bottom, var(--teal-soft), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta h2 { max-width: 18ch; margin: 0 auto 24px; }
.cta p { max-width: 52ch; margin: 0 auto 36px; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__brand p {
  font-size: 0.88rem;
  color: var(--ink-3);
  max-width: 32ch;
  margin-top: 20px;
}
.footer__col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--teal); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.footer__bottom a:hover { color: var(--teal); }
.footer__socials { display: flex; gap: 16px; }
@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* =============================================================
   PAGE-SPECIFIC UTILITIES
   ============================================================= */

/* Two-column content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.process__step {
  background: var(--bg);
  padding: 40px 28px;
  position: relative;
}
.process__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--teal);
  letter-spacing: 0.22em;
  margin-bottom: 40px;
}
.process__title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.process__copy { font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 800px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .process { grid-template-columns: 1fr; }
}

/* Capability list */
.capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.capability {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  align-items: start;
}
.capability:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--line); }
.capability:nth-child(even) { padding-left: 40px; }
.capability__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--teal);
  letter-spacing: 0.18em;
  padding-top: 6px;
}
.capability h3 { margin-bottom: 10px; }
.capability p { font-size: 0.92rem; }
@media (max-width: 800px) {
  .capabilities { grid-template-columns: 1fr; }
  .capability { grid-template-columns: 50px 1fr; padding: 28px 0 !important; border-right: none !important; }
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-info__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info__item:last-child { border-bottom: none; }
.contact-info__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.contact-info__value { font-size: 1.02rem; color: var(--ink); }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.form__input, .form__textarea, .form__select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--teal);
}
.form__textarea { min-height: 140px; resize: vertical; font-family: var(--sans); }

/* Fade-in on load */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise {
  opacity: 0;
  animation: riseIn 0.9s var(--ease) forwards;
}
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.32s; }
.rise-4 { animation-delay: 0.46s; }

/* Pulse for beacon dot */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.pulse { animation: pulse 2.4s ease-in-out infinite; }
