/* ===============================
   GLOBAL: RESET & VARIABLES
   =============================== */

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

html {
  scroll-behavior: smooth;
}

body.pw-body {
  margin: 0;
  font-family: "PW-Body", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #050613;
  color: #f6f2ff;
  overflow-x: hidden;
}

/* ===============================
   LOCAL GOOGLE FONTS (TTF)
   =============================== */

@font-face {
  font-family: "PW-Display";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PW-Body";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PW-Body";
  src: url("../fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   DESIGN TOKENS
   =============================== */

:root {
  --pw-color-bg: #050613;
  --pw-color-bg-elevated: #0d0d25;
  --pw-color-bg-soft: #181836;
  --pw-color-accent: #ff7a3c;
  --pw-color-accent-soft: #ffe2cf;
  --pw-color-accent-alt: #00c9b7;
  --pw-color-pink: #ff4fb3;
  --pw-color-text: #f6f2ff;
  --pw-color-muted: #a1a4c0;
  --pw-color-line: rgba(255, 255, 255, 0.08);

  --pw-radius-lg: 24px;
  --pw-radius-md: 16px;
  --pw-radius-pill: 999px;

  --pw-shadow-soft: 0 18px 40px rgba(5, 5, 30, 0.9);
  --pw-shadow-chip: 0 8px 18px rgba(5, 5, 30, 0.7);

  --pw-header-height: 80px;

  --pw-transition-fast: 0.18s ease-out;
  --pw-transition-med: 0.3s ease-out;
}

/* ===============================
   LAYOUT HELPERS
   =============================== */

.pw-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.pw-main {
  padding-top: var(--pw-header-height);
}

.pw-section {
  position: relative;
  padding: 96px 0;
}

/* ===============================
   HEADER
   =============================== */

.pw-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pw-header-height);
  background: radial-gradient(circle at top left, #241a4a 0, #050613 55%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
  backdrop-filter: blur(14px);
}

.pw-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* LOGO */

.pw-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pw-color-text);
}

.pw-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: conic-gradient(
    from 210deg,
    #ff7a3c,
    #ff4fb3,
    #00c9b7,
    #ff7a3c
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "PW-Display", sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  box-shadow: var(--pw-shadow-chip);
}

.pw-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pw-logo-main {
  font-family: "PW-Display", sans-serif;
  font-size: 16px;
}

.pw-logo-sub {
  font-size: 11px;
  color: var(--pw-color-muted);
}

/* NAV */

.pw-nav {
  display: flex;
}

.pw-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.pw-nav-link {
  position: relative;
  font-size: 14px;
  color: var(--pw-color-muted);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color var(--pw-transition-med);
}

.pw-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a3c, #ff4fb3, #00c9b7);
  transition: width var(--pw-transition-med);
}

.pw-nav-link:hover,
.pw-nav-link:focus-visible {
  color: var(--pw-color-text);
}

.pw-nav-link:hover::after,
.pw-nav-link:focus-visible::after {
  width: 100%;
}

/* BURGER */

.pw-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 5, 30, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.pw-burger-line {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a3c, #ff4fb3);
  transition: transform var(--pw-transition-fast),
    opacity var(--pw-transition-fast);
}

.pw-burger.is-open .pw-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.pw-burger.is-open .pw-burger-line:nth-child(2) {
  opacity: 0;
}

.pw-burger.is-open .pw-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===============================
   BUTTONS
   =============================== */

.pw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--pw-radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--pw-transition-fast),
    box-shadow var(--pw-transition-fast),
    background var(--pw-transition-fast),
    border-color var(--pw-transition-fast),
    color var(--pw-transition-fast);
  white-space: nowrap;
}

.pw-btn-primary {
  background: radial-gradient(circle at top left, #ff7a3c, #ff4fb3);
  color: #100b1f;
  box-shadow: var(--pw-shadow-soft);
}

.pw-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.9);
}

.pw-btn-ghost {
  background: rgba(24, 24, 54, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--pw-color-text);
}

.pw-btn-ghost:hover {
  background: rgba(37, 37, 82, 0.98);
}

/* ===============================
   FOOTER
   =============================== */

.pw-footer {
  border-top: 1px solid var(--pw-color-line);
  padding: 32px 0 40px;
  background: #050613;
}

