/* FlikMeUp marketing landing — palette from lib/theme.ts */

:root {
  --bg: #050508;
  --card: #12121a;
  --elevated: #1a1a24;
  --text: #f4f4f8;
  --muted: #8b8b9e;
  --neon-blue: #00d4ff;
  --neon-green: #39ff14;
  --neon-purple: #bf5fff;
  --border: #2a2a38;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.8125rem, 1.1vw + 0.65rem, 0.9375rem);
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(0, 212, 255, 0.1), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 40%, rgba(191, 95, 255, 0.05), transparent 42%),
    linear-gradient(180deg, #070a10 0%, var(--bg) 35%, var(--bg) 100%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Stage: cards + flow ring —— */
.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100vh;
  width: 100%;
  padding: clamp(0.75rem, 2.5vw, 1.5rem) clamp(0.5rem, 2vw, 1rem);
}

.stage-wrap {
  width: 100%;
  max-width: 58rem;
}

.stage {
  position: relative;
  width: 100%;
}

.flow-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 52rem);
  height: auto;
  aspect-ratio: 2 / 1;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

body.is-ready .flow-arc--green {
  animation: flow-draw 1.15s ease-out 0.35s forwards;
}

body.is-ready .flow-arc--purple {
  animation: flow-draw 1.15s ease-out 0.55s forwards;
}

@keyframes flow-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.stage-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 1.35fr) minmax(0, 1fr);
  gap: clamp(0.45rem, 2vw, 1rem);
  align-items: center;
}

/* —— Image role cards (match app landing vibe) —— */
.role-card {
  position: relative;
  width: 100%;
  max-width: 15.5rem;
  margin: 0 auto;
  border-radius: clamp(16px, 2.2vw, 22px);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  max-height: min(52vh, 300px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.role-card--athlete {
  border-color: rgba(57, 255, 20, 0.35);
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(57, 255, 20, 0.08);
}

.role-card--photographer {
  border-color: rgba(191, 95, 255, 0.38);
  box-shadow:
    0 0 0 1px rgba(191, 95, 255, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(191, 95, 255, 0.1);
}

.role-card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.role-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 5, 8, 0.92) 0%,
    rgba(5, 5, 8, 0.35) 45%,
    transparent 72%
  );
  pointer-events: none;
}

.role-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(0.65rem, 2.5vw, 1rem) clamp(0.75rem, 2vw, 1rem);
  text-align: left;
}

.role-kicker {
  margin: 0 0 0.12rem;
  font-size: clamp(0.62rem, 1vw + 0.45rem, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-green);
}

.role-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.8vw + 0.55rem, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.role-title--split {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.95;
}

.role-title-line {
  display: block;
}

/* —— Center column —— */
.center {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  min-width: 0;
}

.center-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.hero {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(0.5rem, 2vw, 0.85rem);
}

.logo-flik {
  font-weight: 800;
  font-size: clamp(1.5rem, 3.8vw + 0.75rem, 2.1rem);
  letter-spacing: -0.06em;
  color: var(--text);
  line-height: 1;
}

.logo-bar {
  width: 3px;
  height: clamp(1.65rem, 4.5vw + 0.85rem, 2.35rem);
  margin: 0 clamp(0.4rem, 1.4vw, 0.65rem);
  background: var(--neon-green);
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.logo-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: translateY(-100%);
}

body.is-ready .logo-bar::after {
  animation: bar-sheen 2.2s ease-in-out 0.4s 1;
}

@keyframes bar-sheen {
  0% {
    transform: translateY(-100%);
  }
  45% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.logo-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.logo-meup {
  font-weight: 800;
  font-size: clamp(0.68rem, 1.4vw + 0.42rem, 0.88rem);
  letter-spacing: 0.2em;
  line-height: 1.05;
  color: var(--muted);
}

.slogan {
  margin: 0 0 clamp(0.65rem, 2vw, 0.95rem);
  font-weight: 600;
  font-size: clamp(0.78rem, 0.9vw + 0.62rem, 0.9rem);
  line-height: 1.35;
  color: var(--text);
  max-width: 17rem;
  margin-left: auto;
  margin-right: auto;
}

/* —— Waitlist —— */
.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto 0.3rem;
}

.waitlist-input {
  flex: 1 1 8.5rem;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.waitlist-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.18);
}

