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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: #0f1117;
  background-image:
    linear-gradient(rgba(99, 179, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 179, 237, 0.035) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 212, 170, 0.09) 1px, transparent 1.5px);
  background-size: 96px 96px, 96px 96px, 24px 24px;
  background-position: 0 0, 0 0, 0 0;
  background-attachment: fixed;
  color: #e2e8f0;
  min-height: 100vh;
  position: relative;
}

/* Aurora glow blobs + soft vignette layered on top of the grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55vw 45vh at 12% 18%, rgba(0, 212, 170, 0.13), transparent 60%),
    radial-gradient(ellipse 60vw 50vh at 88% 12%, rgba(99, 102, 241, 0.11), transparent 60%),
    radial-gradient(ellipse 70vw 55vh at 50% 95%, rgba(139, 92, 246, 0.09), transparent 60%),
    radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(15, 17, 23, 0.45) 80%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

header {
  background-color: #1a1f2e;
  background-image:
    radial-gradient(circle, rgba(0, 212, 170, 0.07) 1px, transparent 1.5px),
    radial-gradient(ellipse 55% 90% at 50% 50%, rgba(0, 212, 170, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 85% at 100% 0%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(ellipse 45% 85% at 0% 100%, rgba(139, 92, 246, 0.12), transparent 60%),
    linear-gradient(135deg, #1a1f2e 0%, #1e2940 55%, #16213e 100%);
  background-size: 28px 28px, auto, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  border-bottom: 1px solid rgba(0, 212, 170, 0.22);
  box-shadow:
    inset 0 -1px 0 rgba(0, 212, 170, 0.18),
    0 6px 28px rgba(0, 0, 0, 0.5);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-discord-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: #5865f2;
  color: #fff;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.header-discord-btn:hover { background: #4752c4; }

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #f7fafc;
  text-shadow: 0 0 40px rgba(0, 212, 170, 0.3);
}

header p {
  margin-top: 0.5rem;
  color: #718096;
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 212, 170, 0.1);
  color: #00d4aa;
  border: 1px solid rgba(0, 212, 170, 0.35);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

main {
  max-width: 1056px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f5a623;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(245, 166, 35, 0.22);
  text-shadow: 0 0 20px rgba(245, 166, 35, 0.25);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.card {
  background: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s, transform 0.15s;
  cursor: default;
}

.card:hover {
  border-color: #4a5568;
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.855rem;
  color: #718096;
  line-height: 1.55;
}

.card-notice {
  margin-top: 0.6rem;
  font-size: 0.8rem !important;
  color: #68d391 !important;
  font-weight: 600;
}

.tags {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 500;
}

.tag-blue   { background: #1a365d; color: #63b3ed; }
.tag-purple { background: #322659; color: #b794f4; }
.tag-green  { background: #1c4532; color: #68d391; }
.tag-orange { background: #7b341e; color: #fbd38d; }
.tag-pink   { background: #521b41; color: #fbb6ce; }
.tag-red    { background: #4a0a0a; color: #fc8181; }

.status-bar {
  margin-top: 3rem;
  background: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #68d391;
  box-shadow: 0 0 6px #68d391;
  flex-shrink: 0;
}

.status-bar p {
  font-size: 0.85rem;
  color: #718096;
}

.status-bar span { color: #68d391; font-weight: 600; }

.status-bar code { color: #a0aec0; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  color: #4a5568;
  font-size: 0.8rem;
  border-top: 1px solid #1e2533;
  margin-top: 2rem;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #a0aec0;
}

/* Download modal */
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.dl-modal.is-active {
  opacity: 1;
  pointer-events: all;
}
.dl-modal-box {
  background: #0f131c;
  border: 1px solid #2d3748;
  border-radius: 14px;
  padding: 2.5rem 2rem 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  position: relative;
}
.dl-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: none;
  border: 1px solid #2d3748;
  color: #718096;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.dl-modal-close:hover { border-color: #718096; color: #fff; }
.dl-modal-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.dl-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.25rem;
}
.dl-modal-version {
  font-size: 0.75rem;
  color: #4a5568;
  margin: 0 0 1rem;
}
.dl-modal-desc {
  font-size: 0.82rem;
  color: #718096;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}
.dl-modal-btn {
  display: inline-block;
  background: #276749;
  color: #9ae6b4;
  border: 1px solid #276749;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.dl-modal-btn:hover {
  background: #2f855a;
  border-color: #2f855a;
  color: #c6f6d5;
}

/* ── Sign-up button in card tag row ───────────────────────────────────── */
.reg-signup-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: inherit;
}

