/* ========================================
   Gorgon Cyber — Corporate Website
   ======================================== */

/* --- Font Faces --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-bold.woff2') format('woff2');
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2d3748;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #0ea576;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #0c8a63;
}

h1, h2, h3, h4 {
  color: #0f1923;
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
}

/* --- Layout Utilities --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--dark {
  background: #0f1923;
  color: #cbd5e0;
}
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--light {
  background: #f7fafc;
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 2rem;
}
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
  font-family: inherit;
}

.btn--primary {
  background: #0ea576;
  color: #fff;
  border-color: #0ea576;
}
.btn--primary:hover {
  background: #0c8a63;
  border-color: #0c8a63;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #0ea576;
  border-color: #0ea576;
}
.btn--outline:hover {
  background: #0ea576;
  color: #fff;
}

.btn--white {
  background: #fff;
  color: #0f1923;
  border-color: #fff;
}
.btn--white:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #0f1923;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 25, 35, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s;
}
.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: #cbd5e0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav__links a:hover,
.nav__links a.active {
  color: #0ea576;
}
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0ea576;
  border-radius: 1px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: all 0.3s;
  border-radius: 2px;
}
.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f1923 0%, #1a2d42 50%, #0f1923 100%);
  color: #fff;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 25%, #0ea576 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, #0ea576 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero__text h1 {
  color: #fff;
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero__text h1 span {
  color: #0ea576;
}

.hero__text p {
  font-size: 1.2rem;
  color: #a0aec0;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
}
.hero__image img {
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

/* --- Hero (smaller, inner pages) --- */
.hero--sm {
  min-height: auto;
  padding: 8rem 0 4rem;
}
.hero--sm .hero__content {
  display: block;
  text-align: center;
}
.hero--sm h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero--sm p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Feature Cards --- */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid #e2e8f0;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(14, 165, 118, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: #0ea576;
}

.card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.card--dark:hover {
  background: rgba(255,255,255,0.07);
}

/* --- Stats Bar --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0ea576;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.95rem;
  color: #a0aec0;
}

/* --- Split Section (text + image) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split--reverse {
  direction: rtl;
}
.split--reverse > * {
  direction: ltr;
}

.split__image img {
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.split__text .overline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0ea576;
  margin-bottom: 0.75rem;
}

.split__text ul {
  list-style: none;
  margin-top: 1.5rem;
}
.split__text ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}
.split__text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0ea576;
  font-weight: 700;
}

/* --- Testimonial / Quote --- */
.quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.quote__text {
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}
.quote__attribution {
  font-size: 0.95rem;
  color: #718096;
  font-weight: 500;
}

/* --- Market Segments --- */
.segment {
  text-align: center;
  padding: 2.5rem 2rem;
}
.segment__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #0ea576 0%, #0c8a63 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.cta-banner p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Contact Form Area --- */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  background: #fff;
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
}

.contact-details h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(14, 165, 118, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0ea576;
}

.contact-item__text {
  font-size: 0.95rem;
}
.contact-item__text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #0f1923;
}

/* Email reveal button */
.email-reveal {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(14, 165, 118, 0.1);
  color: #0ea576;
  border: 1px solid #0ea576;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  font-family: inherit;
}
.email-reveal:hover {
  background: #0ea576;
  color: #fff;
}

/* --- Footer --- */
.footer {
  background: #0a1018;
  color: #718096;
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand img {
  height: 36px;
  margin-bottom: 1rem;
}
.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: #e2e8f0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
}
.footer__links li {
  margin-bottom: 0.6rem;
}
.footer__links a {
  color: #718096;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: #0ea576;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3.5rem 0; }

  /* Disable backdrop-filter on mobile so fixed-position menu escapes nav's containing block */
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #0f1923;
  }

  /* Mobile nav */
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f1923;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
    gap: 0;
    display: none;
    z-index: 999;
  }
  .nav__links.open {
    display: flex;
  }
  .nav__links li {
    width: 100%;
    text-align: center;
  }
  .nav__links a {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
  }
  .nav__toggle {
    display: block;
  }

  /* Hero */
  .hero { min-height: auto; padding-top: 72px; }
  .hero__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
  .hero__text h1 { font-size: 2.25rem; }
  .hero__image { order: -1; }

  /* Split */
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split--reverse { direction: ltr; }

  /* Grids */
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Contact */
  .contact-info {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__text h1 { font-size: 1.85rem; }
  .hero__buttons { flex-direction: column; }
  .btn--lg { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid #0ea576;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: #0ea576;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* --- How it works steps --- */
.steps {
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 4.5rem;
  margin-bottom: 2.5rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #0ea576;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Service cards (ethical hacking page) --- */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #0ea576;
  border-radius: 4px 0 0 4px;
}

/* --- Partner logos placeholder row --- */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  opacity: 0.6;
}
.partner-logos img {
  height: 40px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.partner-logos img:hover {
  filter: grayscale(0%);
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge--green {
  background: rgba(14, 165, 118, 0.1);
  color: #0ea576;
}

/* --- SVG Icon helpers (inline SVG icons) --- */
.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}
