:root {
  --night: #070617;
  --violet: #8d67f8;
  --violet-light: #c1adff;
  --cyan: #75eaff;
  --gold: #f4d48c;
  --white: #f8f6ff;
  --muted: #aaa6bd;
  --mx: 62vw;
  --my: 38vh;
  --px: 0;
  --py: 0;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  color: var(--white);
  background: var(--night);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.world { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 61% 35%, #20184c 0, #100d2b 32%, #070617 73%); }
.mist { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .12; }
.mist-violet { width: 60vw; height: 60vw; right: -22vw; top: -20vw; background: #a66fff; animation: mist-one 16s ease-in-out infinite alternate; }
.mist-blue { width: 42vw; height: 42vw; left: -23vw; bottom: -15vw; background: #4fdff7; animation: mist-two 20s ease-in-out infinite alternate; }
.cursor-light { position: absolute; inset: 0; background: radial-gradient(410px circle at var(--mx) var(--my), rgba(142,103,248,.18), transparent 68%); transition: opacity .2s; }
.grain { position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.vignette { position: absolute; inset: 0; box-shadow: inset 0 0 190px 22px rgba(0,0,0,.68); }

.rain { position: absolute; inset: -25% -5% 0; transition: transform .22s ease-out; }
.rain-back { opacity: .28; transform: translate(calc(var(--px) * -8px), calc(var(--py) * -5px)); filter: blur(.35px); }
.rain-front { opacity: .66; transform: translate(calc(var(--px) * -19px), calc(var(--py) * -12px)); }
.falling-math {
  position: absolute;
  left: var(--left);
  top: -18vh;
  color: rgba(202,188,255,var(--alpha));
  font-family: "Cinzel", serif;
  font-size: var(--size);
  text-shadow: 0 0 20px rgba(151,110,255,.48);
  white-space: nowrap;
  animation: math-fall var(--duration) linear var(--delay) infinite;
}
.rain-front .falling-math:nth-child(4n) { color: rgba(115,233,255,var(--alpha)); text-shadow: 0 0 18px rgba(115,233,255,.38); }

header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 86px;
  padding: 0 clamp(22px,6vw,90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom,rgba(7,6,23,.75),transparent);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid rgba(193,173,255,.5); border-radius: 50%; background: linear-gradient(145deg,#9d77ff,#5031ac); box-shadow: 0 0 25px rgba(141,103,248,.4); font-family: "Cinzel",serif; font-size: 21px; }
.brand-name { font-family: "Cinzel",serif; font-weight: 800; font-size: 15px; letter-spacing: .2em; }
.login { padding: 10px 22px; border: 1px solid rgba(193,173,255,.3); border-radius: 99px; color: #d9d5e5; background: rgba(255,255,255,.025); font-size: 13px; transition: border-color .2s,background .2s,transform .2s; }
.login:hover { transform: translateY(-2px); border-color: rgba(193,173,255,.7); background: rgba(141,103,248,.1); }

main { min-height: 100svh; }
.hero {
  min-height: 100svh;
  padding: 120px clamp(24px,8vw,132px) 90px;
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(330px,.68fr);
  align-items: center;
  gap: 8vw;
}
.copy { position: relative; z-index: 2; max-width: 790px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--violet-light); text-transform: uppercase; letter-spacing: .22em; font-size: 10px; font-weight: 700; }
.eyebrow i { width: 28px; height: 1px; background: linear-gradient(90deg,transparent,var(--violet-light)); }
h1 { margin: 0; font-family: "Cinzel",serif; line-height: .88; }
.intro { display: block; margin-left: .07em; color: #dad6e9; font-size: clamp(27px,3.8vw,55px); font-weight: 600; letter-spacing: .08em; }
.name {
  position: relative;
  display: block;
  width: fit-content;
  margin-top: 7px;
  color: transparent;
  background: linear-gradient(105deg,#fff 5%,#d9ccff 36%,#8cecff 61%,#fff 82%);
  background-size: 230% 100%;
  background-clip: text;
  font-size: clamp(75px,11vw,158px);
  font-weight: 800;
  letter-spacing: -.045em;
  filter: drop-shadow(0 0 25px rgba(144,106,249,.3));
  animation: shimmer 7s linear infinite;
}
.name::after { content: attr(data-text); position: absolute; inset: 0; z-index: -1; color: transparent; -webkit-text-stroke: 1px rgba(193,173,255,.22); transform: translate(5px,7px); filter: blur(2px); }
.legend { margin: 24px 0 0; font-family: "Cinzel",serif; color: #e3dfee; font-size: clamp(22px,2.5vw,35px); line-height: 1.35; }
.legend em { color: var(--gold); font-weight: 700; }
.description { max-width: 650px; margin: 25px 0 0; color: var(--muted); font-size: clamp(15px,1.2vw,18px); line-height: 1.75; }
.actions { display: flex; align-items: center; gap: 15px; margin-top: 34px; }
.actions a { min-height: 54px; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; font-size: 14px; font-weight: 700; transition: transform .2s,box-shadow .2s,border-color .2s; }
.actions a:hover { transform: translateY(-3px); }
.primary { gap: 30px; color: #fff; border: 1px solid #b99cff; background: linear-gradient(135deg,#9d73ff,#6440d2); box-shadow: 0 14px 44px rgba(105,66,218,.34),inset 0 1px rgba(255,255,255,.26); }
.primary:hover { box-shadow: 0 18px 58px rgba(117,74,230,.5); }
.secondary { color: #d2cede; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.025); }
.secondary:hover { border-color: rgba(193,173,255,.5); }

.sigil { position: relative; width: min(35vw,470px); aspect-ratio: 1; display: grid; place-items: center; justify-self: center; transform: translate(calc(var(--px) * -6px),calc(var(--py) * -6px)); transition: transform .2s ease-out; }
.sigil-glow { position: absolute; inset: 3%; border-radius: 50%; background: radial-gradient(circle,rgba(84,224,255,.14),rgba(118,77,230,.08) 43%,transparent 70%); box-shadow: 0 0 80px rgba(114,77,223,.24); animation: breathe 4.5s ease-in-out infinite; }
.circle { position: absolute; border-radius: 50%; border: 1px solid rgba(193,173,255,.2); }
.circle-one { inset: 2%; animation: spin 34s linear infinite; border-style: dashed; }
.circle-two { inset: 19%; border-color: rgba(117,234,255,.24); animation: spin 24s linear infinite reverse; }
.circle-three { inset: 35%; border-color: rgba(244,212,140,.24); box-shadow: 0 0 35px rgba(129,90,230,.18),inset 0 0 32px rgba(129,90,230,.18); }
.circle-one::before,.circle-one::after,.circle-two::before,.circle-two::after { position: absolute; display: grid; place-items: center; color: var(--violet-light); font-family: "Cinzel",serif; text-shadow: 0 0 14px var(--violet); }
.circle-one::before { content: "π"; left: 50%; top: -12px; }
.circle-one::after { content: "∑"; right: -8px; top: 50%; }
.circle-two::before { content: "√"; left: -7px; top: 48%; }
.circle-two::after { content: "÷"; right: 10%; bottom: 5%; }
.sigil-symbol { position: relative; z-index: 2; margin-top: -23px; color: transparent; background: linear-gradient(#fff,var(--cyan)); background-clip: text; font-family: "Cinzel",serif; font-size: clamp(64px,8vw,108px); text-shadow: 0 0 35px rgba(117,234,255,.25); }
.sigil small { position: absolute; top: 58%; color: #88829e; text-align: center; letter-spacing: .2em; font-size: 7px; line-height: 1.6; }

footer { position: fixed; inset: auto 0 0; z-index: 5; min-height: 62px; padding: 0 clamp(22px,6vw,90px); display: flex; align-items: center; justify-content: space-between; color: #767188; text-transform: uppercase; letter-spacing: .18em; font-size: 8px; }
footer p { display: flex; align-items: center; gap: 15px; }
footer i { width: 3px; height: 3px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--violet); }

@keyframes math-fall {
  0% { transform: translate3d(0,-12vh,0) rotate(var(--rotate)); opacity: 0; }
  9% { opacity: 1; }
  82% { opacity: .72; }
  100% { transform: translate3d(var(--drift),138vh,0) rotate(calc(var(--rotate) + 100deg)); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.07); opacity: .7; } }
@keyframes shimmer { to { background-position: -230% 0; } }
@keyframes mist-one { to { transform: translate(-13vw,14vh) scale(1.12); } }
@keyframes mist-two { to { transform: translate(17vw,-12vh) scale(.85); } }

@media (max-width: 900px) {
  body { overflow-y: auto; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 125px; text-align: center; }
  .copy { margin: auto; }
  .eyebrow,.actions { justify-content: center; }
  .name { margin-inline: auto; }
  .sigil { width: min(72vw,430px); }
  footer { position: relative; padding-block: 24px; }
}

@media (max-width: 560px) {
  header { height: 72px; padding-inline: 18px; }
  .brand-name { font-size: 13px; }
  .brand-mark { width: 34px; height: 34px; }
  .login { padding: 9px 19px; }
  .hero { padding: 118px 18px 60px; }
  .eyebrow { width: 100%; justify-content: center; font-size: 8px; letter-spacing: .13em; line-height: 1.5; }
  .eyebrow i { display: none; }
  .intro { font-size: clamp(25px,8vw,34px); }
  .name { max-width: 100%; font-size: clamp(50px,18vw,70px); letter-spacing: -.055em; }
  .legend { margin-top: 20px; font-size: clamp(20px,6.4vw,27px); }
  .description { font-size: 15px; line-height: 1.7; }
  .actions { flex-direction: column; }
  .actions a { width: 100%; }
  .sigil { width: min(84vw,380px); }
  footer { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rain { display: none; }
}