/* ── Registration modal form elements ─────────────────────────────────── */
.reg-input {
  width: 100%;
  box-sizing: border-box;
  margin: 1rem 0 0.4rem;
  padding: 0.6rem 0.85rem;
  background: #1a202c;
  border: 1px solid #2d3748;
  border-radius: 7px;
  color: #e2e8f0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.reg-input:focus {
  border-color: #68d391;
}
.reg-error {
  min-height: 1.2em;
  color: #fc8181;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}
.reg-discord-btn {
  background: #3c4a9c;
  border-color: #3c4a9c;
  color: #c3ceff;
  margin-top: 0.75rem;
}
.reg-discord-btn:hover {
  background: #4a5bbf;
  border-color: #4a5bbf;
  color: #dce3ff;
}
.reg-greeting {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.4;
}
.reg-greeting span {
  color: #b794f4;
  font-size: 1.55rem;
}
.reg-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #718096;
}

/* ── Testimonials ─────────────────────────────────────────────────────── */

.testimonials {
  margin-bottom: 2.5rem;
}

/* Featured quote — full width, teal-accented */
.testi-featured {
  position: relative;
  background: linear-gradient(135deg, #0d1c1a 0%, #111827 100%);
  border: 1px solid #1e3330;
  border-left: 3px solid #00d4aa;
  border-radius: 10px;
  padding: 1.75rem 2rem 1.75rem 2.25rem;
  margin: 0 0 1rem;
  overflow: hidden;
  animation: testi-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.testi-featured::after {
  content: '\201C';
  position: absolute;
  top: -1.5rem;
  right: 1.25rem;
  font-size: 9rem;
  line-height: 1;
  color: rgba(0, 212, 170, 0.06);
  font-family: Georgia, 'Times New Roman', serif;
  pointer-events: none;
  user-select: none;
}

.testi-featured .testi__text {
  font-size: 0.94rem;
  color: #c0ccdb;
  line-height: 1.72;
  font-style: italic;
  margin: 0;
}

/* Grid of 4 remaining quotes */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Base quote card */
.testi {
  position: relative;
  background: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  overflow: hidden;
}

.testi::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: rgba(0, 212, 170, 0.22);
  border-radius: 1px;
}

.testi .testi__text {
  font-size: 0.855rem;
  color: #8c9db5;
  line-height: 1.65;
  font-style: italic;
  margin: 0;
}

/* Spark — short punchy quotes, centred */
.testi--spark {
  background: rgba(0, 212, 170, 0.04);
  border-color: rgba(0, 212, 170, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
}

.testi--spark::before {
  display: none;
}

.testi--spark .testi__text {
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  color: #dde6f0;
  line-height: 1.5;
}

/* Stars */
.testi__stars {
  display: block;
  color: #00d4aa;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.7rem;
}

.testi--spark .testi__stars {
  margin-bottom: 0.65rem;
}

/* Entrance animation */
@keyframes testi-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.testi:nth-child(1) { animation: testi-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.testi:nth-child(2) { animation: testi-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.17s both; }
.testi:nth-child(3) { animation: testi-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both; }
.testi:nth-child(4) { animation: testi-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.31s both; }

@media (max-width: 600px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .testi-featured {
    padding: 1.5rem 1.25rem 1.5rem 1.75rem;
  }
}

/* Cookie notice */
.cn-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9700;
  background: #0f131c;
  border-top: 1px solid #2d3748;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cn-bar.is-visible {
  transform: translateY(0);
}
.cn-text {
  font-size: 0.82rem;
  color: #718096;
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}
.cn-link {
  color: #63b3ed;
  text-decoration: none;
  margin-left: 0.35rem;
}
.cn-link:hover { text-decoration: underline; }
.cn-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cn-btn {
  border: 1px solid;
  border-radius: 6px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cn-btn--accept {
  background: #276749;
  border-color: #276749;
  color: #9ae6b4;
}
.cn-btn--accept:hover {
  background: #2f855a;
  border-color: #2f855a;
  color: #c6f6d5;
}
.cn-btn--decline {
  background: transparent;
  border-color: #2d3748;
  color: #718096;
}
.cn-btn--decline:hover {
  border-color: #4a5568;
  color: #a0aec0;
}


/* ── P2.f : Project cards stack to 1 column on small phones ─────────────── */
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}
