/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-300: #6ee7b7;
  --brand-400: #34d399;
  --brand-500: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;
  --brand-800: #065f46;
  --brand-900: #064e3b;
  --brand-950: #022c22;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #94a3b8;
  --surface-canvas: #f8fafc;
  --surface-paper: #ffffff;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Quicksand', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:var(--brand-700);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--brand-400);
  opacity: 0;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 620px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================================
   BRAND
   ============================================ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.brand-icon {
  font-size: 1.5rem;
  color: var(--brand-400);
  animation: spin-slow 6s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--brand-100);
  letter-spacing: 0.02em;
}

/* ============================================
   HERO HEADING
   ============================================ */
.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--surface-paper);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  opacity: 0;
}

.hero-heading .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-heading .space {
  display: inline;
  width: 0.3em;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--brand-100);
  max-width: 440px;
  margin: 0 auto 2.5rem;
}

/* ============================================
   FORM
   ============================================ */
.waitlist-form {
  margin-bottom: 1rem;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0.3rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}

.input-wrapper:focus-within {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.2);
}

.input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--surface-paper);
  padding: 0.75rem 1.2rem;
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.input-wrapper button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-900);
  background: var(--brand-300);
  padding: 0.7rem 1.4rem;
  border-radius: 9999px;
  transition: background 0.25s, transform 0.2s;
  white-space: nowrap;
}

.input-wrapper button:hover {
  background: var(--brand-200);
  transform: scale(1.04);
}

.input-wrapper button:active {
  transform: scale(0.97);
}

.btn-icon {
  transition: transform 0.25s;
}

.input-wrapper button:hover .btn-icon {
  transform: translateX(3px);
}

.form-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.85rem;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */
.success-msg {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  color: var(--brand-100);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
}

.success-msg.show {
  display: flex;
  animation: pop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pop-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-300);
}

/* ============================================
   SVG BACKGROUND ILLUSTRATION
   ============================================ */
.svg-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svg-paper {
  animation: paper-drop 3s ease-in-out infinite;
}

@keyframes paper-drop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.svg-chart rect {
  animation: chart-grow 4s ease-in-out infinite alternate;
  transform-origin: bottom;
}

/* ============================================
   SUGGESTION CTA BUTTON
   ============================================ */
.opinion-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-100);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.opinion-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--brand-300);
  color: var(--brand-50);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(110, 231, 183, 0.15);
}

.opinion-link svg {
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2.5rem 1.5rem 1.5rem;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

/* Social icons row */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-100);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--brand-300);
  color: var(--brand-300);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(110, 231, 183, 0.2);
}

.social-icon svg {
  flex-shrink: 0;
}

/* Footer email */
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-email:hover {
  color: var(--brand-200);
}

/* Footer bottom */
.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  text-align: center;
}

.footer-bottom span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   SUGGESTION MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 44, 34, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--brand-800);
  /* background: linear-gradient(170deg, rgba(6, 78, 59, 0.95), rgba(4, 120, 87, 0.92)); */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 2rem 1.8rem 1.8rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.25s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Modal header */
.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header .brand-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.6rem;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--surface-paper);
  margin-bottom: 0.5rem;
}

.modal-sub {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--brand-200);
}

/* Form groups */
.suggestion-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sg-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.sg-form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-100);
  letter-spacing: 0.02em;
}

.sg-form-group .optional {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.sg-form-group .required {
  color: var(--brand-300);
}

.sg-form-group input,
.sg-form-group textarea,
.sg-form-group select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--surface-paper);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.sg-form-group input::placeholder,
.sg-form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.sg-form-group input:focus,
.sg-form-group textarea:focus,
.sg-form-group select:focus {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.sg-form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.sg-form-group select option {
  background: var(--brand-900);
  color: var(--surface-paper);
}

.sg-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Submit button */
.suggestion-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-900);
  background: var(--brand-300);
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.3s;
  align-self: center;
  margin-top: 0.4rem;
}

.suggestion-submit:hover {
  background: var(--brand-200);
  transform: scale(1.03);
  box-shadow: 0 4px 24px rgba(110, 231, 183, 0.25);
}

.suggestion-submit:active {
  transform: scale(0.97);
}

.suggestion-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-send-icon {
  transition: transform 0.25s;
}

.suggestion-submit:hover .btn-send-icon {
  transform: translate(2px, -2px);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(6, 78, 59, 0.3);
  border-top-color: var(--brand-900);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal success */
.modal-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.modal-success.show {
  display: block;
}

.success-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.7rem;
}

.modal-success h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--surface-paper);
  margin-bottom: 0.5rem;
}

.modal-success p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--brand-200);
  max-width: 360px;
  margin: 0 auto 1.2rem;
}

.modal-done-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-100);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-done-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--brand-300);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .input-wrapper {
    flex-direction: column;
    border-radius: 1rem;
    gap: 0.3rem;
    padding: 0.5rem;
  }

  .input-wrapper input {
    width: 100%;
    text-align: center;
  }

  .input-wrapper button {
    width: 100%;
    justify-content: center;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-icon svg {
    width: 18px;
    height: 18px;
  }

  .modal {
    padding: 1.5rem 1.2rem;
    border-radius: 1.2rem;
  }

  .suggestion-submit {
    width: 100%;
  }
}
