/* Cy Grotesk V3 Grand — primary typeface for ARCHAIN */

@font-face {
  font-family: 'Cy Grotesk V3 Grand';
  src:
    url('fonts/CyGrotesk-GrandRegular.woff2') format('woff2'),
    url('fonts/CyGrotesk-GrandRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cy Grotesk V3 Grand';
  src:
    url('fonts/CyGrotesk-GrandDark.woff2') format('woff2'),
    url('fonts/CyGrotesk-GrandDark.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #010f28;
  --bg-deep: #000916;
  --navy: #041428;
  --blue: #1a3d66;
  --blue-soft: #2f5f8f;
  --text: #e8eef6;
  --text-muted: rgba(232, 238, 246, 0.62);
  --text-faint: rgba(232, 238, 246, 0.42);
  --line: rgba(232, 238, 246, 0.14);
  --font: 'Cy Grotesk V3 Grand', sans-serif;
  --mx: 0;
  --my: 0;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  cursor: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg-deep);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

a,
button,
.waitlist-btn,
.header__x {
  cursor: none;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) scale(0.85);
  transition:
    opacity 0.25s ease,
    transform 0.12s ease,
    width 0.2s ease,
    height 0.2s ease,
    margin 0.2s ease;
  will-change: transform;
}

.cursor.is-active {
  opacity: 1;
}

.cursor.is-hover {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
}

.cursor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(10, 30, 60, 0.45));
}

@media (hover: none), (pointer: coarse) {
  html,
  body,
  a,
  button,
  .waitlist-btn,
  .header__x {
    cursor: auto;
  }

  .cursor {
    display: none !important;
  }
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

button,
a,
input,
textarea {
  font-family: var(--font);
}
.page {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  background:
    radial-gradient(90% 70% at 50% 42%, rgba(24, 56, 98, 0.45), transparent 68%),
    linear-gradient(180deg, #01102a 0%, #020b1c 48%, #000812 100%);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__glow {
  position: absolute;
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 140, 200, 0.35) 0%, transparent 70%);
  filter: blur(28px);
  animation: loaderPulse 2.2s ease-in-out infinite;
}

.loader__logo {
  position: relative;
  width: clamp(72px, 12vw, 104px);
  height: clamp(72px, 12vw, 104px);
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(20, 50, 90, 0.4));
  animation: loaderSpin 1.35s linear infinite;
  will-change: transform;
}

.loader__label {
  position: relative;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  font-weight: 700;
  color: rgba(232, 238, 246, 0.72);
}

@keyframes loaderSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    opacity: 0.55;
    scale: 0.92;
  }
  50% {
    opacity: 1;
    scale: 1.05;
  }
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 70% -10%, rgba(90, 130, 180, 0.28), transparent 55%),
    radial-gradient(90% 70% at 50% 55%, rgba(18, 52, 92, 0.55), transparent 70%),
    linear-gradient(180deg, #01102a 0%, #020b1c 48%, #000812 100%);
}

.atmosphere__banner {
  position: absolute;
  inset: -8%;
  background:
    url('assets/banner.png') center 42% / cover no-repeat;
  opacity: 0.22;
  filter: blur(28px) saturate(1.05) brightness(0.72);
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 6px), 0) scale(1.08);
  transition: transform 0.8s ease-out;
  mix-blend-mode: screen;
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 10px), 0);
}

.atmosphere__glow--tr {
  top: -18%;
  right: -8%;
  width: min(62vw, 720px);
  height: min(52vw, 560px);
  background: radial-gradient(circle, rgba(210, 228, 255, 0.34) 0%, rgba(110, 160, 210, 0.12) 42%, transparent 70%);
  animation: glowDrift 18s ease-in-out infinite alternate;
}

