/* Chapps – simple one-screen site */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.35);
  --green: #33ff6a;
}

@property --reflaction-move {
  syntax: "<percentage>";
  initial-value: -30%;
  inherits: false;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 45deg;
  inherits: false;
}

@property --reflaction-width {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}

@property --glow {
  syntax: "<number>";
  initial-value: 0.08;
  inherits: false;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
}

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

a:focus-visible {
  outline: 2px solid rgba(51, 255, 106, 0.7);
  outline-offset: 3px;
  border-radius: 8px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.logo img {
  display: block;
  height: 28px;
  width: auto;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.contact-btn:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 24px 120px;
}

.hero-inner {
  width: min(980px, 100%);
  text-align: center;
}

.subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.32em;
  font-weight: 600;
  margin-bottom: 18px;
  user-select: none;
}

.pulse-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 10px;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(51, 255, 106, 0.35);
  transform: scale(1);
  opacity: 0.9;
  animation: pulse 1600ms ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.55;
    filter: blur(0px);
  }
  50% {
    transform: scale(2.2);
    opacity: 0.05;
    filter: blur(0.5px);
  }
}

@keyframes reflection-move {
  0% {
    --reflaction-move: -20%;
  }
  100% {
    --reflaction-move: 120%;
  }
}

@keyframes reflection-width {
  0% {
    --reflaction-width: 14%;
  }
  55% {
    --reflaction-width: 4.5%;
  }
  100% {
    --reflaction-width: 12%;
  }
}

@keyframes reflection-angle {
  0% {
    --angle: 42deg;
  }
  50% {
    --angle: 58deg;
  }
  100% {
    --angle: 46deg;
  }
}

@keyframes reflection-glow {
  0%,
  100% {
    --glow: 0.06;
  }
  50% {
    --glow: 0.14;
  }
}

.title {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 74px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-btn {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 44px;
  min-width: min(420px, 92vw);
  height: 74px;
  border-radius: 28px;
  color: var(--fg);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  border: none;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.cta-btn > span {
  display: inline-block;
  transform: scale(1);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.cta-btn::after {
  content: "";
  position: absolute;
  inset: 0.32rem;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(51, 255, 106, 0.06), rgba(0, 0, 0, 0))
    var(--bg);
  box-shadow:
    inset 0 0 0 1px rgba(51, 255, 106, 0.18),
    inset 0 -20px 40px rgba(0, 0, 0, 0.35);
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
      var(--angle),
      rgba(245, 250, 255, 0.8),
      rgba(0, 0, 0, 0.2),
      rgba(245, 250, 255, 0.8) calc(var(--reflaction-move) - var(--reflaction-width)),
      rgba(0, 255, 153, 0.9),
      rgba(0, 0, 0, 1),
      rgba(17, 255, 102, 0.85),
      rgba(0, 0, 0, 1),
      rgba(0, 255, 153, 0.75),
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0.5),
      rgba(0, 255, 153, 0.75),
      rgba(17, 255, 102, 0.85),
      rgba(245, 250, 255, 0.8) calc(var(--reflaction-move) + var(--reflaction-width)),
      rgba(0, 0, 0, 0.2),
      rgba(245, 250, 255, 0.8)
    ),
    #aaa;
  box-shadow:
    0 0 12px 22px rgba(0, 0, 0, 0.95),
    0 18px 60px rgba(51, 255, 106, calc(var(--glow) * 1));
  filter: blur(4px) contrast(7) hue-rotate(320deg) saturate(1.25);
  animation:
    3.2s reflection-move cubic-bezier(0.2, 0.7, 0.2, 1) infinite,
    10s reflection-width ease-in-out infinite,
    7s reflection-angle ease-in-out infinite,
    4.5s reflection-glow ease-in-out infinite;
  transition: 0.3s --angle ease;
}

.cta-btn:hover {
  transform: scale(1.04);
}

.cta-btn:hover > span {
  transform: scale(1.08);
  transition-delay: 70ms;
}

.cta-btn:active {
  transform: translateY(0px) scale(0.96);
  --angle: 90deg;
}

.site-footer {
  position: fixed;
  inset: auto 0 0 0;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background-color 160ms ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.footer-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 520px) {
  .cta-btn {
    min-width: min(340px, 86vw);
  }

  .site-header,
  .site-footer {
    padding: 18px 18px;
  }

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

  .contact-btn {
    display: none;
  }

  .footer-links {
    gap: 10px;
  }

  .subtitle {
    letter-spacing: 0.22em;
    font-size: 12px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

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

  .footer-links {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after,
  .cta-btn::before {
    animation: none !important;
  }
}
