/* invite.css — Pipeline.news invite page */
:root {
  --navy:   #0D2756;
  --blue:   #1E6BC5;
  --cyan:   #5BB8F5;
  --teal:   #00C4A0;
  --teal-d: #00A88A;
  --white:  #ffffff;
  --red:    #ff5b5b;
}

html { background: #0b3f6f; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(150deg, #0b3f6f 0%, #1a3d78 60%, var(--blue) 100%);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 24px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(0,196,160,.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.top-logo {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}
.top-logo img {
  height: auto;
  max-width: 260px;
  width: 100%;
  display: block;
}

.card {
  position: relative;
  z-index: 1;
  max-width: 620px;
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 48px 44px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  animation: fadeUp .7s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,196,160,.22), rgba(91,184,245,.12));
  border: 1px solid rgba(0,196,160,.35);
  font-size: 32px;
  margin-bottom: 20px;
  animation: pop .6s .3s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes pop {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}

.badge {
  display: inline-block;
  background: rgba(0,196,160,.18);
  border: 1px solid rgba(0,196,160,.42);
  color: #00E4BC;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
h1 span {
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
  margin-bottom: 28px;
}

.divider {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  border-radius: 2px;
  margin: 0 auto 28px;
}

.form-group { margin-bottom: 20px; text-align: left; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color .15s;
}
.form-input::placeholder { color: rgba(255,255,255,.28); }
.form-input:focus { border-color: rgba(0,196,160,.6); }
.form-input.is-invalid { border-color: rgba(255,91,91,.6); }

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: text;
  transition: border-color .15s;
}
.chips-wrap:focus-within { border-color: rgba(0,196,160,.6); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
}
.chip--valid {
  background: rgba(0,196,160,.18);
  border: 1px solid rgba(0,196,160,.45);
  color: #00E4BC;
}
.chip--invalid {
  background: rgba(255,91,91,.14);
  border: 1px solid rgba(255,91,91,.4);
  color: #ff8f8f;
}
.chip__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.chip__remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
  opacity: .7;
  transition: opacity .1s;
}
.chip__remove:hover { opacity: 1; }

.chip-input {
  flex: 1;
  min-width: 140px;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--white);
  padding: 2px 0;
}
.chip-input::placeholder { color: rgba(255,255,255,.25); }

.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.counter-hint { font-size: 12px; color: rgba(255,255,255,.35); }
.counter-num { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45); }
.counter-num.is-full { color: #00E4BC; }

.disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 20px 0;
  text-align: left;
}
.disclaimer strong { color: rgba(255,255,255,.55); font-weight: 600; }

.btn {
  display: inline-block;
  width: 100%;
  background: linear-gradient(135deg, var(--teal), var(--teal-d));
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,196,160,.35);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,196,160,.5);
}
.btn:disabled { opacity: .38; cursor: not-allowed; }

.status-msg {
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 16px;
  text-align: left;
}
.status-msg--error {
  background: rgba(255,91,91,.12);
  border: 1px solid rgba(255,91,91,.3);
  color: #ffaaaa;
}
.status-msg--info {
  background: rgba(91,184,245,.10);
  border: 1px solid rgba(91,184,245,.28);
  color: #a8d8f5;
}
.status-msg--success {
  background: rgba(0,196,160,.12);
  border: 1px solid rgba(0,196,160,.35);
  color: #00E4BC;
}

.success-state { animation: fadeUp .5s ease both; }
.success-icon { font-size: 52px; margin-bottom: 16px; display: block; }
.success-state h2 { font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.success-state p { font-size: 15px; color: rgba(255,255,255,.65); }

.link-back {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.link-back:hover { color: var(--teal); }

.footer-note {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,.3);
  text-align: center;
}
.footer-note a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.footer-note a:hover { color: var(--teal); }

@media (max-width: 520px) {
  .card { padding: 36px 20px; border-radius: 20px; }
}
