body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  cursor: none;
}

canvas {
  display: block;
  margin: 0 auto;
  background: #000;
  /* Default size for desktop, will be overridden by media queries */
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  z-index: 1;
  position: relative;
  /* Ensure canvas is properly centered */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.info {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
  z-index: 10;
}

.controls {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
  z-index: 10;
}

.controls input {
  margin: 5px 0;
  width: 100px;
}

.controls label {
  display: block;
  margin: 5px 0;
  font-size: 12px;
}

.center-heading {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 50%;
  color: #000;
  font-family: "inter-variable", sans-serif;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "wght" 194.2857;
  font-size: 5vw;
  font-weight: 500;
  letter-spacing: 0.43em;
  text-align: center;
  z-index: 20;
  width: 80vw;
  pointer-events: none;
  user-select: none;
}

.center-heading {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 50%;
  color: #000;
  font-family: "inter-variable", sans-serif;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "wght" 194.2857;
  font-size: 5vw;
  font-weight: 500;
  letter-spacing: 0.43em;
  text-align: center;
  z-index: 30;
  width: 80vw;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heading-text {
  font-size: 5vw;
  font-weight: 500;
  letter-spacing: 0.43em;
  text-indent: 0.15em;
}

.heading-symbol {
  width: 0;
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: -0.2em;
  align-self: flex-start;
  margin-top: 0.1em;
}

.center-subheading {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  font-family: "inter-variable", sans-serif;
  font-size: 1vw;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: center;
  z-index: 25;
  width: 40vw;
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
  /* Position between heading and email form - will be set by JavaScript */
  top: calc(50% + 1em);
  mix-blend-mode: overlay;
}

/* Glass effect filter */
.glass-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.glass-filter svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.email-form {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10rem;
  z-index: 20;
  display: flex;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
  padding: 16px;
  /* Ensure form is always visible and properly positioned */
  max-width: 90vw;
}

.email-input {
  background: light-dark(hsl(0 0% 100% / 0.05), hsl(0 0% 0% / 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 12px 16px;
  font-family: "inter-variable", sans-serif;
  font-size: 14px;
  color: #000;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: url(#filter) brightness(1.1) saturate(1.5);
  min-width: 280px;
  box-shadow:
    0 0 2px 1px
      light-dark(
        color-mix(in oklch, canvasText, #0000 85%),
        color-mix(in oklch, canvasText, #0000 65%)
      )
      inset,
    0 0 10px 4px
      light-dark(
        color-mix(in oklch, canvasText, #0000 90%),
        color-mix(in oklch, canvasText, #0000 85%)
      )
      inset,
    0px 4px 16px rgba(17, 17, 26, 0.02),
    0px 8px 24px rgba(17, 17, 26, 0.02),
    0px 16px 56px rgba(17, 17, 26, 0.02),
    0px 4px 16px rgba(17, 17, 26, 0.02) inset,
    0px 8px 24px rgba(17, 17, 26, 0.02) inset,
    0px 16px 56px rgba(17, 17, 26, 0.02) inset;
  border: 1px solid
    light-dark(
      color-mix(in oklch, canvasText, #0000 80%),
      color-mix(in oklch, canvasText, #0000 70%)
    );
}

.email-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.email-input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

.notify-btn {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 12px 24px;
  font-family: "inter-variable", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}

.notify-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.notify-btn:active {
  transform: translateY(0);
}

/* Fallback for browsers that don't support url() in backdrop-filter */
@supports not (backdrop-filter: url(#filter)) {
  .email-input {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}

.success-message {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10rem;
  z-index: 20;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "inter-variable", sans-serif;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.success-message.show {
  opacity: 1;
}

/* Custom cursor elements */
.cursor-crosshair-vertical {
  position: fixed;
  width: 1px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1000;
  transform: translateX(-50%);
}

.cursor-crosshair-horizontal {
  position: fixed;
  width: 100vw;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 1000;
  transform: translateY(-50%);
}

.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1001;
  transform: translate(-50%, -50%);
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: 4px;
}

/* Marquee effect around viewport border */
.marquee-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.marquee-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.marquee-text {
  font-family: "inter-variable", sans-serif;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "wght" 600;
  font-size: 0.7em;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  fill: rgba(0, 0, 0, 0.5);
  will-change: transform;
}

.marquee-path {
  fill: none;
  stroke: none;
}

/* Responsive marquee adjustments */
@media (max-width: 1024px) and (min-width: 601px) {
  .marquee-text {
    font-size: 0.6em;
    letter-spacing: 0.1em;
  }
}

/* Hide marquee on mobile for better performance */
@media (max-width: 600px) {
  .marquee-container {
    display: none;
  }
}

.top-right {
  text-align: center;
  position: absolute;
  top: 2.5vw;
  right: 2.5vw;
  color: #000;
  font-size: 2vw;
  text-decoration: none;
  font-family: "inter-variable", sans-serif;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "wght" 194.2857;
  font-weight: 500;
}

.top-right:hover {
  opacity: 0.5;
  transition: opacity 0.1s ease;
}

/* Desktop (default) */
@media (min-width: 1025px) {
  .center-heading {
    font-size: 5vw;
    width: 80vw;
  }
  .heading-text {
    text-indent: 0.15em;
    font-size: 5vw;
  }
  .heading-symbol {
    font-size: 0.6em;
  }
  .center-subheading {
    font-size: 1vw;
  }
  .top-right {
    font-size: 2vw;
  }
  .email-form {
    padding: 20px;
    gap: 16px;
    bottom: 10rem;
  }
  .email-input {
    min-width: 280px;
    font-size: 14px;
  }
  .notify-btn {
    font-size: 14px;
    padding: 12px 24px;
  }
  canvas {
    width: 800px;
    height: 800px;
  }
  .cursor-dot {
    width: 5px;
    height: 5px;
  }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 601px) {
  .center-heading {
    font-size: 6vw;
    letter-spacing: 0.35em;
    width: 85vw;
  }
  .heading-text {
    text-indent: 0.12em;
    font-size: 6vw;
  }
  .heading-symbol {
    font-size: 0.6em;
  }
  .center-subheading {
    font-size: 1.8vw;
    letter-spacing: 0.15em;
    width: 60vw;
  }
  .top-right {
    font-size: 2.5vw;
    top: 2rem;
    right: 2rem;
  }
  .email-form {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    bottom: 7rem;
    width: auto;
  }
  .email-input {
    min-width: 280px;
    max-width: 320px;
    font-size: 15px;
    padding: 12px 16px;
  }
  .notify-btn {
    font-size: 15px;
    padding: 12px 24px;
    min-width: 280px;
    max-width: 320px;
    /* Better touch target for tablet */
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }
  canvas {
    width: 85vw;
    height: 85vw;
    max-width: 550px;
    max-height: 550px;
  }
  .cursor-dot {
    width: 6px;
    height: 6px;
  }
  .success-message {
    bottom: 7rem;
    font-size: 15px;
    padding: 10px 20px;
  }
}

/* Phone */
@media (max-width: 600px) {
  /* Performance optimizations for mobile */
  body {
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  canvas {
    width: 100vw;
    height: 100vw;
    max-width: 100vw;
    max-height: 100vw;
    /* Performance optimizations */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  .center-heading {
    font-size: 25vw;
    letter-spacing: 0.15em;
    width: 95vw;
    line-height: 0.9;
  }
  .heading-text {
    text-indent: 0.05em;
    font-size: 10vw;
  }
  .heading-symbol {
    font-size: 8vw;
  }
  .center-subheading {
    padding-top: 2em;
    font-size: 3vw;
    letter-spacing: 0.08em;
    width: 90vw;
  }
  .top-right {
    font-size: 8vw;
    top: 1rem;
    right: 1rem;
  }
  .email-form {
    flex-direction: column;
    gap: 12px;
    width: 90vw;
    padding: 16px;
    bottom: 3rem;
  }
  .email-input {
    width: 100%;
    font-size: 16px;
    padding: 16px 20px;
    border-radius: 30px;
    height: 56px;
    box-sizing: border-box;
    /* Prevent zoom on iOS */
    -webkit-appearance: none;
    appearance: none;
  }
  .notify-btn {
    font-size: 16px;
    padding: 16px 20px;
    width: 100%;
    border-radius: 30px;
    height: 56px;
    box-sizing: border-box;
    /* Better touch target */
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
  }
  .cursor-dot {
    width: 6px;
    height: 6px;
  }
  /* Hide cursor effects on mobile for better performance */
  .cursor-crosshair-vertical,
  .cursor-crosshair-horizontal {
    display: none;
  }
  .success-message {
    bottom: 3rem;
    font-size: 14px;
    padding: 10px 18px;
    width: 85vw;
    text-align: center;
  }

  /* Improve touch interactions */
  .email-input:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
  }

  .notify-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .center-heading {
    font-size: 28vw;
    letter-spacing: 0.1em;
    line-height: 0.85;
    width: 96vw;
  }
  .heading-text {
    font-size: 28vw;
  }
  .heading-symbol {
    font-size: 0.6em;
  }
  .center-subheading {
    font-size: 5vw;
    letter-spacing: 0.06em;
  }
  .top-right {
    font-size: 9vw;
    top: 0.5rem;
    right: 0.5rem;
  }
  .email-form {
    width: 92vw;
    padding: 14px;
    bottom: 2rem;
  }
  .email-input {
    font-size: 16px;
    padding: 16px 18px;
    height: 56px;
  }
  .notify-btn {
    font-size: 16px;
    padding: 16px 18px;
    height: 56px;
    /* Better touch target for small phones */
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
  }
  canvas {
    width: 100vw;
    height: 100vw;
  }
  .success-message {
    bottom: 2rem;
    font-size: 13px;
    padding: 8px 16px;
    width: 92vw;
  }
}
