/* ============================================================
   LockalGrade — base styles
   ============================================================ */
:root {
  --bg: #050308;
  --bg-soft: #08050e;
  --surface: #0c0813;
  --surface-2: #110a1c;
  --surface-3: #171022;
  --text: #f6f2fb;
  --muted: #9c93ab;
  --muted-2: #71687f;
  --purple: #8b5cf6;
  --violet: #a855f7;
  --fuchsia: #d946ef;
  --pink: #e879f9;
  --lime: #c7f464;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #d946ef 100%);
  --gradient-text: linear-gradient(100deg, #a78bfa 0%, #c084fc 50%, #e879f9 100%);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.055);
  --container: 1240px;
  --radius: 20px;
  --header-h: 78px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Unbounded", "Manrope", sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(168, 85, 247, 0.4);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #08050e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6d28d9, #a855f7);
  border: 2px solid #08050e;
  border-radius: 99px;
}

:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: #08050e;
  font-size: 13px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- decorative page background ---------- */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(88, 28, 135, 0.22), transparent 55%),
    var(--bg);
}

.site-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 68%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 68%);
  opacity: 0.7;
}

.site-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.7;
}

.site-bg__orb--one {
  top: -380px;
  left: -260px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.32), transparent 68%);
}

.site-bg__orb--two {
  top: 34%;
  right: -380px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.17), transparent 68%);
}

/* ---------- shared typography ---------- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 99px;
  background: rgba(124, 58, 237, 0.08);
  color: #d5c7e8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
}

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.9);
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-title {
  margin-top: 17px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.section-title--sm {
  font-size: clamp(30px, 3.2vw, 42px);
}

.section-sub {
  margin-top: 15px;
  max-width: 540px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.72;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}

.section-head--row {
  align-items: flex-end;
}

.section-head__copy {
  max-width: 650px;
}

.section-head__cta {
  margin-bottom: 4px;
}

.desktop-only {
  display: inline;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(124, 58, 237, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 50%);
  pointer-events: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(124, 58, 237, 0.44),
    0 0 24px rgba(217, 70, 239, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.42);
  background: rgba(124, 58, 237, 0.1);
}

.btn--small {
  min-height: 40px;
  padding: 11px 17px;
  font-size: 12.5px;
}

.btn--small .icon {
  width: 15px;
  height: 15px;
}

.btn--large {
  min-height: 54px;
  padding: 17px 28px;
  font-size: 15px;
}

.btn--full {
  width: 100%;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn.is-loading .icon {
  animation: spin 0.8s linear infinite;
}

.btn.is-loading .icon use {
  visibility: hidden;
}

.btn.is-loading .icon {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo__mark {
  width: 37px;
  height: 37px;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.48));
  transition: filter 0.3s ease, transform 0.3s var(--ease);
}

.logo:hover .logo__mark {
  filter: drop-shadow(0 0 22px rgba(217, 70, 239, 0.7));
  transform: rotate(-4deg) scale(1.04);
}

.logo__text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.is-scrolled,
.site-header.nav-open {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: rgba(5, 3, 8, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  margin-left: auto;
}

.main-nav__link {
  position: relative;
  padding: 6px 0;
  color: #9d94ac;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.main-nav__link:hover,
.main-nav__link.is-active {
  color: #fff;
}

.main-nav__link.is-active::after {
  transform: scaleX(1);
}

.main-nav__cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.header-cta {
  box-shadow:
    0 8px 24px rgba(124, 58, 237, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.burger span {
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.site-header.nav-open .burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.nav-open .burger span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s ease,
    transform 0.85s var(--ease);
}

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

.reveal--delay-1 { transition-delay: 0.08s !important; }
.reveal--delay-2 { transition-delay: 0.16s !important; }
.reveal--delay-3 { transition-delay: 0.24s !important; }
.reveal--delay-4 { transition-delay: 0.32s !important; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(124, 58, 237, 0.16), transparent 60%),
    rgba(5, 3, 8, 0.6);
  padding-top: 54px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a,
.contact-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: #cfc4df;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s var(--ease);
}

.footer-socials a:hover,
.contact-socials a:hover {
  color: #fff;
  border-color: rgba(192, 132, 252, 0.45);
  background: rgba(124, 58, 237, 0.16);
  transform: translateY(-2px);
}

.footer-socials .icon,
.contact-socials .icon {
  width: 17px;
  height: 17px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted-2);
  font-size: 11.5px;
}

.footer-bottom > div {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-bottom a {
  transition: color 0.25s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-up span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.25s var(--ease);
}

.footer-up:hover span {
  transform: translateY(-3px);
}

.footer-wordmark {
  margin: 20px 0 -0.18em;
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.13), rgba(168, 85, 247, 0.015));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(70px, 15.6vw, 220px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.075em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* ---------- to top ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  border-radius: 50%;
  background: rgba(12, 8, 19, 0.82);
  color: #e2d8f0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s var(--ease),
    border-color 0.25s ease;
}

.to-top .icon {
  width: 17px;
  height: 17px;
  transform: rotate(180deg);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  border-color: rgba(217, 70, 239, 0.65);
  transform: translateY(-3px);
}

/* ---------- project modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 6, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  width: min(980px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: #0b0712;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.35s var(--ease);
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(5, 3, 8, 0.7);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.modal__close:hover {
  border-color: rgba(192, 132, 252, 0.5);
  background: rgba(124, 58, 237, 0.2);
}

.modal__close .icon {
  width: 16px;
  height: 16px;
}

.modal__preview {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 380px;
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.28), transparent 60%),
    linear-gradient(145deg, #130c20, #07040c);
}

.modal__preview .site-mock {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
}

.modal__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: 38px 34px;
}

.modal__content h3 {
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.modal__content > p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.72;
}

.modal__content .btn {
  margin-top: 8px;
}

.project-tag--static {
  position: static;
  display: inline-flex;
}

.modal__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 15px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.modal__results div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal__results strong {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal__results span {
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.35;
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal__tags span {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
