/*
Theme Name: Web Space
Theme URI: https://web-space.pro/
Author: Web Space
Author URI: https://web-space.pro/
Description: Minimal glassmorphism WordPress theme for Web Space.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: web-space
*/

:root {
  --ws-accent: #cffd26;
  --ws-bg: #020306;
  --ws-ink: #f6f7ef;
  --ws-muted: rgba(246, 247, 239, 0.66);
  --ws-soft: rgba(246, 247, 239, 0.42);
  --ws-line: rgba(255, 255, 255, 0.11);
  --ws-glass: rgba(10, 13, 18, 0.46);
  --ws-radius: 8px;
  --ws-header-height: 88px;
  color-scheme: dark;
}

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

html {
  min-width: 320px;
  background: var(--ws-bg);
  font-family: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ws-bg);
  color: var(--ws-ink);
}

button,
input {
  font: inherit;
}

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

.ws-page {
  min-height: 100vh;
  background: #020306;
}

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

.ws-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding-block: 18px;
  pointer-events: none;
}

.admin-bar .ws-header {
  top: 32px;
}

.ws-header__inner {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 10px 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(3, 5, 9, 0.42);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(24px) saturate(132%);
  backdrop-filter: blur(24px) saturate(132%);
  pointer-events: auto;
}

.ws-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ws-ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.ws-logo::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ws-accent);
  box-shadow:
    0 0 18px rgba(207, 253, 38, 0.84),
    0 0 46px rgba(207, 253, 38, 0.28);
  content: "";
}

.ws-logo::after {
  position: absolute;
  right: -28px;
  bottom: -16px;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(207, 253, 38, 0.62), transparent);
  opacity: 0.58;
  content: "";
}

.ws-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-phone,
.ws-messenger {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, color 220ms ease;
}

.ws-phone::before,
.ws-messenger::before {
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.15), transparent 80%);
  opacity: 0;
  transform: translateX(-45%);
  transition: opacity 220ms ease, transform 420ms ease;
  content: "";
}

.ws-phone {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: rgba(246, 247, 239, 0.86);
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
}

.ws-messenger {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--ws-ink);
}

span.ws-messenger {
  cursor: default;
}

.ws-phone:hover,
.ws-phone:focus-visible,
.ws-messenger:hover,
.ws-messenger:focus-visible {
  border-color: rgba(207, 253, 38, 0.34);
  background: rgba(207, 253, 38, 0.075);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.ws-phone:hover::before,
.ws-phone:focus-visible::before,
.ws-messenger:hover::before,
.ws-messenger:focus-visible::before {
  opacity: 1;
  transform: translateX(45%);
}

.ws-messenger svg,
.ws-messenger img {
  position: relative;
  z-index: 1;
  display: block;
  width: 20px;
  height: 20px;
}

.ws-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 20% 72%, rgba(207, 253, 38, 0.055), transparent 20rem),
    #020306;
}

.ws-hero__media,
.ws-hero__poster,
.ws-hero__video,
.ws-hero__shade,
.ws-hero__vignette,
.ws-hero__noise,
.ws-hero__aura,
.ws-hero__trajectory {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ws-hero__media {
  z-index: -8;
  overflow: hidden;
  background: #020306;
}

.ws-hero__poster,
.ws-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.012);
}

.ws-hero__poster {
  z-index: -2;
  background-position: right center;
  background-size: cover;
  filter: saturate(0.96) contrast(1.08) brightness(0.82);
}

.ws-hero__video {
  z-index: -1;
  display: block;
  filter: saturate(0.98) contrast(1.08) brightness(0.78);
  animation: ws-cinematic-zoom 18s ease-out forwards;
}

.ws-hero__shade {
  z-index: -7;
  background:
    linear-gradient(90deg, rgba(2, 3, 6, 0.98) 0%, rgba(2, 3, 6, 0.9) 26%, rgba(2, 3, 6, 0.5) 58%, rgba(2, 3, 6, 0.16) 100%),
    linear-gradient(180deg, rgba(2, 3, 6, 0.48) 0%, rgba(2, 3, 6, 0.06) 38%, rgba(2, 3, 6, 0.86) 100%);
}