.waitlist-btn {
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--bg);
  background: var(--neon-green);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
}

.waitlist-btn:hover {
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.32);
}

.waitlist-btn:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 2px;
}

.waitlist-btn:active {
  transform: scale(0.98);
}

.waitlist-hint {
  margin: 0 0 clamp(0.55rem, 1.8vw, 0.85rem);
  font-size: 0.72rem;
  color: var(--muted);
}

.waitlist-dev-msg {
  max-width: 20rem;
  margin: 0.3rem auto 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.72rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.waitlist-dev-msg code {
  font-size: 0.85em;
  color: var(--neon-blue);
}

.text-link {
  color: var(--neon-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.text-link:hover {
  border-bottom-color: var(--neon-blue);
}

/* —— App device mockups (angled, Apple-style bezel) —— */
.phone-showcase {
  width: 100%;
  margin-top: clamp(0.85rem, 2.8vw, 1.5rem);
  padding: 0.35rem 0 clamp(0.35rem, 1.5vw, 0.65rem);
  overflow: visible;
}

.phone-showcase-inner {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.2rem, 1.8vw, 1.15rem);
  perspective: 1800px;
  transform-style: preserve-3d;
  max-width: 52rem;
  margin: 0 auto;
}

.device {
  margin: 0;
  flex: 0 0 auto;
  transform-style: preserve-3d;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55));
}

.device--left {
  width: min(27vw, 198px);
  transform: rotateY(28deg) rotateX(8deg) rotateZ(-5deg) translateZ(-16px);
}

.device--center {
  width: min(34vw, 252px);
  transform: translateZ(28px) translateY(-10px);
  filter: drop-shadow(0 36px 56px rgba(0, 0, 0, 0.6));
}

.device--right {
  width: min(27vw, 198px);
  transform: rotateY(-28deg) rotateX(8deg) rotateZ(5deg) translateZ(-16px);
}

.device-frame {
  position: relative;
  padding: 11px 11px 11px 12px;
  border-radius: 2.85rem;
  background: linear-gradient(
    152deg,
    rgba(72, 72, 78, 0.5) 0%,
    rgba(28, 28, 32, 0.98) 38%,
    rgba(8, 8, 10, 1) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 2px 12px rgba(255, 255, 255, 0.03) inset;
}

.device-side-btn {
  position: absolute;
  left: 2px;
  top: 22%;
  width: 3px;
  height: 12%;
  border-radius: 2px;
  background: linear-gradient(180deg, #4a4a50, #1c1c20);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 2;
  pointer-events: none;
}

.device-screen {
  position: relative;
  border-radius: 2.35rem;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.device-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.07);
  transform-origin: top center;
}

.device-cap {
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: clamp(0.58rem, 0.45vw + 0.48rem, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}

.below-phones {
  text-align: center;
  margin-top: clamp(0.35rem, 1.5vw, 0.65rem);
  padding-bottom: 0.15rem;
}

.site-footer--solo {
  border-top: none;
  padding-top: 0.35rem;
  margin-top: 0;
}

/* —— Building / soon —— */
.soon {
  margin: 0;
  font-size: clamp(0.68rem, 0.65vw + 0.58rem, 0.78rem);
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

.soon-line {
  display: block;
  margin-bottom: 0.2rem;
}

.soon-text {
  display: inline;
}

.soon-sub {
  display: block;
  font-size: 0.92em;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.soon-dots {
  display: inline-flex;
  gap: 0.2rem;
  margin-left: 0.2rem;
  vertical-align: middle;
}

.soon-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neon-blue);
  opacity: 0.25;
  transform: scale(0.65);
}

body.is-ready .soon-dots span:nth-child(1) {
  animation: dot-pulse 1.1s ease-in-out 0.9s infinite;
}

body.is-ready .soon-dots span:nth-child(2) {
  animation: dot-pulse 1.1s ease-in-out 1.05s infinite;
}

body.is-ready .soon-dots span:nth-child(3) {
  animation: dot-pulse 1.1s ease-in-out 1.2s infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.65);
    box-shadow: none;
  }
  40% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.75);
  }
}

.soon--boot .soon-text,
.soon--boot .soon-sub {
  opacity: 0.75;
}

body.is-ready .soon--boot .soon-text {
  animation: text-flicker 3s ease-in-out 0.5s 1 forwards;
}

