/* Linkiplay subdomain pages — landing + redirect */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: #f1f9ff;
  color: #0b1220;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(1000px 600px at -10% 110%, rgba(124,58,237,0.18), transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #eaf4ff 100%);
}

@media (prefers-color-scheme: dark) {
  html, body { background: #05080d; color: #e6f1ff; }
  body {
    background:
      radial-gradient(1200px 600px at 90% -10%, rgba(56,189,248,0.22), transparent 60%),
      radial-gradient(1000px 600px at -10% 110%, rgba(124,58,237,0.22), transparent 60%),
      linear-gradient(180deg, #05080d 0%, #070b14 100%);
  }
}

a { color: inherit; }
.hidden { display: none !important; }

/* ==================== REDIRECT CARD ==================== */
.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 2rem 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(2, 132, 199, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #f1f9ff 60%, #e0f2fe 100%);
  box-shadow: 0 24px 60px -28px rgba(2, 132, 199, 0.35);
}
@media (prefers-color-scheme: dark) {
  .card {
    background: #0a0d12;
    border-color: rgba(56, 189, 248, 0.18);
    box-shadow: 0 24px 60px -28px rgba(56, 189, 248, 0.42);
  }
}

.logo { width: 72px; height: 72px; margin: 0 auto 1rem; display: block; }

.card h1 { font-size: 1.4rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.card p  { font-size: 0.92rem; opacity: 0.78; line-height: 1.5; margin-bottom: 1rem; }

.code {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.10);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
@media (prefers-color-scheme: dark) { .code { background: rgba(56, 189, 248, 0.16); } }

.spinner {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(2, 132, 199, 0.18);
  border-top-color: #0284c7;
  margin: 0.6rem auto 1.1rem;
  animation: spin 0.9s linear infinite;
}
@media (prefers-color-scheme: dark) {
  .spinner { border-color: rgba(56, 189, 248, 0.18); border-top-color: #38bdf8; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.75rem 1.3rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 30px -12px rgba(2, 132, 199, 0.55);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.secondary {
  background: transparent;
  color: #0284c7 !important;
  border: 1.5px solid rgba(2, 132, 199, 0.35);
  box-shadow: none;
}
@media (prefers-color-scheme: dark) {
  .btn.secondary { color: #7dd3fc !important; border-color: rgba(56, 189, 248, 0.35); }
}

.tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.18rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.10);
  color: #0284c7;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .tag { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }
}

.error h1 { color: #dc2626; }
@media (prefers-color-scheme: dark) { .error h1 { color: #f87171; } }

/* ==================== LANDING PAGE ==================== */
.landing { min-height: 100vh; display: flex; flex-direction: column; }

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.6rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.lp-brand img { width: 34px; height: 34px; }
.lp-brand .name {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed, #c026d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-nav-cta {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}
.lp-nav-cta:hover { filter: brightness(1.08); }

.lp-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
}
.lp-hero-inner { max-width: 880px; width: 100%; text-align: center; }

.lp-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.10);
  color: #0284c7;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(2, 132, 199, 0.22);
}
.lp-cat .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 0 4px rgba(2,132,199,0.18);
}
@media (prefers-color-scheme: dark) {
  .lp-cat { background: rgba(56,189,248,0.16); color: #7dd3fc; border-color: rgba(56,189,248,0.30); }
  .lp-cat .dot { background: #38bdf8; box-shadow: 0 0 0 4px rgba(56,189,248,0.22); }
}

.lp-hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.4rem;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(124, 58, 237, 0.30));
}

.lp-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 0.85rem;
  font-weight: 800;
}
.lp-hero h1 .gradient {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed, #c026d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-hero .subtitle {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  opacity: 0.78;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 1.6rem;
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.2rem;
}

.lp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  max-width: 820px;
  margin: 0 auto;
}

.lp-feat {
  text-align: left;
  padding: 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(2, 132, 199, 0.16);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (prefers-color-scheme: dark) {
  .lp-feat { background: rgba(15,20,28,0.6); border-color: rgba(56,189,248,0.18); }
}
.lp-feat .icon { font-size: 1.4rem; margin-bottom: 0.4rem; display: block; }
.lp-feat h3    { font-size: 0.95rem; margin-bottom: 0.25rem; font-weight: 700; }
.lp-feat p     { font-size: 0.82rem; opacity: 0.74; line-height: 1.5; }

.lp-foot {
  padding: 1.4rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.65;
}
.lp-foot a { font-weight: 600; text-decoration: none; }
.lp-foot a:hover { text-decoration: underline; }
