:root {
  --bg-0: #05070d;
  --bg-1: #0a1020;
  --bg-2: #0b1530;
  --text: #edf5ff;
  --muted: #96a6c3;
  --line: rgba(170, 208, 255, 0.26);
  --glass-top: rgba(169, 211, 255, 0.18);
  --glass-bottom: rgba(110, 150, 230, 0.06);
  --glass-solid: rgba(9, 18, 38, 0.65);
  --accent: #7ee8ff;
  --accent-2: #81a9ff;
  --danger-bg: rgba(255, 92, 121, 0.15);
  --danger-line: rgba(255, 92, 121, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background: #000;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

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

.page-shell {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  padding: 1rem 1.25rem 3rem;
}

.landing-stack {
  width: min(780px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visitor-info {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
  padding: 0.45rem 0.8rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #b9c7ea;
  font-size: 0.88rem;
  box-shadow: 0 0 0 1px rgba(126, 232, 255, 0.08), 0 0 14px rgba(126, 232, 255, 0.06);
}

.top-nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 1.6rem;
  position: relative;
  z-index: 4;
}

.nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #f5f8ff;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-brand-text {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 1.35rem;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links a {
  color: #e9edf8;
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.95;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-actions {
  justify-self: end;
}

.nav-cabinet-btn {
  min-height: 54px;
  padding: 0.75rem 1.55rem;
  border-radius: 999px;
  background: #f5f5f6;
  color: #141414;
  box-shadow: none;
  font-weight: 500;
}

.center-screen-logo {
  position: fixed;
  left: auto;
  right: -26vw;
  top: 56%;
  transform: translate(0, -50%);
  width: min(1100px, 70vw);
  max-height: 72vh;
  object-fit: contain;
  object-position: right center;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
  animation: logo-float 7s ease-in-out infinite;
}

.home-content {
  width: min(860px, 100%);
  margin-top: 5.5rem;
  margin-left: 0;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 4;
}

.hero-hybrid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: 0 0 0 1px rgba(126, 232, 255, 0.1), 0 0 22px rgba(126, 232, 255, 0.09);
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.hero-kicker {
  margin: 0 0 0.55rem;
  color: #8fb1ff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy p {
  margin: 0.8rem 0 0;
  color: #b6c2de;
  max-width: 58ch;
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.trust-list article {
  background: rgba(0, 0, 0, 0.72);
  border-radius: 16px;
  padding: 0.85rem;
  box-shadow: 0 0 0 1px rgba(126, 232, 255, 0.08), 0 0 16px rgba(126, 232, 255, 0.06);
}

.trust-list h3 {
  margin: 0;
  font-size: 1rem;
}

.trust-list p {
  margin: 0.3rem 0 0;
  color: #adbbdb;
  font-size: 0.93rem;
  line-height: 1.45;
}

.plans-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.plan-card {
  background: rgba(0, 0, 0, 0.78);
  border-radius: 18px;
  padding: 0.95rem;
  box-shadow: 0 0 0 1px rgba(126, 232, 255, 0.09), 0 0 16px rgba(126, 232, 255, 0.07);
  display: flex;
  flex-direction: column;
}

.plan-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.plan-card p {
  margin: 0.45rem 0 0.8rem;
  color: #acb8d6;
  min-height: 40px;
}

.plan-card strong {
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
}

.plan-card .btn {
  width: 100%;
}

.bg-orb {
  display: none;
  position: fixed;
  border-radius: 999px;
  filter: blur(52px);
  pointer-events: none;
  z-index: 1;
}

.orb-1 {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -120px;
  background: linear-gradient(135deg, rgba(126, 232, 255, 0.6), rgba(129, 169, 255, 0.28));
  animation: float-1 16s ease-in-out infinite;
}

.orb-2 {
  width: 330px;
  height: 330px;
  right: -110px;
  bottom: -120px;
  background: linear-gradient(135deg, rgba(129, 169, 255, 0.5), rgba(126, 232, 255, 0.22));
  animation: float-2 20s ease-in-out infinite;
}

.bg-noise {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    radial-gradient(circle at 70% 74%, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 24px 24px, 28px 28px;
}

.glass-card {
  width: 100%;
  padding: clamp(1.25rem, 2.3vw, 2.2rem);
  border-radius: 30px;
  border: none;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 0 0 1px rgba(126, 232, 255, 0.12), 0 0 24px rgba(126, 232, 255, 0.12);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
}

.hero-card h1,
.auth-card h1,
.cabinet-card h1 {
  font-size: clamp(2rem, 5vw, 3.05rem);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand-logo {
  display: block;
  width: min(230px, 52%);
  margin: -1.1rem 0 0.6rem;
}

.hero-login-btn {
  margin-top: 0.2rem;
}

.brand-title {
  display: none;
}

.pricing-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.chip {
  width: fit-content;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 232, 255, 0.48);
  background: rgba(126, 232, 255, 0.11);
  color: #d5fbff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-text,
.subtitle,
.muted-note {
  color: var(--muted);
  line-height: 1.55;
}

.hero-text {
  margin: 0.95rem 0 1.55rem;
  max-width: 54ch;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.15rem;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: #071321;
  background: linear-gradient(135deg, var(--accent), #b3f8ff);
  box-shadow: 0 12px 30px rgba(126, 232, 255, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 15px 34px rgba(126, 232, 255, 0.45);
}

.btn-ghost {
  color: #f1f8ff;
  background: var(--glass-solid);
  border: 1px solid rgba(181, 210, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(16, 28, 55, 0.76);
}

.stats-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-item {
  position: relative;
  border-radius: 18px;
  padding: 0.92rem;
  border: none;
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 0 0 1px rgba(126, 232, 255, 0.08), 0 0 18px rgba(126, 232, 255, 0.08);
}

.plan-featured {
  box-shadow: 0 0 0 1px rgba(126, 232, 255, 0.16), 0 0 26px rgba(126, 232, 255, 0.16);
}

.plan-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d8faff;
  border: 1px solid rgba(126, 232, 255, 0.5);
  background: rgba(126, 232, 255, 0.14);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.plan-item h3 {
  font-size: 1.1rem;
}

.plan-desc {
  margin: 0.45rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.91rem;
  min-height: 44px;
}

.plan-price {
  margin: 0 0 0.75rem;
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
}

.plan-item .btn {
  width: 100%;
}

.glass-mini {
  border-radius: 16px;
  padding: 0.86rem;
  border: none;
  background: rgba(0, 0, 0, 0.76);
  box-shadow: 0 0 0 1px rgba(126, 232, 255, 0.08), 0 0 16px rgba(126, 232, 255, 0.07);
}

.glass-mini span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.glass-mini strong {
  display: block;
  margin-top: 0.24rem;
  font-size: 1rem;
}

.auth-card,
.cabinet-card {
  width: min(590px, 100%);
}

.back-link {
  color: #cbd8ef;
  font-size: 0.93rem;
  opacity: 0.86;
}

.back-link:hover {
  opacity: 1;
}

.auth-card h1,
.cabinet-card h1 {
  margin-top: 0.7rem;
}

.subtitle {
  margin: 0.7rem 0 1.15rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.auth-form label {
  color: #d3def2;
  font-size: 0.94rem;
}

.auth-form input {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: rgba(8, 16, 35, 0.72);
  color: var(--text);
  outline: none;
  padding: 0.88rem 0.95rem;
  font-size: 0.97rem;
}

.auth-form input:focus {
  border-color: rgba(126, 232, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(126, 232, 255, 0.14);
}

.alert {
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.88rem;
  border-radius: 12px;
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  color: #ffd8e0;
}

.muted-note {
  margin: 0.88rem 0 0;
  font-size: 0.88rem;
}

.qr-wrap {
  margin-top: 1rem;
  border: none;
  border-radius: 18px;
  padding: 0.85rem;
  background: linear-gradient(160deg, rgba(154, 200, 255, 0.12), rgba(12, 22, 45, 0.52));
  box-shadow: inset 0 1px 0 rgba(230, 242, 255, 0.23);
}

.qr-wrap p {
  margin: 0 0 0.68rem;
  color: var(--muted);
}

.qr-wrap img {
  width: 220px;
  max-width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(181, 210, 255, 0.28);
  background: #fff;
}

.fade-up {
  animation: fade-up 0.55s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, 16px);
  }
}

@keyframes float-2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-28px, -18px);
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.46;
  }
  50% {
    transform: translate(-50%, -51.5%) scale(1.03);
    opacity: 0.56;
  }
}

@media (prefers-reduced-motion: reduce) {
  .center-screen-logo {
    animation: none;
  }
}

@media (max-width: 700px) {
  .top-nav {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    justify-items: center;
    text-align: center;
  }

  .nav-brand,
  .nav-actions {
    justify-self: center;
  }

  .nav-links {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-cabinet-btn {
    min-height: 46px;
    padding: 0.6rem 1.1rem;
  }

  .home-content {
    margin-top: 4rem;
    margin-left: 0;
    margin-right: 0;
  }

  .center-screen-logo {
    left: 50%;
    top: 52%;
    width: min(760px, 90vw);
  }

  .hero-hybrid {
    grid-template-columns: 1fr;
    padding: 0.95rem;
  }

  .plans-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: min(220px, 70%);
    margin: -0.6rem 0 0.4rem;
  }

  .hero-login-btn {
    margin-top: 0;
  }

  .actions-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Home poster layout */
.home-poster {
  position: relative;
  width: calc(100% + 2.5rem);
  min-height: 100vh;
  margin: 0 -1.25rem 0;
  border-radius: 0;
  overflow: hidden;
  background: url("/static/123.png") right 5% / 88% no-repeat;
  box-shadow: 0 20px 60px rgba(1, 6, 18, 0.6);
}

.home-poster::before {
  display: none;
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      26deg,
      transparent 0 34px,
      rgba(58, 155, 255, 0.18) 34px 36px,
      transparent 36px 72px
    ),
    repeating-linear-gradient(
      -34deg,
      transparent 0 46px,
      rgba(28, 111, 201, 0.16) 46px 48px,
      transparent 48px 90px
    );
  opacity: 0.34;
  pointer-events: none;
}

.poster-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  height: 100%;
  padding: clamp(2.4rem, 7vh, 5rem) clamp(1.2rem, 3vw, 3rem) clamp(1.6rem, 3vh, 2.6rem);
}

.poster-left {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.poster-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #f3f9ff;
  font-family: "Sora", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.16em;
  margin-top: 0;
  margin-bottom: 2.2rem;
}

.poster-brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.poster-title {
  margin: 0;
  font-size: clamp(2.2rem, 5.1vw, 4.2rem);
  line-height: 1.04;
  color: #5de2ff;
  max-width: 13ch;
  text-shadow: 0 0 24px rgba(93, 226, 255, 0.25);
}

.poster-subtitle {
  margin: 1.25rem 0 0;
  color: #d8ecff;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  max-width: 22ch;
}

.poster-text {
  margin: 1rem 0 0;
  color: #bdd3ed;
  font-size: 1.03rem;
  line-height: 1.58;
  max-width: 60ch;
}

.poster-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.poster-btn {
  min-height: 52px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
}

.poster-btn-primary {
  background: linear-gradient(135deg, #84eaff, #64d2ff);
  color: #052035;
  box-shadow: 0 12px 26px rgba(100, 210, 255, 0.3);
}

.poster-btn-ghost {
  border: 1px solid rgba(156, 112, 255, 0.88);
  color: #f7f2ff;
  background: linear-gradient(132deg, #1e4dff 0%, #4b3cff 45%, #c24fff 100%);
  box-shadow:
    0 14px 30px rgba(91, 73, 255, 0.52),
    0 0 28px rgba(194, 79, 255, 0.42);
}

.poster-plans {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.poster-plan {
  border-radius: 14px;
  padding: 0.72rem;
  background: rgba(2, 11, 24, 0.72);
  border: 1px solid rgba(93, 226, 255, 0.18);
}

.poster-plan h3 {
  margin: 0;
  font-size: 1rem;
}

.poster-plan p {
  margin: 0.38rem 0 0.6rem;
  color: #a9c0dc;
  font-size: 0.92rem;
  min-height: 2.6em;
}

.poster-plan strong {
  font-size: 1.36rem;
  color: #9ae9ff;
}

.poster-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-hero-logo {
  display: none;
  width: min(620px, 95%);
  max-height: 76vh;
  object-fit: contain;
  opacity: 1;
}

@media (max-width: 1100px) {
  .home-poster {
    min-height: 100vh;
  }

  .poster-grid {
    grid-template-columns: 1fr;
    padding-top: clamp(2.6rem, 6vh, 4rem);
  }

  .poster-right {
    order: -1;
  }

  .poster-hero-logo {
    width: min(440px, 86vw);
    max-height: 46vh;
    opacity: 0.6;
  }
}

@media (max-width: 700px) {
  .home-poster {
    border-radius: 0;
    margin: 0 -1.25rem 0;
    background-position: right 8%;
    background-size: 118%;
  }

  .poster-grid {
    padding: 2.4rem 1rem 1.4rem;
  }

  .poster-brand {
    margin-bottom: 1.6rem;
  }

  .poster-title {
    max-width: none;
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }

  .poster-subtitle {
    font-size: 1.08rem;
  }

  .poster-plans {
    grid-template-columns: 1fr;
  }
}
