/* === FUTURES PAGE === */

/* --- Hero Tag --- */
body.futures-page .coming-soon-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent-base);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--accent-base);
  background: rgba(162, 235, 204, 0.08);
  backdrop-filter: blur(6px);
}

/* --- Core Feature Grid --- */
body.futures-page .futures-grid .card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}
body.futures-page .futures-grid .card {
  background: var(--glass-bg);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 30px rgba(162, 235, 204, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.futures-page .futures-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(162, 235, 204, 0.12);
}

/* --- Technology Preview --- */
body.futures-page .holo-preview .holo-container {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  background: radial-gradient(circle at center, rgba(162, 235, 204, 0.08) 0%, transparent 80%);
  border-radius: 16px;
  position: relative;
}
body.futures-page .holo-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #A2EBCC, #208D7A, #A2EBCC);
  animation: spin 6s linear infinite;
  opacity: 0.85;
}
@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* --- Waitlist Form (Futures) — desktop + mobile perfect centering --- */
.notify-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto; /* input | button */
  column-gap:10px;
  row-gap:0;
  width:100%;
  max-width:500px;
  align-items:start;     /* keep button pinned to top of input */
  justify-items:stretch; /* input fills its column */
}

/* stack input + below-field message */
.notify-form .input-wrap{
  grid-column:1;
  display:flex;
  flex-direction:column;
  min-width:0;
}

.notify-form input{
  width:100%;
  padding:14px 20px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--glass-bg);
  font-family:'Inter',sans-serif;
  font-size:1rem;
  transition:border-color .2s, box-shadow .2s;
}

.notify-form input:focus{
  outline:none;
  border-color:var(--accent-base);
  box-shadow:0 0 0 3px var(--accent-glow);
}

/* button in second column, top-aligned with input */
.notify-form .btn{
  grid-column:2;
  align-self:start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  height:48px;          /* matches input height */
  padding:0 18px;
  white-space:nowrap;
}

/* message directly below input */
.field-msg{
  margin-top:6px;
  font-size:.92rem;
  line-height:1.3;
  min-height:1.1em;     /* reserve space to avoid layout jump */
}
.field-msg[data-tone="error"]{color:#c53030;}
.field-msg[data-tone="success"]{color:#1f9d55;}
.field-msg[data-tone="info"]{color:#4a5568;}

/* Turnstile is invisible; keep it from affecting layout */
.cf-turnstile{width:0;height:0;overflow:hidden;}

/* ===== Mobile (≤576px): stack and CENTER the button beneath the field ===== */
@media (max-width:576px){
  .notify-form{
    grid-template-columns:1fr;     /* single column */
    row-gap:10px;
    justify-items:center;          /* center children horizontally */
  }
  .notify-form .input-wrap{
    width:100%;                    /* input stays full-width */
  }
  .notify-form .btn{
    grid-column:1;
    justify-self:center;           /* center the button */
    align-self:start;
    width:auto;                    /* intrinsic pill width */
    min-width:160px;               /* optional: consistent size */
    padding:0 24px;                /* a bit wider on mobile */
    margin-top:2px;                /* tiny gap from message */
    height:48px;
  }
}


/* === FUTURES PAGE (FINAL RESPONSIVE REVISION) === */

/* --- Hero Tag --- */
body.futures-page .coming-soon-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent-base);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--accent-base);
  background: rgba(162, 235, 204, 0.08);
  backdrop-filter: blur(6px);
}

/* --- Core Feature Grid --- */
body.futures-page .futures-grid .card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}
body.futures-page .futures-grid .card {
  background: var(--glass-bg);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 30px rgba(162, 235, 204, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.futures-page .futures-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(162, 235, 204, 0.12);
}

/* --- Technology Preview --- */
body.futures-page .holo-preview .holo-container {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  background: radial-gradient(circle at center, rgba(162, 235, 204, 0.08) 0%, transparent 80%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
body.futures-page .holo-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #A2EBCC, #208D7A, #A2EBCC);
  animation: spin 6s linear infinite;
  opacity: 0.85;
}
@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* --- Waitlist Form --- */
body.futures-page #futures-waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 1.5rem;
}
body.futures-page #futures-waitlist input[type="email"] {
  flex: 1 1 320px;
  max-width: 460px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
  background: #fff;
}
body.futures-page #futures-waitlist button {
  padding: 14px 28px;
  font-size: 1rem;
}
body.futures-page .form-hint {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- FAQ Section (Refined) --- */
body.futures-page .mini-faq {
  max-width: 820px;
  margin-inline: auto;
  margin-top: 4rem;
  text-align: left;
}
body.futures-page .mini-faq .section-title {
  text-align: center;
  margin-bottom: 2rem;
}
body.futures-page .mini-faq details {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(162, 235, 204, 0.15);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(162, 235, 204, 0);
}
body.futures-page .mini-faq details:hover {
  border-color: rgba(162, 235, 204, 0.35);
  box-shadow: 0 0 20px rgba(162, 235, 204, 0.05);
}
body.futures-page .mini-faq details[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(162, 235, 204, 0.45);
  box-shadow: 0 0 28px rgba(162, 235, 204, 0.08);
}
body.futures-page .mini-faq summary {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.futures-page .mini-faq summary::-webkit-details-marker {
  display: none;
}
body.futures-page .mini-faq summary::after {
  content: "›";
  font-size: 1.25rem;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 0.3s ease, color 0.3s ease;
}
body.futures-page .mini-faq details[open] summary::after {
  transform: rotate(270deg);
  color: var(--accent-base);
}
body.futures-page .mini-faq p {
  color: var(--muted);
  margin-top: 0.75rem;
  padding-left: 0.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Subtle Glow Animation (for Open FAQ) --- */
@keyframes mintPulse {
  from { box-shadow: 0 0 20px rgba(162, 235, 204, 0.04); }
  to { box-shadow: 0 0 25px rgba(162, 235, 204, 0.12); }
}
body.futures-page .mini-faq details[open] {
  animation: mintPulse 2s ease-in-out infinite alternate;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 768px) {
  body.futures-page .futures-grid .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
  body.futures-page .futures-grid .card {
    padding: 20px;
  }
  body.futures-page .holo-preview .holo-container {
    height: 180px;
  }
}

@media (max-width: 480px) {
  body.futures-page .futures-grid .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  body.futures-page .futures-grid .card {
    padding: 18px;
  }
  body.futures-page .holo-preview .holo-container {
    height: 160px;
  }
  body.futures-page .holo-core {
    width: 60px;
    height: 60px;
  }
  body.futures-page #futures-waitlist input[type="email"] {
    flex: 1 1 100%;
    max-width: 100%;
  }
  body.futures-page #futures-waitlist button {
    width: 100%;
  }
  body.futures-page .mini-faq details {
    padding: 0.85rem 1rem;
  }
  body.futures-page .mini-faq summary {
    font-size: 0.95rem;
  }
}

/* === FIX: Center Waitlist Section Perfectly === */
body.futures-page .coming-soon-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-inline: auto;
  padding: 60px 20px;
  max-width: 800px;
}

body.futures-page .coming-soon-section .section-title {
  font-weight: 800;
  margin-bottom: 8px;
}

body.futures-page .coming-soon-section .form-hint {
  font-size: 1rem;
  margin-bottom: 24px;
  color: var(--muted);
}

/* ensure the form stays centered */
body.futures-page .coming-soon-section .notify-form {
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
