/* Global theme + typography extracted from index.html
   Purpose: keep layout/visuals identical while making styles reusable and maintainable. */
:root {
  --bg: #050505;
}

html,
body {
  background: var(--bg);
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial,
    'Apple Color Emoji', 'Segoe UI Emoji';
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Border gradient utility (used throughout for squared "defense" containers) */
.border-gradient {
  position: relative;
}

.border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0px; /* straight corners */
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: linear-gradient(
    225deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* Shared border gradient for elements that define --border-gradient inline */
[style*='--border-gradient']::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--border-radius-before, inherit);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: var(--border-gradient);
  pointer-events: none;
}

/* Scroll-in keyframe used via Tailwind's arbitrary [animation:...] syntax */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

/* Progressive top blur overlay */
.gradient-blur {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto 0;
  height: 12%;
  pointer-events: none;
}

.gradient-blur > div,
.gradient-blur::before,
.gradient-blur::after {
  position: absolute;
  inset: 0;
}

.gradient-blur::before {
  content: '';
  z-index: 1;
  backdrop-filter: blur(0.5px);
  mask: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 12.5%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 0) 37.5%
  );
}

.gradient-blur > div:nth-of-type(1) {
  z-index: 2;
  backdrop-filter: blur(1px);
  mask: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 12.5%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 1) 37.5%,
    rgba(0, 0, 0, 0) 50%
  );
}

.gradient-blur > div:nth-of-type(2) {
  z-index: 3;
  backdrop-filter: blur(2px);
  mask: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 1) 37.5%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 62.5%
  );
}

.gradient-blur > div:nth-of-type(3) {
  z-index: 4;
  backdrop-filter: blur(4px);
  mask: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 37.5%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 1) 62.5%,
    rgba(0, 0, 0, 0) 75%
  );
}

.gradient-blur > div:nth-of-type(4) {
  z-index: 5;
  backdrop-filter: blur(8px);
  mask: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 1) 62.5%,
    rgba(0, 0, 0, 1) 75%,
    rgba(0, 0, 0, 0) 87.5%
  );
}

.gradient-blur > div:nth-of-type(5) {
  z-index: 6;
  backdrop-filter: blur(16px);
  mask: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 62.5%,
    rgba(0, 0, 0, 1) 75%,
    rgba(0, 0, 0, 1) 87.5%,
    rgba(0, 0, 0, 0) 100%
  );
}

.gradient-blur > div:nth-of-type(6) {
  z-index: 7;
  backdrop-filter: blur(32px);
  mask: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 75%,
    rgba(0, 0, 0, 1) 87.5%,
    rgba(0, 0, 0, 1) 100%
  );
}

.gradient-blur::after {
  content: '';
  z-index: 8;
  backdrop-filter: blur(64px);
  mask: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 87.5%,
    rgba(0, 0, 0, 1) 100%
  );
}
/* Gradient CTA button and animated points (from bottom of original index.html) */
.gradient-button {
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.25s ease;
  background: #262626;
  border-radius: 0px;
  border: none;
  outline: none;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  width: 100%;
}

@media (min-width: 640px) {
  .gradient-button {
    width: auto;
    min-width: 140px;
  }
}

.gradient-button::before,
.gradient-button::after {
  content: '';
  position: absolute;
  transition: all 0.5s ease-in-out;
  z-index: 0;
}