.pw-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pw-footer-brand {
  margin: 0;
  font-size: 13px;
  color: var(--pw-color-muted);
}

.pw-footer-text {
  margin: 0;
  font-size: 13px;
  color: var(--pw-color-muted);
}

/* ===============================
   REVEAL ANIMATIONS
   =============================== */

.pw-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.pw-reveal-from-right {
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out 0.1s;
}

.pw-reveal-from-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* FLOATING */

@keyframes pw-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.pw-float-slow {
  animation: pw-float 9s ease-in-out infinite;
}

.pw-float-medium {
  animation: pw-float 7s ease-in-out infinite;
}

.pw-float-fast {
  animation: pw-float 5.5s ease-in-out infinite;
}

/* PLACEHOLDER SECTIONS (ПОКА ПУСТЫЕ) */

.pw-placeholder {
  min-height: 120px;
}

/* ===============================
   RESPONSIVE
   =============================== */

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

  .pw-nav {
    position: absolute;
    inset: var(--pw-header-height) 16px auto 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: radial-gradient(circle at top, #181836 0, #050613 70%);
    display: none;
  }

  .pw-nav.is-open {
    display: block;
  }

  .pw-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pw-burger {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .pw-section {
    padding: 72px 0;
  }

  .pw-footer-inner {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .pw-container {
    padding: 0 16px;
  }

  .pw-section {
    padding: 64px 0;
  }

  .pw-btn {
    width: 100%;
    justify-content: center;
  }
}
/* ===============================
   FOOTER
   =============================== */

.pw-footer {
  margin-top: 40px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 122, 60, 0.2), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(0, 201, 183, 0.22), transparent 60%),
    #050613;
  border-top: 1px solid var(--pw-color-line);
}

.pw-footer-ribbon {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(24, 24, 54, 0.95), rgba(5, 6, 19, 0.9));
}

.pw-footer-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.pw-footer-ribbon-text {
  margin: 0;
  font-size: 13px;
  color: var(--pw-color-accent-soft);
}

.pw-footer-ribbon-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pw-footer-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(5, 5, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  color: var(--pw-color-muted);
  box-shadow: var(--pw-shadow-chip);
}

.pw-footer-main {
  padding: 22px 0 32px;
}

.pw-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.pw-footer-col {
  font-size: 13px;
  color: var(--pw-color-muted);
}

.pw-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pw-color-text);
  margin-bottom: 8px;
}

.pw-footer-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: conic-gradient(
    from 210deg,
    #ff7a3c,
    #ff4fb3,
    #00c9b7,
    #ff7a3c
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "PW-Display", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  box-shadow: var(--pw-shadow-chip);
}

.pw-footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pw-footer-logo-main {
  font-family: "PW-Display", sans-serif;
  font-size: 15px;
}

.pw-footer-logo-sub {
  font-size: 11px;
  color: var(--pw-color-muted);
}

.pw-footer-copy {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--pw-color-muted);
}

.pw-footer-small {
  margin: 0;
  font-size: 12px;
  color: var(--pw-color-muted);
}

.pw-footer-title {
  margin: 0 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pw-color-accent-soft);
}

.pw-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pw-footer-links li a {
  font-size: 13px;
  color: var(--pw-color-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--pw-transition-fast);
}

.pw-footer-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a3c, #ff4fb3, #00c9b7);
  transition: width var(--pw-transition-fast);
}

.pw-footer-links li a:hover,
.pw-footer-links li a:focus-visible {
  color: var(--pw-color-text);
}

.pw-footer-links li a:hover::after,
.pw-footer-links li a:focus-visible::after {
  width: 100%;
}

.pw-footer-links-legal li a {
  font-size: 12px;
}

.pw-footer-bottom {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pw-footer-bottom-text {
  margin: 0;
  font-size: 12px;
  color: var(--pw-color-muted);
}

/* RESPONSIVE FOOTER */

@media (max-width: 900px) {
  .pw-footer-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    row-gap: 20px;
  }

  .pw-footer-col-legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .pw-footer-ribbon-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pw-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .pw-footer-col {
    max-width: 100%;
  }

  .pw-footer-bottom-text {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .pw-footer-ribbon-text {
    font-size: 12px;
  }

  .pw-footer-chip {
    font-size: 10px;
  }
}