.ws-hero__vignette {
  z-index: -6;
  background:
    radial-gradient(ellipse at 74% 43%, transparent 0%, rgba(2, 3, 6, 0.08) 34%, rgba(2, 3, 6, 0.76) 100%),
    radial-gradient(circle at 84% 48%, rgba(207, 253, 38, 0.075), transparent 19rem);
}

.ws-hero__noise {
  z-index: -5;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0 0.55px, transparent 0.75px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.16) 0 0.45px, transparent 0.7px);
  background-size: 3px 3px, 5px 5px;
}

.ws-hero__aura {
  z-index: -4;
  background:
    radial-gradient(circle at 18% 60%, rgba(207, 253, 38, 0.13), transparent 18rem),
    radial-gradient(circle at 50% 18%, rgba(87, 112, 255, 0.11), transparent 27rem);
  filter: blur(2px);
}

.ws-hero__trajectory {
  z-index: -3;
  width: min(46vw, 680px);
  height: min(46vw, 680px);
  inset: 13% auto auto 53%;
  border: 1px solid rgba(207, 253, 38, 0.13);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity: 0.42;
  transform: rotate(-18deg);
  animation: ws-drift 14s ease-in-out infinite alternate;
}

.ws-hero__trajectory::before {
  position: absolute;
  top: 14%;
  left: 23%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ws-accent);
  box-shadow:
    0 0 22px rgba(207, 253, 38, 0.84),
    0 0 62px rgba(207, 253, 38, 0.25);
  content: "";
}

.ws-hero__content {
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding-block: calc(var(--ws-header-height) + 84px) 64px;
}

.ws-hero__copy {
  width: min(100%, 670px);
  padding-top: 16px;
}

.ws-eyebrow,
.ws-hero h1,
.ws-hero__lead,
.ws-lead-form {
  animation: ws-reveal 780ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.ws-hero h1 {
  animation-delay: 80ms;
}

.ws-hero__lead {
  animation-delay: 160ms;
}

.ws-lead-form {
  animation-delay: 250ms;
}

.ws-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: rgba(246, 247, 239, 0.58);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
}

.ws-eyebrow::before {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--ws-accent), rgba(207, 253, 38, 0));
  content: "";
}

.ws-hero h1 {
  max-width: 650px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(56px, 7.6vw, 104px);
  font-weight: 860;
  line-height: 0.9;
  letter-spacing: 0;
}

.ws-hero h1 span {
  display: block;
  color: var(--ws-accent);
  text-shadow:
    0 0 24px rgba(207, 253, 38, 0.18),
    0 14px 64px rgba(207, 253, 38, 0.12);
}

.ws-hero__lead {
  max-width: 558px;
  margin: 28px 0 0;
  color: var(--ws-muted);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 510;
  line-height: 1.45;
}

.ws-lead-form {
  position: relative;
  display: grid;
  width: min(100%, 626px);
  gap: 14px;
  margin-top: 42px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.035)),
    rgba(6, 8, 13, 0.58);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(26px) saturate(132%);
  backdrop-filter: blur(26px) saturate(132%);
}

.ws-lead-form::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(207, 253, 38, 0.16), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.08));
  opacity: 0.5;
  pointer-events: none;
  content: "";
}

.ws-lead-form__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
}

.ws-field {
  position: relative;
  min-width: 0;
}

.ws-field input {
  width: 100%;
  min-height: 58px;
  padding: 20px 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  color: #ffffff;
  outline: none;
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.ws-field span {
  position: absolute;
  top: 11px;
  left: 16px;
  color: rgba(246, 247, 239, 0.48);
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  pointer-events: none;
  transition: color 220ms ease;
}

.ws-field input:focus {
  border-color: rgba(207, 253, 38, 0.55);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 4px rgba(207, 253, 38, 0.07);
  transform: translateY(-1px);
}

.ws-field:focus-within span {
  color: rgba(207, 253, 38, 0.84);
}

.ws-submit {
  --ws-button-x: 0px;
  --ws-button-y: 0px;
  position: relative;
  min-height: 58px;
  padding: 0 24px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.55), transparent 36%),
    var(--ws-accent);
  box-shadow:
    0 0 0 1px rgba(207, 253, 38, 0.2),
    0 18px 44px rgba(207, 253, 38, 0.16);
  color: #101204;
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  transform: translate(var(--ws-button-x), var(--ws-button-y));
  transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.ws-submit::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 220ms ease, transform 520ms ease;
  content: "";
}

