:root {
  --bg-deep: #070b14;
  --glass: rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .12);
  --text: #f4f6fb;
  --muted: #9aa4b8;
  --accent-a: #6366f1;
  --accent-b: #22d3ee;
  --accent-c: #a855f7;
  --glow: rgba(99, 102, 241, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: "Noto Sans SC", "Inter", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  line-height: 1.6;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(99, 102, 241, .28), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(34, 211, 238, .18), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(168, 85, 247, .16), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #0c1222 45%, #070b14 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: float 14s ease-in-out infinite;
}
.orb-a {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -120px; left: -80px;
}
.orb-b {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  top: 20%; right: -100px;
  animation-delay: -4s;
}
.orb-c {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  bottom: -80px; left: 35%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.05); }
  66% { transform: translate(-16px, 12px) scale(.96); }
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
}

.panel {
  width: min(720px, 100%);
  animation: rise .9s cubic-bezier(.22, 1, .36, 1) both;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(99, 102, 241, .15);
  border: 1px solid rgba(129, 140, 248, .35);
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.3;
  padding-bottom: 6px;
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 40%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 36px;
}

.section-label {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 12px;
}

.cards {
  list-style: none;
  display: grid;
  gap: 16px;
}

.card {
  position: relative;
  display: block;
  padding: 22px 24px 22px 28px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .35s, box-shadow .35s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}

.card::after {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--accent-b), var(--accent-a), var(--accent-c));
  box-shadow: 0 0 18px var(--glow);
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(129, 140, 248, .45);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .35),
    0 0 40px rgba(99, 102, 241, .15);
}

.card:hover::before {
  transform: translateX(120%);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.card strong {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #f8fafc;
}

.arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, .2);
  border: 1px solid rgba(129, 140, 248, .3);
  color: #c7d2fe;
  transition: transform .35s, background .35s;
}

.card:hover .arrow {
  transform: translate(3px, -3px);
  background: rgba(99, 102, 241, .35);
}

.card span {
  display: block;
  font-size: .92rem;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #a5b4fc;
  background: rgba(99, 102, 241, .12);
  border: 1px solid rgba(129, 140, 248, .22);
}

.portal-switch {
  margin-top: 28px;
  font-size: .9rem;
}

.portal-switch a {
  color: #94a3b8;
  text-decoration: none;
}

.portal-switch a:hover {
  color: #c7d2fe;
  text-decoration: underline;
}

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  letter-spacing: .04em;
}

footer span {
  background: linear-gradient(90deg, #6366f1, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.hidden { display: none !important; }
