:root {
  --bg: #08080a;
  --fg: #f2f0ec;
  --fg-dim: #a8a5a0;
  --accent: #9d8cff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.content {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 1.5rem;
  text-align: center;
}

.logo-wrap {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo {
  width: min(27.6vw, 192px);
  height: auto;
  color: var(--fg);
  filter: drop-shadow(0 0 40px rgba(157, 140, 255, 0.35));
  user-select: none;
  -webkit-user-drag: none;
}

#logo path {
  fill: currentColor;
  fill-opacity: 1;
  vector-effect: non-scaling-stroke;
}

.tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--fg-dim);
  letter-spacing: 0.01em;
  max-width: 32ch;
}

.angle-trigger {
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: var(--fg);
  font-weight: 600;
}

.angle-trigger::before,
.angle-trigger::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.angle-trigger.glitching {
  animation: glitchJitter 0.42s steps(2, end) 2;
}

.angle-trigger.glitching::before {
  color: #ff2b4e;
  opacity: 0.85;
  mix-blend-mode: screen;
  animation: glitchShiftA 0.42s steps(2, end) 2;
}

.angle-trigger.glitching::after {
  color: #29e7ff;
  opacity: 0.85;
  mix-blend-mode: screen;
  animation: glitchShiftB 0.42s steps(2, end) 2;
}

@keyframes glitchJitter {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 1px); }
}

@keyframes glitchShiftA {
  0% { transform: translate(0, 0); clip-path: inset(0 0 78% 0); }
  20% { transform: translate(-4px, 1px); clip-path: inset(10% 0 60% 0); }
  40% { transform: translate(4px, -1px); clip-path: inset(42% 0 20% 0); }
  60% { transform: translate(-3px, 1px); clip-path: inset(62% 0 8% 0); }
  80% { transform: translate(3px, -1px); clip-path: inset(18% 0 55% 0); }
  100% { transform: translate(0, 0); clip-path: inset(80% 0 0 0); }
}

@keyframes glitchShiftB {
  0% { transform: translate(0, 0); clip-path: inset(70% 0 0 0); }
  20% { transform: translate(4px, -1px); clip-path: inset(55% 0 20% 0); }
  40% { transform: translate(-4px, 1px); clip-path: inset(15% 0 62% 0); }
  60% { transform: translate(3px, -1px); clip-path: inset(5% 0 75% 0); }
  80% { transform: translate(-3px, 1px); clip-path: inset(48% 0 30% 0); }
  100% { transform: translate(0, 0); clip-path: inset(0 0 80% 0); }
}

.services {
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.contact-btn {
  display: inline-block;
  padding: 0.85em 2em;
  border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.contact-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateY(-1px);
}

.contact-btn:active {
  transform: translateY(0);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: none;
  background: none;
  color: var(--fg-dim);
  cursor: pointer;
}

.scroll-indicator-chevron {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

@media (max-width: 480px) {
  .content {
    gap: 1.25rem;
  }
  #logo {
    width: 37vw;
  }
}
