/* RESET + BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Fredoka', sans-serif;
  background-color: #fefce8;
  color: #1f2937;
  scroll-behavior: smooth;
}

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

section {
  padding: 4rem 2rem;
  text-align: center;
}

/* NAVBAR */
.navbar {
  background-color: #22d3ee;
  border-bottom: 4px solid #06b6d4;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 90px;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  font-weight: 600;
  color: #0f172a;
  padding: 0.5rem 0.75rem;
}

.nav-button {
  background-color: #1e3a8a;
  color: white !important;
  border: 2px solid #0f172a;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  box-shadow: 3px 3px 0 #0f172a;
  font-weight: 700;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.nav-button:hover,
.nav-button:focus,
.nav-button:visited {
  background-color: #1e3a8a;
  color: white !important;
}

.nav-button:hover {
  transform: translateY(-2px);
}

/* HERO */
.hero {
  background-color: #34d399;
  color: white;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  text-align: left;
  padding: 4rem 2rem;
}

.hero img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(6px 6px 0 #1e3a8a);
}

.hero h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 500px;
}

.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: #1e3a8a;
  color: white;
  font-weight: 700;
  border-radius: 20px;
  border: 3px solid #0f172a;
  box-shadow: 4px 4px 0 #0f172a;
  transition: transform 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
}

.cta-button:disabled {
  opacity: 0.7;
}

/* SLOGAN */
.slogan {
  background-color: #fef9c3;
  padding: 2rem;
  text-align: center;
}

.slogan h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.slogan p {
  font-size: 1rem;
  color: #475569;
}

/* FEATURES */
.features {
  background-color: #f0fdf4;
}

.features h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #065f46;
}

.features-grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border: 4px solid #10b981;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #1e3a8a;
  font-size: 1.2rem;
  font-weight: 600;
  max-width: 400px;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.03);
}

.feature-card span {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: #4b5563;
  margin-top: 0.5rem;
}

/* DISCORD */
.discord {
  background-color: #ecfeff;
  padding: 3rem 2rem;
}

.discord h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.discord-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 600px) {
  .discord-content {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .discord-content p {
    max-width: 420px;
  }
}

/* PLANS */
.plans {
  background-color: #f9fafb;
  padding-top: 5rem;
  padding-bottom: 7rem;
}

.plans h3 {
  font-size: 2.2rem;
  color: #1d4ed8;
  margin-bottom: 0.5rem;
}

.plans p {
  font-size: 1.15rem;
  margin-top: 0.5rem;
  color: #374151;
}

.plan-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.plan-box {
  background: white;
  border: 4px solid #10b981;
  border-radius: 24px;
  padding: 2.5rem;
  width: 340px;
  min-height: 500px;
  box-shadow: 6px 6px 0 #1e3a8a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
  text-align: left;
}

.plan-box:hover {
  transform: translateY(-3px);
}

.plan-box h4 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: #065f46;
  text-align: center;
}

.plan-box .plan-description {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #374151;
}

.plan-box ul {
  padding-left: 1.5rem;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #047857;
  text-align: center;
  margin-bottom: 1rem;
}

.plan-box .cta-button {
  background-color: #10b981;
  border-color: #065f46;
  box-shadow: 4px 4px 0 #047857;
  text-align: center;
}

/* FOOTER */
footer {
  background-color: #1e3a8a;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

/* LEGAL */
.legal-page {
  line-height: 1.8;
  font-size: 1.05rem;
}

.legal-page ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

/* Login button when not logged in */
.login-cta {
  all: unset;
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: #1e3a8a;
  color: white;
  font-weight: 700;
  border-radius: 20px;
  border: 3px solid #0f172a;
  box-shadow: 3px 3px 0 #0f172a;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-align: center;
}

.login-cta:hover,
.login-cta:focus,
.login-cta:visited {
  background-color: #1e3a8a;
  color: white !important;
}

.login-cta:hover {
  transform: translateY(-2px);
  background: #2c4cb3;
}

.avatar-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #0f172a;
  vertical-align: middle;
}

/* Dropdown content is hidden by default */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 180px;
  border: 2px solid #0f172a;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #0f172a;
  z-index: 1;
  margin-top: 8px;
}

.dropdown-content a,
.dropdown-content span {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #f3f4f6;
}