:root {
  --ink: #f3efe4;
  --shadow: rgba(0, 0, 0, 0.45);
  --mask: linear-gradient(120deg, rgba(3, 8, 20, 0.8) 0%, rgba(10, 34, 49, 0.55) 58%, rgba(9, 11, 14, 0.72) 100%);
  --accent: #ff7f11;
  --card: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #03070f;
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
  scroll-behavior: smooth;
}

.bg-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 127, 17, 0.09), transparent 35%), radial-gradient(circle at 80% 0%, rgba(0, 197, 255, 0.14), transparent 25%);
  mix-blend-mode: screen;
  z-index: 0;
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  backdrop-filter: blur(10px);
  background: rgba(4, 8, 18, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.logo {
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.96rem;
}

.tab-switch {
  display: inline-flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.24rem;
  border-radius: 999px;
  max-width: min(100%, 520px);
  overflow-x: auto;
}

.tab-btn,
.login-entry,
.cta,
.login-modal a {
  font-family: "Noto Sans SC", sans-serif;
}

.tab-btn {
  border: 0;
  background: transparent;
  color: #d8d4c7;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.9rem;
}

.tab-btn.is-active {
  background: #f2ede1;
  color: #172238;
  font-weight: 700;
}

.login-entry {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
  border-radius: 999px;
  padding: 0.52rem 1rem;
  cursor: pointer;
}

main {
  position: relative;
  z-index: 1;
  margin-top: 70px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.screen,
.contact {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background: var(--mask);
}

.copy {
  position: relative;
  margin: 0 auto;
  width: min(calc(100% - 2rem), 860px);
  max-width: 860px;
  padding: 2rem;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(7px);
  box-shadow: 0 26px 70px var(--shadow);
  transform: translateY(8px);
  animation: rise 650ms ease forwards;
  text-align: center;
}

.copy-hero {
  max-width: 760px;
}

.kicker {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffca9a;
  border-left: 4px solid var(--accent);
  padding-left: 0.65rem;
}

h1,
h2 {
  font-family: "Unbounded", sans-serif;
  line-height: 1.2;
  margin-top: 0.8rem;
  overflow-wrap: anywhere;
}

.accent {
  color: #ffb347;
  text-shadow: 0 0 18px rgba(255, 179, 71, 0.45);
}

h1 {
  font-size: clamp(1.8rem, 4.8vw, 3.6rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.32rem, 2.45vw, 2.18rem);
  text-wrap: balance;
}

p {
  font-size: clamp(0.96rem, 1.55vw, 1.12rem);
  line-height: 1.75;
  max-width: 100%;
  word-break: keep-all;
  text-wrap: pretty;
}

.cta {
  display: inline-block;
  margin-top: 1.2rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(100deg, #ff7f11 0%, #f7b733 100%);
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
}

.contact-copy ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  line-height: 1.8;
}

.contact-qr-item {
  margin: 0 0 1rem;
}

.contact-qr {
  display: block;
  width: min(127px, 35vw);
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.login-modal {
  border: 1px solid rgba(88, 201, 255, 0.45);
  width: min(460px, 92vw);
  border-radius: 20px;
  background: radial-gradient(circle at 15% 20%, rgba(40, 169, 255, 0.2), transparent 40%), rgba(5, 11, 24, 0.95);
  color: var(--ink);
  padding: 2rem 1.6rem 1.4rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), inset 0 0 32px rgba(28, 160, 255, 0.12);
  overflow: hidden;
}

.login-modal::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 140px;
  background: linear-gradient(120deg, rgba(40, 169, 255, 0), rgba(40, 169, 255, 0.25), rgba(40, 169, 255, 0));
  transform: rotate(-8deg);
}

.login-modal::backdrop {
  background: rgba(1, 4, 10, 0.7);
  backdrop-filter: blur(6px);
}

.login-modal h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  text-align: center;
}

.login-modal a {
  display: block;
  text-decoration: none;
  color: #fff;
  margin-top: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: linear-gradient(130deg, rgba(33, 76, 120, 0.75), rgba(14, 28, 46, 0.8));
  border: 1px solid rgba(132, 197, 255, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.login-modal a:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(132, 197, 255, 0.7);
  box-shadow: 0 14px 28px rgba(40, 169, 255, 0.25);
}

.login-modal a:active {
  transform: translateY(-1px) scale(1);
}

.login-modal .close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.login-modal .close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo login"
      "tabs tabs";
    gap: 0.6rem;
    padding: 0.85rem 1rem;
  }

  .logo {
    grid-area: logo;
  }

  .tab-switch {
    grid-area: tabs;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .login-entry {
    grid-area: login;
  }

  main {
    margin-top: 126px;
  }

  .copy {
    width: min(calc(100% - 2rem), 860px);
    margin: 0 auto;
    padding: 1.3rem;
  }

  h1,
  h2 {
    word-break: break-all;
  }

  p {
    word-break: normal;
  }
}