.ws-submit:hover,
.ws-submit:focus-visible {
  box-shadow:
    0 0 0 1px rgba(207, 253, 38, 0.36),
    0 24px 64px rgba(207, 253, 38, 0.28),
    0 0 42px rgba(207, 253, 38, 0.18);
  filter: saturate(1.08);
  outline: none;
}

.ws-submit:hover::after,
.ws-submit:focus-visible::after {
  opacity: 1;
  transform: translateX(70%);
}

.ws-consent {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding-inline: 4px;
  color: rgba(246, 247, 239, 0.54);
  font-size: 12px;
  line-height: 1.35;
}

.ws-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ws-accent);
}

@keyframes ws-cinematic-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

@keyframes ws-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(-18deg);
  }

  to {
    transform: translate3d(18px, -14px, 0) rotate(-13deg);
  }
}

@keyframes ws-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 920px) {
  .ws-lead-form__row {
    grid-template-columns: 1fr 1fr;
  }

  .ws-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 820px) {
  :root {
    --ws-header-height: 74px;
  }

  .ws-container {
    width: min(100% - 28px, 1208px);
  }

  .ws-header {
    padding-block: 12px;
  }

  .admin-bar .ws-header {
    top: 46px;
  }

  .ws-header__inner {
    min-height: 52px;
    padding: 7px 7px 7px 16px;
    gap: 12px;
  }

  .ws-logo {
    font-size: 16px;
  }

  .ws-logo::after {
    display: none;
  }

  .ws-phone {
    display: none;
  }

  .ws-messenger {
    width: 38px;
    height: 38px;
  }

  .ws-hero {
    min-height: 100svh;
  }

  .ws-hero__video {
    display: none;
  }

  .ws-hero__poster {
    filter: saturate(0.9) contrast(1.05) brightness(0.58);
    transform: scale(1.05);
  }

  .ws-hero__shade {
    background:
      linear-gradient(90deg, rgba(2, 3, 6, 0.98) 0%, rgba(2, 3, 6, 0.88) 62%, rgba(2, 3, 6, 0.42) 100%),
      linear-gradient(180deg, rgba(2, 3, 6, 0.46) 0%, rgba(2, 3, 6, 0.18) 34%, rgba(2, 3, 6, 0.94) 100%);
  }

  .ws-hero__vignette {
    background:
      radial-gradient(ellipse at 78% 30%, transparent 0%, rgba(2, 3, 6, 0.42) 42%, rgba(2, 3, 6, 0.84) 100%),
      radial-gradient(circle at 28% 72%, rgba(207, 253, 38, 0.08), transparent 14rem);
  }

  .ws-hero__trajectory {
    top: 15%;
    left: 45%;
    width: 260px;
    height: 260px;
    opacity: 0.25;
  }

  .ws-hero__content {
    align-items: end;
    padding-block: 124px 28px;
  }

  .ws-hero__copy {
    padding-top: 0;
  }

  .ws-hero h1 {
    max-width: 570px;
    font-size: clamp(43px, 12.5vw, 72px);
  }

  .ws-hero__lead {
    max-width: 520px;
    margin-top: 22px;
    font-size: 17px;
  }

  .ws-lead-form {
    width: 100%;
    margin-top: 30px;
    border-radius: 16px;
  }

  .ws-lead-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ws-container {
    width: min(100% - 24px, 1208px);
  }

  .ws-header__inner {
    border-radius: 18px;
  }

  .ws-eyebrow {
    margin-bottom: 18px;
  }

  .ws-hero h1 {
    font-size: clamp(40px, 13.5vw, 56px);
  }

  .ws-hero__lead {
    font-size: 16px;
  }

  .ws-lead-form {
    padding: 10px;
  }

  .ws-field input,
  .ws-submit {
    min-height: 56px;
  }
}
