/* Astroflick landing — glass nav, CRM-style accordion, footer galaxy */

:root {
  --af-bg: #000;
  --af-accent: #f5f203;
  /* Same stops as public/assets/logo/astroflick-gradient.svg */
  --af-grad: linear-gradient(90deg, #f5f203 0%, #bcba02 70.1397%, #8f8d02 100%);
  --af-white-70: rgba(255, 255, 255, 0.7);
  --af-white-50: rgba(255, 255, 255, 0.5);
  --af-rule: rgba(245, 242, 3, 0.35);
  --af-font: clother, sans-serif;
  --af-nav-h: 98px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--af-bg);
  color: var(--af-white-70);
  font-family: var(--af-font);
  font-weight: 300;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}

body.af-landing {
  overflow-x: hidden;
}

.af-grad-text {
  background: var(--af-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* room for descenders — bg-clip otherwise chops y/g */
  line-height: 1.35;
  padding-bottom: 0.2em;
  overflow: visible;
}

/* —— Fixed glass nav pill (not full-bleed) —— */
.af-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--af-page-pad-y, 32px) var(--af-page-pad-x, 80px) 0;
  pointer-events: none;
  background: transparent;
  border: 0;
}

.af-nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  max-width: 100%;
  padding: 8px 10px 8px 14px;
  border-radius: 6px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: none;
}

.af-nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.af-nav__logo {
  display: block;
  height: 16px;
  width: auto;
}

.af-nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.af-nav__links a {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--af-white-50);
  transition: color 0.2s ease;
}

.af-nav__links a:hover {
  color: #fff;
}

.af-nav__signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 2px;
  background: var(--af-grad);
  color: #0a0a00 !important;
  letter-spacing: 0.08em;
  font-weight: 300;
}

.af-nav__signin:hover {
  color: #0a0a00 !important;
  filter: brightness(1.05);
}

.af-nav__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 2px;
  background: var(--af-grad);
  color: #0a0a00;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.af-nav__menu-btn:hover {
  filter: brightness(1.05);
}

.af-nav.is-scrolled .af-nav__inner {
  background: rgba(0, 0, 0, 0.45);
}

/* —— Hero —— */
.af-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100dvh;
  padding: calc(var(--af-nav-h) + 48px) var(--af-page-pad-x, 80px) 80px;
  overflow: hidden;
  background: #000;
}

.af-hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.af-gl {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.af-gl--fallback {
  background:
    radial-gradient(ellipse 55% 45% at 50% 55%, rgba(245, 242, 3, 0.07), transparent 62%),
    #000;
}

.af-planet-labels {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.af-planet-label {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: clother, sans-serif;
  font-size: 0.6875rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 3, 0.82);
  text-shadow: 0 0 12px rgba(245, 242, 3, 0.25);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}

.af-planet-label__sign {
  font-style: normal;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1;
  color: #f5f203;
  text-shadow: 0 0 14px rgba(245, 242, 3, 0.45);
}

.af-planet-label__name {
  opacity: 0.85;
}

.af-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: min(860px, 100%);
  overflow: visible;
}

.af-hero__title {
  margin: 0 0 24px;
  width: max-content;
  max-width: 100%;
  font-size: 52px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.02em;
  overflow: visible;
}

.af-hero__title-line {
  display: block;
  white-space: nowrap;
  text-align: center;
  line-height: 1.35;
  padding: 0.06em 0 0.2em;
  overflow: visible;
}

.af-hero__sub {
  margin: 0 0 36px;
  width: 100%;
  max-width: none;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--af-white-50);
  text-align: center;
  box-sizing: border-box;
}

.af-btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 2px;
  background: var(--af-grad);
  color: #0a0a00;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.af-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* —— Features accordion (CRM-style, cleaner) —— */
.af-features {
  padding: 48px var(--af-page-pad-x, 80px) 96px;
}

.af-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 40px;
  overflow: visible;
  /* Nav pill clears so #features / #pricing land on the small kicker */
  scroll-margin-top: calc(var(--af-page-pad-y, 32px) + 56px);
}

.af-section-kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--af-white-50);
  text-align: center;
}

.af-section-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
  height: auto;
  overflow: visible;
  padding-bottom: 0.2em;
}

