:root {
  color-scheme: dark;
  font-family: 'Space Grotesk', 'Neue Montreal', 'IBM Plex Sans', system-ui,
    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: radial-gradient(circle at 20% 20%, #0d1117 0%, #050606 60%);
  --grid: rgba(57, 255, 20, 0.06);
  --accent: #39ff14;
  --text: #f5f5f5;
  --muted: #98a2b3;
}

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

body {
  margin: 0;
  height: 100vh;
  max-height: 100vh;
  background: var(--bg), #000;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

body::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(57, 255, 20, 0.12)),
    linear-gradient(90deg, transparent 95%, rgba(57, 255, 20, 0.12));
  background-size: 80px 80px;
  opacity: 0.3;
  pointer-events: none;
}

.page {
  width: min(1100px, 100%);
  max-height: calc(100vh - 2rem);
  padding: 1.5rem;
  border: 1px solid rgba(57, 255, 20, 0.2);
  background: rgba(3, 8, 5, 0.92);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.page::before,
.page::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid var(--accent);
  opacity: 0.5;
}

.page::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.page::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  flex: 1;
  min-height: 0;
}

.video-stack {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 300px;
}

.peel-section-wrapper {
  padding: 10px 0;
  background: transparent;
  width: 100%;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.peel-container-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  overflow: visible;
}

/* Vertical Tape Peel Animation */
.tape-peel-container-vertical {
  position: relative;
  width: auto;
  height: auto;
  max-width: 100%;
  touch-action: none;
  -webkit-touch-callout: none;
  cursor: grab;
  user-select: none;
  background: transparent;
  margin: 0 auto;
  overflow: visible;
}

