@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500&display=swap");

:root {
  font-family: "Accelerator", "Space Grotesk", system-ui, sans-serif;
  --bg: #f8f5e9;
  --ink: #174fff;
}

@font-face {
  font-family: "Accelerator";
  src: url("assets/accelerator.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  cursor: none;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

body.nav-zone {
  cursor: auto;
}

header.mast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 12px 28px;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  z-index: 5;
  touch-action: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 6px 12px;
}

.logo {
  height: 34px;
  width: auto;
  display: block;
}

.logo-text {
  display: none;
  font-family: "Accelerator", "Space Grotesk", system-ui, sans-serif;
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 24px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

nav a:hover,
nav a:focus-visible {
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(23, 79, 255, 0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

main {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: max(100px, 12vh) 32px 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.15s;
  overflow: hidden;
  touch-action: pan-x pan-y;
}

body.ready main {
  opacity: 1;
  transform: translateY(0);
}

.hero-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding-bottom: 10%;
}

#offscript {
  margin: 0;
  font: inherit;
  font-size: clamp(2.4rem, 10vw, 9rem);
  letter-spacing: -0.012em;
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0.01em;
  justify-content: center;
}

.char {
  display: inline-block;
  --tx: 0px;
  --ty: 0px;
  --rot: 0deg;
  --revealY: 18px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translate3d(
      var(--tx, 0px),
      calc(var(--ty, 0px) + var(--revealY, 0px)),
      0
    )
    rotate(var(--rot, 0deg));
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.ready .char.visible {
  opacity: 1;
  --revealY: 0px;
}

.char.space {
  width: 0.3em;
}

.cursor {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  --cursor-bg: #174fff;
  --cursor-scale: 1;
  background-color: var(--cursor-bg);
  color: #ffffff;
  position: fixed;
  left: -200px;
  top: -200px;
  transform: translate(-50%, -50%) scale(var(--cursor-scale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.cursor span {
  transform: translateY(2px);
}

body.nav-zone .cursor {
  opacity: 0;
}

.touch-indicator {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #174fff;
  color: #ffffff;
  position: fixed;
  left: -200px;
  top: -200px;
  transform: translate(-50%, -50%) scale(0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

.touch-indicator.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.touch-indicator span {
  transform: translateY(2px);
}

.tagline {
  margin: 0;
  text-align: center;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(23, 79, 255, 0.9);
  max-width: min(90vw, 540px);
  padding: 0 16px;
  flex-shrink: 0;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  main {
    padding-top: max(100px, 12vh);
  }
}

@media (max-width: 720px) {
  main {
    height: 100vh;
    height: 100dvh;
    padding: 90px 16px 20px;
  }

  .hero-center {
    padding-bottom: 0;
  }

  .char.space {
    width: 0.22em;
  }
}

@media (max-width: 640px) {
  header.mast {
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    justify-content: space-between;
    top: 12px;
    padding: 8px 16px;
    gap: 12px;
  }

  .logo {
    display: none;
  }

  .logo-text {
    display: block;
  }

  nav {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
  }

  .nav-toggle {
    display: none;
  }

  main {
    height: 100vh;
    height: 100dvh;
    padding: 55px 16px 16px;
  }

  #offscript {
    font-size: clamp(1.9rem, 14vw, 3.8rem);
    letter-spacing: -0.025em;
    gap: 0.003em;
  }

  .char.space {
    width: 0.2em;
  }

  .tagline {
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    padding-bottom: 10px;
  }
}