.atmosphere__glow--core {
  top: 38%;
  left: 50%;
  width: min(70vw, 820px);
  height: 220px;
  transform: translate3d(calc(-50% + var(--mx) * 10px), calc(var(--my) * 8px), 0);
  background: radial-gradient(ellipse at center, rgba(70, 120, 180, 0.28) 0%, transparent 72%);
  filter: blur(50px);
}

.atmosphere__haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 48%, rgba(40, 80, 130, 0.18), transparent 70%);
}

.atmosphere__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, rgba(0, 6, 14, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 8, 18, 0.25) 0%, transparent 28%, transparent 72%, rgba(0, 5, 12, 0.55) 100%);
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 3vw, 2.25rem);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 1.1s ease 0.15s, transform 1.1s ease 0.15s;
}

.page.is-ready .header {
  opacity: 1;
  transform: translateY(0);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(232, 238, 246, 0.08);
  border-radius: 14px;
  background: rgba(4, 14, 30, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 4, 12, 0.18);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font);
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--text);
}

.header__wordmark {
  display: inline-flex;
  align-items: baseline;
}

.header__c {
  display: inline-block;
  font-size: 0.96em;
  transform: scaleY(0.98) translateY(0.01em);
  transform-origin: center;
  letter-spacing: 0.22em;
}

.header__mark {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.95;
}

.header__right {
  display: flex;
  align-items: center;
}

.header__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  color: var(--text);
  opacity: 0.8;
  border: 1px solid rgba(232, 238, 246, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    opacity 0.35s ease,
    color 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

.header__x svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}

.header__x:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 238, 246, 0.28);
  transform: translateY(-1px);
}

.header__x:focus-visible {
  outline: 1px solid rgba(232, 238, 246, 0.35);
  outline-offset: 3px;
  opacity: 1;
}

.hero {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding:
    clamp(5rem, 12vh, 7.5rem)
    clamp(1.25rem, 4vw, 3rem)
    clamp(2.5rem, 6vh, 4rem);
}

.hero__content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__headline,
.hero__support,
.hero__cta,
.hero__sculpture {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.page.is-ready .hero__headline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.page.is-ready .hero__support {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.42s;
}

.page.is-ready .hero__cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.58s;
}

.page.is-ready .hero__sculpture {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.74s;
}

.hero__headline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  width: 100%;
  max-width: min(100%, 92vw);
  margin: 0 auto;
  font-family: var(--font);
  font-size: clamp(1.35rem, 4.4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0.045em;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  text-wrap: balance;
  padding-left: 0.045em;
  text-shadow:
    0 0 24px rgba(120, 170, 230, 0.18),
    0 0 60px rgba(60, 110, 180, 0.12);
}

.hero__headline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 48%;
  width: 120%;
  height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(90, 140, 200, 0.22) 0%,
    rgba(40, 80, 140, 0.08) 42%,
    transparent 70%
  );
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
  animation: titleAura 5.5s ease-in-out infinite;
}

.hero__line {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  text-align: center;
  color: #e8eef6;
  -webkit-text-fill-color: #e8eef6;
}

.hero__line--sub {
  width: auto;
  opacity: 0.94;
  color: rgba(232, 238, 246, 0.92);
  -webkit-text-fill-color: rgba(232, 238, 246, 0.92);
}

.hero__static {
  flex: 0 0 auto;
  color: inherit;
  -webkit-text-fill-color: inherit;
}

.hero__limits {
  font-style: normal;
  font-weight: 700;
  display: inline-block;
  flex: 0 0 auto;
  color: #f4f7fb;
  -webkit-text-fill-color: #f4f7fb;
  background: none;
  text-shadow:
    0 0 18px rgba(160, 200, 255, 0.35),
    0 0 36px rgba(80, 140, 210, 0.2);
  animation: limitsFlash 2.4s ease-in-out infinite;
}

@keyframes titleAura {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes limitsFlash {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.45;
    filter: brightness(1.45);
  }
}