.gradient-button::before {
  inset: 1px;
  background: linear-gradient(177.95deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 0px;
}

.gradient-button::after {
  inset: 2px;
  background: #171717;
  border-radius: 0px;
}

.gradient-button:active {
  transform: scale(0.98);
}

.points_wrapper {
  overflow: hidden;
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.points_wrapper .point {
  bottom: -10px;
  position: absolute;
  animation: floating-points infinite ease-in-out;
  pointer-events: none;
  width: 2px;
  height: 2px;
  background-color: #fff;
  border-radius: 9999px;
}

@keyframes floating-points {
  0% {
    transform: translateY(0);
  }

  85% {
    opacity: 0;
  }

  100% {
    transform: translateY(-55px);
    opacity: 0;
  }
}

.points_wrapper .point:nth-child(1) {
  left: 10%;
  opacity: 1;
  animation-duration: 2.35s;
  animation-delay: 0.2s;
}

.points_wrapper .point:nth-child(2) {
  left: 30%;
  opacity: 0.7;
  animation-duration: 2.5s;
  animation-delay: 0.5s;
}

.points_wrapper .point:nth-child(3) {
  left: 25%;
  opacity: 0.8;
  animation-duration: 2.2s;
  animation-delay: 0.1s;
}

.points_wrapper .point:nth-child(4) {
  left: 44%;
  opacity: 0.6;
  animation-duration: 2.05s;
}

.inner {
  z-index: 2;
  gap: 6px;
  position: relative;
  width: 100%;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.2s ease-in-out;
}

@media (min-width: 640px) {
  .inner {
    font-size: 15px;
  }
}

.inner svg.icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  stroke: white;
  fill: none;
  flex-shrink: 0;
}

.gradient-button:hover svg.icon {
  transform: translateX(2px);
}

.gradient-button:hover svg.icon path {
  animation: dash 0.8s linear forwards;
}

@keyframes dash {
  0% {
    stroke-dasharray: 0, 20;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 10, 10;
    stroke-dashoffset: -5;
  }

  100% {
    stroke-dasharray: 20, 0;
    stroke-dashoffset: -10;
  }
}

/* Marquee animation for company logos */
@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Animated grid / border button wrapper used in header + CTAs */
.btn-wrapper::after,
.btn-wrapper-nav::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0px;
  pointer-events: none;
  background-color: #0000;
  background-image: repeating-linear-gradient(45deg, var(--grid-color) 0 1px, transparent 2px 5px);
  opacity: 0;
  z-index: -1;
}

.btn-wrapper:has(.btn:hover)::after,
.btn-wrapper-nav:has(.btn:hover)::after {
  animation: opacity-anim calc(var(--animation-speed) * 4) ease-in-out forwards;
}

@keyframes opacity-anim {
  80% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.btn-wrapper,
.btn-wrapper-nav {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  padding: var(--line-distance);
  background-color: rgba(0, 0, 0, 0);
  user-select: none;
}

.btn-wrapper .btn,
.btn-wrapper-nav .btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.7rem 1rem;
  background-color: #fff0;
  border: 1px solid var(--grid-color);
  color: #fffd;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .btn-wrapper .btn {
    font-size: 13px;
    padding: 0.8rem 1.25rem;
  }
}

.btn-wrapper-nav .btn {
  font-size: 11px;
  padding: 0.5rem 0.75rem;
}

@media (min-width: 640px) {
  .btn-wrapper-nav .btn {
    font-size: 11px;
    padding: 0.6rem 0.8rem;
  }
}

.btn-wrapper .btn:hover,
.btn-wrapper-nav .btn:hover {
  background-color: #333;
  color: #fff;
  border-color: #666;
}

.btn-wrapper .btn:active,
.btn-wrapper-nav .btn:active {
  background-color: #222;
  transform: scale(0.98);
}

.btn-wrapper .btn:hover iconify-icon,
.btn-wrapper-nav .btn:hover iconify-icon {
  color: #fffa !important;
}

.btn-wrapper .dot,
.btn-wrapper-nav .dot {
  position: absolute;
  width: var(--dot-size);
  aspect-ratio: 1;
  border-radius: 0px;
  background-color: var(--dot-color);
  transition: all 0.3s ease-in-out;
  opacity: 0;
}

.btn-wrapper:has(.btn:hover) .dot.top.left,
.btn-wrapper-nav:has(.btn:hover) .dot.top.left {
  top: 50%;
  left: 20%;
  animation: move-top-left var(--animation-speed) ease-in-out forwards;
}

@keyframes move-top-left {
  90% {
    opacity: 0.6;
  }

  100% {
    top: calc(var(--dot-size) * -0.5);
    left: calc(var(--dot-size) * -0.5);
    opacity: 1;
  }
}

.btn-wrapper:has(.btn:hover) .dot.top.right,
.btn-wrapper-nav:has(.btn:hover) .dot.top.right {
  top: 50%;
  right: 20%;
  animation: move-top-right var(--animation-speed) ease-in-out forwards;
  animation-delay: calc(var(--animation-speed) * 0.6);
}

@keyframes move-top-right {
  80% {
    opacity: 0.6;
  }

  100% {
    top: calc(var(--dot-size) * -0.5);
    right: calc(var(--dot-size) * -0.5);
    opacity: 1;
  }
}

