:root {
  --bg: #0b0d10;
  --bg-alt: #12151a;
  --surface: #181c24;
  --border: #2a3140;
  --text: #e8ecf4;
  --muted: #9aa3b5;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --yes: #3ecf8e;
  --no: #f0a060;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --container: 1120px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  width: 100%;
  min-height: 100%;
  position: relative;
}

main {
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.55s ease,
      transform 0.55s ease;
    transition-delay: var(--reveal-delay, 0ms);
  }

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

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

.container {
  width: min(100% - 2rem, var(--container));
  max-width: 100%;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo__dot {
  color: var(--accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.lang-switch__btn {
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn.is-active {
  color: var(--text);
  background: var(--bg-alt);
}

.nav a:not(.nav__cta) {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:not(.nav__cta):hover {
  color: var(--text);
}

.header__cta {
  flex-shrink: 0;
}

.nav .nav__cta {
  display: none;
}

.nav-backdrop {
  display: none;
}

.burger {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.burger:hover,
.burger:focus-visible {
  border-color: rgba(79, 140, 255, 0.45);
  outline: none;
}

.burger.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(79, 140, 255, 0.45);
}

.burger__line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

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

.burger.is-active .burger__line:nth-child(2) {
  opacity: 0;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: #6b9fff;
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--muted);
  background: var(--surface);
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(79, 140, 255, 0.18), transparent),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__stats strong {
  font-size: 1.125rem;
}

.hero__stats span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.hero__card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__card-label {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.demo-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.demo-link strong {
  flex: 1;
  font-size: 1.0625rem;
}

.demo-link__tag {
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 5.5rem;
}

.demo-link__arrow {
  color: var(--accent);
}

.hero__card-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__head--left {
  margin-left: 0;
  text-align: left;
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

/* Works */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-card__preview {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.work-card__preview--zerno {
  background-image:
    linear-gradient(180deg, rgba(11, 13, 16, 0.15), rgba(11, 13, 16, 0.75)),
    url("../img/zerno-hero.webp");
}

.work-card__preview--gym {
  background-image:
    linear-gradient(180deg, rgba(11, 13, 16, 0.15), rgba(11, 13, 16, 0.75)),
    url("../img/gym-hero.webp");
}

.work-card__preview--goldrush {
  background-image:
    linear-gradient(180deg, rgba(11, 13, 16, 0.15), rgba(11, 13, 16, 0.75)),
    url("../img/goldrush-hero.webp");
}

.work-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(11, 13, 16, 0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.work-card__body {
  padding: 1.5rem;
}

.work-card__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.work-card__body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.work-card__note {
  margin: -0.35rem 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: 999px;
}

.work-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps__num {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

.steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* CMS lists */
.cms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list--yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--yes);
  font-weight: 700;
}

.check-list--no li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--no);
}

.check-list code {
  font-size: 0.85em;
  color: var(--muted);
}

/* Packages */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.packages--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin-inline: auto;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.package--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.package__label {
  position: absolute;
  top: -0.65rem;
  left: 1.25rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

.package h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.package--bundle .package__label {
  background: #059669;
}

.package__compare {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.package__compare s {
  margin-left: 0.35rem;
  color: #9ca3af;
}

.package__save {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #059669;
}

.package__price {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.package__price strong {
  font-size: 1.75rem;
  color: var(--text);
}

.package__price span {
  margin-left: 0.35rem;
  font-size: 1rem;
  color: var(--muted);
}

.package__note {
  margin: 0.25rem 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.package ul {
  flex: 1;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.package li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.package li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.package__hint {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.extras__lead {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.extras h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.extras__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.extra {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.extra strong {
  font-size: 0.9rem;
}

.extra span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Terms */
.terms {
  max-width: 720px;
}

.terms h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
}

.terms ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.terms li strong {
  color: var(--text);
}

/* Contact */
.section--contact {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(79, 140, 255, 0.12), transparent),
    var(--bg-alt);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 960px;
}

.contact h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.contact__text > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.contact__links {
  display: grid;
  gap: 0.75rem;
}

.contact__link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.contact__link:hover {
  border-color: var(--accent);
}

.contact__link span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact__pitch {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact__pitch-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__pitch blockquote {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact__pitch a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact__form-wrap {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact__form-title {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: block;
  margin-bottom: 0.875rem;
}

.field--hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.field__input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}

.field__input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field__input:focus {
  outline: none;
  border-color: var(--accent);
}

.field__input[aria-invalid="true"] {
  border-color: #e85d5d;
}

.field__input--area {
  min-height: 110px;
  resize: vertical;
}

.field__error {
  display: block;
  min-height: 1.15em;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #e85d5d;
}

.contact-form__success {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text);
  background: rgba(79, 140, 255, 0.12);
  border: 1px solid rgba(79, 140, 255, 0.3);
}

.contact-form__error {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #e85d5d;
}

/* Footer */
.footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}

/* Mobile */
@media (max-width: 960px) {
  .hero__grid,
  .works,
  .steps,
  .cms-grid,
  .packages,
  .extras__grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .packages,
  .packages--two {
    grid-template-columns: 1fr;
  }

  .package--featured {
    order: -1;
  }
}

@media (max-width: 720px) {
  body {
    touch-action: pan-y;
  }

  .header {
    z-index: 120;
  }

  .header__inner {
    position: relative;
    z-index: 115;
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .burger,
  .logo,
  .header__actions {
    position: relative;
    z-index: 111;
  }

  .header__actions {
    margin-left: auto;
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    width: min(300px, 86vw);
    max-width: 100%;
    height: calc(100dvh - var(--header-height));
    padding: 1.25rem 1.25rem 2rem;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    border-left: 1px solid var(--border);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.28s ease, visibility 0.28s ease;
    will-change: transform;
  }

  .nav::before {
    content: "";
    width: 40px;
    height: 3px;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: var(--accent);
    flex-shrink: 0;
  }

  .nav.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .nav a:not(.nav__cta) {
    display: block;
    padding: 0.9rem 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
  }

  .nav a:not(.nav__cta):hover,
  .nav a:not(.nav__cta):focus-visible {
    background: var(--accent-soft);
    color: var(--text);
  }

  .nav .nav__cta {
    display: inline-flex;
    margin-top: auto;
    padding-top: 1rem;
    width: 100%;
    color: #fff;
  }

  body.nav-open {
    touch-action: none;
  }

  .steps,
  .extras__grid,
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
}