.hero__support {
  margin-top: clamp(1.15rem, 2.6vh, 1.75rem);
  margin-inline: auto;
  width: 100%;
  max-width: 28rem;
  font-family: var(--font);
  font-size: clamp(0.78rem, 1.35vw, 1.05rem);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 400;
  text-align: center;
}

.hero__cta {
  margin-top: clamp(1.5rem, 3.2vh, 2.25rem);
  margin-inline: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}

.countdown {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  width: 100%;
  max-width: 34rem;
}

.countdown__divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(232, 238, 246, 0.18) 50%,
    transparent 100%
  );
}

.countdown__block {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.countdown__label {
  margin-bottom: 0.55rem;
  font-family: var(--font);
  font-size: clamp(0.55rem, 0.9vw, 0.66rem);
  letter-spacing: 0.28em;
  color: var(--text-faint);
  font-weight: 400;
}

.countdown__digits {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  font-family: var(--font);
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.countdown__digits i {
  font-style: normal;
  opacity: 0.35;
  padding: 0 0.05rem;
}

.countdown__units {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  font-family: var(--font);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  color: rgba(232, 238, 246, 0.35);
}

.waitlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.72rem 1.55rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  letter-spacing: 0.28em;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    opacity 0.35s ease;
}

.waitlist-btn:hover {
  border-color: rgba(232, 238, 246, 0.28);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.waitlist-btn--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.waitlist-btn:focus-visible {
  outline: 1px solid rgba(232, 238, 246, 0.45);
  outline-offset: 3px;
}

.hero__sculpture {
  position: relative;
  margin-top: clamp(1.75rem, 4.5vh, 3.25rem);
  margin-inline: auto;
  width: clamp(96px, 12vw, 148px);
  height: clamp(96px, 12vw, 148px);
  display: grid;
  place-items: center;
}

.hero__sculpture-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 140, 200, 0.45) 0%, rgba(40, 80, 140, 0.12) 45%, transparent 70%);
  filter: blur(18px);
  transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -4px), 0);
  animation: sculptureGlow 7s ease-in-out infinite alternate;
}

