/* ==========================================================================
   TRINKLETSCO — LAUNCHING SOON
   Exact 100% Faithful Recreation of Figma Design (Node #74:11)
   Fully responsive across Mobile, Tablet, Laptop, and Desktop
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & Variables
   -------------------------------------------------------------------------- */
:root {
  --bg-color: #292929;
  --gold-primary: #CB9E22;
  --gold-gradient: linear-gradient(180deg, #CB9E22 0%, #654E11 100%);
  --text-white: #FFFFFF;
  --text-white-80: rgba(255, 255, 255, 0.85);

  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-nunito: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-color);
  color: var(--text-white);
  font-family: var(--font-inter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   2. Page Container
   -------------------------------------------------------------------------- */
.launch-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-color);
  overflow: hidden;
  padding-bottom: 24px;
}

/* --------------------------------------------------------------------------
   3. Header (#74:12)
   -------------------------------------------------------------------------- */
.header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 35px;
  position: relative;
  z-index: 10;
}

.header-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.brand-logo {
  width: 24.5px;
  height: 24.5px;
  display: block;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 13.97px;
  color: var(--gold-primary);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   4. Glowing Arch Design Effect (#75:18 using exact half.png)
   -------------------------------------------------------------------------- */
.glow-arch-container {
  position: absolute;
  top: 35px;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, rgba(0, 0, 0, 0.75) 55%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 35%, rgba(0, 0, 0, 0.75) 55%, transparent 88%);
}

.glow-arch-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
  animation: glowArchMotion 7s ease-in-out infinite alternate;
}

/* Smooth continuous motion for the glowing arch */
@keyframes glowArchMotion {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.92;
  }
  50% {
    transform: translateY(5px) scale(1.015);
    opacity: 1;
  }
  100% {
    transform: translateY(-3px) scale(0.995);
    opacity: 0.94;
  }
}

/* --------------------------------------------------------------------------
   5. Hero Section (#79:55)
   -------------------------------------------------------------------------- */
.hero-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 393px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  margin-top: 155px;
  gap: 48px;
}

