/* =========================
   BUKED — COMING SOON
   ========================= */

:root {
  --bg: #05091b;
  --bg-deep: #020615;
  --panel: rgba(10, 16, 42, 0.92);
  --text: #f7f8ff;
  --muted: #a7adc4;
  --muted-2: #7c839f;
  --line: rgba(255, 255, 255, 0.10);

  --blue: #355cff;
  --violet: #7b45ff;
  --pink: #ff2d9d;

  --gradient: linear-gradient(90deg, var(--blue) 0%, var(--violet) 48%, var(--pink) 100%);

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 35%, rgba(48, 56, 135, 0.12), transparent 34%),
    radial-gradient(circle at 8% 95%, rgba(48, 87, 255, 0.13), transparent 24%),
    radial-gradient(circle at 92% 90%, rgba(255, 45, 157, 0.12), transparent 27%),
    linear-gradient(180deg, #07102a 0%, var(--bg) 47%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  max-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.ambient-one {
  top: -180px;
  left: -180px;
  background: var(--blue);
}

.ambient-two {
  right: -190px;
  bottom: -130px;
  background: var(--pink);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 24px 210px;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
  text-align: center;
  animation: reveal 900ms cubic-bezier(.2,.7,.2,1) both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 50px;
  user-select: none;
  width: min(40%, 360px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.brand-letter {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(74px, 9.2vw, 132px);
  letter-spacing: -0.085em;
}

.brand-k {
  position: relative;
  display: inline-block;
  width: clamp(58px, 6.8vw, 98px);
  height: clamp(76px, 8.9vw, 128px);
  margin: 0 -0.02em 0 0.01em;
}

.brand-k-stem,
.brand-k-top,
.brand-k-bottom {
  position: absolute;
  display: block;
  background: var(--gradient);
  box-shadow: 0 0 28px rgba(122, 69, 255, 0.18);
}

.brand-k-stem {
  left: 4%;
  top: 5%;
  width: 17%;
  height: 90%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pink), var(--violet), var(--blue));
}

.brand-k-top,
.brand-k-bottom {
  left: 20%;
  width: 75%;
  height: 18%;
  border-radius: 2px;
  transform-origin: left center;
}

.brand-k-top {
  top: 47%;
  transform: rotate(-42deg);
  background: linear-gradient(90deg, var(--violet), var(--pink));
}

.brand-k-bottom {
  top: 48%;
  transform: rotate(42deg);
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

.eyebrow {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 500;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider {
  width: 300px;
  max-width: 68vw;
  height: 1px;
  margin: 46px auto 42px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(53, 92, 255, 0.88) 30%,
    rgba(255, 45, 157, 0.95) 70%,
    transparent 100%
  );
  box-shadow: 0 0 18px rgba(170, 67, 255, 0.45);
}

h1 {
  margin: 0 auto;
  max-width: 760px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 600;
}

h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 660px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.7;
}

.notify-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 34px;
  padding: 0 26px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--gradient) border-box;
  cursor: pointer;
  box-shadow:
    0 0 0 rgba(122, 69, 255, 0),
    inset 0 0 32px rgba(80, 69, 180, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.notify-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px;
  border-radius: inherit;
  background: var(--gradient);
  filter: blur(22px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.notify-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(39, 46, 105, 0.32);
}

.notify-button:hover::before {
  opacity: 0.18;
}

.notify-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.notify-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.notify-icon svg {
  width: 100%;
  height: 100%;
}

.microcopy {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* Bottom wave */
.wave-wrap {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 330px;
  pointer-events: none;
  opacity: 0.72;
}

.wave {
  width: 100%;
  height: 100%;
}

.wave-lines path {
  stroke-width: 1.2;
  stroke-dasharray: 1 13;
  stroke-linecap: round;
  opacity: 0.8;
  animation: drift 16s linear infinite;
}

.wave-lines path:nth-child(2) { animation-duration: 18s; opacity: .63; }
.wave-lines path:nth-child(3) { animation-duration: 20s; opacity: .50; }
.wave-lines path:nth-child(4) { animation-duration: 22s; opacity: .38; }
.wave-lines path:nth-child(5) { animation-duration: 24s; opacity: .28; }

@keyframes drift {
  to {
    stroke-dashoffset: -180;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 17, 0.78);
  backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(510px, 100%);
  padding: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(10, 16, 42, .97), rgba(5, 9, 27, .98)) padding-box,
    linear-gradient(135deg, rgba(53,92,255,.72), rgba(122,69,255,.3), rgba(255,45,157,.64)) border-box;
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(.985);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: #cfd3e4;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.modal-close:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(rgba(8,13,34,.95), rgba(8,13,34,.95)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(80, 64, 190, .22);
}

.modal-icon svg {
  width: 25px;
  height: 25px;
}

.modal-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-card h2 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.modal-text {
  margin: 16px 0 28px;
  color: var(--muted);
  line-height: 1.65;
}

#waitlistForm label {
  display: block;
  margin-bottom: 9px;
  color: #d9dced;
  font-size: 14px;
  font-weight: 600;
}

.input-shell {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(122,69,255,.8);
  box-shadow: 0 0 0 4px rgba(122,69,255,.1);
}

.input-shell.is-error {
  border-color: #ff5d83;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

input::placeholder {
  color: #69708c;
}

.field-error {
  min-height: 19px;
  margin: 7px 0 6px;
  color: #ff7a98;
  font-size: 12px;
}

.submit-button {
  position: relative;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  background: var(--gradient);
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(91, 52, 230, .22);
  transition: transform 160ms ease, filter 160ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.submit-button:disabled {
  cursor: wait;
  opacity: .74;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.submit-button.is-loading .button-label {
  display: none;
}

.submit-button.is-loading .button-loader {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.privacy-note {
  margin: 12px 0 0;
  color: var(--muted-2);
  text-align: center;
  font-size: 12px;
}

.success-state {
  padding: 10px 0 4px;
  text-align: center;
}

.success-check {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 30px;
  font-weight: 700;
  background: var(--gradient);
  box-shadow: 0 16px 40px rgba(91, 52, 230, .28);
}

.success-state h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
}

.success-state p {
  margin: 10px 0 24px;
  color: var(--muted);
}

.success-close {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.05);
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 700px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 180px;
  }

  .brand {
    width: 55%;
    max-width: 240px;
    margin-bottom: 40px;
  }
  
  .brand img {
    width: 100%;
    height: auto;
  }

  .brand-letter {
    font-size: clamp(62px, 20vw, 90px);
  }

  .brand-k {
    width: clamp(48px, 15vw, 68px);
    height: clamp(64px, 19vw, 86px);
  }

  .eyebrow {
    font-size: clamp(24px, 7.2vw, 34px);
    letter-spacing: .24em;
    padding-left: .24em;
  }

  .divider {
    margin-top: 34px;
    margin-bottom: 34px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.65;
  }

  .notify-button {
    width: 100%;
    max-width: 390px;
    padding: 0 20px;
  }

  .wave-wrap {
    height: 260px;
  }

  .modal-card {
    padding: 34px 22px 26px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
