/* ==========================================================================
   ShuttlX — Launching Soon
   Ported from the "Organic" design-system canvas to a standalone responsive
   site. Tokens below are the subset of the system this page actually uses.
   ========================================================================== */

:root {
  /* Spacing scale (from the design system) */
  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  /* Type */
  --font-heading: "Archivo Black", system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: "Archivo", system-ui, sans-serif;

  /* Palette */
  --ink: #0b0b0d;
  --ink-raised: #191920;
  --ink-line: #3b3b45;
  --chip: #303038;
  --chip-line: #43434e;
  --text: #f4f1ea;
  --text-muted: #b6b2a8;
  --text-dim: #8b8b86;
  --accent: #f2ca1b;
  --accent-hi: #ffd83c;
  --accent-lo: #b7940c;
  --key: #d9d5cb;
  --key-dim: #a8a49b;
  --on-accent: #16161a;

  /* Layout */
  --gutter: clamp(18px, 4vw, 48px);
  --measure: 1120px;
  --shell: calc(var(--measure) + 2 * var(--gutter));

  /* Shuttlecock scale — retuned per breakpoint */
  --shuttle-scale: 0.62;
}

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

html { -webkit-text-size-adjust: 100%; }

/* Decorative overflow (the glow, the tooltip) must never make the page
   scroll sideways. `clip` rather than `hidden` so no scroll container forms. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink);
  background-image: radial-gradient(120% 90% at 62% 6%, #17171b 0%, #101013 46%, #08080a 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
::selection { background: rgba(242, 202, 27, 0.35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.accent { color: var(--accent); }

/* — page shell ---------------------------------------------------------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* — header -------------------------------------------------------------- */

.site-header {
  flex: 0 0 auto;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(20px, 3vh, 36px) var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: nowrap;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--accent);
  color: #1a1a1f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 20px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 3px 0 var(--accent-lo);
}

.brand__text { min-width: 0; }