body.is-ready .soon--boot .soon-sub {
  animation: text-flicker 3s ease-in-out 0.85s 1 forwards;
}

@keyframes text-flicker {
  0% {
    opacity: 0.35;
    filter: blur(0.5px);
  }
  20% {
    opacity: 0.9;
    filter: blur(0);
  }
  40% {
    opacity: 0.5;
  }
  65% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}

/* —— Footer —— */
.site-footer {
  padding-top: clamp(0.4rem, 1.5vw, 0.6rem);
  margin-top: 0.15rem;
  text-align: center;
  font-size: clamp(0.6rem, 0.45vw + 0.52rem, 0.68rem);
  color: var(--muted);
  border-top: 1px solid rgba(42, 42, 56, 0.5);
  flex-shrink: 0;
}

.footer-copy {
  margin: 0;
}

/* —— Boot reveal —— */
.boot-reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
}

.boot-reveal--delay {
  transition-delay: 0.1s;
}

.boot-reveal--phones {
  transition-delay: 0.2s;
}

.boot-reveal--phones2 {
  transition-delay: 0.34s;
}

body.is-ready .boot-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.logo--boot {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.65s ease 0.08s,
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s;
}

body.is-ready .logo--boot {
  opacity: 1;
  transform: scale(1);
}

body.is-booting .bg-gradient {
  opacity: 0.65;
  transition: opacity 0.8s ease;
}

body.is-ready .bg-gradient {
  opacity: 1;
}

/* —— Narrow —— */
@media (max-width: 700px) {
  .stage-row {
    grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 1.2fr) minmax(0, 1fr);
    gap: 0.35rem;
  }

  .role-card {
    max-width: none;
    max-height: min(42vh, 220px);
    border-radius: 14px;
  }

  .flow-ring {
    width: min(96%, 100%);
    opacity: 0.55;
  }

  .device--left {
    width: min(29vw, 158px);
    transform: rotateY(20deg) rotateX(6deg) rotateZ(-4deg) translateZ(-10px);
  }

  .device--center {
    width: min(36vw, 188px);
    transform: translateZ(16px) translateY(-6px);
  }

  .device--right {
    width: min(29vw, 158px);
    transform: rotateY(-20deg) rotateX(6deg) rotateZ(4deg) translateZ(-10px);
  }

  .phone-showcase-inner {
    gap: 0.2rem;
  }
}

@media (max-width: 420px) {
  .stage-row {
    grid-template-columns: minmax(0, 0.95fr) minmax(8rem, 1.1fr) minmax(0, 0.95fr);
    gap: 0.28rem;
  }

  .role-card {
    max-height: min(38vh, 200px);
  }

  .role-title {
    font-size: clamp(1.05rem, 4vw + 0.45rem, 1.35rem);
  }

  .role-title--split {
    font-size: inherit;
  }

  .device--left {
    width: min(27vw, 128px);
    transform: rotateY(14deg) rotateX(4deg) translateZ(-6px);
  }

  .device--center {
    width: min(33vw, 152px);
    transform: translateZ(10px) translateY(-4px);
  }

  .device--right {
    width: min(27vw, 128px);
    transform: rotateY(-14deg) rotateX(4deg) translateZ(-6px);
  }

  .device-cap {
    font-size: 0.52rem;
  }
}

@media (max-width: 360px) {
  .phone-showcase-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    perspective: none;
  }

  .device--left,
  .device--center,
  .device--right {
    width: min(76vw, 240px);
    transform: none;
  }

  .device--center {
    order: -1;
  }
}

@media (max-height: 560px) {
  body {
    overflow-y: auto;
  }

  .shell {
    min-height: min-content;
    padding-bottom: 1rem;
  }

  .role-card {
    max-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-reveal,
  .logo--boot {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .device--left,
  .device--center,
  .device--right {
    transform: none;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  }

  body.is-ready .flow-arc--green,
  body.is-ready .flow-arc--purple {
    animation: none;
    stroke-dashoffset: 0 !important;
  }

  body.is-ready .logo-bar::after,
  body.is-ready .soon-dots span,
  body.is-ready .soon--boot .soon-text,
  body.is-ready .soon--boot .soon-sub {
    animation: none !important;
  }

  .soon--boot .soon-text,
  .soon--boot .soon-sub {
    opacity: 1;
    filter: none;
  }
}
