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

:root {
  --bg: #050d1a;
  --navy: #0d1e38;
  --navy2: #1a3560;
  --teal: #2a7f8f;
  --cyan: #4dd9ec;
  --gold: #c9a84c;
  --gold2: #e0c060;
  --muted: rgba(255, 255, 255, 0.52);
  --dim: rgba(255, 255, 255, 0.28);
}

html,
body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  font-family: "Inter", sans-serif;
  color: #fff;
  overflow: hidden;
}

body {
  position: relative;
}

#cs-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.cs-wrap {
  position: relative;
  z-index: 10;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.cs-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at center 34%,
      rgba(5, 13, 26, 0.72) 0%,
      rgba(5, 13, 26, 0.58) 28%,
      rgba(5, 13, 26, 0.18) 58%,
      rgba(5, 13, 26, 0) 78%
    );
}

.cs-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 3.5rem;
  color: rgba(244, 241, 233, 0.76);
  font-family: "Playfair Display", serif;
  font-size: clamp(0.9rem, 1.45vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.cs-logo-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 10px var(--gold),
    0 0 18px rgba(201, 168, 76, 0.35);
}

.cs-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.3rem;
  color: var(--cyan);
  font-size: clamp(0.64rem, 1vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cs-eyebrow::before,
.cs-eyebrow::after {
  content: "";
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(77, 217, 236, 0.4));
}

.cs-eyebrow::after {
  background: linear-gradient(to left, transparent, rgba(77, 217, 236, 0.4));
}

.cs-title {
  margin-bottom: 0.6rem;
  color: rgba(248, 246, 241, 0.98);
  font-family: "Playfair Display", serif;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.06),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.cs-subtitle {
  margin-bottom: 1.8rem;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
}

.cs-desc {
  max-width: 460px;
  margin: 0 auto 3rem;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.3vw, 0.93rem);
  line-height: 1.8;
}

.cs-countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-bottom: 3.5rem;
}

.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.cd-val {
  min-width: 2ch;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.cd-lbl {
  color: var(--dim);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cd-sep {
  align-self: flex-start;
  margin-top: 0.15rem;
  color: var(--teal);
  opacity: 0.5;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  animation: blink 1.6s ease-in-out infinite;
}

.cs-progress-wrap {
  width: min(320px, 80vw);
  margin: 0 auto 3rem;
}

.cs-progress-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: var(--dim);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.cs-progress-bg {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.cs-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  box-shadow: 0 0 10px rgba(77, 217, 236, 0.45);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-notify {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.cs-input {
  width: min(260px, 80vw);
  padding: 0.75rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-family: "Inter", sans-serif;
  font-size: 0.87rem;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.cs-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.cs-input:focus {
  border-color: rgba(77, 217, 236, 0.5);
  background: rgba(77, 217, 236, 0.08);
  box-shadow:
    0 0 0 4px rgba(77, 217, 236, 0.09),
    0 12px 30px rgba(0, 0, 0, 0.2);
}

.cs-input.is-invalid {
  border-color: rgba(201, 80, 76, 0.5);
  background: rgba(201, 80, 76, 0.08);
  box-shadow: 0 0 0 4px rgba(201, 80, 76, 0.08);
}

.cs-btn {
  padding: 0.75rem 1.65rem;
  border: none;
  border-radius: 50px;
  background: var(--gold);
  box-shadow: 0 4px 22px rgba(201, 168, 76, 0.3);
  color: var(--bg);
  cursor: pointer;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  font-size: 0.87rem;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}

.cs-btn:hover {
  background: var(--gold2);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.42);
}

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

.cs-btn:focus-visible,
.cs-input:focus-visible,
.cs-contact a:focus-visible {
  outline: 2px solid rgba(77, 217, 236, 0.5);
  outline-offset: 3px;
}

.cs-notify-note {
  margin-bottom: 3rem;
  color: var(--dim);
  font-size: 0.68rem;
}

.cs-success {
  display: none;
  margin-bottom: 3rem;
  color: var(--cyan);
  font-size: 0.84rem;
  animation: fadeIn 0.4s ease;
}

.cs-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
}

.cs-contact a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}

.cs-contact a:hover {
  color: #fff;
}

.cs-footer {
  position: fixed;
  right: 0;
  bottom: 1.5rem;
  left: 0;
  z-index: 10;
  text-align: center;
  color: var(--dim);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

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

@keyframes blink {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  html,
  body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #cs-canvas {
    opacity: 0.58;
  }

  .cs-wrap {
    min-height: 100svh;
    height: auto;
    justify-content: flex-start;
    padding:
      calc(6.25rem + env(safe-area-inset-top))
      1.35rem
      calc(5.75rem + env(safe-area-inset-bottom));
  }

  .cs-wrap::before {
    background:
      radial-gradient(
        ellipse 58% 30% at center 41%,
        rgba(5, 13, 26, 0.88) 0%,
        rgba(5, 13, 26, 0.76) 24%,
        rgba(5, 13, 26, 0.34) 46%,
        rgba(5, 13, 26, 0.08) 60%,
        rgba(5, 13, 26, 0) 72%
      ),
      linear-gradient(
        180deg,
        rgba(5, 13, 26, 0.08) 0%,
        rgba(5, 13, 26, 0) 22%,
        rgba(5, 13, 26, 0.06) 100%
      );
  }

  .cs-logo {
    margin-bottom: 2.4rem;
  }

  .cs-title {
    font-size: clamp(3.7rem, 18vw, 5.2rem);
  }

  .cs-subtitle {
    margin-bottom: 1.2rem;
  }

  .cs-desc {
    max-width: 26ch;
    margin-bottom: 2.35rem;
    color: rgba(255, 255, 255, 0.72);
  }

  .cs-countdown {
    width: min(100%, 360px);
    gap: 0.7rem;
    margin-bottom: 2.6rem;
  }

  .cd-block {
    flex: 1;
    min-width: 0;
  }

  .cs-progress-wrap,
  .cs-notify {
    width: min(100%, 460px);
  }

  .cs-footer {
    position: static;
    margin-top: 1rem;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-width: 480px) {
  .cs-countdown {
    gap: 0.45rem;
  }

  .cs-notify {
    flex-direction: column;
    align-items: center;
  }

  .cs-eyebrow::before,
  .cs-eyebrow::after {
    max-width: 34px;
  }

  .cd-sep {
    font-size: 1.5rem;
    opacity: 0.34;
  }

  .cs-input {
    width: 100%;
  }

  .cs-btn {
    width: min(100%, 220px);
  }

  .cs-notify-note {
    margin-bottom: 1.8rem;
    color: rgba(255, 255, 255, 0.38);
  }
}