.brand__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand__sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.status {
  margin: 0;
  flex: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--chip-line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d6d2c6;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* — hero ---------------------------------------------------------------- */

.hero {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(24px, 5vh, 44px) var(--gutter) clamp(32px, 6vh, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero__copy {
  width: 100%;
  min-width: 0;
  max-width: 660px;
}

/* Art leads on narrow screens, then moves beside the copy on wide ones. */
.hero__art { order: -1; }

/* — keycaps ------------------------------------------------------------- */

.keycaps {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.keycap {
  min-width: 46px;
  padding: 12px 10px 14px;
  border-radius: 10px;
  background: var(--key);
  color: #14141a;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16), 0 4px 0 #8f8b82;
}

.keycap--dim {
  background: var(--key-dim);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16), 0 4px 0 #6f6c65;
}

.keycap--accent {
  background: var(--accent);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 4px 0 var(--accent-lo);
}

/* — headline ------------------------------------------------------------ */

.hero__title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: clamp(32px, 7vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

/* The lead sentence carries the club's whole pitch, so it gets its own line
   and full-strength text colour; the rest stays muted. */
.hero__lede strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 600;
}

.hero__lede {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  max-width: 560px;
  color: var(--text-muted);
  margin: 0 0 var(--space-8);
  text-wrap: pretty;
}

/* — signup form --------------------------------------------------------- */

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  max-width: 660px;
  padding: 10px;
  border-radius: 20px;
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.signup__input {
  flex: 1 1 240px;
  min-width: 0;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  font-family: var(--font-body);
  color: var(--on-accent);
  background: var(--key);
  border: 0;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.signup__input::placeholder { color: #8b8b86; }
.signup__input:focus-visible { outline-offset: 2px; }

.signup__button {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 16px 26px;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 16px;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 4px 0 var(--accent-lo);
  transition: transform 90ms ease, box-shadow 90ms ease, background 90ms ease;
}

.signup__icon { font-size: 15px; }
.signup__button:hover { background: var(--accent-hi); }
.signup__button:active {
  transform: translateY(4px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 0 0 var(--accent-lo);
}

.signup__status { min-height: 26px; margin-top: 16px; }

.signup__note {
  margin: 0;
  font-size: 13px;
  color: #97978f;
}

.signup__done {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.signup__check {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 var(--accent-lo);
}

.signup__error {
  margin: 0;
  font-size: 14px;
  color: #ff9a8a;
}

.signup__error a { color: inherit; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup__button[disabled] {
  cursor: progress;
  opacity: 0.75;
}

[hidden] { display: none !important; }

/* — shuttlecock --------------------------------------------------------- */

.hero__art {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: calc(250px * var(--shuttle-scale) + 40px);
  pointer-events: none;
  user-select: none;
}

.glow {
  position: absolute;
  width: min(calc(300px * var(--shuttle-scale) + 60px), 100%);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 202, 27, 0.18) 0%, rgba(242, 202, 27, 0) 70%);
}

.shuttle {
  position: relative;
  transform: scale(var(--shuttle-scale));
  transform-origin: center;
}

.shuttle__float {
  animation: shx-float 7s ease-in-out infinite;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.shuttle__tilt {
  transform: rotate(-16deg);
  transform-style: preserve-3d;
}

/* Zero-size anchor: every part is absolutely placed around this point, which
   is what keeps the 3D feather ring centred while the wrapper scales. */
.shuttle__anchor,
.shuttle__spin {
  position: absolute;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.shuttle__anchor { position: relative; }

.shuttle__blade {
  position: absolute;
  left: -27px;
  bottom: 0;
  width: 54px;
  height: 148px;
  transform-origin: 50% 100%;
  transform: rotateY(var(--a)) translate3d(0, 0, 15px) rotateX(-31deg);
}

.shuttle__blade::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 104px;
  clip-path: polygon(10% 0%, 90% 3%, 84% 88%, 58% 100%, 42% 100%, 16% 88%);
  background: linear-gradient(103deg, #ffffff 0%, #f7f4ec 46%, #d5d0c3 78%, #b0aa9d 100%);
  border-radius: 4px 7px 0 0;
  box-shadow: inset 0 -14px 18px rgba(0, 0, 0, 0.07);
}

.shuttle__blade::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 2px;
  height: 142px;
  margin-left: -1px;
  background: linear-gradient(180deg, #cfcabd 0%, #efece4 70%, #dcd8cd 100%);
}

.shuttle__band {
  position: absolute;
  left: -30px;
  top: -7px;
  width: 60px;
  height: 16px;
  border-radius: 4px;
  background: #17171b;
}

.shuttle__cork {
  position: absolute;
  left: -34px;
  top: 7px;
  width: 68px;
  height: 76px;
  border-radius: 8px 8px 40px 40px / 8px 8px 50px 50px;
  background: radial-gradient(120% 100% at 34% 22%, #ffffff 0%, #e4e0d5 48%, #a9a396 100%);
  box-shadow: 0 18px 26px rgba(0, 0, 0, 0.55);
}

@keyframes shx-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-10px, -26px, 0); }
}

/* — footer -------------------------------------------------------------- */

.site-footer {
  flex: 0 0 auto;
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--ink-line);
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--gutter) max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px var(--space-8);
}

.site-footer__tag { margin: 0; }

.site-footer__links {
  display: flex;
  gap: var(--space-6);
}

.site-footer__links a {
  text-decoration: none;
  font-weight: 600;
}

/* — "launching soon" tooltip on the placeholder social links ------------- */

.tip-link { position: relative; }

.tip-link::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 0;
  z-index: 2;
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--chip-line);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
  pointer-events: none;
}

.tip-link:hover::after,
.tip-link:focus-visible::after,
.tip-link.is-tip-open::after {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tip-link::after { transition: none; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Stacked layouts (phone + tablet) — tighten the vertical rhythm so the whole
   pitch stays close to one screenful before any scrolling. */
@media (max-width: 899px) {
  .site-header { padding-top: clamp(16px, 2.5vh, 28px); }
  .hero {
    padding-block: clamp(16px, 3vh, 32px) clamp(24px, 4vh, 40px);
    gap: clamp(12px, 2.5vh, 32px);
  }
  .keycaps { margin-bottom: var(--space-4); }
  .hero__lede { margin-bottom: var(--space-6); }

  .site-footer__inner { align-items: flex-start; }
  .site-footer__links {
    flex-direction: column;
    align-items: flex-start;   /* keep links text-width, not column-width */
    gap: var(--space-2);
  }

  /* Stacked links sit ~9px apart, so a tooltip above one would cover its
     neighbour — put it alongside instead. */
  .tip-link::after {
    bottom: auto;
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%) translateX(4px);
  }
  .tip-link:hover::after,
  .tip-link:focus-visible::after,
  .tip-link.is-tip-open::after {
    transform: translateY(-50%) translateX(0);
  }
}

/* Very small phones — keep the keycap row and header from crowding. */
@media (max-width: 400px) {
  :root { --shuttle-scale: 0.5; }
  .brand__mark { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; }
  .brand { gap: 9px; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 9px; letter-spacing: 0.1em; }
  .status { padding: 5px 9px; font-size: 9px; gap: 6px; }
  .status__dot { width: 6px; height: 6px; }
  .keycap { min-width: 38px; padding: 10px 8px 12px; font-size: 12px; }
  .hero__lede { font-size: 14px; }
}

/* Large phones / small tablets */
@media (min-width: 560px) {
  :root { --shuttle-scale: 0.72; }
}

/* Tablets — art still stacked, but the copy gets room to breathe. */
@media (min-width: 720px) {
  :root { --shuttle-scale: 0.85; }
  .signup__button { flex: 0 0 auto; }
}

/* Desktop — the original two-column, single-viewport composition. */
@media (min-width: 900px) {
  :root { --shuttle-scale: 1; }

  .page {
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
  }

  .site-header { margin-bottom: clamp(16px, 3vh, 40px); }

  .hero {
    min-height: 0;
    padding-block: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  .hero__copy { flex: 1 1 520px; }

  .hero__art {
    order: 0;
    flex: 0 0 clamp(240px, 26vw, 360px);
    width: auto;
    height: min(46vh, 360px);
  }

  .hero__title { font-size: clamp(34px, 4.6vw, 66px); line-height: 1.02; }
}

/* Short-but-wide viewports (landscape laptops, split screens): let the page
   scroll rather than clipping the form off the bottom. */
@media (min-width: 900px) and (max-height: 620px) {
  .page { height: auto; max-height: none; overflow: visible; }
  .hero { padding-block: clamp(24px, 5vh, 44px); }
}

/* Landscape phones. Vertical space is the scarce resource here, and the
   shuttlecock was taking up to 65% of it, so the decoration steps aside and
   the copy gets the screen. */
@media (max-height: 500px) {
  .hero__art { display: none; }

  .page { height: auto; max-height: none; overflow: visible; }

  .site-header { padding-top: 14px; }
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 18px 24px;
    gap: 0;
  }
  .hero__copy { max-width: 720px; }
  .keycaps { margin-bottom: var(--space-3); }
  .hero__title { font-size: clamp(26px, 4.4vw, 40px); }
  .hero__lede { margin-bottom: var(--space-4); }
}

/* ==========================================================================
   Motion & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .shuttle__float { animation: none; }
  .signup__button { transition: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .hero__art, .signup { display: none; }
}
