:root {
  --bg: #0a0f17;
  --bg-soft: #0f1723;
  --bg-panel: rgba(14, 22, 34, 0.82);
  --bg-card: rgba(19, 29, 44, 0.9);
  --ink: #f4f7fb;
  --muted: #99a8bd;
  --line: rgba(148, 171, 197, 0.18);
  --line-strong: rgba(148, 171, 197, 0.3);
  --brand: #ff8c42;
  --brand-soft: #ffb36c;
  --accent: #56d1ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 140, 66, 0.22), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(86, 209, 255, 0.16), transparent 24%),
    radial-gradient(circle at 50% 120%, rgba(255, 179, 108, 0.12), transparent 32%),
    linear-gradient(180deg, #070b12 0%, #0a1018 45%, #09111a 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 56px;
  isolation: isolate;
}

.ambient,
.grid-glow {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.ambient {
  filter: blur(22px);
  opacity: 0.75;
  border-radius: 50%;
}

.ambient-one {
  top: 80px;
  left: -110px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.5), transparent 68%);
  animation: floatOrb 10s ease-in-out infinite;
}

.ambient-two {
  top: 220px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(86, 209, 255, 0.34), transparent 70%);
  animation: floatOrb 12s ease-in-out infinite reverse;
}

.grid-glow {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 88%);
  opacity: 0.35;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.76), rgba(7, 11, 18, 0.18));
  backdrop-filter: blur(16px);
}

.brand {
  position: relative;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 64%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.site-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 18, 29, 0.56);
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff5ec;
  transform: translateY(-2px);
  background: rgba(255, 140, 66, 0.14);
  border-color: rgba(255, 140, 66, 0.4);
  box-shadow: 0 10px 30px rgba(255, 140, 66, 0.12);
}

.hero-section,
.about-section,
.contact-section {
  position: relative;
  padding: 56px 0;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.98;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  max-width: 10ch;
  text-wrap: balance;
}

.hero-text,
.about-lead p,
.contact-panel p,
.service-card p,
.about-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 56ch;
  margin-top: 18px;
  font-size: 1.05rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 10px 14px;
  border: 1px solid rgba(86, 209, 255, 0.18);
  border-radius: 999px;
  background: rgba(86, 209, 255, 0.08);
  color: #d5f5ff;
  animation: pulseTag 4.6s ease-in-out infinite;
}

.hero-tags span:nth-child(2) {
  animation-delay: 0.7s;
}

.hero-tags span:nth-child(3) {
  animation-delay: 1.4s;
}

.hero-box {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(17, 28, 42, 0.94), rgba(12, 19, 30, 0.88));
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.box-shine {
  position: absolute;
  inset: -30% auto auto -10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.22), transparent 66%);
  filter: blur(12px);
  animation: driftShine 7s ease-in-out infinite;
}

.hero-box h2 {
  position: relative;
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
}

.service-grid,
.about-grid {
  display: grid;
  gap: 16px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.about-card,
.contact-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(22, 33, 48, 0.92), rgba(15, 24, 36, 0.92));
  padding: 20px;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.service-card::before,
.about-card::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: auto -12% -56% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 140, 66, 0.1);
  transition: transform 260ms ease, opacity 260ms ease;
}

.service-card::after,
.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(86, 209, 255, 0.08), transparent 36%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.service-card:hover,
.about-card:hover,
.contact-panel:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.service-card:hover::before,
.about-card:hover::before,
.contact-panel:hover::before {
  transform: scale(1.12);
  opacity: 1;
}

.service-card:hover::after,
.about-card:hover::after {
  opacity: 1;
}

.service-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand-soft);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.service-card h3,
.about-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 12ch;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.about-lead {
  padding: 10px 6px 0 0;
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(120deg, rgba(255, 140, 66, 0.12), rgba(16, 28, 43, 0.95) 38%, rgba(86, 209, 255, 0.1));
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #ff6a3d);
  color: #fffaf3;
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.contact-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 38px rgba(255, 140, 66, 0.28);
  filter: brightness(1.05);
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -24px, 0) scale(1.06);
  }
}

@keyframes driftShine {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(34px, 18px, 0);
  }
}

@keyframes pulseTag {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(86, 209, 255, 0);
  }

  50% {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(86, 209, 255, 0.12);
  }
}

@media (max-width: 920px) {
  .hero-section,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .service-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-box,
  .service-card,
  .about-card,
  .contact-panel {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
