/* PURPL /start — IG organizer funnel */

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

:root {
  --start-bg: #000000;
  --start-text: #f7f7f8;
  --start-muted: rgba(247, 247, 248, 0.68);
  --start-faint: rgba(247, 247, 248, 0.42);
  --start-border: rgba(255, 255, 255, 0.14);
  --start-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --start-font: var(--font-roobert, 'Roobert', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --start-display: var(--font-playfair, 'Playfair Display', Georgia, 'Times New Roman', serif);
}

html {
  scroll-behavior: smooth;
}

.start-page {
  min-height: 100dvh;
  color: var(--start-text);
  font-family: var(--start-font);
  background-color: var(--start-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

.start-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
  overflow: hidden;
}

/* ---------- Atmospheric bottom glow (Folio-style) ---------- */
.start-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

/*
  Full-width bottom band of the photo, masked so:
  - top ~half stays pure black
  - center-bottom stays vivid (orange field glow)
  - left/right dissolve into black
  No stacked black overlays — those were killing visibility.
*/
.start-atmosphere__media {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 120%;
  max-width: none;
  height: 62%;
  opacity: 1;
  filter: blur(1.5px) saturate(1.15) brightness(1.05);
  -webkit-mask-image:
    linear-gradient(
      to top,
      #000 0%,
      #000 18%,
      rgba(0, 0, 0, 0.75) 38%,
      rgba(0, 0, 0, 0.35) 55%,
      transparent 78%
    ),
    radial-gradient(
      ellipse 78% 95% at 50% 100%,
      #000 0%,
      #000 42%,
      rgba(0, 0, 0, 0.45) 62%,
      transparent 78%
    );
  mask-image:
    linear-gradient(
      to top,
      #000 0%,
      #000 18%,
      rgba(0, 0, 0, 0.75) 38%,
      rgba(0, 0, 0, 0.35) 55%,
      transparent 78%
    ),
    radial-gradient(
      ellipse 78% 95% at 50% 100%,
      #000 0%,
      #000 42%,
      rgba(0, 0, 0, 0.45) 62%,
      transparent 78%
    );
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.start-atmosphere__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
  user-select: none;
}

/* Content above atmosphere */
.start-nav,
.start-shell > main {
  position: relative;
  z-index: 1;
}

/* ---------- Nav ---------- */
.start-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.start-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  justify-self: start;
  transition: opacity 0.2s var(--start-ease), transform 0.2s var(--start-ease);
}

.start-logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.start-nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.start-nav-links a {
  color: var(--start-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--start-ease);
}

.start-nav-links a:hover {
  color: var(--start-text);
}

.start-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}

.start-link-btn {
  color: var(--start-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 10px 12px;
  transition: color 0.2s var(--start-ease);
}

.start-link-btn:hover {
  color: var(--start-text);
}

.start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--start-ease), background 0.2s var(--start-ease), border-color 0.2s var(--start-ease), color 0.2s var(--start-ease);
}

.start-btn:hover {
  transform: translateY(-1px);
}

.start-btn:active {
  transform: translateY(0);
}

.start-btn--solid {
  background: #fff;
  color: #0a0a0f;
  padding: 11px 20px;
}

.start-btn--solid:hover {
  background: #f0f0f2;
}

.start-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--start-text);
  border-color: var(--start-border);
  padding: 11px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.start-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.start-btn--lg {
  padding: 14px 26px;
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.start-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(56px, 10vh, 104px) 24px 0;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.start-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 20px;
  animation: start-fade-up 0.7s var(--start-ease) both;
  position: relative;
}

.start-badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(217, 120, 62, 0.28), rgba(167, 139, 250, 0.18), transparent 70%);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.75;
  animation: start-badge-glow 4.5s ease-in-out infinite;
}

.start-badge__arrow {
  opacity: 0.7;
}

.start-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
  animation: start-fade-up 0.7s var(--start-ease) 0.06s both;
}

.start-brand__mark {
  width: clamp(200px, 42vw, 320px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.35));
}

.start-headline {
  font-family: var(--start-display);
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #fff;
  max-width: 16ch;
  margin: 0 auto 18px;
  animation: start-fade-up 0.7s var(--start-ease) 0.12s both;
}

.start-sub {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--start-muted);
  max-width: 38rem;
  margin: 0 auto 28px;
  animation: start-fade-up 0.7s var(--start-ease) 0.18s both;
}

.start-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(40px, 7vh, 64px);
  animation: start-fade-up 0.7s var(--start-ease) 0.24s both;
}

/* ---------- Product stage ---------- */
.start-stage {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 0 16px 72px;
  animation: start-rise 0.9s var(--start-ease) 0.32s both;
}

.start-stage__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  background: rgba(8, 8, 14, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.start-stage__frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.start-stage__img {
  display: block;
  width: 100%;
  height: auto;
}

.start-stage__caption {
  margin-top: 18px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--start-faint);
}

/* ---------- Motion ---------- */
@keyframes start-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes start-rise {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes start-badge-glow {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .start-badge,
  .start-brand,
  .start-headline,
  .start-sub,
  .start-ctas,
  .start-stage,
  .start-badge::before {
    animation: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 860px) {
  .start-nav-links {
    display: flex;
  }

  .start-headline {
    max-width: 18ch;
  }
}

@media (max-width: 640px) {
  .start-nav {
    grid-template-columns: 1fr auto;
    padding: 16px 16px 0;
  }

  .start-nav-links {
    display: none;
  }

  .start-link-btn {
    display: none;
  }

  .start-hero {
    padding-top: 44px;
  }

  .start-ctas {
    width: 100%;
    flex-direction: column;
  }

  .start-ctas .start-btn {
    width: 100%;
  }

  .start-atmosphere__media {
    height: 55%;
  }

  .start-stage {
    padding-bottom: 48px;
  }

  .start-stage__frame {
    border-radius: 12px;
  }
}
