/* =======================
   VARIABLES & RESET
======================= */
:root {
  --blip: #c1ff72;
  --dark: #000000;
  --accent: #111827;
  --light: #f9f9fb;
  --text: #ffffff;
  --muted: #b9b9b9;
  --muted2: #F05D23;
}

html, body {
  min-height: 100vh;
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  overflow-x: hidden;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* =======================
   LAYOUT
======================= */

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Raleway", Arial, sans-serif;
}

/* =======================
   NAVIGATION
======================= */

nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 4vw, 36px) clamp(5vw, 24px, 32px) 0 clamp(5vw, 24px, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  box-sizing: border-box;
  gap: clamp(10px, 3vw, 36px);
}

nav ul {
  display: flex;
  gap: 2.3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.logoTag {
  text-decoration: none !important;
}

.logo {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.blip-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  display: inline-block;
}

/* =======================
   HERO / TYPEWRITER
======================= */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 6vw, 62px) clamp(5vw, 18px, 32px);
  min-height: 50vh;
  min-width: 300px;
  text-align: center;
  margin-top: clamp(0px, 10vw, 0px);
}

#typewriter {
  font-size: clamp(2rem, 7vw, 5rem);
  min-height: clamp(3.5rem, 10vw, 6rem);
  font-weight: 900;
  margin-bottom: 1px;
  color: var(--text);
  background: none;
  letter-spacing: 0.02em;
  border-right: 3px solid var(--blip);
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
  animation: blink-caret .75s step-end infinite;
}
@keyframes blink-caret {
  0%,100% { border-color: var(--blip);}
  55% { border-color: transparent;}
}

.subtitle {
  color: var(--muted);
  font-size: 1.14rem;
  font-weight: 500;
  margin-bottom: 30px;
}
.hero-location {
  color: var(--blip);
  font-weight: 700;
  font-style: italic;
}

/* =======================
   CTAS
======================= */

.cta-row {
  display: flex;
  gap: clamp(10px, 3vw, 22px);
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cta {
  border-radius: 10px;
  padding: 15px 33px;
  font-size: 1.07rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 12px #19ffe726;
  color: var(--accent);
  background: #fff;
  will-change: transform;
  outline: none;
  letter-spacing: 0.02em;
  transition: 0.16s, color 0.16s, transform 0.19s, box-shadow 0.16s;
}
.cta span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cta.ios {
  background-color: white;
  color: #111827;
}
.cta.ios:hover,
.cta.android:hover {
  background: var(--blip);
  color: #000000;
  transform: translateY(-3px) scale(1.04);
}
.cta.android {
  background: white;
  color: black;
}

/* =======================
   FEATURES LIST
======================= */

.features {
  width: 100%;
  max-width: 580px;
  margin: 60px auto 0 auto;
  padding: 0 clamp(2vw, 18px, 24px);
}
.features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.features li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.13rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
  background: #fff;
  border-radius: 9px;
  padding: 23px 22px 23px 18px;
  box-shadow: 0 2px 14px #19ffe719;
  border: 1.2px solid #19ffe711;
  transition: box-shadow 0.16s, border-color 0.18s, background 0.2s;
}
.features li:last-child { margin-bottom: 0;}
.features li:hover {
  background: var(--blip);
  color: #181a1c;
  box-shadow: 0 8px 40px #19ffe744;
  border-color: #19ffe7;
}
.feature-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blip);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 3px #19ffe759;
}

/* =======================
   FOOTER
======================= */

footer {
  width: 100%;
  text-align: center;
  padding: clamp(14px, 4vw, 30px) 0 clamp(10px, 2vw, 14px) 0;
  color: var(--muted);
  font-size: clamp(0.86rem, 1vw, 1.02rem);
  background: transparent;
  letter-spacing: 1px;
  margin-top: 50px;
  opacity: 0.77;
}

.footer-socials {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-socials a {
  color: var(--muted);
  text-decoration: none;
  font-size: 20px;
  transition: color 0.2s ease;
  margin-bottom: 20px;
}

.footer-socials a:hover {
  color: var(--blip);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--blip);
}

/* =======================
   FORM
======================= */

#custom-brevo-form {
  padding: 12px 15px;
  border-radius: 2rem;
  margin: 0 auto;
  max-width: 680px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'DM Sans', 'Inter', Arial, sans-serif;
  align-items: flex-end;
}

.firstRowContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}
.firstRowContainer input {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

#custom-brevo-form input,
#custom-brevo-form textarea,
#custom-brevo-form select {
  background: rgba(25, 24, 24, 0.3);
  color: #fff;
  border: none;
  outline: none;
  border-radius: 2rem;
  padding: 14px 16px;
  font-size: 1rem;
  transition: all 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.25);
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

#custom-brevo-form input {
  padding-left: 20px;
}

#custom-brevo-form input::placeholder {
  color: white;
}

#custom-brevo-form input:focus,
#custom-brevo-form textarea:focus,
#custom-brevo-form select:focus {
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.25);
}

