/* WHTech institutional site — SITE_WHTECH.md */

:root {
  --bg: #080e1a;
  --surface: #0d1b2a;
  --primary: #1a6ebf;
  --accent: #4fc3f7;
  --violet: #7c3aed;
  --white: #ffffff;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.16);
  --font-display: "Space Grotesk", Inter, sans-serif;
  --font-body: Inter, Manrope, system-ui, sans-serif;
  --max: 1120px;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 14, 26, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 14, 26, 0.92);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav__brand img {
  height: 40px;
  width: auto;
  max-width: min(200px, 55vw);
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--white);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.85rem;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), #155a9c);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: rgba(79, 195, 247, 0.45);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 7.5rem 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(26, 110, 191, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 30%, rgba(79, 195, 247, 0.12), transparent 55%),
    radial-gradient(ellipse 35% 30% at 10% 70%, rgba(124, 58, 237, 0.1), transparent 50%);
  pointer-events: none;
}

.hero__stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.6);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__badge img {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
  max-width: 14ch;
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__orb {
  position: absolute;
  right: 6%;
  top: 50%;
  translate: 0 -50%;
  width: min(280px, 28vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero__orb img {
  width: 55%;
  animation: spinSlow 28s linear infinite;
  filter: drop-shadow(0 0 40px rgba(79, 195, 247, 0.35));
}

.hero__orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(79, 195, 247, 0.2);
  animation: pulseRing 4s ease-in-out infinite;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* ── Sections ── */
.section {
  padding: 5.5rem 0;
}

.section--surface {
  background: var(--surface);
}

.section__head {
  margin-bottom: 2.75rem;
  max-width: 36rem;
}

.section__eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Services ── */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service {
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 26, 0.35);
  transition: border-color 0.2s, transform 0.2s;
}

.service:hover {
  border-color: rgba(79, 195, 247, 0.35);
  transform: translateY(-2px);
}

.service:last-child {
  grid-column: 1 / -1;
}

.service__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.service p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags span {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

/* ── Sirius ── */
.sirius {
  display: grid;
  gap: 2rem;
}

.sirius__intro {
  max-width: 40rem;
}

.sirius__intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.sirius__tagline {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 1rem;
}

.sirius__intro p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(124, 58, 237, 0.35);
  margin-bottom: 1.25rem;
}

.modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.module {
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 27, 42, 0.6);
}

.module h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.module p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Why ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.why-item {
  padding: 1.25rem 1.2rem;
  border-left: 2px solid var(--primary);
  background: rgba(13, 27, 42, 0.45);
  border-radius: 0 12px 12px 0;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.why-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.metrics-note {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

/* ── Sectors ── */
.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sectors span {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 26, 0.4);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Testimonials placeholder ── */
.placeholder-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  background: rgba(8, 14, 26, 0.25);
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 4.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(26, 110, 191, 0.22), transparent 65%),
    var(--surface);
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  margin-bottom: 0.75rem;
  max-width: 18ch;
  margin-inline: auto;
}

.cta p {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ── Footer ── */
.footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer__brand {
  margin-bottom: 0.9rem;
  line-height: 0;
  display: inline-block;
}

.footer__brand img {
  height: 44px;
  width: auto;
  max-width: 220px;
  display: block;
}

.footer__pillars {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 36rem;
}

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__contact a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero__orb {
    display: none;
  }

  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(8, 14, 26, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__toggle {
    display: grid;
    place-items: center;
  }

  .services,
  .why-grid,
  .modules {
    grid-template-columns: 1fr;
  }

  .service:last-child {
    grid-column: auto;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__orb img,
  .hero__stars span,
  .hero__orb::before,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
