/* yorin.cloud — design tokens first, so a future framework can lift these wholesale */
:root {
  --bg: #0b0d12;
  --bg-soft: #11141c;
  --fg: #e8eaf0;
  --fg-dim: #9aa1b2;
  --fg-faint: #5b6173;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7c9cff;
  --accent-2: #59e6c3;
  --radius: 16px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.bg__aurora {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 90vw;
  height: 90vw;
  max-width: 1100px;
  max-height: 1100px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(124, 156, 255, 0.22), transparent 70%),
    radial-gradient(closest-side, rgba(89, 230, 195, 0.16), transparent 70%);
  background-position: 30% 30%, 70% 60%;
  background-repeat: no-repeat;
  filter: blur(20px);
  animation: drift 18s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to   { transform: translateX(-50%) translateY(4%) scale(1.08); }
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 80%);
  opacity: 0.5;
}

.bg__noise { position: absolute; inset: 0; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shell ---------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ---------- topbar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand__dot { width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 18px rgba(124,156,255,0.6); }
.brand__name { font-size: 1.05rem; }
.brand__tld { color: var(--fg-dim); }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem;
  color: var(--fg-dim); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.02); }
.status__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(89,230,195,0.6); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(89,230,195,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(89,230,195,0); }
  100% { box-shadow: 0 0 0 0 rgba(89,230,195,0); }
}

/* ---------- hero ---------- */
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 64px 0; max-width: 760px; }

.hero__eyebrow { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px; }

.hero__title { font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.08; font-weight: 700;
  letter-spacing: -0.02em; background: linear-gradient(180deg, #fff, #b9c0d4);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__sub { margin-top: 22px; font-size: clamp(1rem, 2vw, 1.2rem); color: var(--fg-dim);
  max-width: 52ch; }

.hero__actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px;
  border-radius: 999px; font-size: 0.95rem; font-weight: 500; transition: transform 0.2s var(--ease), background 0.2s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0d12; font-weight: 600; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { border: 1px solid var(--line); color: var(--fg); }
.btn--ghost:hover { background: rgba(255,255,255,0.04); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 56px; }
.card { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: transform 0.3s var(--ease), border-color 0.3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(124,156,255,0.4); }
.card__title { font-size: 1.05rem; margin-bottom: 8px; }
.card__text { color: var(--fg-dim); font-size: 0.92rem; }

/* ---------- footer ---------- */
.footer { display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-faint); font-size: 0.82rem; }
.footer__meta { font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bg__aurora, .status__pulse { animation: none; }
}
