* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, -apple-system, sans-serif;
}

body {
  height: 100vh;
  background: #0f0e0c;
  overflow-x: hidden;
}

/* =========================
   BACKGROUND (RESTORED)
========================= */
.background {
  position: fixed;
  inset: 0;
  z-index: -3;

  background:
    radial-gradient(1200px 600px at 50% 10%, rgba(181,135,92,0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(181,135,92,0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 90%, rgba(181,135,92,0.12), transparent 60%),
    linear-gradient(180deg, #141310 0%, #0c0b09 100%);

  filter: blur(70px) saturate(120%);
  transform: scale(1.2);
}

/* NAV LINKS */
.nav a,
.nav a:link,
.nav a:visited,
.nav a:hover,
.nav a:active {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
}

.nav a:hover {
  color: white;
}

/* DISCORD BUTTON (keep white text) */
.discord-btn,
.discord-btn:link,
.discord-btn:visited,
.discord-btn:hover,
.discord-btn:active {
  text-decoration: none;
  color: white;
}

/* center glow */
.background::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(circle at center, rgba(181,135,92,0.15), transparent 55%);
  filter: blur(90px);
}

/* vignette edges */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;

  background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.75));
}

/* =========================
   NOISE (VERY IMPORTANT)
========================= */
.noise {
  position: fixed;
  inset: 0;
  z-index: -1;

  opacity: 0.05;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 20px;

  padding: 10px 16px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);

  border: 1px solid rgba(255,255,255,0.08);

  transition: all 0.3s ease;
}

/* LEFT */
.left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

/* divider */
.divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
}

/* NAV */
.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: 0.2s;
}

.nav a:hover {
  color: white;
}

.discord-btn {
  display: flex;
  align-items: center;

  /* key for smooth compression */
  overflow: hidden;
  white-space: nowrap;

  gap: 8px;

  padding: 8px 16px;
  border-radius: 999px;

  background: #5865F2;
  color: white;
  font-size: 14px;

  cursor: pointer;

  /* IMPORTANT: animate width smoothly */
  width: 110px;

  transition: 
    width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    padding 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ICON */
.discord-btn i {
  flex-shrink: 0;
  font-size: 14px;
}

/* TEXT */
.discord-text {
  flex-shrink: 0;
}

/* COLLAPSED STATE */
.discord-btn.collapsed {
  width: 33px;
  padding-left: 8px;
  padding-right: 8px;
}

/* HERO LAYOUT */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 120px 80px;
  max-width: 1200px;
  margin: auto;
}

/* SECTION SPACING */
.features {
  margin-top: 200px; /* space under your lines */
  text-align: center;
  padding: 0 40px;
  padding-bottom: 200px;
}

/* TITLE */
.features h2 {
  font-size: 32px;
  color: white;
  font-weight: 500;
}

.accent {
  color: #b5875c;
}

/* SUBTEXT */
.features-sub {
  margin-top: 10px;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

/* GRID */
.features-grid {
  margin-top: 50px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;

  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* CARDS */
.card {
  text-align: left;
  padding: 28px;
  border-radius: 20px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  /* glow */
  box-shadow: 
    0 0 20px rgba(0,0,0,0.5),
    inset 0 0 20px rgba(255,255,255,0.02);

  transition: 0.3s ease;
}

/* WIDE CARDS */
.card.wide {
  grid-column: span 2;
}

/* ICONS */
.card i {
  color: #b5875c;
  font-size: 22px;
  margin-bottom: 14px;
}

/* TITLE */
.card h3 {
  color: white;
  font-size: 18px;
  font-weight: 500;
}

/* TEXT */
.card p {
  margin-top: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 300;
}

/* HOVER (subtle lift) */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 0 25px rgba(181,135,92,0.15),
    inset 0 0 20px rgba(255,255,255,0.03);
}

/* LEFT */
.hero-left h1 {
  font-size: 56px;
  font-weight: 510;
  color: white;
}

.subtitle {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  position: relative;
}

/* HIGHLIGHT WORD */
.highlight {
  color: #b6977d;
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -6px;

  width: 100%;
  height: 6px;

  background: none;
  border-bottom: 3px solid #b6977d;

  border-radius: 50% 20% 40% 30%;
  transform: rotate(-1deg);

  /* animation */
  stroke-dasharray: 100;
  stroke-dashoffset: 100;

  animation: drawMessy 1.4s ease forwards;
}

/* fake “hand-drawn” effect */
@keyframes drawMessy {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes drawLine {
  to {
    width: 100%;
  }
}

.bio {
  color: #b6977d;
}

/* BUTTONS */
.buttons {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.btn {
  box-shadow: 
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 4px 20px rgba(0,0,0,0.4);
}

.primary {
  background: #b5875c;
  color: black;

  box-shadow: 
    0 0 12px rgba(181,135,92,0.35),
    0 0 0 1px rgba(255,255,255,0.1) inset;
}

.secondary {
  background: rgba(255,255,255,0.06);
  color: white;

  box-shadow: 
    0 0 10px rgba(255,255,255,0.08),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

.btn {
  padding: 11px 17px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn i {
  margin-right: 6px;
  font-size: 13px;
}

.primary {
  background: #b6977d;
  color: black;
  font-weight: 400;
}

.secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  font-weight: 400;
}

/* RIGHT SIDE */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SHOWCASE BOX */
.showcase {
  width: 570px;
  height: 380px;

  border-radius: 20px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

.curve-section {
  margin-top: 150px; /* pushes it down */
  width: 100%;
  transform: translateY(-50px);
  overflow: hidden;
}

.curve-section svg {
  width: 100%;
  height: 200px;
}

/* STARS LAYER */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* tiny stars */
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,0.7), transparent);

  background-repeat: repeat;
  background-size: 300px 300px;

  opacity: 0.6;
}

.stars::after {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(2px 2px at 25% 40%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 80% 75%, rgba(255,255,255,0.8), transparent);

  background-repeat: repeat;
  background-size: 600px 600px;

  opacity: 0.4;
}

.stars {
  animation: starDrift 120s linear infinite;
}

@keyframes starDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-200px);
  }
}