#custom-brevo-form button {
  background: rgb(255, 255, 255);
  color: #000000;
  border: none;
  border-radius: 1.5rem;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  width: 150px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.25);
  transition: all 0.15s, box-shadow 0.15s, transform 0.1s;
}
#custom-brevo-form button:hover,
.join-blip:hover {
  transform: translateY(-1px) scale(1.05);
}

/* --- Custom select styles --- */
#custom-brevo-form select {
  appearance: none;
  padding-left: 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 1rem;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='14' viewBox='0 0 24 24' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 24px center;
  background-size: 22px;
  background-clip: padding-box;
  outline: none;
  transition: box-shadow 0.2s;
}
#custom-brevo-form select:focus {
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.25);
  outline: none;
}

#custom-brevo-form select,
#custom-brevo-form textarea {
  resize: vertical;
  min-height: 44px;
}

#custom-brevo-form textarea {
  min-height: 80px;
}

#success-message {
  color: #ffffff;
  text-align: center;
  font-size: 1.2rem;
  font-family: 'DM Sans', 'Inter', Arial, sans-serif;
}

/* =======================
   MODAL (POPUP) STYLES
======================= */

.formCheckbox {
  background-color: none !important; 
  box-shadow: none !important; 
  width: 30px !important;
  margin-right: 10px;
}

.formCheckbox:checked {
  accent-color: var(--blip);
  color: black;
}

.formCheckboxLabel {
  margin: 0 !important; 
  margin-bottom: 20px !important; 
  text-align: start !important;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: start;
}
.blip-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.blip-modal.open {
  display: flex;
}

@media (max-width: 400px) {
  .blip-modal.open {
    align-items: flex-start;
  }
  .blip-modal-content {
    margin-top: 20px;
  }
  .blip-modal-content {
    padding: 24px 20px 20px 20px;
  }
}

.blip-modal-content {
  background: #111;
  border-radius: 2rem;
  box-shadow: 0 8px 40px #00000088;
  padding: 20px 10px 20px 10px;
  max-width: 430px;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 92vw;
  position: relative;
  animation: fadeInScale 0.22s cubic-bezier(.23,1.07,.36,1.12);
}
@keyframes fadeInScale {
  from { transform: scale(0.93); opacity: 0.2; }
  to { transform: scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 18px; right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: color 0.18s;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.25);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* =======================
   "JOIN BLIP" BUTTON
======================= */

.join-blip {
  background: rgba(25, 24, 24, 0.3);
  color: #fff;
  border: none;
  border-radius: 1.5rem;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  width: 250px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.55);
  transition: all 0.15s, box-shadow 0.15s, transform 0.1s;
}

/* =======================
   RESPONSIVENESS
======================= */

@media (max-width: 900px) {
  nav {
    max-width: 100vw;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 650px) {
  nav { padding: 25px 20px 0 20px;}
  .logo { font-size: 2rem;}
  nav ul { gap: 1.1rem; }
  #typewriter { font-size: 3rem;}
  .features { padding: 0 6px;}
  .features li { font-size: 1.01rem; padding: 17px 8px 17px 8px;}
  .cta-row { flex-direction: column; gap: 13px;}
}

@media (max-width: 500px) {
  #custom-brevo-form {
    padding: 20px 10px;
    border-radius: 1rem;
  }
}

@media (max-width: 430px) {
  #typewriter { font-size: 2.6rem; min-height: 5rem; }
  .subtitle { font-size: 0.98rem; margin-bottom: 40px; }
  .cta { padding: 12px 7vw; font-size: 1rem; }
  .features { max-width: 100vw; padding: 0 2vw; }
  .features li { font-size: 0.99rem; padding: 13px 6px 13px 6px; margin-bottom: 19px; }
  footer { font-size: 0.93rem; padding-top: 18px;}
  nav { padding-top: 10px; }
}

/* Smallest width adjustment for flex direction (rarely used, but kept for safety) */
@media (max-width: 200px) {
  .firstRowContainer { flex-direction: column; }
  .firstRowContainer input { height: 50px; }
}

/* =======================
   LEGAL PAGES
======================= */

.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 40px);
  min-height: 60vh;
}

.legal-section {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: clamp(30px, 6vw, 50px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-section h1 {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
}

.last-updated {
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 40px;
  font-style: italic;
}

.legal-text h2 {
  color: var(--blip);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 30px 0 15px 0;
}

.legal-text p {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
}

.back-link {
  margin-top: 50px;
  text-align: center;
}

.back-link a {
  color: var(--blip);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  padding: 12px 24px;
  border: 2px solid var(--blip);
  border-radius: 25px;
  display: inline-block;
}

.back-link a:hover {
  background: var(--blip);
  color: var(--dark);
  transform: translateY(-2px);
}

@media (max-width: 650px) {
  .legal-content {
    padding: 30px 15px;
  }
  
  .legal-section {
    padding: 25px 20px;
  }
  
  .footer-links {
    gap: 20px;
  }
}
