:root {
  --home-ink: #ffffff;
  --home-muted: rgba(255, 255, 255, 0.82);
  --home-line: rgba(255, 255, 255, 0.26);
  --home-accent: #ffffff;
  --home-dark: #173c72;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body.venix-home {
  height: 100vh;
  height: 100svh;
  margin: 0;
  color: var(--home-ink);
  background:
    linear-gradient(45deg, rgba(42, 27, 161, 0.7), rgba(29, 210, 177, 0.7) 100%),
    url("/theme/venix/images/home.jpeg") center center / cover no-repeat fixed;
  background-color: var(--home-dark);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.venix-home::before {
  content: none;
}

a {
  color: inherit;
}

.home-nav,
.home-footer,
.home-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
}

main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.home-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.home-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.home-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.home-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.home-nav-button,
.home-button {
  color: #253047 !important;
  background: #fff;
}

.home-hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 34px 0 46px clamp(150px, 16vw, 280px);
}

.home-hero-copy {
  max-width: 760px;
  margin-left: 0;
  animation: homeFadeIn 0.78s ease both;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 18px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--home-accent);
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.home-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 7.6vw, 96px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.home-lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--home-muted);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.85;
  font-weight: 500;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.home-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.home-button-ghost {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--home-line);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.home-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 14px 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.home-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

body.venix-home > main.home-error {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.home-error-card {
  width: min(760px, 100%);
  margin: auto;
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  text-align: center;
  backdrop-filter: blur(14px);
  animation: homeFadeIn 0.78s ease both;
}

.home-error-code {
  margin: 4px 0 14px;
  color: rgba(255, 255, 255, 0.26);
  font-size: clamp(84px, 16vw, 160px);
  line-height: 0.86;
  font-weight: 900;
}

.home-error-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.home-error-card p:not(.home-kicker) {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--home-muted);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 600;
}

.home-error-card .home-actions {
  justify-content: center;
}

@keyframes homeFadeIn {
  from {
    opacity: 0;
    transform: translate3d(-24px, 10px, 0);
  }

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

@media (max-width: 900px) {
  body.venix-home {
    background:
      linear-gradient(45deg, rgba(42, 27, 161, 0.74), rgba(29, 210, 177, 0.72) 100%),
      url("/theme/venix/images/home.jpeg") center center / cover no-repeat fixed;
  }

  .home-nav {
    align-items: center;
    flex-direction: row;
    padding: 18px 0;
  }

  .home-nav nav {
    justify-content: flex-end;
  }

  .home-hero {
    min-height: 0;
    padding: 18px 0 26px clamp(18px, 4vw, 36px);
  }

  .home-hero-copy {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
  }

  .home-hero h1 {
    font-size: clamp(34px, 10vw, 60px);
  }

  .home-lead {
    margin-left: auto;
    margin-right: auto;
  }

  body.venix-home > main.home-error {
    padding: 22px 0 26px;
  }

  .home-actions {
    justify-content: center;
  }

  .home-lead {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.7;
  }

  .home-actions {
    margin-top: 24px;
  }
}

@media (max-width: 520px) {
  .home-nav,
  .home-footer,
  .home-hero {
    width: min(100% - 28px, 1180px);
  }

  .home-nav nav {
    width: auto;
    gap: 6px;
  }

  .home-nav a {
    min-height: 34px;
    padding: 0 9px;
    font-size: 13px;
  }

  .home-brand {
    gap: 8px;
    font-size: 16px;
  }

  .home-brand img {
    width: 30px;
    height: 30px;
  }

  .home-kicker {
    min-height: 28px;
    margin-bottom: 14px;
    font-size: 11px;
  }

  .home-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .home-button {
    width: auto;
    min-width: 132px;
  }

  .home-hero {
    padding-left: 0;
    padding-right: 0;
  }

  body.venix-home > main.home-error {
    padding: 14px;
  }

  .home-error-card {
    padding: 26px 18px;
  }

  .home-footer {
    padding: 8px 0 14px;
    font-size: 12px;
  }
}

@media (max-height: 680px) and (max-width: 520px) {
  .home-kicker {
    display: none;
  }

  .home-lead {
    margin-top: 14px;
    line-height: 1.55;
  }

  .home-actions {
    margin-top: 18px;
  }

  .home-button {
    min-height: 42px;
  }
}