.hero__mark {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(20, 50, 90, 0.35));
  transform:
    translate3d(calc(var(--mx) * 10px), calc(var(--my) * 8px), 0)
    rotate(calc(var(--mx) * 4deg + var(--my) * 1.5deg));
  animation: floatSculpture 9s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatSculpture {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes sculptureGlow {
  0% {
    opacity: 0.55;
    scale: 0.92;
  }
  100% {
    opacity: 0.9;
    scale: 1.05;
  }
}

@keyframes glowDrift {
  0% {
    opacity: 0.75;
    scale: 1;
  }
  100% {
    opacity: 1;
    scale: 1.06;
  }
}

@media (max-width: 900px) {
  .hero__headline {
    max-width: min(100%, 94vw);
    letter-spacing: 0.03em;
    font-size: clamp(1.15rem, 4.2vw, 2.35rem);
  }

  .hero__line {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .page {
    height: 100svh;
    height: 100dvh;
  }

  .header {
    padding:
      max(0.7rem, env(safe-area-inset-top))
      max(0.75rem, env(safe-area-inset-right))
      0.55rem
      max(0.75rem, env(safe-area-inset-left));
  }

  .header__inner {
    padding: 0.5rem 0.65rem 0.5rem 0.75rem;
    border-radius: 12px;
  }

  .header__brand {
    letter-spacing: 0.14em;
    font-size: 0.64rem;
    gap: 0.5rem;
  }

  .header__mark {
    width: 15px;
    height: 15px;
  }

  .header__x {
    width: 1.75rem;
    height: 1.75rem;
  }

  .hero {
    justify-content: center;
    padding:
      max(4.4rem, calc(env(safe-area-inset-top) + 3.6rem))
      max(0.9rem, env(safe-area-inset-right))
      max(1rem, calc(env(safe-area-inset-bottom) + 0.75rem))
      max(0.9rem, env(safe-area-inset-left));
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
  }

  .hero__headline {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.35rem, 7vw, 1.95rem);
    letter-spacing: 0.03em;
    padding-left: 0.03em;
    gap: 0.28em;
    position: relative;
    left: 0.12em;
  }

  .hero__line {
    white-space: nowrap;
    max-width: 100%;
    justify-content: center;
  }

  .hero__line:not(.hero__line--sub) {
    flex-direction: column;
    align-items: center;
    white-space: normal;
    gap: 0.28em;
  }

  .hero__static {
    white-space: nowrap;
  }

  .hero__support {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.03em;
    padding-inline: 0.35rem;
    max-width: 22rem;
  }

  .hero__cta {
    margin-top: 1rem;
    gap: 0.85rem;
  }

  .countdown {
    gap: 0.55rem;
    max-width: 100%;
    padding-inline: 0.15rem;
  }

  .countdown__divider {
    opacity: 0.7;
  }

  .countdown__label {
    margin-bottom: 0.4rem;
    font-size: 0.5rem;
    letter-spacing: 0.2em;
  }

  .countdown__digits {
    font-size: clamp(0.92rem, 4.8vw, 1.15rem);
    letter-spacing: 0.04em;
    gap: 0.1rem;
  }

  .countdown__units {
    margin-top: 0.28rem;
    font-size: 0.42rem;
    letter-spacing: 0.14em;
    gap: 0.2rem;
  }

  .waitlist-btn {
    min-height: 2.3rem;
    padding: 0.65rem 1.15rem;
    letter-spacing: 0.18em;
    font-size: 0.62rem;
    border-radius: 12px;
  }

  .hero__sculpture {
    width: 78px;
    height: 78px;
    margin-top: 1.1rem;
  }

  .loader__logo {
    width: 72px;
    height: 72px;
  }

  .loader__label {
    font-size: 0.64rem;
    letter-spacing: 0.32em;
  }
}

@media (max-width: 380px) {
  .hero__headline {
    font-size: clamp(1.15rem, 6.4vw, 1.5rem);
    letter-spacing: 0.022em;
  }

  .countdown__digits {
    font-size: 0.88rem;
  }

  .hero__support {
    font-size: 0.72rem;
  }
}

@media (max-height: 780px) and (max-width: 900px) {
  .hero {
    padding-top: max(4rem, calc(env(safe-area-inset-top) + 3.2rem));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .hero__support {
    margin-top: 0.6rem;
  }

  .hero__cta {
    margin-top: 0.8rem;
    gap: 0.7rem;
  }

  .hero__sculpture {
    margin-top: 0.85rem;
    width: 68px;
    height: 68px;
  }

  .countdown__label {
    margin-bottom: 0.28rem;
  }
}

@media (max-height: 680px) {
  .hero {
    padding-top: 3.6rem;
    padding-bottom: 0.6rem;
  }

  .hero__support {
    margin-top: 0.45rem;
    font-size: 0.72rem;
  }

  .hero__cta {
    margin-top: 0.65rem;
    gap: 0.55rem;
  }

  .countdown__units {
    display: none;
  }

  .hero__sculpture {
    margin-top: 0.65rem;
    width: 58px;
    height: 58px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    padding: 3.2rem 1rem 0.5rem;
  }

  .hero__content {
    transform: scale(0.92);
    transform-origin: center center;
  }

  .hero__sculpture,
  .hero__support {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader__logo,
  .loader__glow,
  .hero__headline::before,
  .hero__limits {
    animation: none !important;
  }

  .hero__line,
  .hero__static,
  .hero__limits {
    background: none;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
  }

  .header,
  .hero__headline,
  .hero__support,
  .hero__cta,
  .hero__sculpture,
  .waitlist-btn,
  .atmosphere__banner,
  .atmosphere__glow,
  .hero__mark,
  .hero__sculpture-glow {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
  }

  .cursor {
    transition: none !important;
  }
}