.btn-wrapper:has(.btn:hover) .dot.bottom.right,
.btn-wrapper-nav:has(.btn:hover) .dot.bottom.right {
  bottom: 50%;
  right: 20%;
  animation: move-bottom-right var(--animation-speed) ease-in-out forwards;
  animation-delay: calc(var(--animation-speed) * 1.2);
}

@keyframes move-bottom-right {
  80% {
    opacity: 0.6;
  }

  100% {
    bottom: calc(var(--dot-size) * -0.5);
    right: calc(var(--dot-size) * -0.5);
    opacity: 1;
  }
}

.btn-wrapper:has(.btn:hover) .dot.bottom.left,
.btn-wrapper-nav:has(.btn:hover) .dot.bottom.left {
  bottom: 50%;
  left: 20%;
  animation: move-bottom-left var(--animation-speed) ease-in-out forwards;
  animation-delay: calc(var(--animation-speed) * 1.8);
}

@keyframes move-bottom-left {
  80% {
    opacity: 0.6;
  }

  100% {
    bottom: calc(var(--dot-size) * -0.5);
    left: calc(var(--dot-size) * -0.5);
    opacity: 1;
  }
}

.btn-wrapper .line,
.btn-wrapper-nav .line {
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.btn-wrapper .line.horizontal,
.btn-wrapper-nav .line.horizontal {
  height: var(--line-weight);
  width: 100%;
  background-image: repeating-linear-gradient(90deg, #0000 0 calc(var(--line-weight) * 2), var(--line-color) calc(var(--line-weight) * 2) calc(var(--line-weight) * 4));
}

.btn-wrapper .line.top,
.btn-wrapper-nav .line.top {
  top: calc(var(--line-weight) * -0.5);
  transform-origin: top left;
  transform: rotate(5deg) scaleX(0);
}

.btn-wrapper:has(.btn:hover) .line.top,
.btn-wrapper-nav:has(.btn:hover) .line.top {
  animation: draw-top var(--animation-speed) ease-in-out forwards;
  animation-delay: calc(var(--animation-speed) * 0.8);
}

@keyframes draw-top {
  100% {
    transform: rotate(0deg) scaleX(1);
  }
}

.btn-wrapper .line.bottom,
.btn-wrapper-nav .line.bottom {
  bottom: calc(var(--line-weight) * -0.5);
  transform-origin: bottom right;
  transform: rotate(5deg) scaleX(0);
}

.btn-wrapper:has(.btn:hover) .line.bottom,
.btn-wrapper-nav:has(.btn:hover) .line.bottom {
  animation: draw-bottom var(--animation-speed) ease-in-out forwards;
  animation-delay: calc(var(--animation-speed) * 2);
}

@keyframes draw-bottom {
  100% {
    transform: rotate(0deg) scaleX(1);
  }
}

.btn-wrapper .line.vertical,
.btn-wrapper-nav .line.vertical {
  width: var(--line-weight);
  height: 100%;
  background-image: repeating-linear-gradient(0deg, #0000 0 calc(var(--line-weight) * 2), var(--line-color) calc(var(--line-weight) * 2) calc(var(--line-weight) * 4));
}

.btn-wrapper .line.left,
.btn-wrapper-nav .line.left {
  left: calc(var(--line-weight) * -0.5);
  transform-origin: bottom left;
  transform: rotate(0deg) scaleY(0);
}

.btn-wrapper:has(.btn:hover) .line.left,
.btn-wrapper-nav:has(.btn:hover) .line.left {
  animation: draw-left var(--animation-speed) ease-in-out forwards;
  animation-delay: calc(var(--animation-speed) * 2.4);
}

@keyframes draw-left {
  100% {
    transform: rotate(0deg) scaleY(1);
  }
}

.btn-wrapper .line.right,
.btn-wrapper-nav .line.right {
  right: calc(var(--line-weight) * -0.5);
  transform-origin: top right;
  transform: rotate(5deg) scaleY(0);
}

.btn-wrapper:has(.btn:hover) .line.right,
.btn-wrapper-nav:has(.btn:hover) .line.right {
  animation: draw-right var(--animation-speed) ease-in-out forwards;
  animation-delay: calc(var(--animation-speed) * 1.4);
}

@keyframes draw-right {
  100% {
    transform: rotate(0deg) scaleY(1);
  }
}