.tape-wrapper-vertical {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.tape-base-vertical,
.tape-peel-vertical {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.tape-base-vertical img,
.tape-peel-vertical img {
  display: block;
  object-fit: cover;
  pointer-events: none;
  transform: rotate(90deg);
  transform-origin: center center;
  /* Dimensions set by JavaScript */
}

.tape-base-vertical {
  opacity: 0;
  z-index: 1;
}

.tape-peel-vertical {
  opacity: 1;
  z-index: 2;
  will-change: clip-path;
}

.peel-tab-vertical {
  position: absolute;
  left: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.peel-tab-vertical img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform: rotate(90deg);
  transform-origin: center center;
}

.reveal-text-vertical {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  padding: 0.5rem;
  box-sizing: border-box;
  clip-path: inset(100% 0 0 0);
  -webkit-clip-path: inset(100% 0 0 0);
  transition: none;
  -webkit-transition: none;
  overflow: hidden;
  will-change: clip-path;
}

.reveal-text-vertical p {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  transform: rotate(-90deg);
  transform-origin: center center;
  white-space: nowrap;
  display: inline-block;
  /* Font size set dynamically by JavaScript */
}

.copy {
  text-align: left;
}

.logo-video {
  width: min(400px, 25vw);
  display: block;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

.whats-coming {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(57, 255, 20, 0.2);
}

.section-title {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.features-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  padding: 1rem;
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: 8px;
}

.feature-item h3 {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.collection-note {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  font-style: italic;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(57, 255, 20, 0.1);
}

.cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.button {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease;
}

.button.primary {
  background: var(--accent);
  color: #031003;
  border-color: transparent;
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.35);
}

.button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button:hover {
  transform: translateY(-2px);
}

footer {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  flex: 1;
  min-width: 0;
}

.newsletter-form input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  min-width: 0;
  flex: 1;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  border: none;
  background: var(--accent);
  color: #031003;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.35);
}

.newsletter-status {
  min-height: 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.6rem;
  text-transform: uppercase;
}

.newsletter-status[data-state='success'] {
  color: var(--accent);
}

.newsletter-status[data-state='error'] {
  color: #ff4444;
}

.newsletter-status[data-state='pending'] {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@keyframes float {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-8px);
  }
}

@media (max-width: 768px) {
  body {
    padding: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    height: auto;
    min-height: 100vh;
    display: block;
    align-items: stretch;
    justify-content: flex-start;
  }

  .page {
    padding: 1.5rem;
    min-height: 100vh;
    max-height: none;
    border-width: 1px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
    margin: 0 auto;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  video {
    max-width: 100%;
    height: auto;
    display: block;
  }

  video.logo-video {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .page::before,
  .page::after {
    width: 40px;
    height: 40px;
  }

  .page::before {
    top: 5px;
    left: 5px;
  }

  .page::after {
    bottom: 5px;
    right: 5px;
  }

  .grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: visible;
  }

  .grid > section {
    display: block;
    width: 100%;
    position: relative;
  }

  .video-stack {
    order: 1;
    height: auto;
    min-height: 300px;
    max-height: none;
    width: 100%;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    margin-bottom: 1.5rem;
    overflow: visible;
    pointer-events: auto;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    justify-content: flex-start;
    visibility: visible !important;
  }

  .video-stack > * {
    pointer-events: auto;
  }

  .video-stack > video:first-child,
  .video-stack > video.logo-video {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: min(300px, 60vw) !important;
    min-width: 200px;
    height: auto !important;
    min-height: 150px;
    position: relative !important;
    z-index: 15 !important;
    margin: 0 auto 1rem auto !important;
    order: 1;
    flex-shrink: 0;
  }

  .video-stack .logo-video {
    flex-shrink: 0;
    position: relative;
    z-index: 12;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: min(300px, 60vw) !important;
    height: auto !important;
    margin-bottom: 1rem !important;
  }

  .video-stack video.logo-video {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: min(300px, 60vw) !important;
    height: auto !important;
    min-height: 100px;
    max-width: 100%;
  }

  .video-stack .peel-section-wrapper {
    flex-shrink: 1;
    min-height: 0;
    max-height: none;
    overflow: visible;
    width: 100%;
    position: relative;
    margin-top: 1rem;
    order: 2;
    z-index: 0;
  }

  .peel-section-wrapper {
    width: 100%;
    overflow: visible;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .peel-container-inner {
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }

  .tape-peel-container-vertical {
    margin: 0 auto;
    display: block;
    max-width: 100%;
    overflow: visible;
  }

  .tape-wrapper-vertical {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .tape-base-vertical,
  .tape-peel-vertical {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tape-base-vertical img,
  .tape-peel-vertical img {
    object-fit: cover;
    position: relative;
    max-width: none !important;
    max-height: none !important;
    /* Dimensions set by JavaScript - don't override with percentages */
  }

  .peel-tab-vertical {
    max-width: 100%;
    overflow: hidden;
  }

  .peel-tab-vertical img {
    max-width: 100%;
    height: auto;
  }

  .copy {
    order: 2;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
  }

  footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 2rem;
    padding-bottom: 1rem;
    clear: both;
    width: 100%;
    flex-shrink: 0;
  }

  .logo-video {
    width: min(300px, 60vw) !important;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 11;
    max-width: 100%;
    height: auto;
  }

  video.logo-video {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  h1 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
  }

  .eyebrow {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .lead {
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .cta {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .newsletter-form {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter-form input {
    min-width: 0;
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .newsletter-form button {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .whats-coming {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .section-title {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .features-grid {
    gap: 0.75rem;
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 1rem;
  }

  .feature-item h3 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .feature-item p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .collection-note {
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    line-height: 1.5;
  }

  .reveal-text-vertical p {
    padding: 0;
    max-width: 95%;
    letter-spacing: 0.08em;
    /* Font size set dynamically by JavaScript */
  }

  footer {
    font-size: 0.75rem;
    padding: 1rem 0 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
}

/* Very narrow phones (iPhone SE, etc.) */
@media (max-width: 375px) {
  body {
    padding: 0.5rem;
  }

  .page {
    padding: 1rem;
  }

  .grid {
    gap: 1rem;
  }

  .peel-container-inner {
    padding: 0;
  }

  .tape-peel-container-vertical {
    margin: 0 auto;
    max-width: 100%;
    overflow: visible;
  }

  .tape-base-vertical img,
  .tape-peel-vertical img {
    object-fit: contain;
    position: relative;
    max-width: none !important;
    max-height: none !important;
    /* Dimensions set by JavaScript - don't override */
  }

  .logo-video {
    width: min(250px, 70vw);
  }

  h1 {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 0.9rem;
  }

  .button {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .newsletter-form input,
  .newsletter-form button {
    padding: 0.65rem;
    font-size: 0.85rem;
  }

  .feature-item {
    padding: 0.85rem;
  }

  .feature-item h3 {
    font-size: 0.8rem;
  }

  .feature-item p {
    font-size: 0.8rem;
  }

  .reveal-text-vertical p {
    letter-spacing: 0.06em;
    /* Font size set dynamically by JavaScript */
  }

  footer {
    font-size: 0.7rem;
  }
}

