/* FrameLink subpages - shared shell for community, workshop and download. */

:root {
  --accent-rgb: 152, 196, 255;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.52);
  --dim: rgba(255, 255, 255, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  height: 100%;
  background: #000;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 44% at 50% 0%, rgba(52, 86, 140, 0.2), transparent 72%),
    radial-gradient(46% 40% at 12% 100%, rgba(34, 56, 96, 0.16), transparent 76%),
    radial-gradient(40% 38% at 92% 82%, rgba(46, 70, 112, 0.12), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

::selection {
  background: rgba(var(--accent-rgb), 0.32);
  color: #fff;
}

/* --------------------------------------------------------------- topbar */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}

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

.brand__logo {
  width: 28px;
  height: 28px;
  display: block;
  opacity: 0.92;
}

.brand__word {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.brand__sub {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--dim);
}

.brand__sub::before {
  content: "/";
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.16);
}

.topbar__link {
  position: relative;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.35s var(--ease);
}

.topbar__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.55);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.topbar__link:hover {
  color: #fff;
}

.topbar__link:hover::after {
  transform: scaleX(1);
}

/* ----------------------------------------------------------------- page */

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(36px, 8vh, 100px) clamp(18px, 4vw, 46px);
}

.page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  width: min(1120px, 100%);
}

/* ---------------------------------------------------------------- intro */

.intro {
  animation: rise 1s var(--ease) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb), 0.8);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.7);
}

.display {
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 250;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
}

.display em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
}

.lede {
  max-width: 44ch;
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.facts {
  display: grid;
  gap: 13px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.fact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.fact::before {
  content: "";
  width: 14px;
  height: 1px;
  margin-top: 1px;
  background: rgba(var(--accent-rgb), 0.5);
}

/* ---------------------------------------------------------------- panel */

.panel {
  position: relative;
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.012)
  );
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  animation: rise 1.15s var(--ease) 0.08s both;
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(var(--accent-rgb), 0.8),
    rgba(var(--accent-rgb), 0.08) 62%,
    transparent
  );
}

.panel::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.55);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.55);
}

.panel__kicker {
  margin: 0 0 12px;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

.panel__title {
  margin: 0;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.panel__text {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

/* ----------------------------------------------------------------- form */

.form {
  margin-top: 26px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.field-row .field {
  margin-top: 0;
}

.field-row + .field {
  margin-top: 16px;
}

.field__label {
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}

.field__wrap {
  position: relative;
}

.field__input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.field__input--password {
  padding-right: 64px;
}

.field__input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.field__input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.field__input:focus {
  border-color: rgba(var(--accent-rgb), 0.62);
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.16),
    0 0 26px rgba(var(--accent-rgb), 0.1);
}

.field__input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 100px #0b0b0b inset;
  caret-color: #fff;
}

.field__reveal {
  position: absolute;
  top: 50%;
  right: 6px;
  padding: 9px;
  border: 0;
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.3s var(--ease);
}

.field__reveal:hover,
.field__reveal[aria-pressed="true"] {
  color: rgba(255, 255, 255, 0.8);
}

.submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  margin-top: 22px;
  border: 1px solid #fff;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s var(--ease),
    border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.submit:hover {
  background: #d8e6ff;
  border-color: #d8e6ff;
}

.submit:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.8);
  outline-offset: 3px;
}

.submit:disabled {
  opacity: 0.5;
  cursor: progress;
}

.submit__arrow {
  font-size: 13px;
  letter-spacing: 0;
  transition: transform 0.35s var(--ease);
}

.submit:hover .submit__arrow {
  transform: translateX(4px);
}

.message {
  min-height: 18px;
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #ff9f9f;
}

.message.is-ok {
  color: #9fe8c8;
}

.panel__note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--dim);
}

.panel__note strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------- member */

.member__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 6px 11px;
  border: 1px solid rgba(159, 232, 200, 0.28);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(159, 232, 200, 0.9);
}

.member__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9fe8c8;
  box-shadow: 0 0 10px rgba(159, 232, 200, 0.8);
}

.identity {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.identity__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  font-size: 11px;
}

.identity__key {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.identity__value {
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
  word-break: break-word;
}

.member__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.link-button {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-button:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

/* ----------------------------------------------------------------- empty */

.empty-state {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 0;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.empty-state__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.9);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.75);
  animation: pulse 2.8s ease-in-out infinite;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.button:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.button--light {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.button--light:hover {
  background: #d8e6ff;
  border-color: #d8e6ff;
  color: #000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------- foot */

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 46px);
  border-top: 1px solid var(--line);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
}

.foot a {
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.foot a:hover {
  color: #fff;
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .page {
    align-items: flex-start;
    padding-top: clamp(34px, 6vh, 64px);
  }

  .page__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .display {
    font-size: clamp(2rem, 7.4vw, 3rem);
  }

  .lede {
    margin-top: 16px;
  }

  .facts {
    margin-top: 24px;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .brand__sub {
    display: none;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .field-row .field {
    margin-top: 14px;
  }

  .field-row .field:first-child {
    margin-top: 0;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro,
  .panel,
  .empty-state__dot {
    animation: none;
  }
}
