@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --krima: #0cf2a0;
}

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

body {
  background-color: #050505;
  background-image:
    radial-gradient(60rem 40rem at 50% -10%, rgba(12, 242, 160, 0.12), transparent 60%),
    radial-gradient(40rem 30rem at 100% 10%, rgba(12, 242, 160, 0.06), transparent 55%);
  background-attachment: fixed;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 40%, transparent 100%);
}

.text-gradient {
  background: linear-gradient(120deg, #ffffff 20%, var(--krima) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glow {
  box-shadow:
    0 0 0 1px rgba(12, 242, 160, 0.25),
    0 18px 60px -20px rgba(12, 242, 160, 0.45);
}

.card {
  position: relative;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.45s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 50%),
    rgba(12, 242, 160, 0.1),
    transparent 60%
  );
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(12, 242, 160, 0.75),
    rgba(12, 242, 160, 0) 60%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    background-color: rgba(20, 20, 22, 0.85);
  }
  .card:hover::before,
  .card:hover::after {
    opacity: 1;
  }
}

@media (hover: none), (pointer: coarse) {
  .card:active {
    transform: translateY(-1px);
    background-color: rgba(20, 20, 22, 0.7);
  }
}

section[id] {
  scroll-margin-top: 5rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #1f1f22;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2c2c30;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
