@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap');

/* === Base Styles === */
body {
  background: #181511;
  color: #F7E7B6;
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

h1, h2, h3, .nlhe-title, .tagline {
  font-family: 'Oswald', 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #F7E7B6;
}

/* === Layout Containers === */
.container {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 48px auto;
  background: rgba(24,21,17,0.95);
  border-radius: 8px;
  box-shadow: 0 0 8px #000;
  /* flex-grow: 1; */
}

header {
  text-align: center;
  padding: 32px 24px 24px;
}

/* === Decorative Background Elements === */
.modal-vhs-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 1px,
    transparent 2px,
    transparent 4px
  );
  animation: flicker 0.15s infinite;
  opacity: 0.1;
  pointer-events: none;
  mix-blend-mode: lighten;
  z-index: 10;
}

@keyframes flicker {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.15; }
}

.vhs-stripes,
.vhs-stripes.right {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, #E94B8A 0 20%, #F7C948 20% 40%, #3EC6F3 40% 60%, #F7E7B6 60% 80%, transparent 80% 100%);
}
.vhs-stripes.right {
  left: auto;
  right: 0;
  background: linear-gradient(to bottom, #3EC6F3 0 20%, #E94B8A 20% 40%, #F7C948 40% 60%, #F7E7B6 60% 80%, transparent 80% 100%);
}
.vhs-stripes { left: 0; }

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,0.07) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.stripes, .stripes-vert {
  position: fixed;
  z-index: 10;
  background: linear-gradient(to right, #E94B8A 0 20%, #F7C948 20% 40%, #F7E06B 40% 60%, #1CA9E6 60% 80%, #F7E7B6 80% 100%);
}
.stripes {
  left: 0;
  width: 100vw;
  height: 16px;
}
.stripes.top { top: 0; }
.stripes.bottom { bottom: 0; }

.stripes-vert {
  top: 0;
  height: 100vh;
  width: 16px;
}
.stripes-vert.left { left: 0; }
.stripes-vert.right { right: 0; }

/* === Typography === */
.nlhe-title {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  position: relative;
  padding: 0.2em 0.6em;
  text-shadow: 2px 2px 0 #E94B8A, 4px 4px 0 #1CA9E6, 0 2px 8px #0008;
}
.nlhe-title::after {
  content: '';
  display: block;
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0.15em;
  height: 0.25em;
  background: linear-gradient(90deg, #E94B8A, #F7C948 50%, #1CA9E6);
  z-index: -1;
  border-radius: 0.1em;
  opacity: 0.7;
}

.tagline {
  font-size: 1.3rem;
  color: #F7C948;
  margin: 0.5rem 0 1.5rem;
  text-shadow: 2px 2px 0 #181511, 0 2px 8px #0008;
  font-weight: 700;
}

.subheadline {
  font-size: 1.4rem;
  margin: 1.5rem auto 2rem;
  color: #F7E7B6;
  font-family: 'Montserrat', Arial, sans-serif;
  max-width: 600px;
}

/* === Form === */
.signup-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.signup-form input[type="email"] {
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  border-radius: 6px 0 0 6px;
  border: none;
  background: #F7E7B6;
  color: #181511;
  flex: 1;
  min-width: 300px;
}
.signup-form button {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 0 6px 6px 0;
  border: none;
  background: #E94B8A;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.signup-form button:hover {
  background: #F7C948;
  color: #181511;
}

.signup-note {
  color: #F7E7B6;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* === Footer === */
footer {
  text-align: center;
  font-size: 0.8rem;
  color: #bdbdbd;
  margin: 2rem 0 1rem;
}
footer a {
  color: #bdbdbd;
  text-decoration: none;
  margin: 0 0.5rem;
}
footer a:hover {
  text-decoration: underline;
}

/* === CRT Frame === */
.crt-tv {
  position: relative;
  width: 440px;
  height: 260px;
  margin: 0 auto 1.5rem;
  background: transparent;
  box-shadow: 0 0 32px 8px #000a, 0 0 0 12px #181511;
  overflow: hidden;
}

.crt-frame {
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 50% / 10%;
  overflow: hidden;
  position: relative;
}
.crt-frame::before {
  content: '';
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: -5%;
  right: -5%;
  background: inherit;
  border-radius: 5% / 50%;
  z-index: 1;
  pointer-events: none;
}

.crt-effect {
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: contrast(1.2) saturate(1.2) brightness(1.1);
  animation: crt-flicker 0.18s infinite;
  position: relative;
}
.crt-effect::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0.13) 0px, rgba(0,0,0,0.13) 1px, transparent 1.5px, transparent 4px);
  mix-blend-mode: multiply;
  z-index: 3;
  pointer-events: none;
}

.crt-static {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url('https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif');
  opacity: 0.18;
  mix-blend-mode: screen;
  animation: static-move 1.2s steps(10) infinite;
}

.main-logo {
  max-width: 96%;
  max-height: 96%;
  padding: 1.5rem 0;
  display: block;
  margin: 0 auto;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: #111;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  color: #fff;
  font-family: monospace;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* === Animations === */
@keyframes crt-flicker {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 1; }
}

@keyframes static-move {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* === Responsive Breakpoints === */
@media (max-width: 768px) {
  .container {
    margin: 24px auto;
    padding: 0 16px;
  }
  .nlhe-title { font-size: 2rem; }
  .tagline { font-size: 1.1rem; }
  .subheadline { font-size: 1.1rem; padding: 0 16px; }

  .signup-form {
    flex-direction: column;
    max-width: 400px;
    padding: 0 8px;
  }
  .signup-form input[type="email"],
  .signup-form button {
    width: 100%;
    border-radius: 6px;
  }
  .crt-tv {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16/9;
  }
  .vhs-stripes, .stripes-vert { width: 24px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .container { margin: 16px auto; padding: 0 12px; }
  header { padding: 24px 12px 16px; }
  .nlhe-title { font-size: 1.75rem; }
  .tagline { font-size: 1rem; }
  .subheadline { font-size: 1rem; padding: 0 8px; }

  .signup-form {
    max-width: 100%;
    padding: 0 4px;
  }
  .signup-form input[type="email"] {
    font-size: 0.8rem;
    padding: 0.7rem 0.8rem;
  }
  .signup-form button {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
  .signup-note {
    font-size: 0.85rem;
    padding: 0 8px;
  }
  footer {
    font-size: 0.75rem;
    margin: 1rem 0;
  }
  .vhs-stripes, .stripes-vert { display: none; }
  .stripes { height: 8px; }
  .crt-tv { max-width: 280px; margin-bottom: 1rem; }
}