*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #17181b;
  --surface: rgba(255,255,255,.055);
  --surface-hover: rgba(255,255,255,.10);
  --border: rgba(255,255,255,.10);
  --border-hover: rgba(255,255,255,.20);
  --accent: #8ab4f8;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  width: 100%;
  min-height: 100%;
}

body {
  position: relative;
  background: var(--bg);
  font-family: 'Quicksand', Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: -12%;
  background: url("https://avelis.dev/Avelis Discord.png") center center / cover no-repeat;
  opacity: 0;
  animation: bgReveal 1.8s var(--ease-expo) .3s forwards, bgDrift 14s ease-in-out 2s infinite;
  will-change: transform, opacity;
}

@keyframes bgReveal {
  to { opacity: 0.38; }
}

@keyframes bgDrift {
  0%,100% { transform: translateX(0) translateY(0) scale(1); }
  25%      { transform: translateX(-14px) translateY(-9px) scale(1.04); }
  50%      { transform: translateX(14px) translateY(-18px) scale(1.08); }
  75%      { transform: translateX(-9px) translateY(4px) scale(1.04); }
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.glow {
  position: fixed;
  border-radius: 999px;
  background: var(--accent);
  filter: blur(130px);
  pointer-events: none;
  will-change: transform;
}

.glow1 { width: 480px; height: 480px; top: -200px; left: -120px; opacity: .07; animation: blob1 9s ease-in-out infinite; }
.glow2 { width: 380px; height: 380px; right: -130px; top: 80px; opacity: .06; animation: blob2 11s ease-in-out infinite; }
.glow3 { width: 560px; height: 560px; left: 50%; bottom: -280px; transform: translateX(-50%); opacity: .065; animation: blob3 13s ease-in-out infinite; }

@keyframes blob1 { 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(42px,-32px); } }
@keyframes blob2 { 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(-32px,22px); } }
@keyframes blob3 { 0%,100%{ transform:translateX(-50%) translateY(0); } 50%{ transform:translateX(-50%) translateY(-38px); } }

.particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 8px rgba(255,255,255,.18);
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  8%   { opacity: .65; }
  92%  { opacity: .65; }
  100% { transform: translateY(-138vh) translateX(var(--drift, 30px)) rotate(var(--rot, 360deg)); opacity: 0; }
}

.nav-wrap {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(-14px) scale(.98);
  width: min(1200px, 92vw);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease-smooth), transform .28s var(--ease-expo);
}

.show-nav-actions .nav-wrap {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
}

.nav {
  width: 100%;
  height: 66px;
  padding: 0 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  background: rgba(23,24,27,.45);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.07);
  opacity: 0;
  animation: navSlide .8s var(--ease-expo) .1s forwards;
}

@keyframes navSlide {
  from { opacity: 0; transform: translateY(-18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Quicksand', Arial, sans-serif;
  cursor: pointer;
  transition: background .2s var(--ease-smooth), border-color .2s var(--ease-smooth), transform .2s var(--ease-expo), box-shadow .2s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.nav-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.nav-btn:active {
  transform: translateY(0) scale(.97);
  box-shadow: none;
}

.nav-btn-disabled,
.main-btn-disabled {
  cursor: not-allowed;
  color: rgba(255,255,255,.42);
  background: rgba(10,11,13,.45);
  border-color: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.24);
}

.nav-btn-disabled:hover,
.main-btn-disabled:hover {
  background: rgba(10,11,13,.45);
  border-color: rgba(255,255,255,.07);
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.24);
}

.nav-btn-disabled::after,
.main-btn-disabled::after {
  content: '';
  position: absolute;
  inset: -18px;
  background:
    linear-gradient(135deg, transparent 43%, rgba(255,255,255,.23) 47%, rgba(255,255,255,.23) 53%, transparent 57%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 8px);
  opacity: .68;
  pointer-events: none;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  z-index: 10;
  padding: 88px 20px 44px;
}

.hero-title {
  font-size: clamp(76px, 10vw, 168px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .88;
  margin-bottom: 14px;
  opacity: 0;
  animation: titleReveal 1s var(--ease-expo) .35s forwards, heroFloat 6s ease-in-out 1.4s infinite;
  will-change: transform, opacity;
}

.hero-sub {
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  color: rgba(255,255,255,.42);
  letter-spacing: .04em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .9s var(--ease-expo) .65s forwards;
}

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(44px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp .9s var(--ease-expo) .85s forwards;
}

.main-btn {
  min-width: 152px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 600;
  font-family: 'Quicksand', Arial, sans-serif;
  cursor: pointer;
  transition: background .22s var(--ease-smooth), border-color .22s var(--ease-smooth), transform .22s var(--ease-expo), box-shadow .22s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.main-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}

.main-btn:hover::before {
  transform: translateX(100%);
}

.main-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.main-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.main-btn:active {
  transform: translateY(-1px) scale(.975);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.main-btn-disabled::before {
  display: none;
}

.main-btn.main-btn-disabled {
  cursor: not-allowed;
  color: rgba(255,255,255,.42);
  background: rgba(10,11,13,.45);
  border-color: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.24);
}

.main-btn.main-btn-disabled:hover,
.main-btn.main-btn-disabled:active {
  background: rgba(10,11,13,.45);
  border-color: rgba(255,255,255,.07);
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.24);
}

.content {
  position: relative;
  z-index: 10;
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 0 0 72px;
}

.exe-panel {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 14px;
  background: rgba(23,24,27,.54);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.exe-panel h2 {
  max-width: 690px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.exe-panel p:not(.eyebrow) {
  font-size: clamp(15px, 1.55vw, 17px);
  line-height: 1.6;
  color: rgba(255,255,255,.68);
}

.exe-panel p + p {
  margin-top: 12px;
}

.footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 20px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.28);
  opacity: 0;
  animation: fadeUp .8s var(--ease-expo) 1.1s forwards;
}

.footer a {
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color .18s ease;
}

.footer a:hover {
  color: rgba(255,255,255,.65);
}

.footer-sep {
  opacity: .3;
}

@media (max-width: 700px) {
  .hero-title { font-size: 82px; }

  .buttons {
    width: 100%;
    max-width: 310px;
    flex-direction: column;
  }

  .main-btn {
    width: 100%;
    min-width: unset;
  }

  .nav {
    height: 60px;
    padding: 0 10px 0 16px;
    border-radius: 13px;
  }

  .nav-wrap { width: 94vw; }
  .brand { font-size: 17px; }

  .nav-btn {
    height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .footer { font-size: 11px; flex-wrap: wrap; text-align: center; }
}