.af-accord {
  display: flex;
  width: 100%;
  min-height: min(48vh, 480px);
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.af-accord__pane {
  position: relative;
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 8px 20px 12px;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: visible;
  transition: flex-basis 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.af-accord__pane:focus,
.af-accord__pane:focus-visible {
  outline: none;
}

.af-accord__pane.is-open {
  flex: 1 1 auto;
  cursor: default;
  background: transparent;
}

.af-accord__num {
  display: block;
  margin: 0 0 24px;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: var(--af-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Rail cluster bottom-aligned; shared line height = tallest label + 12px.
   Gradient rule sits beside the label in the column center — never through glyphs. */
.af-accord__rail-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
  align-self: center;
  margin-top: auto;
  margin-bottom: 12px;
}

.af-accord__line {
  flex: 0 0 auto;
  width: 1px;
  height: var(--af-rail-line-h, 0px);
  background: linear-gradient(180deg, #f5f203 0%, #bcba02 70.1397%, #8f8d02 100%);
  pointer-events: none;
}

.af-accord__rail {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--af-white-70);
  white-space: nowrap;
}

.af-accord__pane.is-open .af-accord__rail-wrap {
  display: none;
}

.af-accord__body {
  display: none;
  max-width: 28rem;
  padding-top: 4px;
  overflow: visible;
}

.af-accord__pane.is-open .af-accord__body {
  display: block;
  animation: af-fade-in 0.35s ease both;
}

.af-accord__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow: visible;
  background: var(--af-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.af-accord__copy {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--af-white-50);
}

/* —— How it works —— */
.af-how {
  padding: 48px var(--af-page-pad-x, 80px) 96px;
}

.af-how__sub {
  margin: -28px auto 48px;
  max-width: 32rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--af-white-50);
}

.af-how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
}

.af-how__step {
  position: relative;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.af-how__step + .af-how__step::before {
  content: '';
  position: absolute;
  top: 1.35rem;
  left: -24px;
  width: 1px;
  height: calc(100% - 1.35rem);
  background: var(--af-rule);
}

.af-how__num {
  display: block;
  margin: 0 0 20px;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: var(--af-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.af-how__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #e3dbcc;
  line-height: 1.35;
}

.af-how__copy {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--af-white-50);
}

.af-how__copy strong {
  font-weight: 400;
  color: #e3dbcc;
}

/* —— Pricing —— */
.af-pricing {
  padding: 48px var(--af-page-pad-x, 80px) 120px;
}

.af-pricing__sub {
  margin: -28px auto 40px;
  max-width: 32rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--af-white-50);
}

.af-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.af-pack {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px 24px;
  border: 1px dashed var(--af-rule);
  border-radius: 2px;
  background: transparent;
}

.af-pack--featured {
  border-style: solid;
  border-color: rgba(245, 242, 3, 0.55);
}

.af-pack__price {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  background: var(--af-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  padding-bottom: 0.12em;
}

.af-pack__tokens {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--af-white-50);
}

.af-pack__cta {
  margin-top: auto;
  padding-top: 28px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  background-image: var(--af-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.af-pack__cta-arrow {
  margin-left: 6px;
}

.af-pack__cta:hover {
  filter: brightness(1.15);
}

.af-pack__cta:hover .af-pack__cta-arrow {
  margin-left: 10px;
}

/* —— Footer —— */
.af-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 36px var(--af-page-pad-x, 80px);
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.af-foot__copy {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--af-white-50);
}

.af-foot__social {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.af-foot__social-link {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--af-white-50);
  transition: color 0.2s ease;
}

.af-foot__social-link:hover {
  color: var(--af-white-70);
}

.af-foot__pipe {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 14px;
  background: linear-gradient(180deg, #f5f203 0%, #bcba02 70.1397%, #8f8d02 100%);
  flex-shrink: 0;
}

@keyframes af-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .af-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .af-how__steps {
    grid-template-columns: 1fr;
    gap: 36px 0;
  }

  .af-how__step + .af-how__step::before {
    display: none;
  }

  .af-how__step + .af-how__step {
    padding-top: 36px;
    border-top: 1px solid var(--af-rule);
  }

  .af-accord {
    flex-direction: column;
    min-height: 0;
  }

  .af-accord__pane {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
  }

  .af-accord__pane + .af-accord__pane::before {
    display: none;
  }

  .af-accord__rail-wrap {
    margin: 0;
    align-self: center;
  }

  .af-accord__line {
    display: none;
  }

  .af-accord__rail {
    writing-mode: horizontal-tb;
    transform: none;
    margin: 0;
  }

  .af-accord__pane.is-open .af-accord__rail-wrap {
    display: none;
  }

  .af-accord__pane.is-open {
    flex-direction: column;
    align-items: flex-start;
  }

  .af-accord__num {
    margin-bottom: 0;
    font-size: 32px;
  }

  .af-accord__pane.is-open .af-accord__num {
    margin-bottom: 12px;
  }

  .af-accord__body {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .af-nav {
    padding-top: var(--af-page-pad-y, 24px);
    padding-left: var(--af-page-pad-x, 24px);
    padding-right: var(--af-page-pad-x, 24px);
  }

  .af-nav__inner {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px 8px 14px;
    gap: 12px;
  }

  .af-nav__inner.is-open {
    align-items: stretch;
  }

  .af-nav__menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .af-nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .af-nav__inner.is-open .af-nav__links {
    display: flex;
  }

  .af-nav__links a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.1em;
  }

  .af-nav__links a:last-child {
    border-bottom: 0;
  }

  .af-nav__signin {
    width: 100%;
    margin-top: 4px;
    justify-content: center;
  }

  .af-hero,
  .af-features,
  .af-how,
  .af-pricing,
  .af-foot {
    padding-left: var(--af-page-pad-x, 24px);
    padding-right: var(--af-page-pad-x, 24px);
  }

  .af-pack-grid {
    grid-template-columns: 1fr;
  }

  .af-hero__title {
    font-size: clamp(28px, 8vw, 52px);
  }

  .af-hero__title-line {
    white-space: nowrap;
  }

  .af-hero__sub {
    font-size: clamp(16px, 4.2vw, 22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-accord__pane {
    transition: none;
  }

  .af-accord__pane.is-open .af-accord__body {
    animation: none;
  }
}
