:root {
  --bg-deep: #0f1728;
  --bg-mid: #1f2f4f;
  --paper: #f4f6f8;
  --ink: #11131a;
  --text-soft: #d7dce5;
  --teal: #1ed6c7;
  --sun: #ff8a4c;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--paper);
  background: radial-gradient(
    circle at 10% 10%,
    #365287 0%,
    var(--bg-mid) 35%,
    var(--bg-deep) 100%
  );
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 1) 35%,
    rgba(0, 0, 0, 0.15) 100%
  );
  pointer-events: none;
  z-index: -4;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.7;
  pointer-events: none;
  z-index: -3;
}

.orb-1 {
  width: 340px;
  height: 340px;
  top: -90px;
  left: -40px;
  background: rgba(30, 214, 199, 0.6);
}

.orb-2 {
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: 15%;
  background: rgba(255, 138, 76, 0.6);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 5vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(9px);
  background: rgba(8, 12, 21, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 180ms ease;
}

.brand img {
  display: block;
  width: auto;
  max-height: 52px;
  max-width: min(48vw, 230px);
  transition: filter 180ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand:hover img {
  filter: drop-shadow(0 0 10px rgba(30, 214, 199, 0.55));
}

nav {
  display: flex;
  gap: 1.1rem;
}

nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.9;
}

nav a:hover {
  opacity: 1;
  color: var(--teal);
}

main {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 10vh 0 12vh;
  animation: fade-up 900ms ease;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--teal);
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h1 span {
  color: var(--sun);
}

.hero-copy {
  width: min(60ch, 95%);
  margin-top: 1.2rem;
  line-height: 1.6;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  border-radius: 999px;
  padding: 0.74rem 1.2rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(90deg, var(--teal), #4ef4d8);
  box-shadow: 0 10px 30px rgba(30, 214, 199, 0.35);
}

.btn-ghost {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 3.2rem 0;
}

.section-head {
  margin-bottom: 1.1rem;
}

h2 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.showcase-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.1rem;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 214, 199, 0.6);
}

.showcase-card h3 {
  font-size: 1.2rem;
}

.showcase-card p {
  color: var(--text-soft);
  line-height: 1.5;
}

.showcase-card span {
  color: var(--sun);
  font-weight: 700;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-item {
  padding: 1rem;
  border-left: 3px solid var(--sun);
  background: rgba(0, 0, 0, 0.24);
  border-radius: 0.6rem;
}

.service-item p {
  color: var(--text-soft);
  line-height: 1.5;
}

.contact {
  padding-bottom: 5rem;
}

.contact-panel {
  background: linear-gradient(
    145deg,
    rgba(255, 138, 76, 0.2),
    rgba(30, 214, 199, 0.2)
  );
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.contact-panel p {
  color: var(--text-soft);
}

.contact-panel .btn {
  display: inline-block;
  margin-top: 0.9rem;
}

.site-footer {
  padding: 1.2rem 5vw 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 246, 248, 0.75);
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--paper);
  background: linear-gradient(
    145deg,
    rgba(8, 12, 21, 0.88),
    rgba(31, 47, 79, 0.9)
  );
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  z-index: 60;
}

.back-to-top svg {
  width: 1.2rem;
  height: 1.2rem;
}

.show-back-to-top .back-to-top {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: rgba(30, 214, 199, 0.8);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.35),
    0 0 0 6px rgba(30, 214, 199, 0.12);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .card-grid,
  .services-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 8vh;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}