/* Text Wrapper (#79:53) */
.hero-text-wrapper {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Title (#77:21) */
.hero-title {
  font-family: var(--font-inter);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-white-80);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Paragraph (#77:22) */
.hero-paragraph {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 8px;
  line-height: 1.7;
  color: var(--text-white);
}

.hero-paragraph p + p {
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   6. Form (#77:30)
   -------------------------------------------------------------------------- */
.waitlist-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.input-box {
  width: 97px;
}

.form-input {
  width: 97px;
  height: 33px;
  padding: 8px 6px;
  background-color: var(--bg-color);
  border: 1px solid var(--gold-primary);
  border-radius: 0;
  color: var(--text-white);
  font-family: var(--font-nunito);
  font-weight: 500;
  font-size: 8px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: var(--text-white);
  font-family: var(--font-nunito);
  font-weight: 500;
  font-size: 8px;
  text-align: center;
  opacity: 0.95;
}

/* Prevent browser autofill from turning inputs white */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover, 
.form-input:-webkit-autofill:focus, 
.form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-color) inset !important;
  -webkit-text-fill-color: var(--text-white) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-input:focus {
  border-color: #EBC448;
  box-shadow: 0 0 8px rgba(203, 158, 34, 0.4);
}

/* Button (#77:28 & #77:29) */
.submit-button {
  width: 97px;
  height: 33px;
  padding: 8px 6px;
  background-color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  border-radius: 0;
  color: var(--text-white);
  font-family: var(--font-nunito);
  font-weight: 700;
  font-size: 8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.submit-button:hover {
  background-color: #D6A829;
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

/* Form Feedback */
.form-feedback {
  font-size: 9px;
  font-family: var(--font-inter);
  color: #7BE495;
  text-align: center;
  min-height: 14px;
  margin-top: -30px;
  display: none;
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback.error {
  color: #FF8A8A;
}

/* --------------------------------------------------------------------------
   7. Continuous "Coming Soon" Sliding Marquee (#77:32)
   -------------------------------------------------------------------------- */
.marquee-section {
  width: 100%;
  height: 39px;
  overflow: hidden;
  display: flex;
  align-items: center;
  user-select: none;
  position: relative;
  margin-top: 30px;
  margin-bottom: 25px;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeContinuous 16s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  padding-right: 12px;
}

.coming-soon-img {
  height: 14px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

@keyframes marqueeContinuous {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   8. Instagram Footer (#80:57)
   -------------------------------------------------------------------------- */
.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 15px;
  position: relative;
  z-index: 10;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.instagram-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.instagram-link:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   9. Multi-Screen Responsiveness (Scales Gracefully Without Changing Layout)
   -------------------------------------------------------------------------- */

/* Tablet (481px – 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .launch-page {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding-bottom: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .header {
    padding-top: 24px;
    flex-shrink: 0;
  }

  .glow-arch-container {
    width: 100%;
    top: 0;
    left: 0;
  }

  .glow-arch-img {
    width: 100%;
    height: auto;
  }

  .hero-container {
    max-width: 460px;
    margin-top: 0;
    gap: 24px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-text-wrapper {
    max-width: 400px;
    gap: 14px;
  }

  .hero-title {
    font-size: 18px;
    line-height: 1.35;
  }

  .hero-paragraph {
    font-size: 9px;
    line-height: 1.6;
  }

  .hero-paragraph p + p {
    margin-top: 6px;
  }

  .waitlist-form {
    gap: 16px;
  }

  .input-box, .form-input, .submit-button {
    width: 105px;
    height: 34px;
    font-size: 9px;
  }

  .form-input::placeholder {
    font-size: 9px;
  }

  .marquee-section {
    margin-top: 8px;
    margin-bottom: 10px;
    height: 32px;
    flex-shrink: 0;
  }

  .coming-soon-img {
    height: 14px;
  }
  .marquee-group {
    gap: 12px;
    padding-right: 12px;
  }

  .footer {
    padding-bottom: 14px;
    flex-shrink: 0;
  }
}

/* Desktop & Laptop (769px+) */
@media (min-width: 769px) {
  .launch-page {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .header {
    padding-top: 24px;
    flex-shrink: 0;
  }

  .brand-logo {
    width: 26px;
    height: 26px;
  }

  .brand-text {
    font-size: 15px;
  }

  .glow-arch-container {
    width: 100%;
    top: 0;
    left: 0;
  }

  .glow-arch-img {
    width: 100%;
    height: auto;
  }

  .hero-container {
    max-width: 560px;
    margin-top: 0;
    gap: 26px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-text-wrapper {
    max-width: 480px;
    gap: 14px;
  }

  .hero-title {
    font-size: 20px;
    line-height: 1.35;
  }

  .hero-paragraph {
    font-size: 10px;
    line-height: 1.65;
  }

  .hero-paragraph p + p {
    margin-top: 6px;
  }

  .waitlist-form {
    gap: 16px;
  }

  .input-box, .form-input, .submit-button {
    width: 115px;
    height: 36px;
    font-size: 9.5px;
  }

  .form-input::placeholder {
    font-size: 9.5px;
  }

  .marquee-section {
    margin-top: 10px;
    margin-bottom: 12px;
    height: 34px;
    flex-shrink: 0;
  }

  .coming-soon-img {
    height: 15px;
  }
  .marquee-group {
    gap: 14px;
    padding-right: 14px;
  }

  .footer {
    padding-bottom: 16px;
    flex-shrink: 0;
  }

  .instagram-icon {
    width: 24px;
    height: 24px;
  }
}

/* Large Screens (1200px+) */
@media (min-width: 1200px) {
  .header {
    padding-top: 28px;
  }

  .glow-arch-container {
    top: 0;
  }

  .hero-container {
    max-width: 600px;
    gap: 30px;
  }

  .hero-text-wrapper {
    max-width: 500px;
    gap: 16px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-paragraph {
    font-size: 10.5px;
    line-height: 1.7;
  }

  .waitlist-form {
    gap: 18px;
  }

  .input-box, .form-input, .submit-button {
    width: 120px;
    height: 36px;
    font-size: 10px;
  }

  .form-input::placeholder {
    font-size: 10px;
  }

  .marquee-section {
    margin-top: 12px;
    margin-bottom: 14px;
  }
}

/* ==========================================================================
   10. Waitlist Success Modal (Matching Design Interface System)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

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

.modal-card {
  position: relative;
  background-color: var(--bg-color);
  border: 1px solid var(--gold-primary);
  border-radius: 0;
  width: 100%;
  max-width: 360px;
  padding: 34px 26px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(203, 158, 34, 0.3);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--gold-primary);
  transform: scale(1.15);
}

.modal-icon-wrapper {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-logo {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(203, 158, 34, 0.5));
}

.modal-title {
  font-family: var(--font-inter);
  font-weight: 800;
  font-size: 16px;
  color: var(--text-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.modal-desc {
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--text-white-80);
  margin-bottom: 24px;
  max-width: 300px;
}

.user-name-highlight {
  color: var(--gold-primary);
  font-weight: 700;
}

.modal-confirm-btn {
  width: 110px;
  height: 34px;
  background-color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  border-radius: 0;
  color: var(--text-white);
  font-family: var(--font-nunito);
  font-weight: 700;
  font-size: 9px;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.modal-confirm-btn:hover {
  background-color: #D6A829;
  transform: translateY(-1px);
}

